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 87012 - NoSuchElementException when insert initialized attribute into element
Summary: NoSuchElementException when insert initialized attribute into element
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Craig Conover
URL:
Keywords:
Depends on: 87289 87327
Blocks:
  Show dependency tree
 
Reported: 2006-10-12 15:14 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 21:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (19.07 KB, text/plain)
2006-10-12 15:15 UTC, Alexandr Scherbatiy
Details
IDE log file (17.35 KB, text/plain)
2006-10-16 11:14 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-10-12 15:14:20 UTC
Steps to reproduce:

- Create a Java application
- Reverse engineer the Java application into UML project
- Create a Class diagram
- Put an Interface element onthe diagram and name it
- Insert 'public int a = 10' attribute into the element
- Generate code for the Interface elemet
- Insert 'public int b = 20' attribute into the element

NoSuchElementException pops up.

See attached IDE log file.
Comment 1 Alexandr Scherbatiy 2006-10-12 15:15:04 UTC
Created attachment 35139 [details]
IDE log file
Comment 2 Kris Richards 2006-10-13 22:06:12 UTC
izzue was resolved as a result of other rev engineering work. Cannot be reproduced with current 
(10/13/06) code.
Comment 3 Alexandr Scherbatiy 2006-10-16 11:13:30 UTC
The issue is still reproduced.
See attached log file.
Comment 4 Alexandr Scherbatiy 2006-10-16 11:14:41 UTC
Created attachment 35223 [details]
IDE log file
Comment 5 Alexandr Scherbatiy 2006-10-16 11:16:38 UTC
You could get the version of UML module from the log file.
For example: org.netbeans.modules.uml/1 [1.1.10 061015]
Comment 6 Craig Conover 2006-10-16 22:12:34 UTC
Yes, I was able to reproduce. Looks like there is another area that is
activating LIVE Roundtrip.
Comment 7 Peter Lam 2006-10-16 23:33:38 UTC
Another scenario for for live roundtrip. I did the following.

    * created a java project with default (main project & create main class)
    * reverse engineered the java project
    * created a class diagram
    * as I added and named classes and interfaces from the class diagram, I got
corresponding sources created in the java project for the classes and interfaces
and also navigatable to sources as well.

When I generated source to the default location, then added new
attributes/operations to the classes/interfaces, the generated sources are also
updated on the fly with the newly added attrs/opers.
Comment 8 Peter Lam 2006-10-16 23:35:25 UTC
upgrade to a P1 for tracking on dashboard since live roundtrip has not been
totally disabled.
Comment 9 Craig Conover 2006-10-17 08:25:51 UTC
Some work on other issues has made this issue unable to be reproduced.
Comment 10 Andrew Korostelev 2006-10-17 14:10:59 UTC
this issue can't be verified because of regressions:
issue 87327 - Code generation action does not work the second time
issue 87289 - Source code is not generated for attributes
Comment 11 Andrew Korostelev 2006-10-18 14:43:11 UTC
Verified in all-nbms-griffin-061018_27
this bug is not reproducible.
But Live RT is still not completely disabled (see issue 87411).