You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/10/27 13:26:00 UTC
[jira] [Created] (OFBIZ-13744) Remove the deprecated ApiContextListener.getApplicationCntx() and its static ServletContext
Mridul Pathak created OFBIZ-13744:
-------------------------------------
Summary: Remove the deprecated ApiContextListener.getApplicationCntx() and its static ServletContext
Key: OFBIZ-13744
URL: https://issues.apache.org/jira/browse/OFBIZ-13744
Project: OFBiz
Issue Type: Sub-task
Components: rest-api
Affects Versions: Upcoming Branch
Reporter: Mridul Pathak
Assignee: Mridul Pathak
OFBizOpenApiReader, OpenApiUtil and OFBizOpenApiReaderTest call the deprecated getApplicationCntx(), and the warnings are hidden by @SuppressWarnings("deprecation"). The method exposes a static, JVM-wide ServletContext. OpenApiResource now injects @Context ServletContext and passes the dispatcher to the reader through userDefinedOptions. OpenApiUtil.getAttributeSchema takes a Delegator argument. The method, its static field and the suppressions are removed.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)