-
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
Keep static instance field and delete unused field in substitution #38117
Conversation
* Don't replace `com.jayway.jsonpath.internal.DefaultsImpl#INSTANCE`, there is no need. * Delete `com.jayway.jsonpath.internal.DefaultsImpl#mappingProvider` in `io.smallrye.reactive.kafka.graal.Target_com_jayway_jsonpath_internal_DefaultsImpl` since it's no longer used. Closes quarkusio#37862
aefb571
to
36197b5
Compare
|
||
@RecomputeFieldValue(kind = RecomputeFieldValue.Kind.FromAlias) | ||
@Alias | ||
public static Target_com_jayway_jsonpath_internal_DefaultsImpl INSTANCE = new Target_com_jayway_jsonpath_internal_DefaultsImpl(); |
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.
@ozangunalp do you recall why you needed this field recomputation?
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.
My thinking was that because DefaultsImpl
holds a field value of JsonSmartMappingProvider
, recalculating the static instance would be needed to remove any instance of JsonSmartMappingProvider
from the native image.
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.
But now that I re-run with or without I don't see any difference.
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.
Good, the deletion of the mappingProvider
field in this PR should take care of your initial concern as well then.
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.
Indeed, Thanks!
@ozangunalp could you please approve the PR if you are OK with the changes? Tests results with Mandrel 24.0-dev look good, so I consider it ready for review. |
The test failure on JDK 21 doesn't seem related: failure of apicurio test container start |
Failing Jobs - Building 36197b5
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 21 #- Failing: extensions/smallrye-reactive-messaging-kafka/deployment
! Skipped: integration-tests/kafka-oauth-keycloak integration-tests/kafka-sasl-elytron integration-tests/opentelemetry-reactive-messaging and 5 more 📦 extensions/smallrye-reactive-messaging-kafka/deployment✖
|
Don't replace
com.jayway.jsonpath.internal.DefaultsImpl#INSTANCE
,there is no need.
Delete
com.jayway.jsonpath.internal.DefaultsImpl#mappingProvider
inio.smallrye.reactive.kafka.graal.Target_com_jayway_jsonpath_internal_DefaultsImpl
since it's no longer used.
Closes #37862
Being tested with Mandrel 24.0-dev in https://github.com/graalvm/mandrel/actions/runs/7472873285