aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleDelegate.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-04-30 22:35:30 +0200
committerGitHub <noreply@github.com>2019-04-30 22:35:30 +0200
commitbfbf7f87960034eb51dd776251ac5895dffea071 (patch)
treef76144c3bb21eb84611a619f6de0d8b3d6ef9f7f /src/core/lombok/javac/handlers/HandleDelegate.java
parent00dd02ca916a6729bfb66ddf8d3034a274079634 (diff)
parentce0a09177e577c0b4f42379c5cc7ce364f26c905 (diff)
downloadlombok-bfbf7f87960034eb51dd776251ac5895dffea071.tar.gz
lombok-bfbf7f87960034eb51dd776251ac5895dffea071.tar.bz2
lombok-bfbf7f87960034eb51dd776251ac5895dffea071.zip
Merge pull request #2114 from bulgakovalexander/bugfix/#1976
#1976. A handlers' order has been changed.
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleDelegate.java')
-rw-r--r--src/core/lombok/javac/handlers/HandleDelegate.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleDelegate.java b/src/core/lombok/javac/handlers/HandleDelegate.java
index baff7912..367b2cff 100644
--- a/src/core/lombok/javac/handlers/HandleDelegate.java
+++ b/src/core/lombok/javac/handlers/HandleDelegate.java
@@ -82,7 +82,7 @@ import lombok.javac.JavacTreeMaker;
import lombok.javac.ResolutionResetNeeded;
@ProviderFor(JavacAnnotationHandler.class)
-@HandlerPriority(65536) //2^16; to make sure that we also delegate generated methods.
+@HandlerPriority(HandleDelegate.HANDLE_DELEGATE_PRIORITY) //2^16; to make sure that we also delegate generated methods.
@ResolutionResetNeeded
public class HandleDelegate extends JavacAnnotationHandler<Delegate> {
@@ -102,6 +102,7 @@ public class HandleDelegate extends JavacAnnotationHandler<Delegate> {
private static final String LEGALITY_OF_DELEGATE = "@Delegate is legal only on instance fields or no-argument instance methods.";
private static final String RECURSION_NOT_ALLOWED = "@Delegate does not support recursion (delegating to a type that itself has @Delegate members). Member \"%s\" is @Delegate in type \"%s\"";
+ public static final int HANDLE_DELEGATE_PRIORITY = 65536;
@Override public void handle(AnnotationValues<Delegate> annotation, JCAnnotation ast, JavacNode annotationNode) {