Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1
-
None
-
None
-
Operating System: other
Platform: Other
-
36512
Description
The standard Class.forName support for primitive types and arrays is not really
userfriendly as it requires the bytecode specification (eg. "[I" for an integer
array) rather than the normal type specification as would be used for variable
declarations (eg. "int[]"). Likewise, it is not possible to get the class for
"int" and other primitive types with Class.forName, one has to resort to
"java.lang.Integer" which is not guaranteed to be equal to int.class.
This proposed feature adds a class that provides such an enhanced Class.forName
functionality which then could for instance be exposed via commons-lang's
ClassUtils.