commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <simonetrip...@apache.org>
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:09:20 GMT
Which environment are you using? It doesn't fails on mine

$ mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /Applications/apache-maven-3.0.4
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac"

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Tue, Feb 7, 2012 at 4:01 PM, Benedikt Ritter
<bene@systemoutprintln.de> wrote:
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message