On Thursday 21 March 2002 07:28, Mason Loring Bliss wrote:
> On Thu, Mar 21, 2002 at 04:42:13AM +0100, Dalibor Topic wrote:
> > Try to rebuild Klasses.jar using jikes 1.13
>
> I've built Jikes 1.13 and set JIKES = jikes in rebuildLib and Makefile,
> and this is what I see:

> Issued 1 semantic warning compiling "java/awt/Toolkit.java":
>
>    504. native static synchronized void imgProduceImage(
> ImageNativeProducer prod, Ptr imgData); <-----------------> *** Warning:
> The type "ImageNativeProducer" is defined in the file "Image.java" but
> referenced in the file "java/awt/Toolkit.java". It is recommended that it
> be redefined in "ImageNativeProducer.java".

That's just jikes complaining about a hack in AWT library code. The code 
should work nevertheless.

I haven't tried the latest jikes from CVS yet, I'll do it today.

Compilers that work for me:
* jikes 1.14
* kjc 1.5b (has other serious bugs, though).
* javac 1.3.1

Compilers that don't work for me:
* javac 1.4.0 : make check fails almost all tests since the warning about 
changed class file format version is not expected by the tests :) May work, 
but will generate lot of "assert is a keyword now" warnings during 
compilation.
* kjc 2.1A : miscompiles CatchDeath (and a few other tests), so that it fails 
to verify on JDK. since kaffe's verifier doesn't recognize the error, kaffe 
proceeds and does weird things.
* gcj 3.0.4 : fails to compile Klasses.jar due to a bug in gcj.
* javac 1.1.8 : fails to compile Klasses.jar due to bugs in javac.

C-Compilers:
I use gcc 2.95.3. My experience with gcc 3.0.4 was mixed : kaffe compiles, but 
I get more failed tests. I didn't have time to investigate.

Failing tests:
Some tests have really tight watchdog timer settings. They will fail if you 
are using a six year old computer, running KDE 3 alongside, and running kaffe in 
interpreter mode, like I do right now :). I've attached a patch that extends the 
timer on watchdogs that used to fail for me.

Finally, each failing test has a testclass.out and testclass.fail file with 
the expected output and the output of the failed attempt. Inspecting those 
files might provide more insight at what exactly is failing.

hope this helps

dalibor topic
        * test/regression/CLTestJLock.java,
        test/regression/ProcessClassInst.java,
        test/regression/TestUnlock.java: increased watchdog time
        limits. Old, slow processors under load had a hard time passing
        these tests.
        
diff -u kaffe/test/regression/CLTestJLock.java patched-kaffe/test/regression/CLTestJLock.java
--- kaffe/test/regression/CLTestJLock.java	Fri Oct 15 05:55:53 1999
+++ patched-kaffe/test/regression/CLTestJLock.java	Wed Mar 20 16:17:50 2002
@@ -64,7 +64,7 @@
 	new Thread() {
 	    public void run() {
 		try {
-		    Thread.sleep(2000);
+		    Thread.sleep(9000);
 		} catch (InterruptedException e) { }
 		System.out.println("Time Out. Failure.");
 		System.exit(-1);
diff -u kaffe/test/regression/ProcessClassInst.java patched-kaffe/test/regression/ProcessClassInst.java
--- kaffe/test/regression/ProcessClassInst.java	Fri Feb 12 14:51:09 1999
+++ patched-kaffe/test/regression/ProcessClassInst.java	Wed Mar 20 15:31:41 2002
@@ -27,11 +27,11 @@
     static Vector v = new Vector();
 
     public static void main(String av[]) throws Exception {
-	// a watchdog thread that kills us off after 3 sec
+	// a watchdog thread that kills us off after 9 sec
 	new Thread() {
 	    public void run() {
 		try {
-		    Thread.sleep(3000);
+		    Thread.sleep(9000);
 		    System.out.println("sorry, you timed out");
 		    System.exit(-1);
 		} catch (Exception e) {
diff -u kaffe/test/regression/TestUnlock.java patched-kaffe/test/regression/TestUnlock.java
--- kaffe/test/regression/TestUnlock.java	Fri Feb 12 14:51:11 1999
+++ patched-kaffe/test/regression/TestUnlock.java	Wed Mar 20 16:54:07 2002
@@ -20,7 +20,7 @@
 	new Thread() {
 	    public void run() {
 		try {
-		    Thread.sleep(2000);
+		    Thread.sleep(9000);
 		} catch (Exception _) { }
 		System.out.println("Time out.  Failure.");
 		System.exit(-1);

Reply via email to