[
https://issues.apache.org/jira/browse/WW-5599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart reassigned WW-5599:
---------------------------------
Assignee: Lukasz Lenart
> Add new interfaces with OgnlContext parameter and deprecate existing
> Map-based interfaces to complete OGNL 3.4.8 migration
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: WW-5599
> URL: https://issues.apache.org/jira/browse/WW-5599
> Project: Struts 2
> Issue Type: New Feature
> Components: Core
> Reporter: Lukasz Lenart
> Assignee: Lukasz Lenart
> Priority: Major
> 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)