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.
1. Save All (Ctrl-Shift-S) 2. Copy some field from some class 3. Paste it to other class 4. Close editor without saving end reopen modified class in editor 5. JavaHierarchy didn`t update ------ 6. Using popup menu properities change some properities. 7. Field is in source code again and even it replace some source code!!! ?ToDo: Update JavaHierarchy on closing editor, not only on saving.
Priority is changed to P4 (normal).
[1128] Steps to reproduce: 1. Close Editor 2. Using Explorer add new Field into some class (Editor must be closed) 3. Open this class in Editor (this file will be marked as modified) 4. Close Editor without saving. 5. Open this .java file again: In JavaHierarchy is newField, but not in .java 6. Try to delete field from Explorer -> some nonvalid modification in code are made.
[1135] Verified
reopening for 030428_1
It's old issue. Priority increased to P3.
In addition unconsistent JavaHierarchy puts other fields to JavaDoc steps to reproduce: 1. open a class with commented constructor 2. copy a field from another class 3. paste it to opened class 4. close opened file by discard - JavaHierarchy is not updated 5. cut some field from another class 6. paste it to unconsistent class the field is paste into the constructor's comment
I have a patch that refreshes the hierarchy in case you discard changes on close. I will put it to the trunk soon.
fixed in /cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v new revision: 1.148; previous revision: 1.147
Verified.