You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So if I understand it correctly the lombok.copyableAnnotations results in the @Named(GlobalConstants.POST_HISTORY_HANDLERS_NAME) final List<HistoryUpdateHandler> historyHooks constructor parameter. This will confuse a feature called qualified injected fields. In short, if a non-static field is annoated with a qualifier (@Named in this particular case) then quarkus adds @Inject automatically. This allows for simpler injection points such as @ConfigProperty(name = "cool") bool coolProperty.
You can use the quarkus.arc.auto-inject-fields=false to disabled this feature for the moment.
I'm going to send a PR to exclude the final fields as well.
Describe the bug
When building the project we get the following warning:
with the given class
and the given lombok conf
producing the given source:
Expected behavior
No warning as we use the constructor to inject the value in the field and not
@Inject
Actual behavior
We get the warning
[io.qua.arc.pro.Injection] (build-56) An injection field must be non-static and non-final - ignoring
How to Reproduce?
Output of
uname -a
orver
No response
Output of
java -version
11
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.11.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)maven
Additional information
No response
The text was updated successfully, but these errors were encountered: