commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benedikt Ritter <b...@systemoutprintln.de>
Subject Re: svn commit: r1241133 [2/2] - in /commons/sandbox/beanutils2/trunk: ./ src/main/java/org/apache/commons/beanutils2/type/ src/test/java/org/apache/commons/beanutils2/type/
Date Tue, 07 Feb 2012 15:01:37 GMT
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 simonetripodi@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 jessewilson@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-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message