You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test target toolchain updates resolve the following errors under
Bazel 6.5.0:
```txt
$ bazel build //{src,jmh,test,third_party,scala_proto}/...
[ ...snip... ]
ERROR: test/src/main/resources/java_sources/BUILD:11:14:
Building test/src/main/resources/java_sources/CompiledWithJava11_java.jar
(1 source file) failed: Worker process did not return a WorkResponse:
---8<---8<--- Start of log, file at .../bazel-workers/multiplex-worker-33-Javac.log ---8<---8<---
Error thrown by worker thread, shutting down worker.
java.lang.UnsupportedClassVersionError:
com/google/errorprone/ErrorProneError has been compiled by a more
recent version of the Java Runtime (class file version 61.0), this
version of the Java Runtime only recognizes class file versions up to
55.0
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[ ...snip... ]
ERROR: test/src/main/resources/java_sources/BUILD:5:14:
Building test/src/main/resources/java_sources/CompiledWithJava8_java.jar
(1 source file) failed: Worker process did not return a WorkResponse:
---8<---8<--- Start of log, file at .../bazel-workers/multiplex-worker-33-Javac.log ---8<---8<---
Error thrown by worker thread, shutting down worker.
java.lang.UnsupportedClassVersionError:
com/google/errorprone/ErrorProneError has been compiled by a more
recent version of the Java Runtime (class file version 61.0), this
version of the Java Runtime only recognizes class file versions up to
55.0
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[ ...snip... ]
```
Bazel 6.5.0 now breaks with the expected error, fixed by:
- bazelbuild/rules_java@30ecf3f
- `rules_java` 7.10.0
```txt
$ bazel build //{src,jmh,test,third_party,scala_proto}/...
ERROR:
.../external/rules_java/toolchains/java_toolchain_alias.bzl:83:34:
Use of Starlark transition without allowlist attribute
'_allowlist_function_transition'. See Starlark transitions
documentation for details and usage:
@rules_java//toolchains:java_toolchain_alias.bzl NORMAL
ERROR: test/aspect/BUILD:67:26:
While resolving toolchains for target
//test/aspect:javainfo_from_aspect_test:
invalid registered toolchain '//toolchains:all':
while parsing '//toolchains:all':
error loading package '@rules_java//toolchains':
initialization of module 'toolchains/java_toolchain_alias.bzl' failed
```
Bazel 7.4.1 builds, and Bazel 8.0.0rc6 and 8.0.0rc7 fail as described in
the previous commit.
0 commit comments