[Smallrye] Should ConfigMapping extended interface use toString of parent? #38522
Answered
by
radcortez
agreedSkiing
asked this question in
Q&A
-
If an smallrye configmapping interface is extended then should it call the toString method of the the extended interface? @ConfigMapping(prefix = "app")
public interface AppConfig {
List<bar> foo();
String toString();
interface bar extends boo{
String other();
String toString();
}
interface boo{
String something();
String toString();
}
}
@Startup
class LogAppConfig {
private AppConfig config;
public LogAppConfig(AppConfig config) {
this.config = config;
Log.info(config);
}
} app.foo[0].other=other
app.foo[0].something=else And when the application starts
|
Beta Was this translation helpful? Give feedback.
Answered by
radcortez
Feb 1, 2024
Replies: 1 comment 3 replies
-
/cc @Ladicek (smallrye), @jmartisk (smallrye), @phillip-kruger (smallrye), @radcortez (smallrye) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a bug. Can you please open an issue in https://github.com/smallrye/smallrye-config/issues? Thank you!