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 256688

Summary: StringIndexOutOfBoundsException: String index out of range: -9
Product: java Reporter: stefan79 <stefan79>
Component: SourceAssignee: Svata Dedic <sdedic>
Severity: normal CC: ferrybig, wshackleAtGmail
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 221252
Attachments: stacktrace

Description stefan79 2015-11-19 12:24:10 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 8.1

User Comments:
stefan79: Exception occured while editing in a java-file.

java.lang.StringIndexOutOfBoundsException: String index out of range: -9
   at java.lang.String.substring(
Comment 1 stefan79 2015-11-19 12:24:12 UTC
Created attachment 157410 [details]
Comment 2 Jaroslav Havlin 2015-11-19 12:59:18 UTC
Reassigning to java/Source. Please evaluate.
Comment 3 Svata Dedic 2016-04-26 13:10:48 UTC
Marking as duplicate. I added more diagnostic output in jet-main#f1cb612082e7. I used the origtext found in log to recreate the environment but I could not reproduce the defect. Part of the formatting optiosn did not print properly, so I've extended the output.

*** This bug has been marked as a duplicate of bug 226498 ***
Comment 4 Quality Engineering 2016-04-28 02:03:01 UTC
Integrated into 'main-silver', will be available in build *201604280002* on (upload may still be in progress)

User: Svata Dedic <>
Log: #226498, #256688: diagnostic output added