Anonymity and observability of unnamed classes (JEP 445)
forax at univ-mlv.fr
forax at univ-mlv.fr
Sun May 7 11:15:31 UTC 2023
----- Original Message -----
> From: "attila kelemen85" <attila.kelemen85 at gmail.com>
> To: "Remi Forax" <forax at univ-mlv.fr>
> Cc: "jdk-dev" <jdk-dev at openjdk.org>
> Sent: Sunday, May 7, 2023 11:11:58 AM
> Subject: Re: Anonymity and observability of unnamed classes (JEP 445)
>> If you want applications and jars, i think you are not
>> "programming-in-the-small" as the JEP call it.
>> As you notice, unnamed classes are not very suitable for what you want.
>
> Maybe, but in some cases I might need that, if I'm indirectly calling
> `java`, and need the jar. What I was considering is that I could have
> used this for Apache Spark to create a script that packages this
> simplified Java file, and then I could use this script to start these
> unnamed classes, which could be very small.
As i said, once you have compiled the file, you get a class and you can use it the way you want.
regards,
Rémi
More information about the jdk-dev
mailing list