hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 31777 0bfed49b6beb
parent 31776 70dd826a47b5
child 31778 7c57068badaa
--- 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;
         }