Summary: | Error with static import | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | t800t8 <t800t8> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | Tod_Creasey | ||||
Version: | 3.1 | ||||||
Target Milestone: | 3.1 RC1 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
t800t8
2005-05-19 05:29:22 EDT
Created attachment 21412 [details]
Figure
I guess it says that because once you have an error in "pondArea / PI", the method binding for sqrt(...) could not be retrieved leading to the warning. Yes, when I try to remove "Math." before "PI", it means PI is not declared, then it shows the warning. But I think it's not correct when show this warning. I used sqrt(...), my problem is I did not declare PI variable only. Is it clear? Yes, this is inconsistent. Normally in presence of errors, this warning doesn't show up. But we do seem to have a bug here. Reproduced. *** Bug 89047 has been marked as a duplicate of this bug. *** The check for unused imports was only disabled in presence of syntax errors. But in certain situations, some errors may hinder its accuracy. Changed check to only perform if after resolution no error got detected. Fixed, toggled various tests which exposed old behavior. Verified on build I20050527-0010. |