hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 4567 7fc02fbe5c7a
parent 4478 c3a8af0fc6b0
child 4571 80b553bddc26
--- a/hotspot/src/share/vm/classfile/classFileParser.cpp	Tue Jan 05 13:05:58 2010 +0100
+++ b/hotspot/src/share/vm/classfile/classFileParser.cpp	Tue Jan 05 15:21:25 2010 +0100
@@ -643,7 +643,7 @@
       guarantee_property(value_type.is_int(), "Inconsistent constant value type in class file %s", CHECK);
       break;
     case T_OBJECT:
-      guarantee_property((cp->symbol_at(signature_index)->equals("Ljava/lang/String;", 18)
+      guarantee_property((cp->symbol_at(signature_index)->equals("Ljava/lang/String;")
                          && (value_type.is_string() || value_type.is_unresolved_string())),
                          "Bad string initial value in class file %s", CHECK);
       break;
@@ -1718,9 +1718,7 @@
   m->set_exception_table(exception_handlers());
 
   // Copy byte codes
-  if (code_length > 0) {
-    memcpy(m->code_base(), code_start, code_length);
-  }
+  m->set_code(code_start);
 
   // Copy line number table
   if (linenumber_table != NULL) {