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 201643 - AssertionError: xStartOffset=3487 > xEndOffset=3479
Summary: AssertionError: xStartOffset=3487 > xEndOffset=3479
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-05 14:56 UTC by Jaroslav Havlin
Modified: 2012-07-31 02:33 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 180939


Attachments
stacktrace (1.69 KB, text/plain)
2011-09-05 14:56 UTC, Jaroslav Havlin
Details
stacktrace (1.84 KB, text/plain)
2011-10-07 10:25 UTC, aldobrucale
Details
stacktrace (1.84 KB, text/plain)
2011-10-11 17:20 UTC, aldobrucale
Details
stacktrace (1.85 KB, text/plain)
2011-10-14 23:35 UTC, Exceptions Reporter
Details
stacktrace (1.84 KB, text/plain)
2011-10-28 05:23 UTC, Exceptions Reporter
Details
stacktrace (1.85 KB, text/plain)
2011-11-23 17:57 UTC, javydreamercsw
Details
stacktrace (1.84 KB, text/plain)
2012-04-10 23:32 UTC, MackSix
Details
Project to use for reproduction. (14.42 KB, application/zip)
2012-04-10 23:45 UTC, MackSix
Details
stacktrace (1.84 KB, text/plain)
2012-04-17 14:20 UTC, MackSix
Details
stacktrace (1.84 KB, text/plain)
2012-05-04 10:14 UTC, aldobrucale
Details
stacktrace (1.46 KB, text/plain)
2012-07-01 06:59 UTC, dds.dhawal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Havlin 2011-09-05 14:56:31 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-7678-on-20110810)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows 7

User Comments:
jhavlin: I was editing a Java file and pressed CTRL-Z to undo some changes.




Stacktrace: 
java.lang.AssertionError: xStartOffset=3487 > xEndOffset=3479
   at org.netbeans.lib.editor.util.swing.BlockCompare.resolve(BlockCompare.java:274)
   at org.netbeans.lib.editor.util.swing.BlockCompare.get(BlockCompare.java:67)
   at org.netbeans.modules.editor.lib2.highlighting.CaretBasedBlockHighlighting.updateLineInfo(CaretBasedBlockHighlighting.java:231)
   at org.netbeans.modules.editor.lib2.highlighting.CaretBasedBlockHighlighting.stateChanged(CaretBasedBlockHighlighting.java:206)
   at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:329)
   at org.netbeans.editor.BaseCaret$5.run(BaseCaret.java:919)
Comment 1 Jaroslav Havlin 2011-09-05 14:56:35 UTC
Created attachment 110405 [details]
stacktrace
Comment 2 aldobrucale 2011-10-07 10:25:56 UTC
Created attachment 111646 [details]
stacktrace

undo in java editor
Comment 3 aldobrucale 2011-10-11 17:20:10 UTC
Created attachment 111882 [details]
stacktrace

ctrl-z in java editor after "convert anonymous to member"
Comment 4 Exceptions Reporter 2011-10-14 23:35:40 UTC
Created attachment 112077 [details]
stacktrace
Comment 5 Exceptions Reporter 2011-10-28 05:23:42 UTC
Created attachment 112520 [details]
stacktrace

Reverted an the "convert an anonymous method to abstract" change via ctrl+Z"
Comment 6 javydreamercsw 2011-11-23 17:57:54 UTC
Created attachment 113489 [details]
stacktrace

Undo a change with hints.
Comment 7 MackSix 2012-04-10 23:32:26 UTC
Created attachment 118090 [details]
stacktrace

Undo of Refactor>>Convert Annonymous to Member after save file.
Comment 8 MackSix 2012-04-10 23:45:34 UTC
Created attachment 118091 [details]
Project to use for reproduction.

1.) Open attached project.
2.) Open NewClass.java and put cursor on Object() on line 17.
3.) Refactor>>Convert Anonymous to Member
4.) Click Undo button on Toolbar.

This AssertionError is thrown.

Product Version: NetBeans IDE Dev (Build 201204090400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 9 Jan Becicka 2012-04-17 13:21:41 UTC
Cannot reproduce.
Comment 10 MackSix 2012-04-17 14:20:26 UTC
Created attachment 118407 [details]
stacktrace
Comment 11 aldobrucale 2012-05-04 10:14:50 UTC
Created attachment 119080 [details]
stacktrace

Undo "convert anonymous to member"
Comment 12 dds.dhawal 2012-07-01 06:59:05 UTC
Created attachment 121632 [details]
stacktrace
Comment 13 Miloslav Metelka 2012-07-30 14:45:52 UTC
http://hg.netbeans.org/jet-main/rev/45721810b5ce
Comment 14 Quality Engineering 2012-07-31 02:33:55 UTC
Integrated into 'main-golden', will be available in build *201207310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/45721810b5ce
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #201643 - AssertionError: xStartOffset=3487 > xEndOffset=3479.