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

inner class file is not generated

XMLWordPrintable

    • generic
    • generic

      In the attached java program, there are two inner classes, one of them anonymous.

      The class file for the anonymous inner class is not generated because the class can never be reached.

      However, for the non-anonynous inner class, javac generates a wrapper
      for its constructor, using the anonymous inner class as an argument.

      If the VM tries to eagerly load the anonymous inner class, a ClassNotFoundException is thrown. (see 4944478)

      It would be friendlier if javac generated the class.

            Unassigned Unassigned
            rasbold Chuck Rasbold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: