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

index 07a2fbb9fbe786133de9f2c93eed8c1277f894ba..07883c96e98904a9273f421ebec46674952fd35d 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+".class");
+               int end = name.lastIndexOf(typeName+".class");
                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.