Skip to content

Conversation

cdsap
Copy link
Member

@cdsap cdsap commented Sep 16, 2025

Add runtime classpath normalization for java/lang/invoke/** in JdkImageWorkaround.

We’ve observed persistent differences on JavaCompile inputs in Android projects even after applying the Android Cache Fix Plugin. These differences stem from JDK image layout/path variations that surface under java/lang/invoke. See the prior discussion in issue #341 for background and examples.

My impression is that this approach might be a bit aggressive. Should we instead do the inverse, where the default behavior is to not apply the normalization?

@cdsap cdsap marked this pull request as ready for review September 17, 2025 17:47
@cdsap cdsap requested a review from a team September 17, 2025 17:47
@clayburn
Copy link
Member

My impression is that this approach might be a bit aggressive. Should we instead do the inverse, where the default behavior is to not apply the normalization?

If we decide that this is too aggressive to do by default, then my opinion would be that the normalization is so simple that there is not much value in having it in the plugin behind an opt-in flag. In that case, I would just recommend that we document it in the plugin README or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants