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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.1, 1.1.2
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: