Re: [kaffe] Prevayler works

2005-09-01 Thread jserv
On Fri, Sep 02, 2005 at 01:30:01AM +0900, Ito Kazumitsu wrote:
> Hi,
> 
> Compatibility - Application Testing
> (http://www.kaffe.org/compatibility_applications.shtml) says,
> | 2. Prevayler
> |Status: Partially works.
> 
> I don't whether there is anything wrong in kaffe, but now
> prevayler-2.02.006 does not have this problematic coding.
> 
> So now Prevayler works fine with Kaffe.

Hi Ito,

  Thanks for reporting, and I updated the web page according to your
messages.

Thanks,
Jim Huang (jserv)

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Adler32

2005-09-01 Thread Mark Wielaard
On Thu, 2005-09-01 at 19:27 +0200, Mark Wielaard wrote:
> 2005-09-01  Mark Wielaard  <[EMAIL PROTECTED]>
> 
> * libraries/javalib/java/util/zip/Adler32.java
> (Adler32): Set adler to 1.
> (reset): Likewise.
> (getValue): Return unsigned int value.
> 
> With this all the new mauve tests pass.

It would probably help if I attached the patch...
Index: libraries/javalib/java/util/zip/Adler32.java
===
RCS file: /cvs/kaffe/kaffe/libraries/javalib/java/util/zip/Adler32.java,v
retrieving revision 1.1
diff -u -r1.1 Adler32.java
--- libraries/javalib/java/util/zip/Adler32.java	14 Jul 1998 17:02:10 -	1.1
+++ libraries/javalib/java/util/zip/Adler32.java	1 Sep 2005 17:37:57 -
@@ -20,7 +20,7 @@
 
   public Adler32()
   {
-adler = 0;
+adler = 1;
   }
 
   public void update(int b)
@@ -35,12 +35,12 @@
 
   public void reset()
   {
-adler = 0;
+adler = 1;
   }
 
   public long getValue()
   {
-return (adler);
+return (adler & 0xL);
   }
 
   public native void update(byte[] buf, int from, int len);


signature.asc
Description: This is a digitally signed message part
___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Adler32

2005-09-01 Thread Mark Wielaard
Hi,

Just created some Adler32 tests for mauve.
It seems there are two bugs in the default kaffe (zlib based) Adler32
implementation. The checksum starts at 1, not 0. And the checksum is an
unsigned int returned as long:

2005-09-01  Mark Wielaard  <[EMAIL PROTECTED]>

* libraries/javalib/java/util/zip/Adler32.java
(Adler32): Set adler to 1.
(reset): Likewise.
(getValue): Return unsigned int value.

With this all the new mauve tests pass.
But please check carefully since I didn't find any official adler32 test
vectors.

Cheers,

Mark

-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/


signature.asc
Description: This is a digitally signed message part
___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Prevayler works

2005-09-01 Thread Ito Kazumitsu
Hi,

Compatibility - Application Testing
(http://www.kaffe.org/compatibility_applications.shtml) says,

| 2. Prevayler
| 
|Status: Partially works.
| 
|See this post by Ito Kazumitsu for more information.

And my old post says,

| With the following patch to prevayler2.01.000alpha,
| 
| --- src/org/prevayler/foundation/DurableOutputStream.java   Wed Mar  3 
19:04:38 2004
| +++ test/org/prevayler/foundation/DurableOutputStream.java  Sat Apr  3 
10:00:30 2004
| @@ -104,7 +104,7 @@
| 
| synchronized void setSynched() {
| _isSynched = true;
| -   synchronized (this) { notifyAll(); }
| +   notifyAll();
| }
| }
| 
| 
| the simplest demo of prevayler works fine.
| 
| This makes me think that there is something wrong around
| kaffe/kaffevm/locks.c.

I don't whether there is anything wrong in kaffe, but now
prevayler-2.02.006 does not have this problematic coding.

So now Prevayler works fine with Kaffe.

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe