Fixed issue #778: problems with onX if the annotation to be added has named args.

This commit is contained in:
Reinier Zwitserloot
2017-03-06 23:34:23 +01:00
parent 8bfbd7fa84
commit d05d037433
35 changed files with 489 additions and 112 deletions
@@ -0,0 +1,18 @@
//platform ecj
//version 8:
public class OnXJava7StyleOn8 {
@interface Foo {
String value() default "";
}
@interface Bar {
String stuff() default "";
}
@lombok.Getter(onMethod=@__(@Foo)) String a;
@lombok.Setter(onMethod=@__(@Foo())) String b;
@lombok.Setter(onParam=@__(@Foo("a"))) String c;
@lombok.Setter(onParam=@__(@Bar(stuff="b"))) String d;
@lombok.Getter(onMethod=@__({@Foo(value="c"), @Bar(stuff="d")})) String e;
}