Hello Petar,

Thinking loud ...


You made me google for ClassCircularityError. Do you know which classes are meant to have circular dependencies upon each other ?

I have a look at the source code of EachTestNotifier [1]. This class uses org.junit.runner.notification.Failure.

I do not see quickly what is supposed to be circular.

Do you have maybe two different versions of junit somewhere in the classpath ?

Regards,

Antoine



[1] http://github.com/KentBeck/junit/blob/7a2b0460c7abd7573faa9d7845a5b1169dcdcb7f/src/main/java/org/junit/internal/runners/model/EachTestNotifier.java

Regards,

Antoine


Petar Tahchiev wrote:
Hi Ivan,

nice catch ;) Yep, it works with the fork attribute.

Thanks I'll buy you some shots of rakia ;)

P.S. @Antoine or@ Stefan or @Steve, if you confirm this as
a bug, I will open a ticket in the jira.

2010/3/15 Ivan "Rambius" Ivanov <rambiusparkisan...@yahoo.com>

Hello Petar,

Please try with fork="yes" attribute of junit task.

Regards
Ivan
 Tangra Mega Rock: http://www.radiotangra.com/



----- Original Message ----
From: Petar Tahchiev <paranoia...@gmail.com>
To: Ant Developers List <dev@ant.apache.org>
Sent: Mon, March 15, 2010 9:26:02 PM
Subject: Possible bug in Ant 1.8.0

Hi guys,
I was running the tests for my book with the latest version of
Ant:
Apache Ant version 1.8.0 compiled on February 1 2010

and Ivy
(version 2.1.0) and the tests in chapter 6 fail with the error:
BUILD
FAILED
/home/petar/workspace/junitbook/ch06-stubs/build.xml:64:
java.lang.ClassCircularityError:
org/junit/runner/notification/Failure
at
org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:29)

  at org.junit.runners.ParentRunner.run(ParentRunner.java:226)
at
junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:422)

at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1339)

at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:807)

at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1794)

at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:761)

  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

I
am using Java:
java version "1.6.0_18"
Java(TM) SE Runtime Environment
(build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed
mode)
and Ubuntu 9.1 66 edition. The funny thing is that it doesn't work
with Ant
1.8.0RC1
but downgrading to Ant 1.7.0 and the build works just
fine.
If you want to test it you can checkout the source of the book from
here:
href="
https://junitbook.svn.sourceforge.net/svnroot/junitbook/trunk/junitbook2/";
target=_blank
https://junitbook.svn.sourceforge.net/svnroot/junitbook/trunk/junitbook2/

and
go to chapter 6 and execute ant test.
Has anyone seen this error
before?
--
Regards, Petar!
Karlovo, Bulgaria.
- - - - - - -
-
| Author @ Manning Publications.
| CEO @ Phamola
| BGJUG-Bulgarian
Java User Group Leader.
| Apache Maven Developer.
| Apache Jakarta PMC
member.
| Jakarta Cactus Lead Developer.
| Codehaus Plexus Developer
|
Blogger:
http://weblogs.java.net/blog/paranoiabla/
- - - - - - - -
Public PGP
Key at:
href="
https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611";
target=_blank
https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
Key
Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611






---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to