jUnit doesn't work with debugger

Hi!

I've a problem when trying to use Idea's debugger with a jUnit test: It
throws a VerifyError. The complete message looks like this:

java.lang.VerifyError: (class:
com/intellij/rt/execution/junit/ui/SwingTestRunner, method: loadSuiteClass
signature: (Ljava/lang/String;)Ljava/lang/Class;) Illegal use of nonvirtual
function call
Exception in thread "main"

Looks for me like Idea's runtime expects a different junit.jar-version as
the one that is shipped with the package. Switching to text mode makes no
difference. I already replaced my junit.jar with different versions - no
result. I also searched the net for similar error messages but it seems that
I'm the only one who has experienced something like that. Has anyone a hint
or guess what might be the cause for that behaviour? Currently I'm using
build #674 of Idea.

Martin






1 comment
Comment actions Permalink

No need to answer to this - I found the mistake myself. Sometimes you just
don't see the very very obvious: 99.9% of all mistakes with Java are caused
by a wrong classpath...

Martin Bierschenk <mabier@gmx.de> schrieb in im Newsbeitrag:
b83h2c$833$1@is.intellij.net...

Hi!

>

I've a problem when trying to use Idea's debugger with a jUnit test: It
throws a VerifyError. The complete message looks like this:

>

java.lang.VerifyError: (class:
com/intellij/rt/execution/junit/ui/SwingTestRunner, method: loadSuiteClass
signature: (Ljava/lang/String;)Ljava/lang/Class;) Illegal use of

nonvirtual

function call
Exception in thread "main"

>

Looks for me like Idea's runtime expects a different junit.jar-version as
the one that is shipped with the package. Switching to text mode makes no
difference. I already replaced my junit.jar with different versions - no
result. I also searched the net for similar error messages but it seems

that

I'm the only one who has experienced something like that. Has anyone a

hint

or guess what might be the cause for that behaviour? Currently I'm using
build #674 of Idea.

>

Martin

>
>
>
>
>
>


0

Please sign in to leave a comment.