Преглед на файлове

use canonfilepath

tags/V1_6_5
aclement преди 15 години
родител
ревизия
2b74ebb888
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java

+ 1
- 1
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("<root>")) || 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

Loading…
Отказ
Запис