From da38c1ebfcaf19624af8e218e7c4df7045bf80ef Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 8 Jul 2008 15:53:10 +0000 Subject: [PATCH] 239910: fix --- weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.5