replacements for Unsafe

Jochen Theodorou blackdrag at gmx.org
Wed Apr 29 11:58:05 UTC 2020


On 29.04.20 13:39, Kasper Nielsen wrote:
> Hi Jochen,
>
> Is there anything stopping you for doing something like:
>
> try {
>      Class.forName(innerClassName, true, initalizeClass.getClassLoader());
> } catch (ClassNotFoundException e) {
>      throw new ExceptionInInitializerError(e); // Should never happen
> }

possibly the security manager, but it should be no real problem... and I
thought I
I tried that... looks like I did not.

Thanks, works for me!

bye Jochen



More information about the jigsaw-dev mailing list