Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361056

Summary: fn:abs - typeError on sequence
Product: [WebTools] WTP Source Editing Reporter: Lukasz Wycisk <lukasz>
Component: wst.xpathAssignee: Jesper Moller <jesper>
Status: RESOLVED FIXED QA Contact: Jesper Moller <jesper>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
testcase patch and processor patch
none
processor patch none

Description Lukasz Wycisk CLA 2011-10-15 10:22:14 EDT
Created attachment 205253 [details]
testcase patch and processor patch

1. FnAbs: http://www.w3.org/TR/xquery-operators/#func-abs

According to http://www.w3.org/TR/xpath20/#id-function-calls if sequence is expected (indicator *, +, or ?) the atomization of arguments should be applied. Now in case of node passed to method type error occur. However there is some support for atomization - FnDistinctValues was fixed lately. Test case:

TestBugs:testFunctionAtomization()

We think that in other numeric function similar errors can occur, suppose other tests should be added. Surprisingly there are no tests for that sort of situation in conformance suit (at least we haven’t found any).
Comment 1 Lukasz Wycisk CLA 2011-10-15 10:23:04 EDT
Created attachment 205254 [details]
processor patch
Comment 2 Jesper Moller CLA 2011-10-30 20:04:54 EDT
Patch looks good ... Reviewing and testing against HEAD and maintenance branches!
Comment 3 Jesper Moller CLA 2011-11-26 06:21:17 EST
The patch contained both the QName fix and the fb:abs part, but I separated the relevant one out.
Applied to HEAD, next up: 3.3.x branch.
Comment 4 Jesper Moller CLA 2011-12-13 18:55:06 EST
Committed to the 3.3 service branch