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 82379 - Operation declarations disappear from class element if nested class is declared before ones
Summary: Operation declarations disappear from class element if nested class is declar...
Status: VERIFIED INVALID
Alias: None
Product: uml
Classification: Unclassified
Component: Synchronization (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-10 13:02 UTC by Alexandr Scherbatiy
Modified: 2006-10-13 13:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Declare inner class before methods (108.53 KB, image/png)
2006-08-10 13:03 UTC, Alexandr Scherbatiy
Details
IDE log file (41.64 KB, application/octet-stream)
2006-08-10 13:04 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-08-10 13:02:28 UTC
Steps to reproduce:

- Create a UML Java-Platform Mopdel project and synchronize
  it with Java Application
- Create a Class digram
- Put an Class element on the diagram and name it 'MyClass'
- Insert some operations into the Class element
- Go to the source of the Class element
- Declare Inner class before operation declarations:
  -------------------------------------------------------
  public class MyClass {
    public MyClass() {
    }

    class D{
    }

    public void op1() {
    }

    public void op2() {
    }
  }
  -------------------------------------------------------

- Go to the diagram
  The operation declarations disappear from the Class element
Comment 1 Alexandr Scherbatiy 2006-08-10 13:03:35 UTC
Created attachment 32755 [details]
Declare inner class before methods
Comment 2 Alexandr Scherbatiy 2006-08-10 13:04:38 UTC
Created attachment 32756 [details]
IDE log file
Comment 3 Craig Conover 2006-08-10 23:33:01 UTC
Reviewed: bug is as stated.
Looks like issue is in JMIUtils class on the UML side. Probably improper source
file parsing.
Comment 4 Craig Conover 2006-10-12 00:33:21 UTC
This scenario is obsolete because of the Roundtrip Redisgn: issue 84855
Comment 5 Andrew Korostelev 2006-10-13 13:38:57 UTC
verified in all-nbms-griffin-061012_6 on nb55rc2
no ways to reproduce in current release (not repr in RE).