diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2021-10-21 10:38:37 +0200 |
---|---|---|
committer | Rawi01 <Rawi01@users.noreply.github.com> | 2021-10-22 09:24:17 +0200 |
commit | 553b25addde4fab136258f7718e274a98bfbe34a (patch) | |
tree | f65f76f8c838a73f5f91f8efe0811c6b019857bb /src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java | |
parent | 13d84b129e562fdc71b049778c3b3bd2376e29a4 (diff) | |
download | lombok-553b25addde4fab136258f7718e274a98bfbe34a.tar.gz lombok-553b25addde4fab136258f7718e274a98bfbe34a.tar.bz2 lombok-553b25addde4fab136258f7718e274a98bfbe34a.zip |
[fixes #2985] Resolve var/val only once in eclipse
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java index 328860e3..33dad64e 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java +++ b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java @@ -764,6 +764,7 @@ public class EclipsePatcher implements AgentLauncher.AgentLaunchable { sm.addScript(ScriptBuilder.replaceMethodCall() .target(new MethodTarget(LOCALDECLARATION_SIG, "resolve", "void", BLOCKSCOPE_SIG)) + .target(new MethodTarget(LOCALDECLARATION_SIG, "resolve", "void", BLOCKSCOPE_SIG, "boolean")) .methodToReplace(new Hook(EXPRESSION_SIG, "resolveType", TYPEBINDING_SIG, BLOCKSCOPE_SIG)) .requestExtra(StackRequest.THIS) .replacementMethod(new Hook("lombok.launch.PatchFixesHider$Val", "skipResolveInitializerIfAlreadyCalled2", TYPEBINDING_SIG, EXPRESSION_SIG, BLOCKSCOPE_SIG, LOCALDECLARATION_SIG)) |