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 220110 - StringIndexOutOfBoundsException: String index out of range: 72
Summary: StringIndexOutOfBoundsException: String index out of range: 72
Status: RESOLVED FIXED
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:
: 220122 220264 220902 222326 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-15 11:59 UTC by crazyjavahacking
Modified: 2012-11-19 13:10 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 193558


Attachments
stacktrace (2.21 KB, text/plain)
2012-10-15 11:59 UTC, crazyjavahacking
Details
stacktrace (2.21 KB, text/plain)
2012-10-16 20:14 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crazyjavahacking 2012-10-15 11:59:53 UTC
Build: NetBeans IDE Dev (Build 201210140002)
VM: Java HotSpot(TM) Client VM, 20.9-b04, Java(TM) SE Runtime Environment, 1.6.0_34-b04
OS: Windows 7

User Comments:
crazyjavahacking: During regular code completion




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 72
   at java.lang.String.substring(String.java:1934)
   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 crazyjavahacking 2012-10-15 11:59:54 UTC
Created attachment 125964 [details]
stacktrace
Comment 2 Sergey Petrov 2012-10-16 07:03:14 UTC
*** Bug 220122 has been marked as a duplicate of this bug. ***
Comment 3 Sergey Petrov 2012-10-16 07:05:44 UTC
can someone provide sample code and cursor position?
Comment 4 Sergey Petrov 2012-10-16 08:44:24 UTC
http://hg.netbeans.org/web-main/rev/c563cbd000bc
Comment 5 javydreamercsw 2012-10-16 20:14:17 UTC
Created attachment 126038 [details]
stacktrace

Deleting from a just pasted string.
Comment 6 Quality Engineering 2012-10-17 02:02:45 UTC
Integrated into 'main-golden', will be available in build *201210170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c563cbd000bc
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #220110 remove unused line with exception
Comment 7 Sergey Petrov 2012-10-17 11:14:58 UTC
*** Bug 220264 has been marked as a duplicate of this bug. ***
Comment 8 Sergey Petrov 2012-10-26 12:10:35 UTC
*** Bug 220902 has been marked as a duplicate of this bug. ***
Comment 9 Sergey Petrov 2012-11-19 13:10:51 UTC
*** Bug 222326 has been marked as a duplicate of this bug. ***