Skip to content

Java protos are not JDK 1.7-compatible #2829

@cgrushko

Description

@cgrushko

Motivation: Using Java protos in Android.
http://stackoverflow.com/questions/43354237/how-can-you-get-1-7-compatible-output-for-a-java-proto-library

java_xxx_proto_library rules use flags from the (undocumented) java_toolchain.compatible_javacopts attribute.
In particular, it reads the "proto" key from that map.

As far as I can see, Bazel's default java_toolchain is [1], which does not have a compatible_javacopts attribute nor a "proto" key.

@cushon is my analysis correct? is this as easy to fix as adding an compatible_javacopts attribute?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions