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.
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)
Created attachment 140752 [details] stacktrace
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.
*** Bug 237047 has been marked as a duplicate of this bug. ***
Created attachment 147107 [details] stacktrace <Please provide a description of the problem or the steps to reproduce> same issues as been continually reported
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