You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2015/04/27 21:39:39 UTC
[jira] [Resolved] (LANG-979) TypeUtils.parameterizeWithOwner -
wrong format descriptor for "invalid number of type parameters"
[ https://issues.apache.org/jira/browse/LANG-979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benedikt Ritter resolved LANG-979.
----------------------------------
Resolution: Fixed
Fix Version/s: (was: Review Patch)
3.5
Assignee: Benedikt Ritter
{code}
$ git merge --no-ff LANG-979
Merge made by the 'recursive' strategy.
src/changes/changes.xml | 1 +
src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
{code}
> TypeUtils.parameterizeWithOwner - wrong format descriptor for "invalid number of type parameters"
> -------------------------------------------------------------------------------------------------
>
> Key: LANG-979
> URL: https://issues.apache.org/jira/browse/LANG-979
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.reflect.*
> Reporter: Sebb
> Assignee: Benedikt Ritter
> Priority: Minor
> Fix For: 3.5
>
> Attachments: LANG-979.patch
>
>
> The TypeUtils.parameterizeWithOwner method uses the following format string:
> "invalid number of type parameters specified: expected %s, got %s"
> with parameters that are actually ints.
> This means that the parameters are boxed into Integers and then converted to Strings by the formatter.
> Seems to me it would make more sense to either create the Strings directly from the ints, or box the ints and use "%d" for the place holders.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)