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 167541 - Caret position marker not stripped off in CslTestBase#computeHints
Summary: Caret position marker not stripped off in CslTestBase#computeHints
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2009-06-23 15:51 UTC by Erno Mononen
Modified: 2009-07-03 17:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
past for CslTestBase (3.75 KB, text/plain)
2009-07-01 13:28 UTC, Erno Mononen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2009-06-23 15:51:43 UTC
The caret position marker "^" doesn't get removed from the caretLine variable CslTestBase#computeHints causing the 
start offset to be -1 when computing hints (e.g. at line 3774), which in turn causes several tests to fail (hence P2). 
The getCaretOffset method attempts to remove the marker, but it doesn't work as it operates on a string passed as a 
method arg. I'll attach a proposed patch here soon.
Comment 1 Erno Mononen 2009-07-01 13:27:46 UTC
Here's the patch, forgot to do this before my vacation last week. 
Comment 2 Erno Mononen 2009-07-01 13:28:35 UTC
Created attachment 84247 [details]
past for CslTestBase
Comment 3 mslama 2009-07-02 11:31:15 UTC
jet-main #477da8e95d56

Patch looks ok. Applied.
Comment 4 Quality Engineering 2009-07-03 17:38:54 UTC
Integrated into 'main-golden', will be available in build *200907031400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/477da8e95d56
User: Marek Slama <mslama@netbeans.org>
Log: #167541: Fix stripping of caret position marker.