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 223524 - java.source.save.CasualDiff.diff: String index out of range: -539
Summary: java.source.save.CasualDiff.diff: String index out of range: -539
Status: RESOLVED DUPLICATE of bug 200152
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-08 14:02 UTC by host
Modified: 2012-12-11 12:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 196291


Attachments
stacktrace (2.66 KB, text/plain)
2012-12-08 14:02 UTC, host
Details

Note You need to log in before you can comment on or make changes to this bug.
Description host 2012-12-08 14:02:30 UTC
Build: NetBeans IDE Dev (Build 201212080001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b26, Java(TM) SE Runtime Environment, 1.7.0_12-ea-b04
OS: Mac OS X

Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -539
   at java.lang.String.substring(String.java:1911)
   at org.netbeans.modules.java.source.save.CasualDiff.diff(CasualDiff.java:270)
   at org.netbeans.api.java.source.WorkingCopy.processCurrentCompilationUnit(WorkingCopy.java:581)
   at org.netbeans.api.java.source.WorkingCopy.getChanges(WorkingCopy.java:773)
   at org.netbeans.api.java.source.ModificationResult$1.run(ModificationResult.java:154)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:584)
Comment 1 host 2012-12-08 14:02:32 UTC
Created attachment 129078 [details]
stacktrace
Comment 2 Jan Lahoda 2012-12-11 12:33:26 UTC
Any reproducible testcase? Thanks.

*** This bug has been marked as a duplicate of bug 200152 ***