Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-3178

Empty cache of messages not created by ActionContext

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.10
    • Fix Version/s: Future
    • Component/s: Core
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Assignee:
              pbenedict Paul Benedict
              Reporter:
              pbenedict Paul Benedict
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: