<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>3715</bug_id>
          
          <creation_ts>2006-09-13 11:16:01 +0000</creation_ts>
          <short_desc>Lack of coverage for static typing feature</short_desc>
          <delta_ts>2008-05-16 07:42:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>1.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frans Englich">frans.englich</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11643</commentid>
    <comment_count>0</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-09-13 11:16:01 +0000</bug_when>
    <thetext>The XQTS lacks coverage in several known areas(and probably unknown too), and here is a known one which I haven&apos;t written tests for locally:

As of this writing there have been a lot of bugs reported on tests that aren&apos;t static typing safe. These tests haven&apos;t been reported previously despite static typing implementors have been reported other bugs, suggesting that their implementations aren&apos;t conformant is this area.

I believe an improvement for this lack of coverage is to find all reports kindly reported by tim@cbcl.co.uk and write static typing tests that are similar, but intentionally cases type errors.

So, this report can be addressed whenever a pickup-heat is done for XQTS, and new tests are added.

That implementors seem to implement static typing so widely, really makes me wonder how useful spec&apos;ing static typing is.

(Another area where XQTS could use stronger coverage is regular expressions.)


Frans</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11734</commentid>
    <comment_count>1</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-09-14 19:52:23 +0000</bug_when>
    <thetext>Such XQTS tests need to take into account possible Static Typing Extensions (http://www.w3.org/TR/xquery/#id-static-extensions). 
Consider for example http://www.w3.org/Bugs/Public/show_bug.cgi?id=3686. 
Implementing the Formal Semantics by the book makes the following expression fail: 
  fn:matches(xs:string(&quot;This is a characte&quot;),
             xs:string(&quot;This is a characte&quot;)) 
However, an implementation may infer statically that both arguments are guaranteed to be of type xs:string. As such a static typing implementation is not required to report a failure here. 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11770</commentid>
    <comment_count>2</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-09-15 09:21:22 +0000</bug_when>
    <thetext>Yes, forgot about that.
It really sucks(pardon my french) that static typing errors aren&apos;t deterministic. No interoperability here.

This could have been avoided by disallowing Static Typing Extensions that accept expressions which without the extension would yield a type error.


Frans</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12101</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-09-27 15:12:53 +0000</bug_when>
    <thetext>I&apos;m going to mark this as an enhancement and we can consider it after we publish XQTS 1.0.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12102</commentid>
    <comment_count>4</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-09-27 15:13:25 +0000</bug_when>
    <thetext>I&apos;m going to mark this as an enhancement and we can consider it after we publish XQTS 1.0.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20126</commentid>
    <comment_count>5</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2008-05-16 07:42:14 +0000</bug_when>
    <thetext>I&apos;m withdrawing this. We lack coverage in many areas, and at least I don&apos;t have the measures for fixing them. Maybe we&apos;ll stumble over more tests or methods to produce them.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>