From 2b74ebb888539e3e0c410e78736c5e79c1b98c05 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 9 Apr 2009 04:29:35 +0000 Subject: [PATCH] use canonfilepath --- asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java b/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java index cd07bb5d7..a075caef2 100644 --- a/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java +++ b/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java @@ -368,7 +368,7 @@ public class AspectJElementHierarchy implements IHierarchy { // 2. should isSourceFile() return true for a FILE that is a .class file...? if ((node.getKind().isSourceFile() && !node.getName().equals("")) || node.getKind().isFile()) { ISourceLocation nodeLoc = node.getSourceLocation(); - if (nodeLoc != null && nodeLoc.getSourceFile().getAbsolutePath().equals(sourcefilePath)) { + if (nodeLoc != null && asm.getCanonicalFilePath(nodeLoc.getSourceFile()).equals(sourcefilePath)) { return node; } return null; // no need to search children of a source file node -- 2.39.5