Summary: | import static adds annoying semicolon | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | David Saff <david> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | minor | ||
Priority: | P3 | CC: | bmiller, daniel_megert, eclipse |
Version: | 3.1 | ||
Target Milestone: | 3.1 RC1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
David Saff
2005-05-10 09:41:46 EDT
I agree, 'import static java.lang.annotation.ElementType;' is a valid import but you wouldn't do a static import of a type. Actually, it's a compile error: The static import java.lang.annotation.ElementType must be a field or member type David - is that us or JDT/UI ? that's us *** Bug 94122 has been marked as a duplicate of this bug. *** Fixed and tests added CompletionTest_1_5#test0209() -> test0213() if the import is static and the proposed type is top level type then a '.' is added instead of ';'. if you type 'import static ElementType<<complete here>>' then the result will be 'import static java.lang.annotation.ElementType.' Verified on build I20050526-2000-win32. |