-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 27
-
Component/s: core-libs
-
master
The ObjectMethods.bootstrap method does not properly validate the getter method handles supplied by the users. As a result, a user can supply a method handle that:
1. Has more arguments than the receiver argument
2. Has a wrong receiver argument
3. Returns void
And this method runs into weird exceptions.
Per the API spec, such bad arguments should be checked and result in IllegalArgumentException.
1. Has more arguments than the receiver argument
2. Has a wrong receiver argument
3. Returns void
And this method runs into weird exceptions.
Per the API spec, such bad arguments should be checked and result in IllegalArgumentException.
- csr for
-
JDK-8378794 ObjectMethods.bootstrap missing getter validation
-
- Closed
-
- relates to
-
JDK-8378796 java.lang.runtime bootstrap methods missing lookup validation
-
- Open
-
-
JDK-8271556 [lworld] java.lang.BootstrapMethodError in .equals() for primitive record
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/1fb608e1
-
Review(master)
openjdk/jdk/29941