webdav-jaxrs
  1. webdav-jaxrs
  2. WEBDAV_JAXRS-8

Could not compare unmarshalled pseudo-enums LockScope and LockType. Always got a new instance instead of a singleton.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      8

      Description

      When unmarshalling LockScope or LockType, always a new instance is returned.
      This makes it impossible to compare with the public singletons, making the
      unmarshall objects unusable.

        Activity

        Hide
        mkarg added a comment -

        Fixed since 1.1.1 by turning LockScope and LockType (and Exclusive, Shared and
        Write) into pseudo-enums by applying a special JAXB'ed form of the singleton /
        typesafe enum pattern.

        Show
        mkarg added a comment - Fixed since 1.1.1 by turning LockScope and LockType (and Exclusive, Shared and Write) into pseudo-enums by applying a special JAXB'ed form of the singleton / typesafe enum pattern.

          People

          • Assignee:
            webdav-jaxrs-issues
            Reporter:
            mkarg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: