-
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
strict java deps fails with local_java_repository #17877
Comments
Can you try using a newer JDK 11 version? Strict Java deps depends on some javac changes that are only available in relatively recent JDK 11 update releases |
Do you have a minimum version required, or the list of features required?
Thanks
…On Thu, Mar 30, 2023, 02:48 Liam Miller-Cushon ***@***.***> wrote:
/mnt/scratch/lmax.cache/jdk11/11.0.10_9-2
Can you try using a newer JDK 11 version? Strict Java deps depends on some
javac changes that are only available in relatively recent JDK 11 update
releases
—
Reply to this email directly, view it on GitHub
<#17877 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIWZEBZ2MI3L2FFFUSSEQ3W6Q4TPANCNFSM6AAAAAAWF7A3TI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
JDK 11.0.15 or newer, the history is in #14533 |
Interestingly, updating just the JDK to 11.0.17+8 now produces an ErrorProne class not found error even though we're configured with the vanilla java builder.
The [ELIDED] enum is very simple and does not include any reference to errorprone. My hunch is that this is due to our quirky definition of the JDK with:
|
Going back to |
Description of the bug:
When using a
local_java_repository
strict java dependency checking flags all dependencies as transient and fails.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
https://github.com/nickbreen/bz-java-import
Output:
Which operating system are you running Bazel on?
Fedora 37
What is the output of
bazel info release
?release 6.0.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.N/A
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Have you found anything relevant by searching the web?
Nothing that appears relevant.
Any other information, logs, or outputs that you want to share?
--experimental_strict_java_deps=warn
still finds and warns about the bogus failures.I had initially thought it was a problem with
java_import
but when building up the test-case it also presented with a normaljava_library
.The text was updated successfully, but these errors were encountered: