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

javac allows enum in an inner class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 5.0
    • tools
    • b59
    • generic
    • solaris_8

      JLS3 forbidws static members of an inner class, yet javac allows an enum
      in an inner class.

      class A {
        class B {
          enum C {}
        }
      }

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: