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.
Whenever I try to edit this file (ant module), I get some kind of error from MDR, javacore, etc. Maybe some parser bug? The log entries don't explain. 040813 custom build. Starting with APDL.java rev. 1.22 (clean), I add private static final String KNOWN_ANT_FILENAME = "build.xml"; // NOI18N and then use Ctrl-I to try to override findPrimaryFile - and start getting exceptions, repository inconsistency errors, etc. (inconsistent storage, stack trace from SemiPersistentElement.fixMembers, object with MOFID ... no longer exists, NPE from ASTProvider.createBounds, etc.). In fact one time it tried to insert the override method into the middle of another method! Delete my mdrcache and restart - no better. NPE from MultipartIdImpl.getDiff, Ctrl-I shows only methods of Object, conc mod from LightAttrList.setInnerList, etc. Try from a different userdir with a clear cache - still no good. Open file in attached state; Ctrl-I; shows correct list of methods to override; select getShared (just for testing); does it correctly; press Ctrl-Z to revert change; then there are errors (NPE from ASTProvider.createBounds).
Created attachment 16817 [details] The file in its current state
Created attachment 16818 [details] My current log file; exceptions for #47229 begin with 040813 log; other javacore/MDR bugs earlier, but I don't know what causes them, just the usual instability
Created attachment 16819 [details] Log from a different user dir
There was a bug that occurred if you edited the file for some time and then wanted to perform some operation on that source that accesses the JMI API. Positions were wrong and the whole AST for the file (which JMI operates on) was not refreshed for the edited file. This is now fixed so hopefuly this bug is no longer there. Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java,v <-- ResourceImpl.java new revision: 1.26; previous revision: 1.25 done
Jesse, can you, please, verify this issue? Thanks.
No way to verify.
No way to verify = closed.
Reorganization of java component