-
Notifications
You must be signed in to change notification settings - Fork 6.1k
4517644: Core reflection setter type conversion spec bugs #28029
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
base: master
Are you sure you want to change the base?
Conversation
…ref type mismatch
|
👋 Welcome back liach! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
Webrevs
|
|
The class description allows for widening but specifies IAE if a narrowing conversion is needed. Should we expand this sentence? I'm also wondering about identity conversions in description of each method as I don't know if this will be understand by readers without links. |
|
I think that paragraph most likely applies to the primitive accessors, because Object |
|
I have pushed a commit correcting the class description paragraph in question to apply to primitive get/set only, and listed it in the problem and solutions sections on this PR and the CSR. Please review again. |
Current Status
In core reflection, there are a few holes with the documentation on the type conversions performed on the different setters. They generally follow this process:
For each step, they can fail with IllegalArgumentException, which has been the long standing behavior.
Note that this process is more restrictive than the JLS 5.2 assignment context, which allows boxing conversions, while the primitive reflective setters consistently reject them.
Problems
There are some problems with current specs:
Solutions
Progress
Issues
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28029/head:pull/28029$ git checkout pull/28029Update a local copy of the PR:
$ git checkout pull/28029$ git pull https://git.openjdk.org/jdk.git pull/28029/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28029View PR using the GUI difftool:
$ git pr show -t 28029Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28029.diff
Using Webrev
Link to Webrev Comment