During review of Valhalla lworld vs mainline patch, I noticed Valhalla has a 
fix for a mainline issue where there is no getter validation for 
ObjectMethods.bootstrap. We should upstream this fix to mainline to make lworld 
cleaner and make mainline more robust.

Before this fix, the invalid getters caused weird exceptions in method handle 
construction. Now they consistently throw IllegalArgumentException as specified.

-------------

Commit messages:
 - 8378792: ObjectMethods.bootstrap missing getter validation

Changes: https://git.openjdk.org/jdk/pull/29941/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29941&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8378792
  Stats: 68 lines in 2 files changed: 43 ins; 4 del; 21 mod
  Patch: https://git.openjdk.org/jdk/pull/29941.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29941/head:pull/29941

PR: https://git.openjdk.org/jdk/pull/29941

Reply via email to