all I was migrating my project from xtend 2.4.3 to 2.7.3
I got some problems. Here is the code works on 2.4.3
val AttrType = findTypeGlobally(typeof(Attr));
val fld = Cls.addField(Pkt::getMemberName(m))
[
val annot = addAnnotation(AttrType )
annot.set("value", GenHelper::getAnnot(m))
visibility = Visibility::PUBLIC
]
setFieldType(m, fld, context)
On 2.7.3, addAnnotation returns AnnotationReference.
There is no way to set value into the AnnotationReference. How to fix it?
Thanks.