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.
040915 custom. Selected a new class I had just started to write (put caret on class decl) and selected Refact -> Rename and chose a new name. Got a bunch of exceptions. "Refactoring" window appeared after the dialog was closed nonetheless. The class was called ArtifactQuery (in ant/freeform) and I was renaming it to ArtifactProvider. Of interest: FreeformProject (same module) had a reference to it: ...new ArtifactQuery(this)... which should be valid (there is such a constructor) but which is nonetheless marked with an error in the editor (this is true before I tried the refactoring): "Cannot find symbol Symbol: ArtifactQuery(org.netbeans.modules.ant.freeform.FreeformProject) Location: org.netbeans.modules.ant.freeform.ArtifactQuery" Not sure why. I had recently compiled the module (to run a unit test) but before writing ArtifactQuery or modifying FreeformProject to refer to it. The refactoring window did not offer to change this reference. After accepting the refactoring, making ArtifactProvider compilable (but not compiling it), and updating FreeformProject, the error annotation disappears.
Created attachment 17719 [details] Stack traces
Several exceptions from javacore thrown ---- java.lang.Exception: Inconsistent storage - persistent children collection not empty although parent says it has not been persisted yet. Removing old children... ---- java.lang.Exception: Class not found in index: org.openide.filesystems.FileUtil.NonCanonicalizingFile. Recovering... ---- java.util.EmptyStackException at java.util.Stack.peek(Stack.java:79) at java.util.Stack.pop(Stack.java:61) at org.netbeans.modules.javacore.parser.MDRParser.enterBody(MDRParser.java:185)
This issue was probably already fixed. Martin did many improvements in up-to-date checking and mdr consistency. I cannot reproduce it any more. Jesse can you reproduce it?
I don't think I could reproduce it to begin with... if you don't see anything else to fix, presumably could be marked fixed. Of course if I see such problems again I will file new bug reports.
"Inconsitent storage" was fixed. Class not found was also fixed. Empty stack is probably consequence of previos Exceptions. Closing as fixed.
Reorganization of java component