diff options
| author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2020-09-18 02:31:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-18 02:31:44 +0200 |
| commit | 1dd84581c0a0f3c843ac59d5b6bca3d5f674c7b8 (patch) | |
| tree | d225c675cae91a7182d60296174d04d2cbd09cdc /src/eclipseAgent/lombok/launch | |
| parent | f43a63b1d988a703dddbc61c47076d616bb3d639 (diff) | |
| parent | 4d2ae4ba3261ab2963c13649b3ba8f4b3881e9c3 (diff) | |
| download | lombok-1dd84581c0a0f3c843ac59d5b6bca3d5f674c7b8.tar.gz lombok-1dd84581c0a0f3c843ac59d5b6bca3d5f674c7b8.tar.bz2 lombok-1dd84581c0a0f3c843ac59d5b6bca3d5f674c7b8.zip | |
Merge pull request #2558 from Rawi01/extensionmethod-suppress
Fix suppressBaseMethods in ecj/eclipse
Diffstat (limited to 'src/eclipseAgent/lombok/launch')
| -rwxr-xr-x | src/eclipseAgent/lombok/launch/PatchFixesHider.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/launch/PatchFixesHider.java b/src/eclipseAgent/lombok/launch/PatchFixesHider.java index 76f30527..a2cda66c 100755 --- a/src/eclipseAgent/lombok/launch/PatchFixesHider.java +++ b/src/eclipseAgent/lombok/launch/PatchFixesHider.java @@ -43,6 +43,7 @@ import org.eclipse.jdt.core.dom.MethodDeclaration; import org.eclipse.jdt.core.dom.SimpleName; import org.eclipse.jdt.core.dom.Type; import org.eclipse.jdt.core.search.SearchMatch; +import org.eclipse.jdt.internal.compiler.ast.ASTNode; import org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration; import org.eclipse.jdt.internal.compiler.ast.Annotation; import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration; @@ -279,6 +280,7 @@ final class PatchFixesHider { private static final Method RESOLVE_TYPE; private static final Method ERROR_NO_METHOD_FOR; private static final Method INVALID_METHOD, INVALID_METHOD2; + private static final Method NON_STATIC_ACCESS_TO_STATIC_METHOD; static { Class<?> shadowed = Util.shadowLoadClass("lombok.eclipse.agent.PatchExtensionMethod"); @@ -286,6 +288,7 @@ final class PatchFixesHider { ERROR_NO_METHOD_FOR = Util.findMethod(shadowed, "errorNoMethodFor", ProblemReporter.class, MessageSend.class, TypeBinding.class, TypeBinding[].class); INVALID_METHOD = Util.findMethod(shadowed, "invalidMethod", ProblemReporter.class, MessageSend.class, MethodBinding.class); INVALID_METHOD2 = Util.findMethod(shadowed, "invalidMethod", ProblemReporter.class, MessageSend.class, MethodBinding.class, Scope.class); + NON_STATIC_ACCESS_TO_STATIC_METHOD = Util.findMethod(shadowed, "nonStaticAccessToStaticMethod", ProblemReporter.class, ASTNode.class, MethodBinding.class, MessageSend.class); } public static TypeBinding resolveType(TypeBinding resolvedType, MessageSend methodCall, BlockScope scope) { @@ -303,6 +306,10 @@ final class PatchFixesHider { public static void invalidMethod(ProblemReporter problemReporter, MessageSend messageSend, MethodBinding method, Scope scope) { Util.invokeMethod(INVALID_METHOD2, problemReporter, messageSend, method, scope); } + + public static void nonStaticAccessToStaticMethod(ProblemReporter problemReporter, ASTNode location, MethodBinding method, MessageSend messageSend) { + Util.invokeMethod(NON_STATIC_ACCESS_TO_STATIC_METHOD, problemReporter, location, method, messageSend); + } } /** Contains patch code to support Javadoc for generated methods */ |
