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 169020 - IllegalArgumentException: startOffset=991 > endOffset=990
Summary: IllegalArgumentException: startOffset=991 > endOffset=990
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ alexpetrov
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-23 11:09 UTC by Michal Mocnak
Modified: 2009-08-07 09:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 154093


Attachments
stacktrace (2.79 KB, text/plain)
2009-07-23 11:10 UTC, Michal Mocnak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Mocnak 2009-07-23 11:10:00 UTC
Build: NetBeans IDE Dev (Build 200907230201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-83, Java(TM) SE Runtime Environment, 1.6.0_13-b03-211
OS: Mac OS X, 10.5.7, x86_64

User Comments:
mmocnak: Editing XML file. Code completing the end tag.



Stacktrace: 
java.lang.IllegalArgumentException: startOffset=991 > endOffset=990
        at org.netbeans.editor.ext.ExtSyntaxSupport.getTokenChain(ExtSyntaxSupport.java:140)
        at org.netbeans.modules.xml.text.completion.XMLResultItem.replaceText(XMLResultItem.java:176)
        at org.netbeans.modules.xml.text.completion.ElementResultItem.substituteText(ElementResultItem.java:166)
        at org.netbeans.modules.xml.text.completion.XMLResultItem.substituteText(XMLResultItem.java:239)
        at org.netbeans.modules.xml.text.completion.XMLResultItem.defaultAction(XMLResultItem.java:290)
        at org.netbeans.modules.editor.completion.CompletionImpl.dispatchKeyEvent(CompletionImpl.java:580)
Comment 1 Michal Mocnak 2009-07-23 11:10:11 UTC
Created attachment 85114 [details]
stacktrace
Comment 2 Vitezslav Stejskal 2009-07-23 12:38:48 UTC
org.netbeans.modules.xml.text.completion.XMLResultItem.replaceText(XMLResultItem.java:176) is sending wrong offsets.
Comment 3 Sergey Lunegov 2009-07-23 12:49:36 UTC
Alex, please take a look.
Comment 4 _ alexpetrov 2009-07-23 16:03:02 UTC
Fixed in trunk: http://hg.netbeans.org/main/rev/ffa2ac3b87be
Comment 5 Quality Engineering 2009-07-24 05:39:30 UTC
Integrated into 'main-golden', will be available in build *200907240201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ffa2ac3b87be
User: Alex Petrov <alexpetrov@netbeans.org>
Log: Fix for issue [#169020]: IllegalArgumentException in XMLResultItem.replaceText(...) - startOffset > endOffset
Comment 6 Michal Mocnak 2009-08-07 09:40:21 UTC
Verified in trunk