Skip to content

Update forbiddenapis to v2.7 #47969

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

Merged
merged 1 commit into from
Oct 15, 2019

Conversation

uschindler
Copy link
Contributor

@uschindler uschindler commented Oct 12, 2019

This PR just updates forbiddenapis to 2.7. This new version supports 12 and Java 13.

Features:

  • Java 12 signatures
  • Java 13 signatures
  • allows usage of FileReader and FileWriter since Java 11 (new constructor with charset available)

I commented the code about maximum runtime java version, as Gradle currently only supports Java 12, so forbiddenapis is always able to apply signatures.

Nevertheless, I don't understand the logic here. targetVersion should be identical to the targetVersion used during compile (Java 11), it makes no sense to use a newer version as this makes builds not reproducible. But this is a different issue, so somebody should explain to me why this is done. The correct way is to set forbidden.targetCompatiblity := javac.targetCompatibility

@dnhatn dnhatn added the :Delivery/Build Build or test infrastructure label Oct 13, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

@dnhatn
Copy link
Member

dnhatn commented Oct 13, 2019

@elasticmachine test this please

Copy link
Contributor

@alpar-t alpar-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @uschindler I'we been meaning to check on this for some time now.

@alpar-t alpar-t merged commit f183ac1 into elastic:master Oct 15, 2019
alpar-t pushed a commit that referenced this pull request Oct 15, 2019
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v7.5.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants