compiler goes in CPU loop accessing private methods from nested anonymous class

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.1.1, 1.1.2
    • Component/s: tools
    • None
    • generic
    • solaris_2.4, solaris_2.5

      The attached file contains an anonymous java.awt.event.MouseAdapter
      that calls a private method "resolve" defined in the outermost class.
      Compiling this file with JDK 1.1.1 makes the compiler go into a CPU
      loop. Making the resolve method non-private fixes the problem and
      the file compiles.

      Under JDK 1.1 this used to give a compiler error message, saying that
      access to the provate method would not work, and recommending package
      access. This error message does not seem to occur with JDK 1.1.1.

            Assignee:
            William Maddox (Inactive)
            Reporter:
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: