Summary: | java syntax error for missing ";" is reported as belonging to a different line | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Yiannis Mavroukakis <jander> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | minor | ||
Priority: | P3 | ||
Version: | 2.1 | ||
Target Milestone: | 2.1 M4 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Yiannis Mavroukakis
2002-11-14 06:44:24 EST
You have a syntax error, because "data" in encountered instead of ";". Therefore we report properly (IMHO) the problem saying that "data" was found instead of ";". You could have both statements on the same line or you can have several blank lines before the semi-colon. It would still be valid code. I see, however, since the problem originated from the lack of a semi-colon, would it not be easier to the untrained eye, to actually highlight the line that is the root of the problem, and report what was expected as normal? :) We report an unexpected token at the offending token location. Closing, we won't change this. Closing |