struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert-Jan Westerhof (JIRA)" <>
Subject [jira] Created: (WW-2298) TextProvider in ActionSupport not available after Serialization
Date Tue, 06 Nov 2007 13:09:35 GMT
TextProvider in ActionSupport not available after Serialization

                 Key: WW-2298
             Project: Struts 2
          Issue Type: Bug
          Components: Core Actions
    Affects Versions: 2.0.9
         Environment: Struts 2.0.9
            Reporter: Robert-Jan Westerhof
            Priority: Minor

ActionSupport is TextAware, and has a TextProvider to support this functionality.
However, the TextProvider inside ActionSupport is transient and final (instantiated only once).

After Serialization of the action, the TextProvider is null, and there is no way to re-instantiate
(it just spawns NPEs after this).

Suggested patch: 
remove final modifier from TextProvider field, and add a private getTextProvider() method
performs null-check / lazy instantiation via the factory.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message