Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ca-dev] [External] : Notnull and Nullable annotations on the Jakarta Annotation spec

Thank you Lukas!
The annotation is not only for static analysis but also for runtime as stated here
https://github.com/eclipse-ee4j/common-annotations-api/blob/master/spec/src/main/asciidoc/spec.adoc#jakartaannotationnonnull
For the runtime bit, I think we need to ensure implementors implement this. Right?
Thanks
Emily

On Mon, Apr 25, 2022 at 12:33 PM Lukas Jungmann <lukas.jungmann@xxxxxxxxxx> wrote:
On 4/25/22 1:02 PM, Emily Jiang via ca-dev wrote:
> In Jakarta Common Annotations 2.1, the annotation @Notnull and @Nullable
> were added to the specification via the issue 90
> <https://urldefense.com/v3/__https://github.com/eclipse-ee4j/common-annotations-api/pull/90/files__;!!ACWV5N9M2RV99hQ!NpP1EQQdUk20hOCJBPJOkqQ0WzPCXRCKCInrRfXh_1lBuDSViSvWRWc0CWe_EmAEr73KmttuljI_pOuua3A$>.
>
>
> Normally for other annotations defined in Jakarta Common Annotations,
> the implementations were provided by other specifications.

I do not think the statement applies to @Generated (which is similar to
if not the same as javax.annotation.processing.Generated).
@Notnull/@Nullable are in the same group - they may be useful to static
analysis tools and to improve code readability

  For the above
> new annotations, does it mean the implementation for common annotations
> needs to provide the implementation as I was not sure which
> specifications pull in these annotations? Does anyone know where the
> TCKs are for validating the implementation?

AFAIK there is only signature test available in Jakarta Annotations
TCK[1]. Should your question be about ie @Priority - take the spec which
defines its usage and check its TCK (can be ie CDI, REST,..)

thanks,
--lukas

[1]:
https://download.eclipse.org/jakartaee/annotations/2.1/jakarta-annotations-tck-2.1.0.zip
>
> --
> Thanks
> Emily
>
>
> _______________________________________________
> ca-dev mailing list
> ca-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/ca-dev__;!!ACWV5N9M2RV99hQ!NpP1EQQdUk20hOCJBPJOkqQ0WzPCXRCKCInrRfXh_1lBuDSViSvWRWc0CWe_EmAEr73KmttuljI_XDZ3jww$

_______________________________________________
ca-dev mailing list
ca-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ca-dev


--
Thanks
Emily


Back to the top