Open wayerr opened 8 years ago
Just ran into the same problem. How do people fix this? Issue is pretty old.
@arthware @wayerr
See https://projectlombok.org/features/experimental/onX at the bottom:
In javac8, the above feature should work but due to a bug in javac8 it does not. However, starting in javac8, if the parameter name does not exist in the annotation type, compilation proceeds to a phase where lombok can fix it.
Two things are pretty funny:
The new way is IIRC something like
@Setter(onMethod_ = @Autowired)
Note the trailing underscore.
Thank you :) Ok, I simply write my annotated constructors the old-fashioned way. Annotating annotations that generate bytecode feels somehow weird anyway ;)
At below code compiled with maven i give error. Error appear only if enclosed annotation using any parameter and compiler
source
andtarget
options is set to 1.8 (on 1.7 and same other environment error will not existed) Code (in test i use copy oforg.springframework.beans.factory.annotation.Autowired
annotation ):Error:
Info:
Pom file: