harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r411595 - /incubator/harmony/enhanced/jchevm/libjc/cf_parse.c
Date Sun, 04 Jun 2006 20:40:48 GMT
Author: archie
Date: Sun Jun  4 13:40:48 2006
New Revision: 411595

URL: http://svn.apache.org/viewvc?rev=411595&view=rev
Log:
Allow interfaces that fail to have the ACC_ABSTRACT flag set, as required
in the JVM classfile specification. Some compilers apparently omit it.

Bug#:   HARMONY-483

Modified:
    incubator/harmony/enhanced/jchevm/libjc/cf_parse.c

Modified: incubator/harmony/enhanced/jchevm/libjc/cf_parse.c
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/jchevm/libjc/cf_parse.c?rev=411595&r1=411594&r2=411595&view=diff
==============================================================================
--- incubator/harmony/enhanced/jchevm/libjc/cf_parse.c (original)
+++ incubator/harmony/enhanced/jchevm/libjc/cf_parse.c Sun Jun  4 13:40:48 2006
@@ -138,9 +138,11 @@
 		/*
 		 * Note: _JC_ACC_SUPER should not be allowed for interfaces
 		 * (JVMS 4.1) but we allow it here because jikes 1.15 sets it.
+		 * In addition, some compilers fail to add _JC_ACC_ABSTRACT.
 		 */
-		if ((cfile->access_flags & ~(_JC_ACC_PUBLIC|_JC_ACC_SUPER))
-		    != (_JC_ACC_INTERFACE|_JC_ACC_ABSTRACT)) {
+		if ((cfile->access_flags
+		      & ~(_JC_ACC_ABSTRACT|_JC_ACC_PUBLIC|_JC_ACC_SUPER))
+		    != _JC_ACC_INTERFACE) {
 			_JC_EX_STORE(env, ClassFormatError,
 			    "invalid interface access flags 0x%04x",
 			    cfile->access_flags);



Mime
View raw message