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 44433 - ClassElement.forName on default package inner classes throws exception
Summary: ClassElement.forName on default package inner classes throws exception
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-07 14:20 UTC by ehucka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2004-06-07 14:20:48 UTC
ClassElement.forName called on
"TopLevelClassDefaultPackage.InnerClass" or
"TopLevelClassDefaultPackage$InnerClass" argument
returns null or throws 
java.lang.StringIndexOutOfBoundsException: String
index out of range: -1
java.lang.String.substring(String.java:1777)
org.netbeans.modules.java.ClassElementFinder.findSpecifiedInner(ClassElementFinder.java:89)
org.netbeans.modules.java.ClassElementFinder.find(ClassElementFinder.java:164)
org.openide.src.ClassElement.forName(ClassElement.java:925)
Comment 1 Daniel Prusa 2004-06-22 16:32:20 UTC
fixed
Checking in ClassElementFinder.java;
/cvs/java/src/org/netbeans/modules/java/ClassElementFinder.java,v  <--
 ClassElementFinder.java
new revision: 1.11; previous revision: 1.10
Comment 2 ehucka 2004-08-18 10:17:24 UTC
verified
Comment 3 Quality Engineering 2007-09-20 12:00:12 UTC
Reorganization of java component