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 88909 - Calling WorkingCopy.toPhase() after WorkingCopy.rewrite() clears the modifications
Summary: Calling WorkingCopy.toPhase() after WorkingCopy.rewrite() clears the modifica...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-08 11:21 UTC by Andrei Badea
Modified: 2007-03-23 11:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test (4.03 KB, text/plain)
2006-11-08 11:22 UTC, Andrei Badea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Badea 2006-11-08 11:21:15 UTC
... as proved by the attached test.
Comment 1 Andrei Badea 2006-11-08 11:22:48 UTC
Created attachment 35881 [details]
Test
Comment 2 Dusan Balek 2007-03-22 15:02:58 UTC
Fixed.

Checking in test/unit/src/org/netbeans/api/java/source/WorkingCopyTest.java;
/cvs/java/source/test/unit/src/org/netbeans/api/java/source/WorkingCopyTest.java,v
 <--  WorkingCopyTest.java
initial revision: 1.1
done
Checking in src/org/netbeans/api/java/source/WorkingCopy.java;
/cvs/java/source/src/org/netbeans/api/java/source/WorkingCopy.java,v  <-- 
WorkingCopy.java
new revision: 1.15; previous revision: 1.14
done
Comment 3 Andrei Badea 2007-03-23 11:03:00 UTC
I don't remember how I encountered this issue, so I can't test that scenario.
But the test passes, so verified.