diff options
Diffstat (limited to 'asm')
-rw-r--r-- | asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java index c20428d67..aa4900fb9 100644 --- a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java +++ b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java @@ -69,7 +69,12 @@ public class JDTLikeHandleProvider implements IElementHandleProvider { } else if (ipe.getKind() == IProgramElement.Kind.SOURCE_FOLDER) { StringBuffer sb = new StringBuffer(); sb.append(createHandleIdentifier(ipe.getParent())).append("/"); - sb.append(ipe.getName()); + // pr249216 - escape any embedded slashes + String folder = ipe.getName(); + if (folder.indexOf("/") != -1) { + folder = folder.replace("/", "\\/"); + } + sb.append(folder); String handle = sb.toString(); ipe.setHandleIdentifier(handle); return handle; |