diff options
author | aclement <aclement> | 2008-07-08 15:53:10 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-07-08 15:53:10 +0000 |
commit | da38c1ebfcaf19624af8e218e7c4df7045bf80ef (patch) | |
tree | 0978284ff1859eb676a696ad75de929531d467d4 /weaver | |
parent | a59202a5f980a8813e7edf18e2d889382dad627b (diff) | |
download | aspectj-da38c1ebfcaf19624af8e218e7c4df7045bf80ef.tar.gz aspectj-da38c1ebfcaf19624af8e218e7c4df7045bf80ef.zip |
239910: fix
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java | 2 |
1 files changed, 1 insertions, 1 deletions
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. |