-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8337302: Undefined type variable results in null #20535
Conversation
👋 Welcome back winterhalter! A progress list of the required criteria for merging this PR into |
@raphw 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 480 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@liach) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
* a type variable is read where no declaration of this type variable | ||
* can be found. This exception differs from{@link ClassNotFoundException} | ||
* in that {@code ClassNotFoundException} is a checked exception, whereas | ||
* this exception is unchecked. | ||
* | ||
* <p>Note that this exception may be used when undefined type variables |
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.
Seems we can remove this note, now that we moved it to the last paragraph :)
test/jdk/java/lang/reflect/Generics/TestMissingTypeVariable.java
Outdated
Show resolved
Hide resolved
d9b6ccf
to
932dd9a
Compare
@raphw Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
I have filled in the CSR for you. |
test/jdk/java/lang/reflect/Generics/TestMissingTypeVariable.java
Outdated
Show resolved
Hide resolved
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.
Thanks for this patch!
@raphw Your patch is ready and you can integrate it with the |
@liach I forgot about this over the pending CSR, sorry. I added the code comment as requested to show of the generated class. Does this need another approval before I can run integrate? |
I think you have addressed the problems; we usually wait about 24 hours in case people are interested to review the latest push. |
/integrate |
/sponsor |
Going to push as commit 1d070a3.
Your commit was automatically rebased without conflicts. |
When a type uses a type variable without a declaration, no exception is thrown. This change triggers a
TypeNotFoundException
to be thrown.Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/20535/head:pull/20535
$ git checkout pull/20535
Update a local copy of the PR:
$ git checkout pull/20535
$ git pull https://git.openjdk.org/jdk.git pull/20535/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 20535
View PR using the GUI difftool:
$ git pr show -t 20535
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/20535.diff
Webrev
Link to Webrev Comment