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.
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.
- duplicates
-
JDK-8136632 VM format checking requires Code attribute from abstract/native non-initializer <clinit>
-
- Closed
-
- relates to
-
JDK-8130682 2.9: Clarify class and interface initialization methods
-
- Closed
-