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 5015 - In-place class rename may cause corruption of the file contents.
Summary: In-place class rename may cause corruption of the file contents.
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-12-16 17:45 UTC by Svata Dedic
Modified: 2008-12-23 11:16 UTC (History)
0 users

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 Svata Dedic 1999-12-16 17:45:48 UTC
If the constructor contains creation of anonymous class like the following code (taken from constructor of examples.advanced.MemoryView) and user renames the class by clicking at its name in the Exp
lorer, the constructor`s body gets corrupted. No exception is thrown. After the action, Undo in the affected code behaves strangely. (must undo 3 times to revert the editing action, after first Undo,
the edit window  is scrolled so the first column of text is hidden)

code example:
    timer = new Timer (UPDATE_TIME, new ActionListener () {
      public void actionPerformed (ActionEvent ev) {
        updateStatus ();
      }
    });

[ observed on examples.advanced.MemoryView and examples.texteditor.Ted when the fragment was copied in. ]
Comment 1 Marek Grummich 2000-07-25 09:24:59 UTC
Priority is changed to P4 (normal).
Comment 2 Marian Mirilovic 2002-05-09 10:09:09 UTC
It works fine now,
closed