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 271053

Summary: StringIndexOutOfBoundsException: String index out of range: -12
Product: java Reporter: Exceptions Reporter <exceptions_reporter>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal CC: Alniks, Leperous, mziernik
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 210460
Attachments: stacktrace

Description Exceptions Reporter 2017-07-07 04:07:52 UTC
Build: NetBeans IDE 8.2 (Build 201705191307)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Windows 10

User Comments:
Leperous: Not sure

Alniks: do not know

Leperous: Compiling using an annotation processor

GUEST: No idea. Copying and pasting java code.

GUEST: stop compiler / early run phase to rebuild.

mziernik: ??




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -12
   at java.lang.String.substring(String.java:1967)
   at com.sun.tools.javac.comp.Repair.translateClass(Repair.java:556)
   at com.sun.tools.javac.comp.Repair.visitClassDef(Repair.java:252)
   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:748)
   at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
   at com.sun.tools.javac.comp.Repair.translate(Repair.java:147)
Comment 1 Exceptions Reporter 2017-07-07 04:07:55 UTC
Created attachment 164712 [details]
stacktrace
Comment 3 Quality Engineering 2017-08-08 01:55:43 UTC
Integrated into 'main-silver', will be available in build *201708080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/627b264edfc2
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #271053 and 271211 fixed.