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 70319 - IllegalArgumentException: Child tree not found when closing java files
Summary: IllegalArgumentException: Child tree not found when closing java files
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 10:48 UTC by Milan Kubec
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (1.67 KB, text/plain)
2005-12-13 10:49 UTC, Milan Kubec
Details
java class with error (2.00 KB, text/plain)
2005-12-13 12:48 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-12-13 10:48:55 UTC
[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)
...
Comment 1 Milan Kubec 2005-12-13 10:49:20 UTC
Created attachment 27786 [details]
exc stack trace
Comment 2 Milan Kubec 2005-12-13 12:48:14 UTC
Created attachment 27791 [details]
java class with error
Comment 3 Milan Kubec 2005-12-13 12:52:05 UTC
No more random, use attached java source file with error and it's reproducible.
Comment 4 Pavel Flaska 2005-12-14 14:44:27 UTC
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)
Comment 5 Daniel Prusa 2006-08-10 16:15:49 UTC
*** Issue 81949 has been marked as a duplicate of this issue. ***
Comment 6 Daniel Prusa 2006-08-10 16:17:14 UTC
*** Issue 77872 has been marked as a duplicate of this issue. ***
Comment 7 Daniel Prusa 2006-08-10 16:17:19 UTC
*** Issue 81294 has been marked as a duplicate of this issue. ***
Comment 8 Daniel Prusa 2006-08-10 16:31:11 UTC
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.
Comment 9 Jan Becicka 2006-10-26 16:27:37 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 10 Quality Engineering 2007-09-20 09:54:11 UTC
Reorganization of java component