W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2012

[Bug 18868] New: [QT3TS] try-catch-all-dynamic-errors-caught-1

From: <bugzilla@jessica.w3.org>
Date: Thu, 13 Sep 2012 14:11:48 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-18868-523@http.www.w3.org/Bugs/Public/>

           Summary: [QT3TS] try-catch-all-dynamic-errors-caught-1
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
        AssignedTo: oneil@saxonica.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org

I disagree with the expected result of the following test.

  <test-case name="try-catch-all-dynamic-errors-caught-1">
    <description>XPDY0002 must be caught.</description>
    <created by="Ghislain Fourny" on="2011-07-28"/>
    <environment ref="err"/>

    <test>try { . } catch err:XPDY0002 { "Context item not set." }</test>
      <assert-string-value>Context item not set.</assert-string-value>

I do not think that XPDY0002 should be caught here.

Recall that . is represented by the Formal Semantics as a variable called

Compare with variations on this test:

declare variable $x external;
try { $x } catch err:XPDY0002 { "External variable not set." }

declare variable $x := fn:error("err:XPDY0002");
try { $x } catch err:XPDY0002 { "External variable raised error." }

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 13 September 2012 14:11:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:39 UTC