You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/09/27 15:01:58 UTC
svn commit: r1390984 -
/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
Author: sebb
Date: Thu Sep 27 13:01:57 2012
New Revision: 1390984
URL: http://svn.apache.org/viewvc?rev=1390984&view=rev
Log:
LANG-820 TypeUtils.normalizeUpperBounds broken?
Added test to show it works OK
Modified:
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java?rev=1390984&r1=1390983&r2=1390984&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java Thu Sep 27 13:01:57 2012
@@ -655,6 +655,13 @@ public class TypeUtilsTest<B> {
Assert.assertEquals(types[6], TypeUtils.getArrayComponentType(types[13]));
}
+ @Test
+ public void testLang820() throws Exception {
+ Type[] typeArray = {String.class, String.class};
+ Type[] expectedArray = {String.class};
+ Assert.assertArrayEquals(expectedArray, TypeUtils.normalizeUpperBounds(typeArray));
+ }
+
public Iterable<? extends Map<Integer, ? extends Collection<?>>> iterable;
public static <G extends Comparable<G>> G stub() {