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

index 68a32374c7094c2c52cf9782806b9a092ed48f91..32414f0ce2445574fea5d25c7356a69441c51237 100644 (file)
@@ -291,7 +291,7 @@ public class BcelWeaver {
                JavaClass jc = parser.parse();
                ResolvedType type = world.addSourceObjectType(jc).getResolvedTypeX();
                String typeName = type.getName().replace('.', File.separatorChar);
-               int end = name.indexOf(typeName);
+               int end = name.lastIndexOf(typeName);
                String binaryPath = null;
                // if end is -1 then something wierd happened, the class file is not in the correct place, something like
                // bin/A.class when the declaration for A specifies it is in a package.