You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Kenny MacLeod (JIRA)" <ji...@apache.org> on 2006/06/26 17:35:29 UTC
[jira] Created: (BEANUTILS-242) Add general array type conversion
Add general array type conversion
---------------------------------
Key: BEANUTILS-242
URL: http://issues.apache.org/jira/browse/BEANUTILS-242
Project: Commons BeanUtils
Type: New Feature
Versions: 1.7.0 Release
Reporter: Kenny MacLeod
When using a method such as BeanUtils.copyProperty(), it would be good if it could automatically handle conversion between array types, rather than having to explicitly write an array converter for each target type.
For example, if I pass a String[] to BeanUtils to copy on to a property of type Integer[], then it would recognise the presense of an array, and then use the registered converters for the arrays' component types to decide how to map them together.
This would remove the need to essentially duplicate converters already written, just to add array support.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (BEANUTILS-242) Add general array type conversion
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/BEANUTILS-242?page=comments#action_12447218 ]
Niall Pemberton commented on BEANUTILS-242:
-------------------------------------------
I have just commited the generic array converter - also created a JIRA encompassing a whole load of Converter refactorings. See BEANUTILS-258
> Add general array type conversion
> ---------------------------------
>
> Key: BEANUTILS-242
> URL: http://issues.apache.org/jira/browse/BEANUTILS-242
> Project: Commons BeanUtils
> Issue Type: New Feature
> Affects Versions: 1.7.0
> Reporter: Kenny MacLeod
>
> When using a method such as BeanUtils.copyProperty(), it would be good if it could automatically handle conversion between array types, rather than having to explicitly write an array converter for each target type.
> For example, if I pass a String[] to BeanUtils to copy on to a property of type Integer[], then it would recognise the presense of an array, and then use the registered converters for the arrays' component types to decide how to map them together.
> This would remove the need to essentially duplicate converters already written, just to add array support.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Updated: (BEANUTILS-242) Add general array type conversion
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/BEANUTILS-242?page=all ]
Niall Pemberton updated BEANUTILS-242:
--------------------------------------
Component/s: Converters
> Add general array type conversion
> ---------------------------------
>
> Key: BEANUTILS-242
> URL: http://issues.apache.org/jira/browse/BEANUTILS-242
> Project: Commons BeanUtils
> Issue Type: New Feature
> Components: Converters
> Affects Versions: 1.7.0
> Reporter: Kenny MacLeod
>
> When using a method such as BeanUtils.copyProperty(), it would be good if it could automatically handle conversion between array types, rather than having to explicitly write an array converter for each target type.
> For example, if I pass a String[] to BeanUtils to copy on to a property of type Integer[], then it would recognise the presense of an array, and then use the registered converters for the arrays' component types to decide how to map them together.
> This would remove the need to essentially duplicate converters already written, just to add array support.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (BEANUTILS-242) Add general array type conversion
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/BEANUTILS-242?page=comments#action_12417832 ]
Niall Pemberton commented on BEANUTILS-242:
-------------------------------------------
I agree - I have something in-progress on this (wriiten, not yet tested)
> Add general array type conversion
> ---------------------------------
>
> Key: BEANUTILS-242
> URL: http://issues.apache.org/jira/browse/BEANUTILS-242
> Project: Commons BeanUtils
> Type: New Feature
> Versions: 1.7.0 Release
> Reporter: Kenny MacLeod
>
> When using a method such as BeanUtils.copyProperty(), it would be good if it could automatically handle conversion between array types, rather than having to explicitly write an array converter for each target type.
> For example, if I pass a String[] to BeanUtils to copy on to a property of type Integer[], then it would recognise the presense of an array, and then use the registered converters for the arrays' component types to decide how to map them together.
> This would remove the need to essentially duplicate converters already written, just to add array support.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Updated: (BEANUTILS-242) Add general array type conversion
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/BEANUTILS-242?page=all ]
Henri Yandell updated BEANUTILS-242:
------------------------------------
Fix Version/s: 1.8.0
> Add general array type conversion
> ---------------------------------
>
> Key: BEANUTILS-242
> URL: http://issues.apache.org/jira/browse/BEANUTILS-242
> Project: Commons BeanUtils
> Issue Type: New Feature
> Components: ConvertUtils & Converters
> Affects Versions: 1.7.0
> Reporter: Kenny MacLeod
> Fix For: 1.8.0
>
>
> When using a method such as BeanUtils.copyProperty(), it would be good if it could automatically handle conversion between array types, rather than having to explicitly write an array converter for each target type.
> For example, if I pass a String[] to BeanUtils to copy on to a property of type Integer[], then it would recognise the presense of an array, and then use the registered converters for the arrays' component types to decide how to map them together.
> This would remove the need to essentially duplicate converters already written, just to add array support.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Resolved: (BEANUTILS-242) Add general array type conversion
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEANUTILS-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton resolved BEANUTILS-242.
---------------------------------------
Resolution: Fixed
Assignee: Niall Pemberton
The new "generic" ArrayConverter is now registered as the default and the previous converter implementations for arrays have been deprecated
> Add general array type conversion
> ---------------------------------
>
> Key: BEANUTILS-242
> URL: https://issues.apache.org/jira/browse/BEANUTILS-242
> Project: Commons BeanUtils
> Issue Type: New Feature
> Components: ConvertUtils & Converters
> Affects Versions: 1.7.0
> Reporter: Kenny MacLeod
> Assigned To: Niall Pemberton
> Fix For: 1.8.0
>
>
> When using a method such as BeanUtils.copyProperty(), it would be good if it could automatically handle conversion between array types, rather than having to explicitly write an array converter for each target type.
> For example, if I pass a String[] to BeanUtils to copy on to a property of type Integer[], then it would recognise the presense of an array, and then use the registered converters for the arrays' component types to decide how to map them together.
> This would remove the need to essentially duplicate converters already written, just to add array support.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org