[
https://issues.apache.org/jira/browse/WW-5600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart updated WW-5600:
------------------------------
Description:
Remove deprecated interfaces since 7.2.0:
- TypeConverter
- NullHandler
- StrutsTypeConverter
was:
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
> Remove deprecated OgnlContext related Map-based interfaces
> ----------------------------------------------------------
>
> Key: WW-5600
> URL: https://issues.apache.org/jira/browse/WW-5600
> Project: Struts 2
> Issue Type: Improvement
> Components: Core
> Reporter: Lukasz Lenart
> Assignee: Lukasz Lenart
> Priority: Major
> Fix For: 8.0.0
>
>
> Remove deprecated interfaces since 7.2.0:
> - TypeConverter
> - NullHandler
> - StrutsTypeConverter
--
This message was sent by Atlassian Jira
(v8.20.10#820010)