commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <>
Subject [jira] [Commented] (LANG-1214) ClassUtils.getClass(ClassLoader, String) fails for "void"
Date Sun, 22 May 2016 10:32:12 GMT


Pascal Schumacher commented on LANG-1214:

"abbreviationMap" is also used by the "primitiveToWrapper" method and for this the "void ->
V" mapping seems correct.

A patch/pull request for this issue would be most welcome.

> ClassUtils.getClass(ClassLoader, String) fails for "void"
> ---------------------------------------------------------
>                 Key: LANG-1214
>                 URL:
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.4
>         Environment: Mac OS X
> java version "1.8.0_66"
> Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
> Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
>            Reporter: Henry Tung
>   Original Estimate: 10m
>  Remaining Estimate: 10m
> ClassUtils.getClass(ClassUtils.class.getClassLoader(), "void") throws "ClassNotFoundException:
> Root cause: ClassUtils contains an abbreviationMap for use in dealing with abbreviated
primitive types like "[I" and "[J". However, [this commit|;a=blobdiff;f=src/main/java/org/apache/commons/lang3/;h=c15636ed99af1913d8436a2761d2e3e45b0c8b1a;hp=2492182dd6a383bbec970be3c58799bf89929ccf;hb=1d6ab5b8c0bcc69fe5984b882374e856ec198d0e;hpb=609319df2216e00d8f158e5fc5ce7756134b7cb0]
introduces a "void -> V" mapping for "completeness".
> This seems wholly erroneous, since the maps are used only for [primitive array abbreviations|],
and "void/V" is not among them.

This message was sent by Atlassian JIRA

View raw message