struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert-Jan Westerhof (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/struts/browse/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
(it just spawns NPEs after this).

Suggested patch: 
remove final modifier from TextProvider field, and add a private getTextProvider() method
that
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.


Mime
View raw message