]> source.dussan.org Git - aspectj.git/commitdiff
239910: fix
authoraclement <aclement>
Tue, 8 Jul 2008 15:52:44 +0000 (15:52 +0000)
committeraclement <aclement>
Tue, 8 Jul 2008 15:52:44 +0000 (15:52 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java

index 5ffa4518495ed50f9149b69abec4b664c6affbf4..07a2fbb9fbe786133de9f2c93eed8c1277f894ba 100644 (file)
@@ -290,7 +290,6 @@ public class BcelWeaver {
                ClassParser parser = new ClassParser(new ByteArrayInputStream(bytes),name);
                JavaClass jc = parser.parse();
                ResolvedType type = world.addSourceObjectType(jc).getResolvedTypeX();
-               if (!type.isAspect()) return;
                String typeName = type.getName().replace('.', File.separatorChar);
                int end = name.indexOf(typeName+".class");
                String binaryPath = null;
@@ -302,7 +301,9 @@ public class BcelWeaver {
                        binaryPath = name.substring(0,end-1);
                }
                type.setBinaryPath(binaryPath);         
-               toList.add(type);
+               if (type.isAspect()) {
+                       toList.add(type);
+               }
        }