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 - StringIndexOutOfBoundsException: String index out of range: -12
Summary: StringIndexOutOfBoundsException: String index out of range: -12
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-07 04:07 UTC by Exceptions Reporter
Modified: 2017-08-08 01:55 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 210460


Attachments
stacktrace (3.36 KB, text/plain)
2017-07-07 04:07 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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.