Skip to content

Add new way for reflective access to static final fields in unit tests of instrumentation projects#297

Merged
mannodermaus merged 1 commit intomainfrom
reflect-tests-with-new-jdk
Apr 29, 2023
Merged

Add new way for reflective access to static final fields in unit tests of instrumentation projects#297
mannodermaus merged 1 commit intomainfrom
reflect-tests-with-new-jdk

Conversation

@mannodermaus
Copy link
Owner

The Field class no longer has a modifiers property, so removing the FINAL modifier doesn't work like it used to with Java 8. Utilize a solution from other libraries to work around the issue with com.misc.Unsafe, encapsulated in a non-Android reflection module

…s of instrumentation projects

The Field class no longer has a `modifiers` property, so removing the FINAL modifier
doesn't work like it used to with Java 8. Utilize a solution from other libraries
to work around the issue with `com.misc.Unsafe`, encapsulated in a non-Android reflection module
@mannodermaus mannodermaus self-assigned this Apr 29, 2023
@mannodermaus mannodermaus merged commit 486d154 into main Apr 29, 2023
@mannodermaus mannodermaus deleted the reflect-tests-with-new-jdk branch April 29, 2023 00:50
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.

1 participant