Switch statement in source results in type$1.class being generated?

forax at univ-mlv.fr forax at univ-mlv.fr
Fri Jul 12 18:02:14 UTC 2019


----- Mail original -----
> De: "Maurizio Cimadamore" <maurizio.cimadamore at oracle.com>
> À: "Remi Forax" <forax at univ-mlv.fr>, "Dávid Karnok" <akarnokd at gmail.com>
> Cc: "compiler-dev" <compiler-dev at openjdk.java.net>
> Envoyé: Vendredi 12 Juillet 2019 19:54:51
> Objet: Re: Switch statement in source results in type$1.class being generated?

> On 12/07/2019 18:52, Remi Forax wrote:
>> why not using ASM [1] instead of rolling your own code ?
> 
> This is also a fine alternative.
> 
> Another alternative would be to try to load the class with Class.forName
> and check the flags there.

using the Class.forName with 3 arguments to avoid nasty side effects due to the class being initialized. 

> 
> Maurizio

Rémi


More information about the compiler-dev mailing list