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.
This bug was originally marked as duplicate of bug 225977, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.1 Beta (Build 201508041349) VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27 OS: Mac OS X User Comments: GUEST: autogenerated a new method in my program using the suggestions of netbeans. added code inside the method. right clicked and formated the code alignment Stacktrace: java.lang.IndexOutOfBoundsException: end < start (19615 < 19741) at org.netbeans.spi.editor.hints.ErrorDescriptionFactory.createErrorDescription(ErrorDescriptionFactory.java:265) at org.netbeans.spi.java.hints.ErrorDescriptionFactory.forTree(ErrorDescriptionFactory.java:131) at org.netbeans.modules.java.hints.bugs.UnusedAssignmentOrBranch.unusedAssignment(UnusedAssignmentOrBranch.java:164) at sun.reflect.GeneratedMethodAccessor77.invoke(GeneratedMethodAccessor77.java:0) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497)
Created attachment 155972 [details] stacktrace
Reporters: could you possibly send me the source in which the error has happened ? It seems that the compiler misreports positions for the expression, but I am unable to recreate such situation. Thanks.