Hi,
the setup of TypesTest fails with a ClassCastException being thrown in
line 90 (see the above code snippet).
I haven't digged deep enough into all of the new code to make a
suggestion on how to repair the test. I guess you will probably know a
fix anyway ;)
Have a nice day!
Benedikt
Am 06.02.2012 20:56, schrieb simonetrip...@apache.org:
[...]
Added:
commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/type/TypesTest.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/type/TypesTest.java?rev=1241133&view=auto
==============================================================================
---
commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/type/TypesTest.java
(added)
+++
commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/type/TypesTest.java
Mon Feb 6 19:56:42 2012
@@ -0,0 +1,277 @@
+package org.apache.commons.beanutils2.type;
+
[...]
+/**
+ * @author jessewil...@google.com (Jesse Wilson)
+ */
+public class TypesTest
+{
[...]
+ @Before
+ public void setUp()
+ throws Exception
+ {
+ mapStringInteger = (ParameterizedType) getClass().getDeclaredField(
"a" ).getGenericType();
+ innerFloatDouble = (ParameterizedType) getClass().getDeclaredField(
"b" ).getGenericType();
+ listStringArray = (ParameterizedType) getClass().getDeclaredField( "c"
).getGenericType();
+ listString = (ParameterizedType) getClass().getDeclaredField( "d"
).getGenericType();
+ setString = (ParameterizedType) getClass().getDeclaredField( "e"
).getGenericType();
+ stringArray = (GenericArrayType)
listStringArray.getActualTypeArguments()[0]; <--- THIS FAILS
+ outerInner = (ParameterizedType) getClass().getDeclaredField( "f"
).getGenericType();
+ }
[...]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org