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

javac failed to compile the source code

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      5.0
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: