1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

bug in APathEntry.equals()

This commit is contained in:
Alain Magloire 2004-04-30 04:08:03 +00:00
parent 1fefb24038
commit c421d5746a
2 changed files with 7 additions and 1 deletions

View file

@ -108,6 +108,12 @@ public abstract class APathEntry extends PathEntry {
return false;
}
}
IPath otherBaseRef = otherEntry.getBaseReference();
if (baseRef != null) {
if (otherBaseRef != null && !baseRef.equals(otherBaseRef)) {
return false;
}
}
return true;
}
return super.equals(obj);

View file

@ -45,7 +45,7 @@ public class IncludeReference extends Openable implements IIncludeReference {
}
public IncludeReference(ICElement celement, IIncludeEntry entry, IPath path) {
super(celement, null, path.lastSegment(), ICElement.C_VCONTAINER);
super(celement, null, path.toString(), ICElement.C_VCONTAINER);
fIncludeEntry = entry;
fPath = path;
}