You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2007/08/03 21:51:52 UTC

[jira] Created: (LANG-351) Extension to ClassUtils: Obtain the primitive class from a wrapper

Extension to ClassUtils: Obtain the primitive class from a wrapper
------------------------------------------------------------------

                 Key: LANG-351
                 URL: https://issues.apache.org/jira/browse/LANG-351
             Project: Commons Lang
          Issue Type: Improvement
    Affects Versions: 2.3
            Reporter: Oliver Heger
            Priority: Minor


For some tasks related to reflection and method invocation I need the counter part of the ClassUtils.primitiveToWrapper() method.

My use case is that I need to invoke a method, and I only have the name and an array of parameter values (not the exact parameter types). So I have to check based on the types of the current parameters if a method signature is compatible. If the signature contains primitive types, the current parameter values will be wrapper types; these have to be unboxed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (LANG-351) Extension to ClassUtils: Obtain the primitive class from a wrapper

Posted by "Gary Gregory (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory resolved LANG-351.
-------------------------------

    Resolution: Fixed

Patch applied with new methods marked with @since 2.4.

> Extension to ClassUtils: Obtain the primitive class from a wrapper
> ------------------------------------------------------------------
>
>                 Key: LANG-351
>                 URL: https://issues.apache.org/jira/browse/LANG-351
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.3
>            Reporter: Oliver Heger
>            Assignee: Gary Gregory
>            Priority: Minor
>             Fix For: 2.4
>
>         Attachments: lang-351.patch
>
>
> For some tasks related to reflection and method invocation I need the counter part of the ClassUtils.primitiveToWrapper() method.
> My use case is that I need to invoke a method, and I only have the name and an array of parameter values (not the exact parameter types). So I have to check based on the types of the current parameters if a method signature is compatible. If the signature contains primitive types, the current parameter values will be wrapper types; these have to be unboxed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (LANG-351) Extension to ClassUtils: Obtain the primitive class from a wrapper

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated LANG-351:
-------------------------------

    Fix Version/s: 2.3.1

Thanks Oliver. As there's a patch; adding to 2.3.1. We can rename that to 2.4 if necessary.

> Extension to ClassUtils: Obtain the primitive class from a wrapper
> ------------------------------------------------------------------
>
>                 Key: LANG-351
>                 URL: https://issues.apache.org/jira/browse/LANG-351
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.3
>            Reporter: Oliver Heger
>            Priority: Minor
>             Fix For: 2.3.1
>
>         Attachments: lang-351.patch
>
>
> For some tasks related to reflection and method invocation I need the counter part of the ClassUtils.primitiveToWrapper() method.
> My use case is that I need to invoke a method, and I only have the name and an array of parameter values (not the exact parameter types). So I have to check based on the types of the current parameters if a method signature is compatible. If the signature contains primitive types, the current parameter values will be wrapper types; these have to be unboxed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (LANG-351) Extension to ClassUtils: Obtain the primitive class from a wrapper

Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Heger updated LANG-351:
------------------------------

    Attachment: lang-351.patch

Patch with the implementation of the desired functionality and corresponding unit tests.

> Extension to ClassUtils: Obtain the primitive class from a wrapper
> ------------------------------------------------------------------
>
>                 Key: LANG-351
>                 URL: https://issues.apache.org/jira/browse/LANG-351
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.3
>            Reporter: Oliver Heger
>            Priority: Minor
>         Attachments: lang-351.patch
>
>
> For some tasks related to reflection and method invocation I need the counter part of the ClassUtils.primitiveToWrapper() method.
> My use case is that I need to invoke a method, and I only have the name and an array of parameter values (not the exact parameter types). So I have to check based on the types of the current parameters if a method signature is compatible. If the signature contains primitive types, the current parameter values will be wrapper types; these have to be unboxed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.