From 0af658e1b117aee704b5e6e836ce7e84199ae548 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 12 Feb 2009 17:50:17 +0000 Subject: 264563: [handles] Remove trailing '/' from source path handles --- asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java | 3 +++ 1 file changed, 3 insertions(+) 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("/", "\\/"); } -- cgit v1.2.3