LANG-1073 Read wrong component type of array in add in ArrayUtils

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1645483 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bruno P. Kinoshita 2014-12-14 18:22:06 +00:00
parent e5a3039f7a
commit 4a2cc4f5da
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@
<body>
<release version="3.4" date="tba" description="tba">
<action issue="LANG-1073" type="fix" dev="kinow" due-to="haiyang li">Read wrong component type of array in add in ArrayUtils</action>
<action issue="LANG-1077" type="fix" dev="kinow" due-to="haiyang li">StringUtils.ordinalIndexOf("aaaaaa", "aa", 2) != 3 in StringUtils</action>
<action issue="LANG-1072" type="fix" dev="sebb" due-to="haiyang li">Duplicated "0x" check in createBigInteger in NumberUtils</action>
<action issue="LANG-1064" type="fix" dev="djones" due-to="B.J. Herbison">StringUtils.abbreviate description doesn't agree with the examples</action>

View File

@ -4008,7 +4008,7 @@ public static double[] addAll(final double[] array1, final double... array2) {
public static <T> T[] add(final T[] array, final T element) {
Class<?> type;
if (array != null){
type = array.getClass();
type = array.getClass().getComponentType();
} else if (element != null) {
type = element.getClass();
} else {