[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Failure when running JUnit test RunTheseBeforeYouCommitTest
|
- From: Andy Clement <andrew.clement@xxxxxxxxx>
- Date: Thu, 21 May 2009 13:05:46 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=NFalTSH9FJsSQO1ivKNMjOzFmPMDTSVwjwhhP5P2C6s=; b=IVwH5+o7nu7RMQ0YEq/slVkQPdspIB8+ure24Wxm2sC5Fj/zqvPpCHlfzLJxAQMMAd 69zKK6H8vsY3A22sH9BT13QfGMJSy+a+8md7miKUSB3jsMb/HJFSdXkRgwUvTGUvTG1r xUvJKt8ANE9MImPdfuy468Sb4Q79O/53L3d/8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=RT8hZ4hsf+k1zvDCEQqIe04sXkvr4OB6qaN5VAVChmk//g4nNF9u+6WM2x97wYQnRH lc9BuguGnu7DJ0FGieOktCfahgdncaNao6JyiS5P2rXsWhMAVgE5bkuLUMeir5tWwujO DYlIU9mwrsdU1V8wG1QaY6SSjmlxqfMr4pyfo=
Hi,
I ran all the tests yesterday and it was clean - I tried again just
now and it is OK for me. I'm on Windows 7. The build machine is on
linux and there was a successful build yesterday.
Some tests can be a bit awkward (and on windows they prefer NTFS to
FAT32 for the temp directory in which the tests are compiled and run).
It seems like you can just ignore that test if everything else is
working ... or if you want to diagnose it and give me a patch to make
it more robust, that would be fine too :)
Andy
2009/5/21 Arturo Salazar <marvinartsl@xxxxxxxxx>:
> I went through the instructions on "How do I get and compile the source code
> for AspectJ?"
> http://www.eclipse.org/aspectj/doc/released/faq.php#q:buildingsource
> I'm running
> Eclipse 3.4.2
> Build id: M20090211-1700
> on Windows XP.
> When i ran RunTheseBeforeYouCommitTests.java I got 1 failure :
> junit.framework.AssertionFailedError: Expecting
> java.lang.NoClassDefFoundError but caught org.aspectj.bridge.AbortException:
> trouble in:
> public class LTWHelloWorld extends java.util.ArrayList:
> private String message
> public void <init>():
> ALOAD_0 // LLTWHelloWorld; this (line 5)
> INVOKESPECIAL java.util.ArrayList.<init> ()V
> constructor-execution(void LTWHelloWorld.<init>())
> | ALOAD_0 // LLTWHelloWorld; this (line 7)
> | LDC "Hello World!"
> | PUTFIELD LTWHelloWorld.message Ljava/lang/String;
> | RETURN (line 5)
> constructor-execution(void LTWHelloWorld.<init>())
> end public void <init>()
> public void println() org.aspectj.weaver.MethodDeclarationLineNumber:
> 9:197
> :
> method-execution(void LTWHelloWorld.println())
> | GETSTATIC java.lang.System.out Ljava/io/PrintStream;
> (line 10)
> | ALOAD_0 // LLTWHelloWorld; this
> | GETFIELD LTWHelloWorld.message Ljava/lang/String;
> | INVOKEVIRTUAL java.io.PrintStream.println
> (Ljava/lang/String;)V
> | RETURN (line 11)
> method-execution(void LTWHelloWorld.println())
> end public void println()
> public static void main(String[])
> org.aspectj.weaver.MethodDeclarationLineNumber: 13:269
> :
> NEW LTWHelloWorld (line 14)
> DUP
> INVOKESPECIAL LTWHelloWorld.<init> ()V
> ASTORE_1
> ALOAD_1 // LLTWHelloWorld; hw (line 15)
> INVOKEVIRTUAL LTWHelloWorld.println ()V
> ICONST_0 (line 16)
> ISTORE_2
> GOTO L2
> L0: ALOAD_0 // [Ljava/lang/String; args (line 17)
> ILOAD_2 // I i
> AALOAD
> ASTORE_3
> ALOAD_1 // LLTWHelloWorld; hw (line 18)
> ALOAD_3 // Ljava/lang/String; jp
> INVOKEVIRTUAL LTWHelloWorld.contains
> (Ljava/lang/Object;)Z
> IFNE L1
> NEW java.lang.RuntimeException (line 19)
> DUP
> NEW java.lang.StringBuffer
> DUP
> ALOAD_3 // Ljava/lang/String; jp
> INVOKESTATIC java.lang.String.valueOf
> (Ljava/lang/Object;)Ljava/lang/String;
> INVOKESPECIAL java.lang.StringBuffer.<init>
> (Ljava/lang/String;)V
> LDC " missing"
> INVOKEVIRTUAL java.lang.StringBuffer.append
> (Ljava/lang/String;)Ljava/lang/StringBuffer;
> INVOKEVIRTUAL java.lang.StringBuffer.toString
> ()Ljava/lang/String;
> INVOKESPECIAL java.lang.RuntimeException.<init>
> (Ljava/lang/String;)V
> ATHROW
> L1: IINC_2 1 // I i (line 16)
> L2: ILOAD_2 // I i
> ALOAD_0 // [Ljava/lang/String; args
> ARRAYLENGTH
> IF_ICMPLT L0
> RETURN (line 22)
> end public static void main(String[])
> end public class LTWHelloWorld
> at junit.framework.Assert.fail(Assert.java:47)
> at
> org.aspectj.weaver.loadtime.WeavingURLClassLoaderTest.testIncompletePath(WeavingURLClassLoaderTest.java:347)
> 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 junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>
> This is the same error from
> http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg08480.html
> Is this is a problem with my machine or the Unit Test?
> -Art S
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>