java.util.Date not compatible b/w kaffe-0.8.4 and 0.9.1

Simon J. Gerraty sjg at quick.com.au
Mon Oct 27 03:19:28 PST 1997


It looks very much like there is something very different b/w kaffe
versions wrt Date native methods.

I have an Strftime() class which provides decent formatting for times
etc.  It currently needs to be compiled with jdk1.0.2 (kaffe-0.8.4)
and when run with that VM produces correct results:

sjg:771$ JDK=1.0.2 java au.com.quick.util.Strftime %C "%Y%m%d %T"       
default: Mon Oct 27 22:16:16  GMT-1100 1997
%C: Mon Oct 27 22:16:16  GMT-1100 1997
%Y%m%d %T: 19971027 22:16:16
sjg:772$ date
Mon Oct 27 22:16:17 EST 1997

If I run it with kaffe-0.9.1 though I get:

sjg:773$ java au.com.quick.util.Strftime %C "%Y%m%d %T"           
default: Mon Oct 27 11:17:06  GMT 1997
%C: Mon Oct 27 11:17:06  GMT 1997
%Y%m%d %T: 19971027 11:17:06
sjg:774$ date
Mon Oct 27 22:17:07 EST 1997

If JDK is not set, my java_wrapper uses the greatest installed jdk
(1.1.4 here)

I would guess that the TimeZone() stuff does not work in 0.9.1
[sorry havn't solved the core dumps in 0.9.2 so can't test it].

--sjg



More information about the kaffe mailing list