From c972edb81e3d223c97175057cc56f5ac9d4e0143 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Tue, 26 Oct 2021 09:51:36 +0200 Subject: [fixes #3000] Generate new type reference for val marker annotation --- src/eclipseAgent/lombok/eclipse/agent/PatchVal.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit