aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/src/org/aspectj/util/ConfigParser.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/src/org/aspectj/util/ConfigParser.java b/util/src/org/aspectj/util/ConfigParser.java
index 81b9127e9..d15e1698b 100644
--- a/util/src/org/aspectj/util/ConfigParser.java
+++ b/util/src/org/aspectj/util/ConfigParser.java
@@ -217,7 +217,9 @@ public class ConfigParser {
private File makeFile(File dir, String name) {
name = name.replace('/', File.separatorChar);
File ret = new File(name);
- if (!ret.exists() && (dir != null) && !ret.isAbsolute()) {
+ boolean isAbsolute = ret.isAbsolute()
+ || (ret.exists() && ret.getPath().startsWith(File.separator));
+ if (!isAbsolute && (dir != null)) {
ret = new File(dir, name);
}
try {