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 222326 - StringIndexOutOfBoundsException: String index out of range: 70
Summary: StringIndexOutOfBoundsException: String index out of range: 70
Status: RESOLVED DUPLICATE of bug 220110
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
: 223955 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-18 06:50 UTC by Exceptions Reporter
Modified: 2012-12-18 03:11 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 195323


Attachments
stacktrace (2.21 KB, text/plain)
2012-11-18 06:50 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-11-18 06:50:06 UTC
This bug was originally marked as duplicate of bug 220110, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
VM: Java HotSpot(TM) Client VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows XP

User Comments:
crazyjavahacking: During regular code completion

ender01: Trying to autocomplete in javadoc

javydreamercsw: Deleting from a just pasted string.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 70
   at java.lang.String.substring(String.java:1907)
   at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider.getCompletionTreePath(JPACodeCompletionProvider.java:321)
   at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider.access$100(JPACodeCompletionProvider.java:91)
   at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.run(JPACodeCompletionProvider.java:225)
   at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.access$600(JPACodeCompletionProvider.java:106)
   at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery$Task.run(JPACodeCompletionProvider.java:293)
Comment 1 Exceptions Reporter 2012-11-18 06:50:09 UTC
Created attachment 127988 [details]
stacktrace
Comment 2 Sergey Petrov 2012-11-19 13:10:51 UTC
current code do not contain anything on 321 line, but it was there before 220110 fix. Likely beta branch have older code and it's fixed even exception reporter decide it's new one.

*** This bug has been marked as a duplicate of bug 220110 ***
Comment 3 Sergey Petrov 2012-12-18 03:11:33 UTC
*** Bug 223955 has been marked as a duplicate of this bug. ***