fixing sneakythrows in ecj, and with that, the tests.

This commit is contained in:
Reinier Zwitserloot committed 2020-12-27 06:37:47 +01:00
1 parent 11b6f8f97a
commit 67d66be9ec
1 file changed
+1 -1
@@ -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());