-
Bug
-
Resolution: Duplicate
-
P5
-
5.0
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2165583 | OpenJDK6 | Unassigned | P3 | Closed | Duplicate |
Trying to compile the attached a/A.java and b/B.java causes the following error:
b/B.java:8: cannot find symbol
symbol : class A
location: class b.B
public static class Nested extends A {
^
1 error
See the attached test.zip for the concrete test case.
I suspect the tricky self-importing is causing this issue. I'm not too confident if such import is allowed or not, but if it is, this is a bug. If it's not, then I hope the error message will be improved to point that out.
b/B.java:8: cannot find symbol
symbol : class A
location: class b.B
public static class Nested extends A {
^
1 error
See the attached test.zip for the concrete test case.
I suspect the tricky self-importing is causing this issue. I'm not too confident if such import is allowed or not, but if it is, this is a bug. If it's not, then I hope the error message will be improved to point that out.
- backported by
-
JDK-2165583 javac failed to compile the source code
- Closed
- duplicates
-
JDK-6391197 static import seems to hide non-static import in a very special case
- Closed
- relates to
-
JDK-6415455 REGRESSION: NPE when compiling Mustang Swing classes on Linux-64
- Closed