Skip to content
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

Remove UnsafeAccess.getJavaVersion #5805

Merged
merged 1 commit into from
Jul 30, 2020
Merged

Remove UnsafeAccess.getJavaVersion #5805

merged 1 commit into from
Jul 30, 2020

Conversation

copybara-robolectric
Copy link
Contributor

@copybara-robolectric copybara-robolectric commented Jul 29, 2020

Use Utils.getJavaVersion instead. This introduces a dependency from
:utils:reflector to :utils, and removes the dependency between :utils and
:utils:reflector.

This also reinforces the need to have common Java version parsing logic (i.e.
#5577). Once we have that we can drop the :utils:reflector -> :utils
dependency.

@copybara-robolectric copybara-robolectric force-pushed the piper_323873990 branch 3 times, most recently from fc42ef3 to ca4094d Compare July 29, 2020 22:29
@hoisie hoisie changed the title Fix UnsafeAccess.getJavaVersion for versions >= 10 Remove UnsafeAccess.getJavaVersion Jul 29, 2020
@copybara-robolectric copybara-robolectric force-pushed the piper_323873990 branch 2 times, most recently from f5f26ea to 85ad610 Compare July 30, 2020 18:14
Use Utils.getJavaVersion instead. Although this does introduce an
awkward dependency from :utils:reflector to :utils, there is no dependency
cycle, as :utils does not depend on :utils:reflector.

This also reinforces the need to have common Java version parsing
logic (i.e. #5577). Once we have that we can drop the :utils:reflector -> :utils
dependency.

PiperOrigin-RevId: 323873990
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.

None yet

2 participants