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 199134 - StringIndexOutOfBoundsException: String index out of range: -139
Summary: StringIndexOutOfBoundsException: String index out of range: -139
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 7.0
Hardware: All All
: P4 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2011-06-03 11:00 UTC by raviparekh
Modified: 2016-07-07 08:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 146438


Attachments
stacktrace (862 bytes, text/plain)
2011-06-03 11:00 UTC, raviparekh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description raviparekh 2011-06-03 11:00:28 UTC
Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) Client VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows XP

Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -139
   at java.lang.String.substring(String.java:1937)
   at org.netbeans.modules.hibernate.completion.CompletionContext.initContext(CompletionContext.java:212)
   at org.netbeans.modules.hibernate.completion.CompletionContext.<init>(CompletionContext.java:103)
   at org.netbeans.modules.hibernate.completion.HibernateMappingCompletionQuery.getCompletionItems(HibernateMappingCompletionQuery.java:94)
   at org.netbeans.modules.hibernate.completion.HibernateMappingCompletionQuery.query(HibernateMappingCompletionQuery.java:81)
   at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:223)
Comment 1 raviparekh 2011-06-03 11:00:32 UTC
Created attachment 108693 [details]
stacktrace
Comment 2 Sergey Petrov 2011-10-30 07:52:58 UTC
can't reproduce, suppose it's either random or important details are missed. to P4 for now.  May be some special combination copy-paste-type-delete before invocation during heavy load on ide/system. Please add any details  especially if there is any case with 100% way to reproduce.
Comment 3 Martin Balin 2016-07-07 08:54:02 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss