From: aclement Date: Tue, 8 Jul 2008 15:53:10 +0000 (+0000) Subject: 239910: fix X-Git-Tag: V162DEV_M1~172 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=da38c1ebfcaf19624af8e218e7c4df7045bf80ef;p=aspectj.git 239910: fix --- diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java index 07a2fbb9f..07883c96e 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+".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.