[MVT] value type and getClass()

forax at univ-mlv.fr forax at univ-mlv.fr
Sat Aug 5 06:55:59 UTC 2017



----- Mail original -----
> De: "Maurizio Cimadamore" <maurizio.cimadamore at oracle.com>
> À: "Remi Forax" <forax at univ-mlv.fr>, "valhalla-dev" <valhalla-dev at openjdk.java.net>
> Envoyé: Samedi 5 Août 2017 07:23:16
> Objet: Re: [MVT] value type and getClass()

> I'll have to try, but I don't think it will work w/o boxing (no methods
> on the value). That said, getClass() might be special enough that it
> might accidentally work. It will defo stop working once the verifier
> kicks in though.

getClass() on a value type should work without boxing given that the semantics is well defined and getClass() is not defined in term of bytecode so not need to box or to wait a type QObject;
(that said, i think i need getClass() on __Value :( )

Rémi 

> 
> In any case, thanks for pointing that out, I'll double check this.
> 
> Maurizio
> 
> 
> On 04/08/17 20:09, Remi Forax wrote:
>> Hi,
>> Does a getClass() on a value type works with the MVT ?
>>
> > Rémi



More information about the valhalla-dev mailing list