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 8.2 (Build 201609300101) VM: Java HotSpot(TM) 64-Bit Server VM, 25.92-b14, Java(TM) SE Runtime Environment, 1.8.0_92-b14 OS: Mac OS X User Comments: kaenganxt: - Startup - Some idle time - Java development GUEST: . gtzabari: Pasted into Java file. Exception thrown. GUEST: Pasting some text in the editor ebakke: Editing code in the Java editor. GUEST: Editing a Java class Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: 5217 at java.lang.String.charAt(String.java:658) at org.netbeans.modules.java.hints.bugs.Tiny.indent(Tiny.java:330) at org.netbeans.modules.java.hints.bugs.Tiny.indentation(Tiny.java:305) at sun.reflect.GeneratedMethodAccessor138.invoke(GeneratedMethodAccessor138.java:0) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
Created attachment 163013 [details] stacktrace
Created attachment 163184 [details] stacktrace Editing sources.
Apparently wrong character offset assigned to a JCTree, which should be fixed. I need some sample source causing the error.