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
  • From: Lukas Jungmann <lukas.jungmann@xxxxxxxxxx>
  • Date: Mon, 25 Apr 2022 13:33:20 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=I+mK4tt57kbavAaqIjJpsFqzEjBDqCyaRmRt8p/tQqY=; b=cG4RHT0xre+7OypMMupTqrNjyf8uoYH9Xufj9Mkv++6UK9FH1jy+XVfugdLkaB8EDEq7n7HWgZCbvrIqsW2bFfnxu+gmvbTu064KKkTMlxn6+jfOgW8TLtk7rR/YvcehilYQnRgpF5+QcEkf0PDdcB9vFDdXio4ScnlP6w2oJ0QK0VTDYw/n9dI1/c4C7iq5dEfGEDWq1PhgMJnyodGrXXcToPmR91pFamGaoWZWT2Mw10Jb3eQOptwSd0cdkYH1YqsRWWsteLQcf4ZeQ1T/u/X3Gv2bNnTRbzxZUHb1CWE6JjrTFISMVRhwhbd26hbo3oR3sLAjBoTUamCMShfo+w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dIPerwgosmqlLoj616d0s/tZNz+wLOp8oRR3lVD1gses3QG8RJ5E91WsyZJ1Ysn39GX1OptObzRVUzabdZyNvf+WFifNDauz+RhYRigRKqTXfq7GgMy+gaUvdoy/M4Ka40DN/0UDgrCyYT+N8Xx2H1er8myL6lsDTUNiBy+mHQSok4bb2fN52BEiJMwtwcYQ0ywZZYVUEykY0Z/lSZXOPyu/DSAYmiEt/hXiFEJ07i2oOzkQzRqrs8Q4dc/FQ+5J0yAeedSHS5P+egXcb0hBZaJltlkzJAeVQD85m7JzwmMFbuRHfGiADdU7iDbx4e3WIfC3RsnVHczumo2CqrEIpw==
  • Delivered-to: ca-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/ca-dev/>
  • List-help: <mailto:ca-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/ca-dev>, <mailto:ca-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/ca-dev>, <mailto:ca-dev-request@eclipse.org?subject=unsubscribe>
  • User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

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$



Back to the top