Ensure that all accessor annotations are correctly decorated, fixes #430

This commit is contained in:
Mumfrey committed 2020-12-23 18:34:39 +00:00
1 parent 4f51eb5571
commit e8dd9239e0
1 file changed
+2 -3
@@ -302,6 +302,7 @@ public class AccessorInfo extends SpecialMethodInfo {
this.type = this.initType();
this.targetFieldType = this.initTargetFieldType();
this.target = this.initTarget();
this.annotation.visit("target", this.target.toString());
}
protected AccessorType initType() {
@@ -331,9 +332,7 @@ public class AccessorInfo extends SpecialMethodInfo {
}
protected ITargetSelector initTarget() {
MemberInfo target = new MemberInfo(this.getTargetName(this.specifiedName), null, this.targetFieldType.getDescriptor());
this.annotation.visit("target", target.toString());
return target;
return new MemberInfo(this.getTargetName(this.specifiedName), null, this.targetFieldType.getDescriptor());
}
protected String getTargetName(String name) {