Building a project with Java record types fails with error: unexpected identifier 'record'
#13924
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-Java
Issues for Java rules
Description of the problem / feature request:
Building a project with Java record types fails with
error: unexpected identifier 'record'
if a target depends on the target with record types. That is, if consumer depends on records then the build fails, however, if the dependency is removed then the build succeeds.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
A project demonstrating the build failure is available: https://github.com/neilg/bazel-records
The main branch fails to build, the working branch builds.
What operating system are you running Bazel on?
Linux pinot 5.13.13-arch1-1 #1 SMP PREEMPT Thu, 26 Aug 2021 19:14:36 +0000 x86_64 GNU/Linux
What's the output of
bazel info release
?release 5.0.0-pre.20210824.2
If
bazel info release
returns "development 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
?n/a
Have you found anything relevant by searching the web?
Nothing in any of these places.
Any other information, logs, or outputs that you want to share?
No
The text was updated successfully, but these errors were encountered: