The access hack for array class clone is only applied to `checkAccess` but
missing before call to `restrictProtectedReceiver`, causing the array receiver
type to be incorrectly replaced by the lookupClass type. This patch fixes that
and adds a test to ensure an original lookup resolves `clone` f
On Sat, 6 May 2023 18:15:56 GMT, Chen Liang wrote:
> The access hack for array class clone is only applied to `checkAccess` but
> missing before call to `restrictProtectedReceiver`, causing the array
> receiver type to be incorrectly replaced by the lookupClass type. This patch
> fixes that an
On Tue, 30 May 2023 23:38:16 GMT, Mandy Chung wrote:
>> The access hack for array class clone is only applied to `checkAccess` but
>> missing before call to `restrictProtectedReceiver`, causing the array
>> receiver type to be incorrectly replaced by the lookupClass type. This patch
>> fixes t
On Tue, 30 May 2023 23:39:52 GMT, Mandy Chung wrote:
>> test/jdk/java/lang/invoke/findVirtual/FindVirtualArrayCloneTest.java line 28:
>>
>>> 26: * @bug 8299505
>>> 27: * @run junit FindVirtualArrayCloneTest
>>> 28: * @summary Ensures Arrays' clone doesn't have incorrect receiver type
>>> bou
> The access hack for array class clone is only applied to `checkAccess` but
> missing before call to `restrictProtectedReceiver`, causing the array
> receiver type to be incorrectly replaced by the lookupClass type. This patch
> fixes that and adds a test to ensure an original lookup resolves `
On Wed, 31 May 2023 01:40:22 GMT, Chen Liang wrote:
>> The access hack for array class clone is only applied to `checkAccess` but
>> missing before call to `restrictProtectedReceiver`, causing the array
>> receiver type to be incorrectly replaced by the lookupClass type. This patch
>> fixes th
On Wed, 31 May 2023 01:42:17 GMT, Mandy Chung wrote:
>> Chen Liang has updated the pull request with a new target base due to a
>> merge or a rebase. The incremental webrev excludes the unrelated changes
>> brought in by the merge/rebase. The pull request contains three additional
>> commits s
On Wed, 31 May 2023 03:43:25 GMT, Chen Liang wrote:
>> test/jdk/java/lang/invoke/findVirtual/FindVirtualArrayCloneTest.java line 70:
>>
>>> 68: var cloneMh = MethodHandles.lookup()
>>> 69: .findVirtual(String[].class, "clone",
>>> MethodType.methodType(Object.class));
>>
> The access hack for array class clone is only applied to `checkAccess` but
> missing before call to `restrictProtectedReceiver`, causing the array
> receiver type to be incorrectly replaced by the lookupClass type. This patch
> fixes that and adds a test to ensure an original lookup resolves `