Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-827

Velocity JSON tool serializer does not respect java.beans.Transient annotation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.1.1
    • Fix Version/s: 7.2-milestone-1, 7.1.2
    • Component/s: Velocity
    • Labels:
      None
    • Tests:
      Unit
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Jackson (which is what used the JSON tool) serialize an object based on Java bean specification but is not actually using Java bean which mean it does not take into account things it does not know like java.beans.Transient which has been introduced in Java 7 (Jackson is still based on Java 6). See https://github.com/FasterXML/jackson-databind/issues/857.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: