summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2009-02-12 17:50:17 +0000
committeraclement <aclement>2009-02-12 17:50:17 +0000
commit0af658e1b117aee704b5e6e836ce7e84199ae548 (patch)
tree1955cc50f7f8a906907feef7125727528824125f
parent3df7b5ede4980b5beb9c6af82e58ca2aab9bf66e (diff)
downloadaspectj-0af658e1b117aee704b5e6e836ce7e84199ae548.tar.gz
aspectj-0af658e1b117aee704b5e6e836ce7e84199ae548.zip
264563: [handles] Remove trailing '/' from source path handles
-rw-r--r--asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
index 5f60331ba..8d41a2419 100644
--- a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
+++ b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
@@ -71,6 +71,9 @@ public class JDTLikeHandleProvider implements IElementHandleProvider {
sb.append(createHandleIdentifier(ipe.getParent())).append("/");
// pr249216 - escape any embedded slashes
String folder = ipe.getName();
+ if (folder.endsWith("/")) {
+ folder = folder.substring(0, folder.length() - 1);
+ }
if (folder.indexOf("/") != -1) {
folder = folder.replace("/", "\\/");
}