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 63442

Summary: wrong error annotation and refactoring behavior when document differs from file
Product: java Reporter: Adam Sotona <asotona>
Component: UnsupportedAssignee: Martin Matula <mmatula>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 63444    

Description Adam Sotona 2005-08-31 15:33:49 UTC
Mobility integrates commenting preprocessor into Java editor.
Each Java file has to be stored in canonical form because of the versioning systems.
So the preprocessing is not only perfomed during project build, but also during
document load from file, and during document save to file.
Result of this process is that document content may differ from file content
even the document is unmodified.
After some performance improvements in javacore there are ignored unmodified
documents and content for parsing is taken from files (this is a different
behavior then in 4.1).
This results in wrong error annotation and refactoring behavior in Mobility
projects.
Comment 1 Pavel Flaska 2005-08-31 15:48:03 UTC
Martin promised he will fix this. ;-)
Comment 2 Martin Matula 2005-08-31 20:05:59 UTC
Fixed.
Use JMManager.ModifiedDOProvider.setModifiedDOProvider() and
JavaMetamodel.getManager().addModified().

Checking in src/org/netbeans/modules/javacore/JMManager.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/JMManager.java,v  <-- 
JMManager.java
new revision: 1.120; previous revision: 1.119
done
Checking in src/org/netbeans/modules/javacore/parser/Util.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/Util.java,v  <-- 
Util.java
new revision: 1.6; previous revision: 1.5
done
Comment 3 Max Sauer 2007-02-14 17:08:15 UTC
This has become obsolete with interduction of Retouche.
---
NetBeans IDE Dev (Build 070214)
1.6.0; Java HotSpot(TM) Server VM 1.6.0-b105
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
Comment 4 Quality Engineering 2007-09-20 12:39:10 UTC
Reorganization of java component