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

[BEAM-10081] Fix ApiSurface to work with Java 11 #12227

Merged
merged 2 commits into from Jul 13, 2020

Conversation

kennknowles
Copy link
Member

@kennknowles kennknowles commented Jul 10, 2020

Long ago when we were on Guava 21.0 there was a bug in ClassPath but we could not upgrade Guava so we forked ClassPath from Guava's master to get the bugfix. Because of that, the reflection underlying ApiSurface was not upgraded with our vendored Guava and did not work with Java 11. Un-forking Classpath made it work and then adjusting to ignore some new javac-added annotations was simple.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Dataflow Flink Samza Spark Twister2
Go Build Status --- Build Status --- Build Status ---
Java Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status
Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
--- Build Status ---
XLang --- --- Build Status --- Build Status ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@kennknowles
Copy link
Member Author

R: @tysonjh

@kennknowles
Copy link
Member Author

It seems this one annotation is all over the place and removing it from consideration is legitimate. It is added by the platform pervasively.

@kennknowles kennknowles changed the title [BEAM-10081] Fix ApiSurface to work with Java 11 and adjust GCP Core ApiSurfaceTest for Java 11 [BEAM-10081] Fix ApiSurface to work with Java 11 Jul 10, 2020
Copy link
Contributor

@tysonjh tysonjh left a comment

Choose a reason for hiding this comment

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

Nice - I was not sure how to approach this. Thank you

@kennknowles kennknowles merged commit 1ad90b9 into apache:master Jul 13, 2020
@kennknowles kennknowles deleted the gcp-core-apisurface branch July 13, 2020 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants