From 67d66be9eccf050a5f3758273ea2d685217f6d5a Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 27 Dec 2020 06:37:47 +0100 Subject: fixing sneakythrows in ecj, and with that, the tests. --- src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java index 171fa8a9..488d6eee 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java +++ b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java @@ -372,7 +372,7 @@ public class EclipsePatcher implements AgentLauncher.AgentLaunchable { } private static void patchCatchReparse(ScriptManager sm) { - sm.addScriptIfWitness(OSGI_TYPES, ScriptBuilder.wrapReturnValue() + sm.addScript(ScriptBuilder.wrapReturnValue() .target(new MethodTarget("org.eclipse.jdt.core.dom.ASTConverter", "retrieveStartingCatchPosition")) .wrapMethod(new Hook("lombok.launch.PatchFixesHider$PatchFixes", "fixRetrieveStartingCatchPosition", "int", "int", "int")) .transplant().request(StackRequest.RETURN_VALUE, StackRequest.PARAM1).build()); -- cgit