From e5f1afc63afb1f8e61cac5b815631cbbb6106380 Mon Sep 17 00:00:00 2001 From: rdulmina Date: Tue, 19 Nov 2024 19:58:19 +0530 Subject: [PATCH] Set annotation for the referred type if it is record Previously we set the annotation for record type only. Now we set for both the type reference type and record type --- .../io/ballerina/runtime/internal/utils/AnnotationUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/utils/AnnotationUtils.java b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/utils/AnnotationUtils.java index 00b7d37b44f4..b350bcedc14f 100644 --- a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/utils/AnnotationUtils.java +++ b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/utils/AnnotationUtils.java @@ -63,6 +63,10 @@ public static void processAnnotations(MapValue globalAnnotMap, if (type.getTag() == TypeTags.TYPE_REFERENCED_TYPE_TAG) { Type impliedType = TypeUtils.getImpliedType(type); + if (impliedType.getTag() == TypeTags.RECORD_TYPE_TAG) { + processAnnotations(globalAnnotMap, impliedType); + return; + } if (isNonObjectType(impliedType.getTag())) { return; }