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

THRIFT-5274: Enforce Java 8 compatibility #2325

Closed
wants to merge 1 commit into from

Conversation

ctubbsii
Copy link
Member

@ctubbsii ctubbsii commented Feb 4, 2021

  • Enforce Java 8 compatibility using the new --release flag introduced
    in JDK9, so that all generated bytecode follows Java 8 strict
    compatibility, even when building with newer JDK versions (9 or later)
    (this fixes NoSuchMethodError with ByteBuffer, and other potential
    incompatibilities in bytecode generation that would make the code
    unable to run on a Java 8 JRE)
  • Also strictly enforce the JDK version used to build the project by
    ensuring it is at least version 1.8, and will fail fast when building
    the Java libraries if this condition is not met.
  • Did you create an Apache Jira ticket? (not required for trivial changes)
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
  • If your change does not involve any code, include [skip ci] anywhere in the commit message to free up build resources.

* Enforce Java 8 compatibility using the new `--release` flag introduced
  in JDK9, so that all generated bytecode follows Java 8 strict
  compatibility, even when building with newer JDK versions (9 or later)
  (this fixes NoSuchMethodError with ByteBuffer, and other potential
  incompatibilities in bytecode generation that would make the code
  unable to run on a Java 8 JRE)
* Also strictly enforce the JDK version used to build the project by
  ensuring it is at least version 1.8, and will fail fast when building
  the Java libraries if this condition is not met.
@emmenlau
Copy link
Member

emmenlau commented Feb 4, 2021

LGTM.

@Jens-G Jens-G closed this in ebfa771 Feb 4, 2021
@ctubbsii ctubbsii deleted the fix-THRIFT-5274 branch February 5, 2021 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants