-
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
8260517: implement Sealed Classes as a standard feature in Java #3526
8260517: implement Sealed Classes as a standard feature in Java #3526
Conversation
👋 Welcome back vromero! A progress list of the required criteria for merging this PR into |
@vicente-romero-oracle 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
|
/csr |
@vicente-romero-oracle this pull request will not be integrated until the CSR request JDK-8265090 for issue JDK-8260517 has been approved. |
/contributor add Harold Seigel hseigel@openjdk.org |
@vicente-romero-oracle Could not parse
|
@vicente-romero-oracle Could not parse
|
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.
Hi Vicente,
Hotspot and hotspot tests all look fine. One query: why was this test removed?
test/hotspot/jtreg/runtime/sealedClasses/AbstractSealedTest.java
is that functionality tested elsewhere? (The other deleted test seemed obviously trivial.)
Thanks,
David
@@ -3919,8 +3913,8 @@ void ClassFileParser::parse_classfile_attributes(const ClassFileStream* const cf | |||
parsed_record_attribute = true; | |||
record_attribute_start = cfs->current(); | |||
record_attribute_length = attribute_length; | |||
} else if (tag == vmSymbols::tag_permitted_subclasses()) { | |||
if (supports_sealed_types()) { | |||
} else if (_major_version >= JAVA_17_VERSION) { |
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.
Can you update the comment at L3932 to say JAVA_17_VERSION please.
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.
sure
@@ -341,9 +341,6 @@ class ClassFileParser { | |||
const u1* const record_attribute_start, | |||
TRAPS); | |||
|
|||
bool supports_sealed_types(); | |||
bool supports_records(); |
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.
Good catch!
Hi David, thanks for your comments, yes regarding |
/contributor add Harold Seigel hseigel@openjdk.org |
@vicente-romero-oracle |
@vicente-romero-oracle |
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.
Compiler changes look good (I have not checked SymbolGenerator).
Why were some tests removed?
thanks for the review. The removed tests were already covered in langtools regression tests, so I only removed duplicated tests |
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.
javac changes look good to me.
@vicente-romero-oracle 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
/integrate |
@vicente-romero-oracle Since your change was applied there have been 3 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 0fa9223. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Please review this PR that intents to make sealed classes a final feature in Java. This PR contains compiler and VM changes. In line with similar PRs, which has made preview features final, this one is mostly removing preview related comments from APIs plus options in test cases. Please also review the related CSR
Thanks
note: this PR is related to PR-3528 and must be integrated after it.
Progress
Issue
Reviewers
Contributors
<hseigel@openjdk.org>
<vromero@openjdk.org>
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3526/head:pull/3526
$ git checkout pull/3526
Update a local copy of the PR:
$ git checkout pull/3526
$ git pull https://git.openjdk.java.net/jdk pull/3526/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3526
View PR using the GUI difftool:
$ git pr show -t 3526
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3526.diff