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.
Steps to reproduce: - Create an empty Java project - Add 'pack' package into the Java project - Add 'MyClass' class under the package - Reverse Engineer the 'MyClass' class into UML project - Go to the UML project - Add 'public void op()' operation into the 'MyClass' element - Generate code for the the 'MyClass' element into 'src' folder of Java project 'Question' dialog asks: 'MyClass.java was modified externally. Reload it?' - Press 'Yes' button. InvalidObjectException pops up: javax.swing.text.BadLocationException: Wrong insert position 1 java.lang.IllegalStateException: The model was modified. Unable to return start offset. - Go to the java project 'MyClass.java' class is empty
Created attachment 35036 [details] IDE log file
My last comment said "we can assume..." but should have read "we can NOT assume...".
my last comment was meant to be posted to the issue preceding this issue in sequential order. <rant>This auto-advance of the issue # is really a P.I.T.A. and needs to be pulled out. Hitting submit should redisplay the issue I was working on </rant>
Main functionality is broken. It is also test stopper. Steps to reproduce: - Create a Java-Platform UML project - Create a Class diagram - Put a class elementy on the diagram and name it - Generate code for the Class element - Create a Java Project with Existing source Choose generated sources for the Java project - Go to the UML project - Insert an operation into the class element - Generate code for the Class element - Go to the Java project - Open the generated java file The file is empty. See previous IDE log file.
*** Issue 87030 has been marked as a duplicate of this issue. ***
Changed the way the existing source file is backed up. Instead of doing a rename, the existing source file is copied, and then the existing source file is updated with new elements.
verified with all-nbms-griffin-061018_27.zip nbms