You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2025/12/21 10:55:00 UTC
[jira] [Created] (WW-5600) Remove deprecated OgnlContext related Map-based interfaces
Lukasz Lenart created WW-5600:
---------------------------------
Summary: Remove deprecated OgnlContext related Map-based interfaces
Key: WW-5600
URL: https://issues.apache.org/jira/browse/WW-5600
Project: Struts 2
Issue Type: New Feature
Components: Core
Reporter: Lukasz Lenart
Assignee: Lukasz Lenart
Fix For: 7.2.0
Add new interfaces with OgnlContext parameter and deprecate existing Map-based interfaces to complete OGNL 3.4.8 migration.
h3. Background
PR [#1405|https://github.com/apache/struts/pull/1405] upgraded to OGNL 3.4.8 using wrapper classes to bridge the API gap. The internal Struts interfaces (TypeConverter, NullHandler, StrutsTypeConverter) still use Map<String, Object> context for backward compatibility. A deprecation path should be introduced for a clean migration.
h3. Scope
New interfaces to create:
- OgnlTypeConverter - with OgnlContext context parameter
- OgnlNullHandler - with OgnlContext context parameter
- OgnlStrutsTypeConverter - new base class for user converters
Existing to deprecate (7.2.0, remove in 8.0.0):
- TypeConverter
- NullHandler
- StrutsTypeConverter
Wrapper classes to update:
- OgnlTypeConverterWrapper - support both old/new interfaces
- OgnlNullHandlerWrapper - support both old/new interfaces
h3. Acceptance Criteria
- New interfaces created with @since tags
- Old interfaces deprecated with migration instructions in Javadoc
- Wrapper classes support both interfaces during transition
- Migration guide documentation added
- Showcase examples updated to demonstrate new pattern
--
This message was sent by Atlassian Jira
(v8.20.10#820010)