diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-10-15 23:22:00 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-10-15 23:22:16 +0200 |
commit | 065616aea18010d76a8c907f6940234d8c2ef108 (patch) | |
tree | 26b608a15f9551202c08dea588806b6baa2ab71e /src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java | |
parent | bda0da2722e8237eaa406b20d6b5337e3c1e8b9c (diff) | |
download | lombok-065616aea18010d76a8c907f6940234d8c2ef108.tar.gz lombok-065616aea18010d76a8c907f6940234d8c2ef108.tar.bz2 lombok-065616aea18010d76a8c907f6940234d8c2ef108.zip |
[#2599] Completely rewrite how we decide whether it's ecj or eclipse for patching
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java b/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java index aa01c13d..25906c6b 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java +++ b/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java @@ -31,6 +31,12 @@ import lombok.patcher.scripts.ScriptBuilder; public class EclipseLoaderPatcher { private static final String TRANSPLANTS_CLASS_NAME = "lombok.eclipse.agent.EclipseLoaderPatcherTransplants"; + static final String[] OSGI_TYPES = { + "org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader", + "org/eclipse/osgi/framework/adapter/core/AbstractClassLoader", + "org/eclipse/osgi/internal/loader/ModuleClassLoader" + }; + public static void patchEquinoxLoaders(ScriptManager sm, Class<?> launchingContext) { sm.addScript(ScriptBuilder.exitEarly() .target(new MethodTarget("org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader", "loadClass", |