This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 91209 - RE Operation: Message is incorrectly connected to self in case of Static Import
Summary: RE Operation: Message is incorrectly connected to self in case of Static Import
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Reverse Engineering (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Kris Richards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-18 14:55 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Incorrect message (13.45 KB, image/png)
2006-12-18 15:00 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2006-12-18 14:55:20 UTC
Steps to reproduce:

- Reverse engineer the 'public void testStaticImport( double theta )'
   method from 'TestStaticImport' class and create a Sequence diagrams:
  ---------------------------------------------------------------------
  import static java.lang.Math.PI;
  import static java.lang.Math.cos;

  public class TestStaticImport {
    
    public void testStaticImport( double theta ){
        double r = cos(PI * theta);
    }
  }
  ---------------------------------------------------------------------
  There is the 'public void cos(PI unnamed)' message which has 'self'
  Receiving Lifeline instead of ':Math' message
Comment 1 Alexandr Scherbatiy 2006-12-18 15:00:00 UTC
Created attachment 36747 [details]
Incorrect message
Comment 2 Kris Richards 2007-01-13 00:10:20 UTC
updated the Antlr def file to fire appropriate events for static imports. Then regenerated the necessary 
files. Added checks for static method calls. (REOperation, MethodDeclaration, InstanceInformation, 
MethodCallExpression)
Comment 3 Alexandr Scherbatiy 2007-01-22 13:26:05 UTC
verified