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 268768 - StringIndexOutOfBoundsException: String index out of range: 9519
Summary: StringIndexOutOfBoundsException: String index out of range: 9519
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: Dev
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-01 14:04 UTC by Ralph Ruijs
Modified: 2016-12-01 18:41 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 226911


Attachments
stacktrace (3.75 KB, text/plain)
2016-11-01 14:04 UTC, Ralph Ruijs
Details
stacktrace (3.75 KB, text/plain)
2016-11-09 09:22 UTC, ehsavoie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Ruijs 2016-11-01 14:04:45 UTC
Build: NetBeans IDE Dev (Build 20161028-0d8e1fd6f6ec)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.112-b15, Java(TM) SE Runtime Environment, 1.8.0_112-b15
OS: Linux

User Comments:
ralphbenjamin: trying to complete version in maven pom.xml

jdlee: Setting the version of a dep in the POM.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 9519
   at java.lang.String.substring(String.java:1963)
   at org.netbeans.modules.xml.text.completion.XMLResultItem.isRemovingAvailableLocked(XMLResultItem.java:258)
   at org.netbeans.modules.xml.text.completion.XMLResultItem.lambda$isTextRemovingAllowable$0(XMLResultItem.java:285)
   at org.netbeans.modules.xml.text.api.dom.XMLSyntaxSupport.runWithSequence(XMLSyntaxSupport.java:298)
   at org.netbeans.modules.xml.text.completion.XMLResultItem.isTextRemovingAllowable(XMLResultItem.java:285)
   at org.netbeans.modules.xml.text.completion.XMLResultItem.replaceText(XMLResultItem.java:211)
Comment 1 Ralph Ruijs 2016-11-01 14:04:46 UTC
Created attachment 162714 [details]
stacktrace
Comment 2 ehsavoie 2016-11-09 09:22:29 UTC
Created attachment 162842 [details]
stacktrace

completing module name in parent pom
Comment 3 Svata Dedic 2016-11-23 14:09:23 UTC
some inappropriate/leftover code made it in when I was merging new SyntaxSupport implementation; sorry.
Fixed in jet-main#6ff7388c41b3
Comment 4 Quality Engineering 2016-11-25 04:05:14 UTC
Integrated into 'main-silver', will be available in build *201611250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ae3dfa86f5b9
User: Svata Dedic <sdedic@netbeans.org>
Log: #268768: removed leftover code
Comment 5 matthias42 2016-12-01 18:41:17 UTC
Checked in current nightly and found it fixed. Thx!