diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-30 20:49:48 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-30 20:49:48 +0100 |
commit | d1e9a8e5abf0ae18315ad630fa2be926da13c9db (patch) | |
tree | e2b729421fd79bb7b69867ba7c9aad49245f0792 /src/eclipseAgent/lombok/eclipse/agent | |
parent | 28f0c4c4b042a47fc2ee3323d3b8d90329991426 (diff) | |
download | lombok-d1e9a8e5abf0ae18315ad630fa2be926da13c9db.tar.gz lombok-d1e9a8e5abf0ae18315ad630fa2be926da13c9db.tar.bz2 lombok-d1e9a8e5abf0ae18315ad630fa2be926da13c9db.zip |
[bughunt] [issue #2351] wild-stab try to fix issue 2351, without reproduction - this time for realsies, whoops.
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java index 49f2e36a..5583b5ee 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java +++ b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java @@ -81,7 +81,7 @@ public class EclipsePatcher implements AgentLauncher.AgentLaunchable { sm.registerTransformer(instrumentation); sm.setFilter(new Filter() { @Override public boolean shouldTransform(ClassLoader loader, String className, Class<?> classBeingDefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) { - if (loader != null && loader.getClass().toString().startsWith("org.sonar.classloader")) return false; // Relevant to bug #2351 + if (loader != null && loader.getClass().getName().startsWith("org.sonar.classloader.")) return false; // Relevant to bug #2351 if (!(loader instanceof URLClassLoader)) return true; ClassLoader parent = loader.getParent(); if (parent == null) return true; |