diff options
Diffstat (limited to 'src_eclipseagent/lombok')
-rw-r--r-- | src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java b/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java index be01753c..9220c790 100644 --- a/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java +++ b/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java @@ -81,10 +81,7 @@ public class EclipsePatcher { } private static String findPathOfOurClassloader() throws Exception { - ClassLoader loader = EclipsePatcher.class.getClassLoader(); - if ( loader == null ) loader = ClassLoader.getSystemClassLoader(); - - URI uri = loader.getResource(EclipsePatcher.class.getName().replace('.', '/') + ".class").toURI(); + URI uri = EclipsePatcher.class.getResource("/" + EclipsePatcher.class.getName().replace('.', '/') + ".class").toURI(); Pattern p = Pattern.compile("^jar:file:([^\\!]+)\\!.*\\.class$"); Matcher m = p.matcher(uri.toString()); if ( !m.matches() ) return "."; |