diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2021-10-26 09:51:36 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2021-12-12 02:39:33 +0100 |
commit | c972edb81e3d223c97175057cc56f5ac9d4e0143 (patch) | |
tree | 583a6d468b53f27620fdbee14a5ad1db9fb97b92 /src/eclipseAgent/lombok/eclipse/agent | |
parent | 10fab5b77a04f5c89e4ad7fe6937055d36c4d1ee (diff) | |
download | lombok-c972edb81e3d223c97175057cc56f5ac9d4e0143.tar.gz lombok-c972edb81e3d223c97175057cc56f5ac9d4e0143.tar.bz2 lombok-c972edb81e3d223c97175057cc56f5ac9d4e0143.zip |
[fixes #3000] Generate new type reference for val marker annotation
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchVal.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java index e758979d..976a71f4 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java @@ -359,7 +359,8 @@ public class PatchVal { newAnn = new Annotation[1]; } - newAnn[newAnn.length - 1] = new org.eclipse.jdt.internal.compiler.ast.MarkerAnnotation(originalRef, originalRef.sourceStart); + TypeReference qualifiedTypeRef = generateQualifiedTypeRef(originalRef, originalRef.getTypeName()); + newAnn[newAnn.length - 1] = new org.eclipse.jdt.internal.compiler.ast.MarkerAnnotation(qualifiedTypeRef, qualifiedTypeRef.sourceStart); return newAnn; } |