Summary: | [compiler] Static import of supertype reported as unused | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Felis Cattus <feles> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | VERIFIED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | jerome_lanneluc |
Version: | 3.3 | ||
Target Milestone: | 3.4 M2 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Felis Cattus
2007-09-04 11:38:50 EDT
This is not a bug. The constants from TestInterfaceSuper are inherited by TestInterfaceSub, so when the import statements are : import static test.TestInterfaceSub.*; import static test.TestInterfaceSuper.*; The second statement is unused & unnecessary since all constants defined by TestInterfaceSuper are found using 'import static test.TestInterfaceSub.*'. Verified for 3.4M2 OK, it is unused, but how can you fix the warning. Even if you delete it, Organize Imports brings it back. And because I have Organize Imports added as a Save Action, I always have a warning. Probably the bug here is that Organize Imports adds it at all. (In reply to comment #3) > Probably the bug here is that Organize Imports adds it at all. > Please open a separate bug report against JDT/UI |