Sponsor Request: 8241100: Make Boolean, Character, Byte, and Short implement Constable

John Rose john.r.rose at oracle.com
Wed Mar 18 22:06:44 UTC 2020

On Mar 18, 2020, at 3:01 PM, John Rose <john.r.rose at oracle.com> wrote:
> explicitCastArguments

P.S.  That method has an intentionally scary name,
but behind the name, it’s just “asType, the JVM edition,
plus narrowing primitive conversions”.  The design
center for asType is safe and sane conversions as
allowed by variable assignment in Java, while the
other guy adds all the other conversions that might
be useful.  If you know statically what is the input
value type, as with BSMs working on CP data, then
“explicitCastArguments” is just as safe as “asType”
but it does more tricks for you.

More information about the core-libs-dev mailing list