-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 interferes with Smallrye ConfigProducer #28309
Comments
FYI: When using @ConfigMapping
@StaticInitSafe
interface MyConfig {
fun single(): MyType
fun list(): List<MyType>
}
|
I think that the problem is caused by the fact that Kotlin translates You can try to replace the |
CC @radcortez |
Is it in the responsibility of smallrye to handle |
I believe that it's the responsibility of SmallRye Config because the bytecode contains a wildcard. Note that |
I think it would make sense for SmallRye Config's |
I'll have a look. |
@radcortez was there any progress on this one? |
Sorry, not yet. I'll try to have a look this week. |
I've tried to reproduce the issue, both in SmallRye Config and Quarkus, with no luck. Here are the tests:
@dirkbolte can you provide me your own reproducer? Thanks! |
sry, I was sloppy: I don't have the test project preserved and now I can't reproduce it either. |
So I'll close this for now. If you do manage to create a reproducer, we can reopen |
Describe the bug
Language: Kotlin
I want to inject a config property of a list of custom types:
While Smallrye can resolve and fill
singleType
, it fails on the list. The cause in the stack trace is:From what I see,
WildcardTypeImpl
providesjava.util.List
asrawType
- should it provide the upper bound ofactualTypeArgument
?I tried mitigating it by providing an explizit Converter for
List<MyType>
but the result is the same.Expected behavior
Config Converter for generic type of
List<T>
is used.Actual behavior
Exception and quarkus fails to start.
How to Reproduce?
org.eclipse.microprofile.config.spi.Converter
Output of
uname -a
orver
Darwin mymac.local 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:25:27 PDT 2022; root:xnu-8020.141.5~2/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "11.0.16" 2022-07-19 OpenJDK Runtime Environment Temurin-11.0.16+8 (build 11.0.16+8) OpenJDK 64-Bit Server VM Temurin-11.0.16+8 (build 11.0.16+8, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.12.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Additional information
No response
The text was updated successfully, but these errors were encountered: