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 101551 - StringIndexOutOfBoundsException
Summary: StringIndexOutOfBoundsException
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 101793 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-18 12:45 UTC by Jana Maleckova
Modified: 2007-04-25 16:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
101551 (1.59 KB, text/plain)
2007-04-18 12:46 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-04-18 12:45:57 UTC
NetBeans IDE Dev (Build 20070418-0710)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

dual core

Description:
=============
have J2SE project
1. try to create jframe and package at the same time - select project name in
project tab, create new - jFrame. Fill name of jFrame and package name as well.
During creation and exception will occur.

Then in botton bar there is always running process - Refreshing Workspace

StackTrace:
===========
java.lang.StringIndexOutOfBoundsException: String index out of range: -3
	at java.lang.String.substring(String.java:1938)
	at
org.netbeans.modules.java.source.usages.RepositoryUpdater.gatherResources(RepositoryUpdater.java:2279)
	at
org.netbeans.modules.java.source.usages.RepositoryUpdater.access$3500(RepositoryUpdater.java:132)
	at
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.recompile(RepositoryUpdater.java:1612)
Comment 1 Jana Maleckova 2007-04-18 12:46:54 UTC
Created attachment 41152 [details]
101551
Comment 2 Jan Lahoda 2007-04-19 17:27:38 UTC
*** Issue 101793 has been marked as a duplicate of this issue. ***
Comment 3 Jan Lahoda 2007-04-19 20:10:28 UTC
Should be fixed.

Checking in RepositoryUpdater.java;
/cvs/java/source/src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java,v
 <--  RepositoryUpdater.java
new revision: 1.47; previous revision: 1.46
done
Comment 4 Jan Lahoda 2007-04-24 11:16:56 UTC
Should be fixed as stated above.
Comment 5 Jana Maleckova 2007-04-25 16:46:24 UTC
verified on
NetBeans IDE Dev (Build 070425)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

and any such exception didn't occur any more