struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STR-3178) Empty cache of messages not created by ActionContext
Date Mon, 05 Jan 2009 05:22:37 GMT

     [ https://issues.apache.org/struts/browse/STR-3178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul Benedict updated STR-3178:
-------------------------------

    Description: 
The JavaDoc for ActionContext states:

/**
 * <p> Retrieve messages from an internal cache, creating an empty cache
 * if one is not already present. </p>
 *
 * @return The ActionMessage cache for errors
 */
ActionMessages getMessages();

/**
 * <p> Retrieve error messages from an internal cache, creating an empty
 * cache if one is not already present. </p>
 *
 * @return The ActionMessage cache for errors
 */
ActionMessages getErrors();

Despite the clear contract stated, neither go to create the cache. They will return null if
not present in the context.

  was:
The JavaDoc for ActionContext states:

/**
 * <p> Retrieve messages from an internal cache, creating an empty cache
 * if one is not already present. </p>
 *
 * @return The ActionMessage cache for errors
 */
ActionMessages getMessages();

And also for Struts 1.4:
/**
 * <p> Retrieve error messages from an internal cache, creating an empty
 * cache if one is not already present. </p>
 *
 * @return The ActionMessage cache for errors
 */
ActionMessages getErrors();

Despite the clear contract stated, neither go to create the cache. They will return null if
not present in the context.


> Empty cache of messages not created by ActionContext
> ----------------------------------------------------
>
>                 Key: STR-3178
>                 URL: https://issues.apache.org/struts/browse/STR-3178
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.3.10
>            Reporter: Paul Benedict
>            Assignee: Paul Benedict
>            Priority: Minor
>             Fix For: 1.3.11, 1.4.0
>
>
> The JavaDoc for ActionContext states:
> /**
>  * <p> Retrieve messages from an internal cache, creating an empty cache
>  * if one is not already present. </p>
>  *
>  * @return The ActionMessage cache for errors
>  */
> ActionMessages getMessages();
> /**
>  * <p> Retrieve error messages from an internal cache, creating an empty
>  * cache if one is not already present. </p>
>  *
>  * @return The ActionMessage cache for errors
>  */
> ActionMessages getErrors();
> Despite the clear contract stated, neither go to create the cache. They will return null
if not present in the context.

-- 
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