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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b94

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hseigel Harold Seigel
                Reporter:
                hseigel Harold Seigel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: