Summary: | 'Unused import' error hides 'uncaught exception', impeding use of 'Surround with try/catch' autofix | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Gordon Henriksen <malanon> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | 3.2 | ||
Target Milestone: | 3.2 | ||
Hardware: | Macintosh | ||
OS: | Mac OS X - Carbon (unsup.) | ||
Whiteboard: |
Description
Gordon Henriksen
2006-08-10 17:00:47 EDT
Your enhancement is already implemented :-) Open project properties and go to Java->Building preferences page. Then unselect check-box "Treat -configurable errors- like fatal errors i.e. compiled is not executed". Rebuild your project and then you'll see the 2 errors. You can also set this behavior to your entire workspace using Preferences dialog and go to Java->Compiler->Building page... D'oh! Thanks for the pointer. Out of curiousity, what's the advantage of this setting being/defaulting off? (In reply to comment #2) > D'oh! Thanks for the pointer. Out of curiousity, what's the advantage of this > setting being/defaulting off? > From the discussions I recall, promoting a warning to an error is a user decision that basically says exactly that: (s)he wants the problem to be reported as an error. The refinement of having some of these errors considered as not offending enough to prevent the resulting class files to run came later on and basically adds complexity to the picture at the conceptual level, hence the current default. Changing OS from Mac OS to Mac OS X as per bug 185991 |