mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-06 18:18:22 +00:00
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:
parent
e5a3039f7a
commit
4a2cc4f5da
@ -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>
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user