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` for both array classes (public) and Object (inherited protected) correctly, and restores the old MethodHandlesGeneralTest from [JDK-8001105](https://bugs.openjdk.org/browse/JDK-8001105) which ensures correctness for publicLookup (which is already correct).
------------- Commit messages: - 8299505: findVirtual on array classes incorrectly restricts the receiver type Changes: https://git.openjdk.org/jdk/pull/13855/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13855&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8299505 Stats: 90 lines in 3 files changed: 74 ins; 9 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/13855.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/13855/head:pull/13855 PR: https://git.openjdk.org/jdk/pull/13855