diff options
author | Andrew Niefer | 2004-10-06 20:39:12 +0000 |
---|---|---|
committer | Andrew Niefer | 2004-10-06 20:39:12 +0000 |
commit | 73d595ea0eaeedfb7b3e6918623bb616105e38e3 (patch) | |
tree | 9712e65f845c771064aab66ad7e8e8ebf1d4cfc8 /core | |
parent | d0299598075dea7cd1b4d61c26527a668c5bbb7d (diff) | |
download | org.eclipse.cdt-73d595ea0eaeedfb7b3e6918623bb616105e38e3.tar.gz org.eclipse.cdt-73d595ea0eaeedfb7b3e6918623bb616105e38e3.tar.xz org.eclipse.cdt-73d595ea0eaeedfb7b3e6918623bb616105e38e3.zip |
use the canonical path when creating code readers so that the name
in the code reader matches the file on disk (makes a difference on
non-case-sensitive OSs)
Diffstat (limited to 'core')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java index dd975eb75e6..596b0e8fc85 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/InternalParserUtil.java @@ -32,7 +32,10 @@ public class InternalParserUtil extends ParserFactory { if (includeFile.exists() && includeFile.isFile()) { try { - return new CodeReader(finalPath); + //use the canonical path so that in case of non-case-sensitive OSs + //the CodeReader always has the same name as the file on disk with + //no differences in case. + return new CodeReader(includeFile.getCanonicalPath()); } catch (IOException e) { } } |