hg: jdk9/hs-rt/hotspot: 8139069: JVM should throw ClassFormatError for <init> methods in interfaces

harold.seigel at oracle.com harold.seigel at oracle.com
Wed Oct 14 20:55:59 UTC 2015


Changeset: c8a4fbc7f6f4
Author:    hseigel
Date:      2015-10-14 13:30 -0400
URL:       http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/c8a4fbc7f6f4

8139069: JVM should throw ClassFormatError for <init> methods in interfaces
Summary: If method being parsed is in an interface, throw ClassFormatError if its name is "<init>"
Reviewed-by: acorn, lfoltan

! src/share/vm/classfile/classFileParser.cpp
! src/share/vm/classfile/verifier.cpp
+ test/runtime/classFileParserBug/InitInInterface.java
+ test/runtime/classFileParserBug/nonvoidinit.jasm
+ test/runtime/classFileParserBug/voidinit.jasm



More information about the jdk9-hs-rt-changes mailing list