--- a/hotspot/src/share/vm/classfile/verifier.cpp Tue Oct 13 17:34:28 2015 +0200
+++ b/hotspot/src/share/vm/classfile/verifier.cpp Wed Oct 14 13:30:47 2015 -0400
@@ -1579,11 +1579,9 @@
return;
}
// Make sure "this" has been initialized if current method is an
- // <init>. Note that "<init>" methods in interfaces are just
- // normal methods. Interfaces cannot have ctors.
+ // <init>.
if (_method->name() == vmSymbols::object_initializer_name() &&
- current_frame.flag_this_uninit() &&
- !current_class()->is_interface()) {
+ current_frame.flag_this_uninit()) {
verify_error(ErrorContext::bad_code(bci),
"Constructor must call super() or this() "
"before return");