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

Bug 361804

Summary: StaticContextAdapter returns mock function when cannot found proper function
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
Patch
none
testcase none

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!