From 1fd5749e47943ede21b3304d4dc4d16cae8acb28 Mon Sep 17 00:00:00 2001 From: Martin Panzer Date: Tue, 10 Sep 2024 07:13:37 +0200 Subject: [PATCH] Exclude the classloader for jasperreports-maven-plugin due to a classloader conflict with ECJ --- doc/changelog.markdown | 2 ++ src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java | 1 + 2 files changed, 3 insertions(+) diff --git a/doc/changelog.markdown b/doc/changelog.markdown index fa8bb5cbf..71c0a1270 100644 --- a/doc/changelog.markdown +++ b/doc/changelog.markdown @@ -3,6 +3,8 @@ Lombok Changelog ### v1.18.35 "Edgy Guinea Pig" * We recently released v1.18.34; there is no edge release since then. +* BUGFIX: Eclipse projects using the `com.pro-crafting.tools:jasperreports-maven-plugin` will now compile. + ### v1.18.34 (June 28th, 2024) * PLATFORM: Added support for Eclipse 2024-06; you'd get some `NoSuchMethodError` traces in your logs if using `@Builder` or `@Singular` prior to this fix. [Issue #3638](https://github.com/projectlombok/lombok/issues/3638). diff --git a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java index e3a52ba12..e4954f9b7 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java +++ b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java @@ -63,6 +63,7 @@ private static void registerPatchScripts(Instrumentation instrumentation, boolea if (loader.getClass().getName().startsWith("org.sonar.classloader.")) return false; // Relevant to bug #2351 if (loader.toString().contains("com.alexnederlof:jasperreports-plugin")) return false; //Relevant to bug #1036 if (loader.toString().contains("com.pro-crafting.tools:jasperreports-plugin")) return false; //Relevant to bug #1036 + if (loader.toString().contains("com.pro-crafting.tools:jasperreports-maven-plugin")) return false; //Relevant to bug #1036 } if (!(loader instanceof URLClassLoader)) return true; ClassLoader parent = loader.getParent();