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 6266 - JavaParser don`t update JavaHierchy on closing without saving
Summary: JavaParser don`t update JavaHierchy on closing without saving
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -S1S-
Hardware: All All
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-04-13 17:54 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2000-04-13 17:54:44 UTC
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.
Comment 1 Marek Grummich 2000-07-25 09:32:59 UTC
Priority is changed to P4 (normal).
Comment 2 Jan Becicka 2000-10-23 11:38:59 UTC
[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.
Comment 3 Jan Becicka 2000-11-01 16:05:59 UTC
[1135] Verified
Comment 4 Jan Becicka 2003-05-04 09:09:14 UTC
reopening for 030428_1
Comment 5 ehucka 2004-01-26 15:54:19 UTC
It's old issue. Priority increased to P3.
Comment 6 ehucka 2004-01-26 16:08:49 UTC
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

Comment 7 Jan Pokorsky 2004-01-26 16:14:58 UTC
I have a patch that refreshes the hierarchy in case you discard
changes on close. I will put it to the trunk soon.
Comment 8 Jan Pokorsky 2004-01-27 14:11:43 UTC
fixed in
/cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v
new revision: 1.148; previous revision: 1.147
Comment 9 ehucka 2004-02-19 12:02:38 UTC
Verified.