Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1998

JcrValue#equals should support URI properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.4.0.Final
    • 3.3.x-prod-ip6.0
    • JCR
    • None

    Description

      Code like this:

       
      Value v = valueFactory.createValue("some-uri", PropertyType.URI);
      v.equals(someOtherValue);
      

      Fails with this error:

      org.modeshape.common.SystemFailureException: Invalid property type: 11
      at org.modeshape.jcr.JcrValue.equals(JcrValue.java:264) ~[modeshape-jcr-3.3.0.Final.jar:3.3.0.Final]

      It looks like JcrValue#equals does not support URI PropertyTypes.

      Attachments

        Activity

          People

            rhauch Randall Hauch (Inactive)
            cbeer_jira Chris Beer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: