LANG-820 TypeUtils.normalizeUpperBounds broken?

Added test to show it works OK

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2012-09-27 13:01:57 +00:00
parent 04babff379
commit 0490f1c291
1 changed files with 7 additions and 0 deletions

View File

@ -655,6 +655,13 @@ public void testGetArrayComponentType() throws Exception {
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() {