harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r547246 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp
Date Thu, 14 Jun 2007 13:27:21 GMT
Author: gshimansky
Date: Thu Jun 14 06:27:21 2007
New Revision: 547246

URL: http://svn.apache.org/viewvc?view=rev&rev=547246
Log:
Applied HARMONY-4052
[drlvm][classloader] Compatibility: ClassLodert.defineClass() throws ClassFormatError for
class with incorrect name only when -Xverify option is set while RI always throws this error


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp?view=diff&rev=547246&r1=547245&r2=547246
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp Thu Jun
14 06:27:21 2007
@@ -2652,9 +2652,8 @@
                 // illegal name index
                 return false;
             }
-            if(env->verify_all
-                && !check_class_name(get_utf8_string(name_index)->bytes, get_utf8_string(name_index)->len,
-                        clss->get_version() < JAVA5_CLASS_FILE_VERSION))
+            if(!check_class_name(get_utf8_string(name_index)->bytes, get_utf8_string(name_index)->len,
+                    clss->get_version() < JAVA5_CLASS_FILE_VERSION))
             {
                 REPORT_FAILED_CLASS_CLASS(clss->get_class_loader(), clss, "java/lang/ClassFormatError",
                     clss->get_name()->bytes << ": illegal CONSTANT_Class name
"



Mime
View raw message