Abacn opened a new pull request, #40595:
URL: https://github.com/apache/beam/pull/40595
- Replace `-source`/`-target` with `--release` as we no longer support Java8
(that did not recognize `--release`)
- Enable ErrorProne and CheckerFramework in Java21 when fork compiler
- Suppress `removal` in JmsIO
After #38729, JmsIO requires Java17+.
In Presubmit, we use Java21, and set `--release 17` for JmsIO.
In Nightly Release, we set Java version to 11 and use `-Pjava21Home=...`,
instructing jms component compiled with a forked compiler. JDK 21's javac is
invoked with `-source 17 -target 17` instead of `--release 17`, it compiles
against JDK 21's java.base system classes (where Object.finalize() has
forRemoval = true), triggering [removal].
<!--
Thank you for your contribution! Follow this checklist to help us
incorporate your contribution quickly and easily:
- [ ] If this contribution is large, please file an Apache [Individual
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
- [ ] Replace these instructions with a description of your change and why
you have made it.
- [ ] Mention the appropriate issue in your description (for example:
`addresses #123` or `fixes #456`).
- [ ] Update `CHANGES.md` with noteworthy changes.
See [CONTRIBUTING.md]() for more details.
-->
--
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]