Summary: | [1.5][compiler] Import Static Error | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Mahmood Ali <msaeed999> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | jerome_lanneluc, philippe_mulet |
Version: | 3.5 | ||
Target Milestone: | 3.5 M4 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Mahmood Ali
2008-11-25 00:16:10 EST
This feels the right behavior to me, since a private member is not visible inside entire compilation unit, but rather in toplevel type declaration it occurs into. So essentially, the single type static import is doomed, as VALUE is not accessible outside Outer. But the on demand static import is working fine, since VALUE is only referenced from a valid context. Interestingly, javac seems to also reject the on demand static import case, which I suspect is wrong. Added StaticImportTest#test073-074. Marking as Invalid, since this is working as specified. Verified for 3.5M4 |