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.
[release50-200512122030, JDK 1.5.0_06] I have opened large number of java source file and form files and then I was closing one after another by clicking close button on each editor tab and I accidentally did a double click during that (don't know if I double clicked the close button or tab itself) and IllegalArgumentException: Child tree not found was thrown. java.lang.IllegalArgumentException: Child tree not found (type: 28 firstToken: 18 lastToken: 365 resource: aaa/bbb/ccc/NewClass.java) class org.netbeans.jmi.javamodel.Field$Impl EXC valid:true | class org.netbeans.jmi.javamodel.JavaClass$Impl aaa.bbb.ccc.NewClass valid:true | class org.netbeans.jmi.javamodel.Resource$Impl aaa/bbb/ccc/NewClass.java valid:true | at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree(MetadataElement.java:1161) at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree(MetadataElement.java:515) at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getParser(SemiPersistentElement.java:830) at org.netbeans.modules.javacore.jmiimpl.javamodel.FeatureImpl.getJavadocText(FeatureImpl.java:168) ...
Created attachment 27786 [details] exc stack trace
Created attachment 27791 [details] java class with error
No more random, use attached java source file with error and it's reproducible.
The short class which allows to reproduce this bug: class Klasa { String field1 = "; } Then, FIELD_DECLARATION has the last token index higher than COMPILATION_UNIT last token index. (The FIELD_DECLARATION last token is EOF)
*** Issue 81949 has been marked as a duplicate of this issue. ***
*** Issue 77872 has been marked as a duplicate of this issue. ***
*** Issue 81294 has been marked as a duplicate of this issue. ***
Please, ignore the three duplicates marked above. These issues also report IAE: Child tree not found, but for different type. I have already changed their resolution so that they point to the correct issue now.
Javacore module was replaced by Retouche infrastructure. This bug is not valid in trunk any more.
Reorganization of java component