Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6431987

javac failed to compile the source code

XMLWordPrintable

    • 5.0
    • generic
    • generic

        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.

              ahe Peter Ahe
              kkawagucsunw Kohsuke Kawaguchi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: