zentol opened a new pull request #17561: URL: https://github.com/apache/flink/pull/17561
Thee java11 profile currently targets Java 11. This was useful because we saw that doing so reveals additional issues that are not detected when building for Java 8. The end goal was to ensure a smooth transition once we switch. However, this has adverse effects on developer productivity. If you happen to switch between Java versions (for example, because of separate environments, or because certain features require Java 8), then you can easily run into UnsupportedVersionErrors when attempting to use Java 8 with Java 11 bytecode. IntelliJ also picks up on this and automatically sets the language level to 11, which means that it will readily allow you to use Java 11 exclusive APIs that will fail on CI later on. To remedy this PR splits the profile. The java11 profile pretty much stays as is, except that it is targeting java 8. The value proposition of this profile is being able to build Flink for Java 8 with Java 11. A new explicitly-opt-in java11-target profile then sets the target version to Java 11, which we use on CI. This profile ensures that we can readily switch to Java 11 as the target in the future. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
