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 236685 - IndexOutOfBoundsException: end < start (21212 < 21237)
Summary: IndexOutOfBoundsException: end < start (21212 < 21237)
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 237047 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-03 09:25 UTC by Jan Lahoda
Modified: 2016-07-07 07:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 197693


Attachments
stacktrace (10.52 KB, text/plain)
2013-10-03 09:25 UTC, Jan Lahoda
Details
stacktrace (10.33 KB, text/plain)
2014-05-05 08:06 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2013-10-03 09:25:09 UTC
Build: NetBeans IDE Dev (Build 20130927-1f17c52d6246)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: Linux

User Comments:
GUEST: Created .java file with several (default visibility) interfaces and classes. Error on editing method which implements an interface in the same file.

jlahoda: if (writer != null)
            if (writer != null)
                if (writer != null)
                    if (writer != null)
                        else
                        
                else
                    if (writer != null);




Stacktrace: 
java.lang.IndexOutOfBoundsException: end < start (21212 < 21237)
   at org.netbeans.spi.editor.hints.ErrorDescriptionFactory.createErrorDescription(ErrorDescriptionFactory.java:231)
   at org.netbeans.modules.java.hints.EmptyStatements.createErrorDescription(EmptyStatements.java:213)
   at org.netbeans.modules.java.hints.EmptyStatements.run(EmptyStatements.java:175)
   at org.netbeans.modules.java.hints.legacy.spi.RulesManager$WorkerImpl.createErrors(RulesManager.java:411)
   at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:790)
   at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:111)
Comment 1 Jan Lahoda 2013-10-03 09:25:12 UTC
Created attachment 140752 [details]
stacktrace
Comment 2 Svata Dedic 2013-10-18 14:32:05 UTC
In this example, the SourcePositions.getEndPosition() returns an invalid value. The returned value for statement "if (writer != null);" is equal to errorPosition for some reason - recorded in the endPosMap.
Comment 3 Svata Dedic 2013-10-18 14:32:44 UTC
*** Bug 237047 has been marked as a duplicate of this bug. ***
Comment 4 Exceptions Reporter 2014-05-05 08:06:19 UTC
Created attachment 147107 [details]
stacktrace

<Please provide a description of the problem or the steps to reproduce>

same issues as been continually reported
Comment 5 Martin Balin 2016-07-07 07:17:44 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