Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 384488 - BeanUtility should support creating new instances of classes by enhanced reflection support
Summary: BeanUtility should support creating new instances of classes by enhanced refl...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 384479
  Show dependency tree
 
Reported: 2012-07-06 10:55 EDT by Andi Bur CLA
Modified: 2021-08-19 11:06 EDT (History)
1 user (show)

See Also:
andi.bur: juno+


Attachments
patch (26.73 KB, patch)
2012-07-06 11:20 EDT, Andi Bur CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andi Bur CLA 2012-07-06 10:55:21 EDT
Creating new instances of a class requires to find the best matching constructor. java.lang.Class#getConstructor requires to supply the an array with the exact types required by the resulting constructor. Hence additional effort is required to find the best matching constructor if the exact parameter types are not known at compile time. This should be done in the BeanUtility class.
Comment 1 Andi Bur CLA 2012-07-06 11:20:09 EDT
Created attachment 218396 [details]
patch
Comment 2 Andi Bur CLA 2012-07-06 11:20:48 EDT
applied patch on trunk (3.8.1)
Comment 3 Matthias Zimmermann CLA 2012-11-13 02:53:11 EST
shipped with scout juno sr1