Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4627

Struts2 JSON Plugin: messages in fieldsErrors are serialized twice since jdk1.7_80

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.3.16.1
    • 2.3.29
    • Plugin - JSON
    • None

    Description

      Using the Oracle JVM, since the jdk1.7_80, messages in fieldsErrors are serialized twice :

      {fieldErrors: {donneesGenerales.nom: ["Required value", "Required value"]}}
         fieldErrors: {donneesGenerales.nom: ["Required value", "Required value"]}
            donneesGenerales.nom: ["Required value", "Required value"]
               0: "Required value"
               1: "Required value"
      

      instead of :

      {fieldErrors: {donneesGenerales.nom: ["Required value"]}}
         fieldErrors: {donneesGenerales.nom: ["Required value"]}
            donneesGenerales.nom: ["Required value"]
               0: "Required value"
      

      This behaviour is not reproduced using the Oracle jdk1.7_79 and above.

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            UrielSarrazin Uriel Sarrazin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: