jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject svn commit: r617879 - /jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/ClassGen.java
Date Sat, 02 Feb 2008 20:15:11 GMT
Author: tcurdt
Date: Sat Feb  2 12:15:09 2008
New Revision: 617879

URL: http://svn.apache.org/viewvc?rev=617879&view=rev
Log:
http://issues.apache.org/bugzilla/show_bug.cgi?id=42791


Modified:
    jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/ClassGen.java

Modified: jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/ClassGen.java
URL: http://svn.apache.org/viewvc/jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/ClassGen.java?rev=617879&r1=617878&r2=617879&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/ClassGen.java (original)
+++ jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/ClassGen.java Sat Feb  2 12:15:09
2008
@@ -23,6 +23,7 @@
 import org.apache.bcel.Constants;
 import org.apache.bcel.classfile.AccessFlags;
 import org.apache.bcel.classfile.AnnotationEntry;
+import org.apache.bcel.classfile.Annotations;
 import org.apache.bcel.classfile.Attribute;
 import org.apache.bcel.classfile.ConstantPool;
 import org.apache.bcel.classfile.Field;
@@ -143,7 +144,9 @@
             addInterface(interfaces[i]);
         }
         for (int i = 0; i < attributes.length; i++) {
-            addAttribute(attributes[i]);
+        	if (!(attributes[i] instanceof Annotations)) {
+        		addAttribute(attributes[i]);
+        	}
         }
         for(int i=0; i < annotations.length; i++) {
             addAnnotationEntry(annotations[i]);



---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


Mime
View raw message