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 178862 - CompilationUnitTree.getLineMap() may be incorrect after partial reparse
Summary: CompilationUnitTree.getLineMap() may be incorrect after partial reparse
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-18 08:42 UTC by Jan Lahoda
Modified: 2010-08-06 03:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2009-12-18 08:42:53 UTC
Based on bug #177660, for code like:
int ln = td.oldTopLevel.lineMap.getLineNumber(start);
int lineStart = td.oldTopLevel.lineMap.getStartPosition(ln);

it sometimes may hold that: lineStart > start, which is strange. The most probable reason for this is that the LineMap is not updated after partial reparse.
Comment 1 Jan Lahoda 2010-08-04 13:13:01 UTC
http://hg.netbeans.org/jet-main/rev/fe446dbff1d0
Comment 2 Quality Engineering 2010-08-06 03:20:46 UTC
Integrated into 'main-golden', will be available in build *201008060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fe446dbff1d0
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #178862: rebuilding LineMap after partial reparse.