Skip to content

Commit

Permalink
fixing sneakythrows in ecj, and with that, the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzwitserloot committed Dec 27, 2020
1 parent 11b6f8f commit 67d66be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ private static void patchRefactorScripts(ScriptManager sm) {
}

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());
Expand Down

0 comments on commit 67d66be

Please sign in to comment.