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

BinaryStoreValueFactory looses cause exception when throwing ValueFormatException(s)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.0.Beta4
    • 3.0.0.Beta3
    • None
    • None

    Description

      org.modeshape.jcr.value.binary.BinaryStoreValueFactory in

      215: public BinaryValue create(byte[] value) and
      229: public BinaryValue create(InputStream stream)

      are throwing ValueFormatException(Object value,PropertyType) but have the cause exception as the 1st parameter which should be the value.

      They should be including the cause exception as a third parameter to
      ValueFormatException(Object value,
      PropertyType targetType,Throwable cause)

      Not sure what you can pass as the value in this case though since it is a stream.

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            bwallis42_jira Brian Wallis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: