W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2013

[Bug 21664] New: [XP30] Castable expresssion

From: <bugzilla@jessica.w3.org>
Date: Thu, 11 Apr 2013 07:47:08 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-21664-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21664

            Bug ID: 21664
           Summary: [XP30] Castable expresssion
    Classification: Unclassified
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XPath 3.0
          Assignee: jonathan.robie@gmail.com
          Reporter: tim@cbcl.co.uk
        QA Contact: public-qt-comments@w3.org

In XP20/XQ10:

The expression E castable as T returns true if the result of evaluating E can
be successfully cast into the target type T by using a cast expression;
otherwise it returns false. If evaluation of E fails with a dynamic error, the
castable expression as a whole fails. 

In XP30/XQ30:

"The expression E castable as T returns true if the result of evaluating E can
be successfully cast into the target type T by using a cast expression;
otherwise it returns false. If evaluation of E fails with a dynamic error, the
castable expression returns false."

This apparent change appears to be a mistake, since the resolution of Bug 4873
has not been applied to XP30/XQ30.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=4873

Note that the change logs also record this change:

In E castable as T, if E raises a dyanmic error, castable returns false, it
does not "fail". See 3.13.3 Castable.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 11 April 2013 07:48:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:52 UTC