[dna-issues] [JBoss JIRA] Commented: (DNA-344) JcrSession.getValueFactory.create(String, int) Does Not Fail Fast as per Specification

Randall Hauch (JIRA) jira-events at lists.jboss.org
Mon Apr 6 11:57:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/DNA-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12460772#action_12460772 ] 

Randall Hauch commented on DNA-344:
-----------------------------------

Applied the patch.  Yes, it probably is better to do an eager conversion.  Leaving this issue open for discussion or for another patch for the eager conversion.

> JcrSession.getValueFactory.create(String, int) Does Not Fail Fast as per Specification
> --------------------------------------------------------------------------------------
>
>                 Key: DNA-344
>                 URL: https://jira.jboss.org/jira/browse/DNA-344
>             Project: DNA
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: 0.4
>            Reporter: Brian Carothers
>         Attachments: DNA-344.patch
>
>
> Section 7.1.5.3 of the JCR 1.0.1 specification (pg 199) indicates that ValueFactory.create(String value, int propertyType) should throw a ValueFormatException if value cannot be converted to the correct type.  We currently defer all casts of the value and do not fail fast.
> This prevents one of the test cases in the L2 TCK test ValueFactoryTest from passing successfully.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the dna-issues mailing list