diff options
author | aclement <aclement> | 2005-09-14 11:10:52 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-09-14 11:10:52 +0000 |
commit | 87e5c2eccac7cf0027b7711cfe1bd4ead21d21cf (patch) | |
tree | ee1c0f4242a80535e78e5c6ec2147a308ba5776b /bcel-builder | |
parent | bddda4072f25bdcd680e5f167a1faed145066f93 (diff) | |
download | aspectj-87e5c2eccac7cf0027b7711cfe1bd4ead21d21cf.tar.gz aspectj-87e5c2eccac7cf0027b7711cfe1bd4ead21d21cf.zip |
test and fix for pr109486: bcel exception when expecting compiler error for final abstract class.
Diffstat (limited to 'bcel-builder')
-rw-r--r-- | bcel-builder/src/org/aspectj/apache/bcel/classfile/ClassParser.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/classfile/ClassParser.java b/bcel-builder/src/org/aspectj/apache/bcel/classfile/ClassParser.java index a8f6f122d..e2508a00d 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/classfile/ClassParser.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/classfile/ClassParser.java @@ -70,7 +70,7 @@ import java.util.zip.*; * JVM specification 1.0</a>. See this paper for * further details about the structure of a bytecode file. * - * @version $Id: ClassParser.java,v 1.2 2004/11/19 16:45:18 aclement Exp $ + * @version $Id: ClassParser.java,v 1.3 2005/09/14 11:10:57 aclement Exp $ * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> */ public final class ClassParser { @@ -237,9 +237,10 @@ public final class ClassParser { if((access_flags & Constants.ACC_INTERFACE) != 0) access_flags |= Constants.ACC_ABSTRACT; - if(((access_flags & Constants.ACC_ABSTRACT) != 0) && - ((access_flags & Constants.ACC_FINAL) != 0 )) - throw new ClassFormatException("Class can't be both final and abstract"); + // don't police it like this... leave higher level verification code to check it. +// if(((access_flags & Constants.ACC_ABSTRACT) != 0) && +// ((access_flags & Constants.ACC_FINAL) != 0 )) +// throw new ClassFormatException("Class can't be both final and abstract"); class_name_index = file.readUnsignedShort(); superclass_name_index = file.readUnsignedShort(); |