I have tried Native Image Tracing Agent Integration.
I was expecting entries to be filtered out in native-image-agent-final-config if elements were already covered by quarkus declarations.
public class MyFoo {
String foo = "bar";
public String getFoo() {
return foo;
}
}
when running mvn clean verify -DskipITs=false -Dquarkus.test.integration-test-profile=test-with-native-agent, I get the expected element in reflect-config.json:
should disappear if I annotate MyFoo with RegisterForReflection.
Actual behavior
the entry is still there. similarly there is not filtering on included resources.
How to Reproduce?
create an application: quarkus create app tracingagent
add /foo entry point with some reflection on class MyFoo
annotate MyFoo with RegisterForReflection
execute mvn clean verify -DskipITs=false -Dquarkus.test.integration-test-profile=test-with-native-agent
open target/native-image-agent-final-config/reflect-config.json => MyFoo is there (and should not be)
Output of uname -a or ver
No response
Output of java -version
java 21
Quarkus version or git rev
3.12.0
Build tool (ie. output of mvnw --version or gradlew --version)
Describe the bug
I have tried Native Image Tracing Agent Integration. I was expecting entries to be filtered out in
native-image-agent-final-config
if elements were already covered by quarkus declarations.for instance imagine the following code:
and test
with the following
MyFoo
class:when running
mvn clean verify -DskipITs=false -Dquarkus.test.integration-test-profile=test-with-native-agent
, I get the expected element inreflect-config.json
:then I annotate
MyFoo
:and re-run the
verify
. I am expecting that theorg.acme.MyFoo
inreflect-config.json
would disappear. but that is not the case.moreover,
reflect-config.json
has the exact same size intarget/native-image-agent-base-config/
andtarget/native-image-agent-final-config/
:Expected behavior
should disappear if I annotate
MyFoo
withRegisterForReflection
.Actual behavior
the entry is still there. similarly there is not filtering on included resources.
How to Reproduce?
create an application:
quarkus create app tracingagent
add/foo
entry point with some reflection on classMyFoo
annotateMyFoo
withRegisterForReflection
executemvn clean verify -DskipITs=false -Dquarkus.test.integration-test-profile=test-with-native-agent
opentarget/native-image-agent-final-config/reflect-config.json
=>MyFoo
is there (and should not be)Output of
uname -a
orver
No response
Output of
java -version
java 21
Quarkus version or git rev
3.12.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response