Skip to content

Bazel 5.0rc1 issue with linking Java 17 records with explicit constructors from a different package #14249

@eikemeier

Description

@eikemeier

Description of the problem / feature request:

Bazel 5.0rc1 has an issue with linking Java 17 records with explicit constructors from a different package.

Demonstration in eikemeier/bazel_jdk17.

Feature requests: what underlying problem are you trying to solve with this feature?

Compile a Java 17 program with bazel.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Check out https://github.com/eikemeier/bazel_jdk17, run bazelisk run //src/main/java/com/example.

What operating system are you running Bazel on?

macOS 10.15

What's the output of bazel info release?

release 5.0.0rc1

What's the output of git remote get-url origin ; git rev-parse main ; git rev-parse HEAD ?

ssh://[email protected]/eikemeier/bazel_jdk17.git
2c85df80a77291600764d3f193437dec07a41c51
2c85df80a77291600764d3f193437dec07a41c51

Have you found anything relevant by searching the web?

Not really, if you don't count the general Java 17-discussion.

Any other information, logs, or outputs that you want to share?

See the the README.

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)team-Rules-JavaIssues for Java rules

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions