RFR(S): 8062543: Replace uses of MethodHandleImpl.castReference with Class.cast

Michael Haupt michael.haupt at oracle.com
Wed Jul 15 08:23:41 UTC 2015

Dear all,

please review and sponsor this change.
RFE: https://bugs.openjdk.java.net/browse/JDK-8062543
Webrev: http://cr.openjdk.java.net/~mhaupt/8062543/webrev.00/

The change removes the no longer needed MethodHandleImpl.castReference method. Its uses are replaced with Class.cast.

Tested with:
* jtreg (java.lang.invoke, java.util.stream)
* JPRT (hotspot and jdk_lang test sets)
* UTE (vm.quick-pcl.testlist, vm.defmeth.testlist)




Dr. Michael Haupt | Principal Member of Technical Staff
Phone: +49 331 200 7277 | Fax: +49 331 200 7561
Oracle Java Platform Group | LangTools Team | Nashorn
Oracle Deutschland B.V. & Co. KG, Schiffbauergasse 14 | 14467 Potsdam, Germany
 <http://www.oracle.com/commitment>	Oracle is committed to developing practices and products that help protect the environment

More information about the core-libs-dev mailing list