Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316055 - converter property cannot be set for MultiBinding due to Introspector odd behavior
Summary: converter property cannot be set for MultiBinding due to Introspector odd beh...
Status: NEW
Alias: None
Product: XWT
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-07 16:32 EDT by Mario Curcija CLA
Modified: 2013-01-24 15:31 EST (History)
0 users

See Also:


Attachments
MultiBinding Tests patch showing "converter" not settable (4.04 KB, patch)
2010-06-07 16:34 EDT, Mario Curcija CLA
no flags Details | Diff
Simplest check for Multibinding's converter property (751 bytes, text/x-java)
2010-10-10 02:33 EDT, Mario Curcija CLA
no flags Details
Sun's Bug 6852569 adoped for MultiBinding's class hierarchy (1.24 KB, text/x-java)
2010-10-10 02:40 EDT, Mario Curcija CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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