New candidate JEP: 447: Statements before super()
Pedro Lamarão
pedro.lamarao at prodist.com.br
Wed Apr 19 14:57:03 UTC 2023
Thank to everyone involved for this effort!
In the first fail fast example, the presumably void return type is missing:
// This logic really belongs in the constructor
private static verifyPositive(long value) {
if (value <= 0)
throw new IllegalArgumentException("non-positive value");
}
Em qua., 19 de abr. de 2023 às 11:36, Mark Reinhold <
mark.reinhold at oracle.com> escreveu:
> https://openjdk.org/jeps/447
>
> Summary: In constructors in the Java programming language, allow
> statements that do not reference the instance being created to appear
> before this() or super().
>
> - Mark
--
Pedro Lamarão
https://www.prodist.com.br
Securing Critical Systems
Tel: +55 11 4380-6585
Antes de imprimir esta mensagem e seus anexos, certifique-se que seja
realmente necessário.
Proteger o meio ambiente é nosso dever.
Before printing this e-mail or attachments, be sure it is necessary.
It is in our hands to protect the environment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230419/5732912b/attachment.htm>
More information about the amber-dev
mailing list