This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2507 - Wrong error for CastAs180/213/217/218
Summary: Wrong error for CastAs180/213/217/218
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Joanne Tong
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-11 16:12 UTC by Alberto Massari
Modified: 2006-01-04 13:21 UTC (History)
0 users

See Also:


Attachments

Description Alberto Massari 2005-11-11 16:12:44 UTC
CastAs180, CastAs213, CastAs217 and CastAs218 try to convert INF or NaN floating
point values into decimal or integer types, and expect FORG0001 as an error.
But the spec have a specific error for this case, "If SV is one of the special
xs:float or xs:double values NaN, INF, or -INF, an error is raised
[err:FOCA0002]", so I think the catalog should use FOCA0002, or at least list it
as another possible error.
Comment 1 Joanne Tong 2005-12-05 17:29:03 UTC
Changed error code to FOCA0002 for CastAs180, CastAs213, CastAs217 and 
CastAs218.

thanks.