From: aclement Date: Tue, 8 Jul 2008 15:10:10 +0000 (+0000) Subject: 239910: fixed X-Git-Tag: V162DEV_M1~175 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f8c24e135998cea81deb38a5d66752e73e463a83;p=aspectj.git 239910: fixed --- diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java index 68a32374c..32414f0ce 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java @@ -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.