--- a/hotspot/src/share/vm/classfile/classFileParser.cpp Thu Jul 09 08:36:37 2015 -0400
+++ b/hotspot/src/share/vm/classfile/classFileParser.cpp Thu Jul 09 15:39:05 2015 -0400
@@ -5087,8 +5087,8 @@
// The first non-signature thing better be a ')'
if ((length > 0) && (*p++ == JVM_SIGNATURE_ENDFUNC)) {
length--;
- if (name->utf8_length() > 0 && name->byte_at(0) == '<') {
- // All internal methods must return void
+ if (name == vmSymbols::object_initializer_name()) {
+ // All "<init>" methods must return void
if ((length == 1) && (p[0] == JVM_SIGNATURE_VOID)) {
return args_size;
}