Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rest-dev] [External] : Re: Jakarta REST work for EE 11
  • From: Santiago Pericasgeertsen <santiago.pericasgeertsen@xxxxxxxxxx>
  • Date: Fri, 7 Jul 2023 18:11:53 +0000
  • Accept-language: en-US
  • 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=eHIWj+vwbAw7P7jLG47zLfW/i+KPjLWSFGXhS50t9fA=; b=AoPhuAtdOMB9UiOmvId2kLUqAvBCMsC9VYJmjm2Vk4dSiVgWkJsl5Hy26H9JSpvIPRP6FbaKvftgJTXPqCKvOlgltMC0yluE52MKUIO7PC/tN9THhQo0KFUuKEWxTpcfaKoTF2HZB43FllS9Odz1Jyb2ajSksHJ+/dgWkqtqRX6cgdG/b/X6JeR03Y4dFjOb6ABIiscYfmcC0+/3ZWNUon22tWSFxUgmzgjgDaL/Xh0qsPz3yXtPExIMVPkX8l1eHtL50MoYMvL+UhUO4IES2joisiQ0Kxh/e215te/fJ72Oh5maKHT7/BARZIOEV75FNq7ueaH6N+v0Wpga2hWw+Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=llSxHt1DSE2fZ6VKoygMJF3OfAAabr3GdX//GbAREkuuwrXK4EFSZwNY4pxbKfcODkXdgjHgWu6n4c8KIbcNmOiUsDMtTq+tIzi6xBmB46kgMzMtL/gfvWxB2HPrE87op8TEvSdPJsc7yFCZQb/cOSIMoKr6hxW0Zyzax6piFvHWNYLVj1MyU5Cd+f7fEtfTHEkPDMJBRG4+M6O6avQdZZFTMZpgh8E/ygEPgIEQBLAakY/vB9X1jOWGOPzyQ9NjZMyVfTDs2vcA8biIlbxBphUZV6QgelZH13ReQ0NqE6/YfdsHTrkQkDhRKIrsULa6+LqquuD4g//yHEw3QqVkDw==
  • Delivered-to: rest-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/rest-dev/>
  • List-help: <mailto:rest-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/rest-dev>, <mailto:rest-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/rest-dev>, <mailto:rest-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHZrbinZQ9nE/U1sE+uMPgMFsvs0a+uoYUA
  • Thread-topic: [External] : Re: [rest-dev] Jakarta REST work for EE 11

Hi Matej,

 Thanks for the message.

Two notable things I saw in the PDF with highlights[1] are:
1) Injection into methods
 - this is not possible with CDI 4 apart from places such as initializers, producers, observers etc..
 - but we have a pending ticket for this very feature (for CDI 4.1), see https://github.com/jakartaee/cdi/pull/639
 - it'd be great if some of you could leave a feedback as to whether such API *and it's usage restrictions* meet your expectations; REST is one of the use cases that prompted this PR so getting feedback on whether it fits the needs is crucial

 Invocable methods are very much on our radar, and one of the reasons to pursue our 4.0 work. I’ve looked at an earlier version of that proposal and thought was good for us. As soon as the new implementation starts we should hopefully provide more feedback.


2) CDI requires non-private no-args constructor for proxying but Weld having a workaround
 - This requirement is basically a JDK limitation allowing CDI to correctly instantiate a stateless client proxy
 - I would strongly urge you not to rely on impls having a workaround; there is nothing in the spec allowing that, in fact an impl using such workaround by default would *not* pass CDI TCKs!
 - Weld has that option but whether it will work in the future basically depends on whether JDK chooses to leave this backdoor open or not
 - other impls may have other means (such as ArC in Quarkus which are more foolproof but only work due to build time approach) and yet another impl may have nothing for it

 Roger.


Bunch of other changes are looking pretty good and I am glad to see that REST is finally getting more CDI-friendly :)

 Indeed.

By the way, if you have any CDI questions related to these changes, don't hesitate to reach out to the CDI mailing list[2]; I am sure some of us will be around to answer.

 Perfect.

— Santiago


Back to the top