GitHub user henryptung opened a pull request:

    https://github.com/apache/commons-lang/pull/155

    LANG-1214 Handle "void" in ClassUtils.getClass()

    `getClass()` previously deferred to an array type to get the class,
    but this fails for `void`, which lacks an array type.
    Instead, map explicitly from primitive name to primitive class.
    
    Added unit test line fails before change, passes after change.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/henryptung/commons-lang 
lang-1214-getclass-void

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-lang/pull/155.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #155
    
----
commit 792f75436b81e9941bcd30b31dc3ad4424de602a
Author: Henry Tung <[email protected]>
Date:   2016-05-23T01:45:49Z

    LANG-1214 Handle "void" in ClassUtils.getClass()
    
    getClass() previously deferred to an array type to get the class,
    but this fails for void, which lacks an array type.
    Instead, map explicitly from primitive name to primitive class.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to