Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361804 - StaticContextAdapter returns mock function when cannot found proper function
Summary: StaticContextAdapter returns mock function when cannot found proper function
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xpath (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jesper Moller CLA
QA Contact: Jesper Moller CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-24 09:41 EDT by Lukasz Wycisk CLA
Modified: 2011-11-01 19:42 EDT (History)
0 users

See Also:


Attachments
Patch (2.01 KB, text/plain)
2011-10-24 09:41 EDT, Lukasz Wycisk CLA
no flags Details
testcase (2.35 KB, text/plain)
2011-10-24 09:42 EDT, Lukasz Wycisk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukasz Wycisk CLA 2011-10-24 09:41:40 EDT
10. StaticContextAdapter returns mock function when cannot found proper function. It can cause some hard-to-solve problems when empty values are returned with no reason. Also wrong is statement causes not to found function for DefalutStaticContext. Test:
StaticContextAdapterTest:testFunctionCall()
Comment 1 Lukasz Wycisk CLA 2011-10-24 09:41:54 EDT
Created attachment 205818 [details]
Patch
Comment 2 Lukasz Wycisk CLA 2011-10-24 09:42:13 EDT
Created attachment 205819 [details]
testcase
Comment 3 Jesper Moller CLA 2011-10-30 20:04:52 EDT
Patch looks good ... Reviewing and testing against HEAD and maintenance branches!
Comment 4 Jesper Moller CLA 2011-11-01 19:41:58 EDT
Patch applied to HEAD and 3.3 maintenance.

Thank you for the fixes!