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.
Summary: | StringIndexOutOfBoundsException: String index out of range: -4 | ||
---|---|---|---|
Product: | java | Reporter: | Erno Mononen <emononen> |
Component: | Source | Assignee: | Jan Lahoda <jlahoda> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | emiddio, gtg, i30817, johanandren, sustaining, tkhh |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 148981 |
Attachments: |
stacktrace
stacktrace stacktrace |
Description
Erno Mononen
2009-11-26 04:34:38 UTC
Created attachment 91721 [details]
stacktrace
Created attachment 91733 [details]
stacktrace
Created attachment 91783 [details]
stacktrace
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=148981 I am not completely sure what is the root cause, but I think that the CompilationUnitTree.getLineMap is likely not correctly updated after partial reparse. I have introduced a workaround that should hopefully fix this particular exception: http://hg.netbeans.org/jet-main/rev/74966fd2ac95 I have created a new bug #178862 to keep track about the CUT.getLineMap(). The workaround might be a good 6.8 patch1 candidate. Integrated into 'main-golden', will be available in build *200912200200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/74966fd2ac95 User: Jan Lahoda <jlahoda@netbeans.org> Log: #177660: trying to prevent a StringIndexOutOfBoundsException. The whiteboard changed back to 68patch-candidate. The whiteboard 68patch1-candidate can be added by QA or Sustaining to issues those has been verified in the trunk already. I was not able to reproduce. Verified in trunk. The fix has been ported into the release68_fixes repository. http://hg.netbeans.org/release68_fixes/rev/73705aa8e9e0 V. |