Summary: | Syntax error inside method body is fooling NLS string detection | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | ||||||
Version: | 2.1 | ||||||
Target Milestone: | 2.1 M5 | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Philipe Mulet
2003-01-13 05:13:58 EST
Created attachment 2953 [details]
BlockScope.java
The bug is due to the fact that the scanner.currentLine is not reset before resuming after recovery. Therefore the current NLS line accumulates more than one string literals (all the same and reports an error for them). Resetting the scanner's current line in the resetStack() method fixes the problem. Fixed and released in 2.1 stream. Regression test added. Verified. |