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 <b...@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 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org