aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-30 20:49:48 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-30 20:49:48 +0100
commitd1e9a8e5abf0ae18315ad630fa2be926da13c9db (patch)
treee2b729421fd79bb7b69867ba7c9aad49245f0792 /src/eclipseAgent
parent28f0c4c4b042a47fc2ee3323d3b8d90329991426 (diff)
downloadlombok-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')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java2
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;