-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Getting package sun.misc does not exist error when building android_binary with --experimental_desugar_java8_libs option #9910
Labels
Comments
Hi, desugaring sun.* classes isn't supported. Desugaring java 8 libs works with the classes located in the jar at this url in here: Line 109 in 602bb2e
namely:
|
We are seeing some similar issues when trying to desugar the kotlin coroutines jar: #13553 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the problem / feature request:
I'm building an android_binary with
--experimental_desugar_java8_libs
option. The library being build usessun.misc.unsafe
if it available in the platform, obviously this package not exists Android. My library has alternate path if this package does not exists. I'm using the option--noexperimental_check_desugar_deps
to by pass optionally available types, but it seems this option is not workingsun.misc.unsafe
type.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Create a android java binary with dependency on
sun.unsafe.misc
and try to build it with--experimental_desugar_java8_libs
What operating system are you running Bazel on?
What's the output of
bazel info release
?Have you found anything relevant by searching the web?
The text was updated successfully, but these errors were encountered: