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

Bug 316055

Summary: converter property cannot be set for MultiBinding due to Introspector odd behavior
Product: [Technology] XWT Reporter: Mario Curcija <mario.curcija>
Component: CoreAssignee: Project Inbox <e4.xwt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
MultiBinding Tests patch showing "converter" not settable
none
Simplest check for Multibinding's converter property
none
Sun's Bug 6852569 adoped for MultiBinding's class hierarchy none

Description Mario Curcija CLA 2010-06-07 16:32:21 EDT
Build Identifier: CVS-HEAD (last build 1.0M6)

The converter property of MultiBinding Instance cannot be set. Property "converter" was set (in .xwt) and setter method is never called. 

PropertyDescriptor in following method doesn't know about setterMethod for "converter":  
org.eclipse.e4.xwt.javabean.metadata.properties.BeanProperty.setValue(Object, Object)
Probably an Introspector has troubles finding it. 

Expected result: converter property is settable. 





Reproducible: Always

Steps to Reproduce:
Using CVS-HEAD. applying patch for xwt test multibinding package (will be attached): 

Basically it does following: 
- sets converter property for a MultiBinding element in .xwt
- checks that expected converter instance was used (fails)
Comment 1 Mario Curcija CLA 2010-06-07 16:34:33 EDT
Created attachment 171334 [details]
MultiBinding Tests patch showing "converter" not settable
Comment 2 Mario Curcija CLA 2010-10-10 02:33:06 EDT
Created attachment 180558 [details]
Simplest check for Multibinding's converter property

Sun's Inrospector implementation in 1.6.0_21 is never unable to find setter for converter property.  On the other hand gjc's (1.5.0) Introspector implementation does succeed (although not always :)
Comment 3 Mario Curcija CLA 2010-10-10 02:35:19 EDT
(In reply to comment #2)
> Sun's Inrospector implementation in 1.6.0_21 is never unable to find setter for
"always unable to find setter for"
Comment 4 Mario Curcija CLA 2010-10-10 02:40:47 EDT
Created attachment 180559 [details]
Sun's Bug 6852569 adoped for MultiBinding's class hierarchy

Reference to Sun's JDK Bug: 
Introspector.getBeanInfo ignores write method if read method is overridden
http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=e4671321ad8dd14a8ba92e190ca2e?bug_id=6852569