Summary: | [ErrorHandling] Misleading error | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jonathan Camilleri <camilleri.jon> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | contact, Olivier_Thomann |
Version: | 3.4.2 | ||
Target Milestone: | 3.6 M1 | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Whiteboard: |
Description
Jonathan Camilleri
2009-05-24 08:43:48 EDT
If you don't write correct Java, I don't really know what you are expecting from the IDE. If your line only contains "InputMap", the most accurate guess that JDT can do is "oh, one token which is not a Java keyword, Jon must probably mean that 'InputMap' is a variable, but not declared yet"... It would certainly help if you told us what *you* would expect from the IDE? Perhaps only a "syntax error, insert ; to complete the statement", and no error related to unresolved variable until the line is actually complete? If you say so. Please describe what you expect the IDE to do in your case. Well I would like the IDE just to surround the statement with try/catch block and do nothing else. Closing as INVALID. The error is reported by the reconciler because the statement is not complete yet. No plan to change this. Verified for 3.6M1 |