-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
JDK-8173605: Remove support for source and target 1.7 option in javac #10074
Conversation
…invoke/defineHiddenClass/PreviewHiddenClass.java.
👋 Welcome back darcy! A progress list of the required criteria for merging this PR into |
@jddarcy The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
Please also review the accompanying CSR: https://bugs.openjdk.org/browse/JDK-8293047 Note that the DEFAULT_METHODS enum constant is used indirectly by a test to force a class file's minor version bits to be set as if a preview feature were used. If some other idiom is available, the DEFAULT_METHOD constant could be removed. Tier 1 and tier 2 test results were clean with this changes. |
PS I'll run a copyright update script before any push. |
@@ -25,8 +25,7 @@ | |||
* @test | |||
* @bug 8009267 | |||
* @summary Verify uses of isAnnotationPresent compile under older source versions | |||
* @compile -source 1.7 -target 1.7 OldenCompilingWithDefaults.java | |||
* @compile OldenCompilingWithDefaults.java | |||
* @compile OldenCompilingWithDefaults.java |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I skimmed through the description of JDK-8009267 and I'm wondering if this test is of any value now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certainly less useful than it once was!
I can remove it in the next push.
the PR looks good to me. You have mentioned that further refactorings could be done later on, I agree but you are already removing a lot of code, although that could have been forced to make some tests pass. I would recommend removing some support for 7 at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
Thanks Vicente; I assigned
to you. |
@jddarcy This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 5 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit 2d18dda.
Your commit was automatically rebased without conflicts. |
Update to remove support for -source/-target/--release 7 from javac.
As seen in the PR, many test fails are affected. Further refactorings of javac's implementation that can be made from dropping 7 support are left as future work.
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10074/head:pull/10074
$ git checkout pull/10074
Update a local copy of the PR:
$ git checkout pull/10074
$ git pull https://git.openjdk.org/jdk pull/10074/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10074
View PR using the GUI difftool:
$ git pr show -t 10074
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10074.diff