Skip to content
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

Diagnose incompatible Java system classpaths #19547

Closed
wants to merge 1 commit into from

Commits on Oct 5, 2023

  1. Diagnose incompatible Java system classpaths

    When the Java system classpath extracted from the target Java runtime
    is more recent than the Java runtime used for Java compilation,
    JavaBuilder now emits a `[BazelJavaConfiguration]` diagnostic with
    actionable information instead of a bunch of "bad class file" errors
    on `module-info` files.
    
    Example:
    ```
    error: [BazelJavaConfiguration] The Java 17 runtime used to run javac is not recent enough to compile for the Java 20 runtime in external/remotejdk20_linux. Either register a Java toolchain with a newer java_runtime or specify a lower --java_runtime_version.
    ```
    fmeum committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    6273cd5 View commit details
    Browse the repository at this point in the history