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 48981

Summary: StringIndexOutOfBoundsException when opening a new project
Product: java Reporter: Jiri Skrivanek <jskrivanek>
Component: ClassfileAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P1    
Version: 4.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: Entire stack trace
This is the correct stack trace. Please, disregard the previous one.

Description Jiri Skrivanek 2004-09-14 08:15:54 UTC
In build 20040913-2342 it started to happen that
exception is thrown when a new project is created:

java.lang.StringIndexOutOfBoundsException: String
index out of range: -1
	at java.lang.String.substring(String.java:1444)
	at
org.netbeans.modules.classfile.ClassName.initInternalName(ClassName.java:139)

It is likely that it was caused by the last commit
to ClassName class. Please, fix it ASAP because it
blocks automated tests. Thanks.

Build 20040913-2342, JDK1.4.2_05, Solaris9.
Comment 1 Jiri Skrivanek 2004-09-14 08:16:16 UTC
Created attachment 17603 [details]
Entire stack trace
Comment 2 Jiri Skrivanek 2004-09-14 08:17:42 UTC
Created attachment 17604 [details]
This is the correct stack trace. Please, disregard the previous one.
Comment 3 Pavel Flaska 2004-09-14 08:43:43 UTC
Workaround: Update
classfile/src/org/netbeans/modules/classfile/ClassName.java
back to revision 1.13.
Comment 4 Tomas Hurka 2004-09-14 09:00:05 UTC
Workaround applied to trunk. 
revision 1.14 of classfile/src/org/netbeans/modules/classfile/ClassName.java was 
rolled back.
Comment 5 Tomas Hurka 2004-09-14 09:23:02 UTC
Resolved.
Comment 6 Jiri Skrivanek 2004-09-14 11:14:52 UTC
Verified.
Comment 7 _ tball 2004-09-14 15:39:17 UTC
What automated tests does this block?  I ran the refactoring and the
commit-validation tests before doing the commit.  Are there other test
suites I need to run?
Comment 8 Jiri Skrivanek 2004-09-14 15:58:45 UTC
The commit-validation passed on windows but failed on linux and solaris.
Comment 9 _ tball 2004-09-14 16:06:43 UTC
Something else broke things then, as I only run Linux.
Comment 10 Jan Becicka 2004-09-15 15:17:22 UTC
There is no StringIndexOutOfBoundsException in the trunk. Tomas Hurka
already did a roolback.
Comment 11 Jiri Skrivanek 2004-09-16 08:42:19 UTC
Verified. Tom, if you have concerns about the commit-validation, I
suggest to solve it off-line and keep this issue closed.