-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArC fixes for spec compatibility #30509
Conversation
This comment has been minimized.
This comment has been minimized.
The failures are not related. |
independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java
Outdated
Show resolved
Hide resolved
...rojects/arc/tests/src/test/java/io/quarkus/arc/test/name/InvalidNamedInjectionPointTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
The additions in this commit are taken directly from the Weld codebase. They apply in the situation when the required type during dynamic lookup is represented using a `Class` object, while the bean type is represented using `GenericArrayType`.
The additions in this commit are taken directly from the Weld codebase.
In such case, the corresponding zero value must be injected instead.
The specification is clear that field injection points with `@Named` without value should use `@Named(fieldName)` as the qualifier. Other such injection points lead to a definition error.
Rebased (and addressed the nitpick 😆). |
Failing Jobs - Building b5d825a
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 11 Windows #- Failing: extensions/grpc/deployment
! Skipped: extensions/micrometer-registry-prometheus/deployment extensions/micrometer/deployment extensions/opentelemetry/deployment and 41 more 📦 extensions/grpc/deployment✖
|
Related to #28558
package-info.class
for@Vetoed
ArcTestContainer
to also indexpackage-info.class
of all classes in the test bean archiveClass
, while the bean array types are instantiated asGenericArrayType
BeanManager.getReference()
implementationnull
@Named
without value@Named
without value should use@Named(fieldName)
as the qualifierTo review, it's probably best to look at each commit in isolation. Tests are added, too.