diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lombok/core/configuration/FileSystemSourceCache.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/lombok/core/configuration/FileSystemSourceCache.java b/src/core/lombok/core/configuration/FileSystemSourceCache.java index 50d8b13a..d502a56b 100644 --- a/src/core/lombok/core/configuration/FileSystemSourceCache.java +++ b/src/core/lombok/core/configuration/FileSystemSourceCache.java @@ -44,7 +44,12 @@ public class FileSystemSourceCache { public Iterable<ConfigurationSource> sourcesForJavaFile(URI javaFile, ConfigurationProblemReporter reporter) { if (javaFile == null) return Collections.emptyList(); - return sourcesForDirectory(new File(javaFile.normalize()).getParentFile(), reporter); + URI uri = javaFile.normalize(); + if (!uri.isAbsolute()) { + uri = new File(".").toURI().resolve(uri); + } + + return sourcesForDirectory(new File(uri).getParentFile(), reporter); } public Iterable<ConfigurationSource> sourcesForDirectory(URI directory, ConfigurationProblemReporter reporter) { |