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

JVM should throw ClassFormatError for non-void methods named <clinit>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b94

      Recent proposed JVM Spec changes say that non-void methods named <clinit> are illegal and should cause ClassFormatError exceptions. The JVM should enforce this.

      The VM should also throw ClassFormatError exceptions for non-static methods named <clinit> that are in class files >= version 51.

      Additionally, the VM should throw ClassFormatError for methods named <clinit> that have one or more arguments.

            hseigel Harold Seigel (Inactive)
            hseigel Harold Seigel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: