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

Summary: Calling WorkingCopy.toPhase() after WorkingCopy.rewrite() clears the modifications
Product: java Reporter: Andrei Badea <abadea>
Component: SourceAssignee: Dusan Balek <dbalek>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Test

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.