commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [GUMP@vmgump]: Project commons-collections (in module apache-commons) failed
Date Wed, 16 Sep 2009 12:18:31 GMT
On 16/09/2009, sebb <sebbaz@gmail.com> wrote:
> On 16/09/2009, sebb <sebbaz@gmail.com> wrote:
>  > On 16/09/2009, Gump <issues@commons.apache.org> wrote:
>  >  > To whom it may engage...
>  >  >
>  >  >  This is an automated request, but not an unsolicited one. For
>  >  >  more information please visit http://gump.apache.org/nagged.html,
>  >  >  and/or contact the folk at general@gump.apache.org.
>  >  >
>  >  >  Project commons-collections has an issue affecting its community integration.
>  >  >  This issue affects 231 projects,
>  >  >   and has been outstanding for 3 runs.
>  >
>  >  >
>  >
>  > >  The following work was performed:
>  >  >  http://vmgump.apache.org/gump/public/apache-commons/commons-collections/gump_work/build_apache-commons_commons-collections.html
>  >  >  Work Name: build_apache-commons_commons-collections (Type: Build)
>  >  >  Work ended in a state of : Failed
>  >  >  Elapsed: 29 secs
>  >  >  Command Line: /usr/lib/jvm/java-6-sun/bin/java -Djava.awt.headless=true
-Xbootclasspath/p:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar
org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml -Dbuild.sysclasspath=only
-Dcomponent.version=16092009 dist
>  >  >  [Working Directory: /srv/gump/public/workspace/apache-commons/collections]
>  >  >  CLASSPATH: /usr/lib/jvm/java-6-sun/lib/tools.jar:/srv/gump/public/workspace/apache-commons/collections/build/classes:/srv/gump/public/workspace/apache-commons/collections/build/tests:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swing.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/ant/dist/lib/ant-trax.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/packages/junit3.8.1/junit.jar:/srv/gump/public/workspace/xml-commons/java/build/resolver.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/srv/gump/public/workspace/junit/dist/junit-16092009.jar:/srv/gump/packages/easymock1.2_Java1.3/easymock.jar
>  >  >  ---------------------------------------------
>  >  >     [javac]         assertEquals(2, freq2.get(2));
>  >  >     [javac]         ^
>  >  >     [javac] /srv/gump/public/workspace/apache-commons/collections/src/test/org/apache/commons/collections/TestCollectionUtils.java:328:
reference to assertEquals is ambiguous, both method assertEquals(double,double) in org.junit.Assert
and method assertEquals(java.lang.Object,java.lang.Object) in org.junit.Assert match
>  >  >     [javac]         assertEquals(2, freq2.get(4));
>  >  >     [javac]         ^
>  >
>  >
>  > assertEquals([String,]double,double) is deprecated in favour of
>  >  assertEquals([String,]double,double,double delta)
>  >
>  >  and AFAICS the deprecated methods just call fail, so we need to change
>  >  the method calls.
>  >
>  >  Would it be OK to just add a delta of 0.0?
>  >  Or maybe the code should use assertSame?
>
>
> Duh - scrap that - the problem is presumably that the LHS and RHS can
>  both be cast to a double. I'll change the test to avoid this.

Turns out that JUnit 4.3.1 (current version) does not have the
assertEquals(double,double) method which is why it was not found
earlier; Gump is using the latest (4.7+) which does have the (now
deprecated) method.

Looks to be a mistake that JUnit ever added the method.

Test code now compiles against 4.7.
This was done by making the autoboxing to Integer explicit.

>  >
>  >  S///
>  >
>

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


Mime
View raw message