From mark@wildebeest.org Sat Feb 02 16:56:14 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16X88s-0001uo-00
	for <classpath@gnu.org>; Sat, 02 Feb 2002 16:56:14 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16X88i-0004hH-00; Sat, 02 Feb 2002 22:56:04 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16X88j-0007zf-00; Sat, 02 Feb 2002 22:56:05 +0100
Subject: Re: State of AWT
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: Classpath Project <classpath@gnu.org>
In-Reply-To: <87ofjca52l.fsf@creche.redhat.com>
References: <87ofjca52l.fsf@creche.redhat.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.1 
Date: 02 Feb 2002 22:56:05 +0100
Message-Id: <1012686965.13969.23.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Wed, 2002-01-30 at 04:30, Tom Tromey wrote:
> 
> It's not as bad as it sounds though.  A lot of the hard work is done.
> I've been doing my debugging by compiling the Gtk+ peers with gcj into
> a shared library, and then running the TestAWT program with those
> peers and the JNI native code.  Windows, events, buttons, and the
> layout engines work well enough to let me see the bugs in the other
> code.  This setup is noticeably faster than using the JDK (1.2.2); I
> attribute that to the JDK's use of Motif.

What magic do I have to perform to see this working?
I tried Orp with the latest Classpath libraries and the latest CVS
checkout of gcj combined with the Classpath classes and native libs but
with both I get only the following when trying the TestAWT program:

returned
end
INSET:java.awt.Insets(top=0,bottom=0,left=0,right=0)
loading gtkpeer
init

And then the program just hangs. That last message comes from
GtkMainThread so the native code does load. But the MainWindow does not
show.

Cheers,

Mark


From tromey@creche.cygnus.com Sat Feb 02 17:29:48 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16X8fM-0003Xd-00
	for <classpath@gnu.org>; Sat, 02 Feb 2002 17:29:48 -0500
Received: from creche.cygnus.com (ta0193.peakpeak.com [204.144.244.193] (may be forged))
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id PAA31838;
	Sat, 2 Feb 2002 15:29:11 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id PAA07029;
	Sat, 2 Feb 2002 15:49:20 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: Classpath Project <classpath@gnu.org>
Subject: Re: State of AWT
References: <87ofjca52l.fsf@creche.redhat.com> <1012686965.13969.23.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Are we THERE yet?  My MIND is a SUBMARINE!!
Date: 02 Feb 2002 15:49:20 -0700
In-Reply-To: Mark Wielaard's message of "02 Feb 2002 22:56:05 +0100"
Message-ID: <871yg3o5xr.fsf@creche.redhat.com>
Lines: 99
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

[ TestAWT working ]

Mark> What magic do I have to perform to see this working?  I tried
Mark> Orp with the latest Classpath libraries and the latest CVS
Mark> checkout of gcj combined with the Classpath classes and native
Mark> libs but with both I get only the following when trying the
Mark> TestAWT program:

I'm using libgcj, not ORP.  I still haven't built and tried ORP :-(

Here's what I did:

* Build Classpath with jikes (I still haven't tried building it with
  gcj.  I saw your post on the ORP list about ORP-vs-gcj, but I don't
  know anything about what might be wrong -- though I'd be interested
  in you find out).
  Building Classpath gets me the Gtk+ JNI native code in a convenient
  shared library.

* Copied the Classpath Gtk+ peer Java code to a hierarchy in /tmp/.
  This makes the next step simpler.

* Used `find' + a `while' loop to compile each such file like so:

    gcj -fPIC -g -fjni -o <whatever>.o <whatever>.java

* Linked all the resulting .o files into lib-gnu-java-awt.so

* Compiled TestAWT like this:

    gcj -g --main=TestAWT -o T TestAWT.java  -Wl,-rpath,/x1/egcs/install/lib -Wl,-rpath,/home/tromey/gnu/egcs/classpath/build/native/jni/gtk-peer/.libs -Wl,-rpath,/tmp/Build

  The -rpath stuff makes it possible to find the .so files at runtime.
  Your paths will vary.

* At this point, `./T' runs TestAWT.


I have one hack in my tree, too.  It makes things "work" ok for me,
but I haven't checked it in since I don't know that it is correct, or
even close.

I've appended the hack.  This particular patch affects window layout
(without it the peers get confused and use the window manager frame's
size as the insets, with strange results).  If you don't have this,
you should still get a window though.


In sum, it is a fairly ugly process for now.  Eventually (after gcc
3.1 is released), we can look at importing the Gtk+ peers into the
libgcj tree.  That should make it much simpler to build and test this
stuff.


Mark> returned
Mark> end
Mark> INSET:java.awt.Insets(top=0,bottom=0,left=0,right=0)
Mark> loading gtkpeer
Mark> init

After this I see:

    TRYING TO GET INTO GTKMAIN
    ACQUIRED LOCK TO RUN GTKMAIN
    returned
    end

... and then a bunch more stuff.

I've found I have to use the debugger a lot to make progress.
Luckily, with gcj this isn't too painful (gdb isn't great for Java
right now, but it is manageable).

Tom

Index: native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
===================================================================
RCS file: /cvsroot/classpath/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c,v
retrieving revision 1.3
diff -u -r1.3 gnu_java_awt_peer_gtk_GtkEvents.c
--- native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c 22 Jan 2002 22:27:02 -0000 1.3
+++ native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c 2 Feb 2002 22:21:05 -0000
@@ -408,10 +408,14 @@
 		gdk_window_get_root_geometry (event->any.window, 
 					      &x, &y, &w, &h, &wb, &d);
 
+#if 0
 		top = event->configure.y - y;
 		left = event->configure.x - x;
 		bottom = h - event->configure.height - top;
 		right = w - event->configure.width - left;
+#else
+		top = left = bottom = right = 0;
+#endif
 
 		/* configure events are not posted to the AWT event queue,
 		   and as such, gdk/gtk will be called back before


From nferrier@tapsellferrier.co.uk Sat Feb 02 18:33:04 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16X9eZ-0000Jv-00
	for <classpath@gnu.org>; Sat, 02 Feb 2002 18:33:03 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16X9vt-0001WV-00; Sat, 02 Feb 2002 23:50:57 +0000
To: classpath@gnu.org
Subject: dumb build questions
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 02 Feb 2002 23:50:57 +0000
Message-ID: <87u1szphni.fsf@tf1.tapsellferrier.co.uk>
Lines: 48
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I have automake 1.4p... and 1.5 installed on my machine. 

1.5 is in /usr/local/bin 
and 1.4... is in /usr/bin.

When I try and autoconf Classpath I get this:


configure.in:18: error: possibly undefined macro: AM_INIT_AUTOMAKE
configure.in:20: error: possibly undefined macro: AM_CONFIG_HEADER
configure.in:58: error: possibly undefined macro: AM_CONDITIONAL
configure.in:71: error: possibly undefined macro: AM_DISABLE_STATIC
configure.in:72: error: possibly undefined macro: AM_PROG_LIBTOOL
configure.in:110: error: possibly undefined macro: AM_PATH_GTK
configure.in:111: error: possibly undefined macro: AM_PATH_GLIB
configure.in:115: error: possibly undefined macro: AM_PATH_LIBART
configure.in:140: error: possibly undefined macro: AM_MAINTAINER_MODE


I suspect this is because 1.4... automake is being found instead of
1.5 but 1.5 is what I get if I type:

   automake --version

on the command line.

Doing this:

   whereis automake

Produces this:

    /usr/bin/automake /usr/local/bin/automake /usr/share/automake

I obviously need to be able to find /usr/local/share/automake

What do I need to do to ensure that /usr/local/share is above
/usr/share?


I feel like an idiot asking this: but I've never come across this
before.


Sorry.


Nic


From mark@wildebeest.org Sat Feb 02 18:49:39 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16X9ud-0000y0-00
	for <classpath@gnu.org>; Sat, 02 Feb 2002 18:49:39 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16X9uU-0004lL-00; Sun, 03 Feb 2002 00:49:30 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16X9uV-0003L7-00; Sun, 03 Feb 2002 00:49:31 +0100
Subject: Re: State of AWT
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: Classpath Project <classpath@gnu.org>
In-Reply-To: <871yg3o5xr.fsf@creche.redhat.com>
References: <87ofjca52l.fsf@creche.redhat.com>
	<1012686965.13969.23.camel@elsschot>  <871yg3o5xr.fsf@creche.redhat.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.1 
Date: 03 Feb 2002 00:49:31 +0100
Message-Id: <1012693771.13969.40.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sat, 2002-02-02 at 23:49, Tom Tromey wrote:
> * Linked all the resulting .o files into lib-gnu-java-awt.so

This might be very basic but how do I go about this step?
I tried to do "gcc -shared -o lib-gnu-java-awt.so *.o"
But the resulting so file does not seem to work. When running the
program I can see (with strace) that the library is being opened but I
still get a java.awt.AWTError: Cannot load AWT toolkit:
java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit

Cheers,

Mark

P.S. These are all the steps I did (after a classpath build --with-jikes
--enable-jni):

/tmp$ mkdir -p gtkpeers/gnu/java
/tmp$ cp -r ~/src/classpath/gnu/java/awt gtkpeers/gnu/java/
/tmp$ cd gtkpeers
/tmp$ for i in gnu/java/awt/peer/gtk/*.java; do gcj -fPIC -g -fjni -c -o
`basename $i .java`.o $i; done
/tmp$ gcc -shared -o lib-gnu-java-awt.so *.o
/tmp$ cd ..
/tmp$ gcj -g --main=TestAWT -o T TestAWT.java /tmp/gtkpeers/*.o
-Wl,-rpath,/usr/local/gcc-3.1/lib
-Wl,-rpath,/home/mark/src/classpath/native/jni/gtk-peer/.libs
-Wl,-rpath,/tmp/gtkpeers
/tmp$ ./T
returned
end
INSET:java.awt.Insets(top=0,bottom=0,left=0,right=0)
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit
[...]


From mark@wildebeest.org Sat Feb 02 19:02:49 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XA7M-0001dh-00
	for <classpath@gnu.org>; Sat, 02 Feb 2002 19:02:49 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XA6l-0004lu-00; Sun, 03 Feb 2002 01:02:11 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XA6m-0003VA-00; Sun, 03 Feb 2002 01:02:12 +0100
Subject: Re: dumb build questions
From: Mark Wielaard <mark@klomp.org>
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
In-Reply-To: <87u1szphni.fsf@tf1.tapsellferrier.co.uk>
References: <87u1szphni.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.1 
Date: 03 Feb 2002 01:02:12 +0100
Message-Id: <1012694532.13968.45.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sun, 2002-02-03 at 00:50, Nic Ferrier wrote:

> I feel like an idiot asking this: but I've never come across this
> before.

I have to admit that the auto* tools are a bit of voodoo to me.
But have you made sure that you have the latest versions of all the
tools (autoconf 2.52, automake 1.5, libtool 1.4.2) I remember having
this kind of troubles when I had some older versions of one of these
even though automake was version 1.5.

Cheers,

Mark



From tromey@creche.cygnus.com Sat Feb 02 21:05:00 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16XC1c-0000au-00
	for <classpath@gnu.org>; Sat, 02 Feb 2002 21:05:00 -0500
Received: from creche.cygnus.com (ta0199.peakpeak.com [204.144.244.199])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id TAA21172;
	Sat, 2 Feb 2002 19:04:55 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id TAA07300;
	Sat, 2 Feb 2002 19:25:04 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: Classpath Project <classpath@gnu.org>
Subject: Re: State of AWT
References: <87ofjca52l.fsf@creche.redhat.com> <1012686965.13969.23.camel@elsschot> <871yg3o5xr.fsf@creche.redhat.com> <1012693771.13969.40.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  FOOLED you!  Absorb EGO SHATTERING impulse rays, polyester poltroon!!
Date: 02 Feb 2002 19:25:04 -0700
In-Reply-To: Mark Wielaard's message of "03 Feb 2002 00:49:31 +0100"
Message-ID: <87665fmhdr.fsf@creche.redhat.com>
Lines: 23
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Tom> * Linked all the resulting .o files into lib-gnu-java-awt.so

Mark> This might be very basic but how do I go about this step?
Mark> I tried to do "gcc -shared -o lib-gnu-java-awt.so *.o"

That's what I do.

Mark> But the resulting so file does not seem to work. When running the
Mark> program I can see (with strace) that the library is being opened but I
Mark> still get a java.awt.AWTError: Cannot load AWT toolkit:
Mark> java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit

Mark> /tmp$ cp -r ~/src/classpath/gnu/java/awt gtkpeers/gnu/java/
Mark> /tmp$ cd gtkpeers
Mark> /tmp$ for i in gnu/java/awt/peer/gtk/*.java; do gcj -fPIC -g -fjni -c -o

You also need gnu.java.awt.image.
Without that, I think the .so will have unresolved symbols and won't
link at runtime.

Tom


From tromey@creche.cygnus.com Sat Feb 02 21:07:34 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16XC45-0000fX-00
	for <classpath@gnu.org>; Sat, 02 Feb 2002 21:07:33 -0500
Received: from creche.cygnus.com (ta0199.peakpeak.com [204.144.244.199])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id TAA21390;
	Sat, 2 Feb 2002 19:07:31 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id TAA07332;
	Sat, 2 Feb 2002 19:27:43 -0700
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
Subject: Re: dumb build questions
References: <87u1szphni.fsf@tf1.tapsellferrier.co.uk>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  I just bought FLATBUSH from MICKEY MANTLE!
Date: 02 Feb 2002 19:27:43 -0700
In-Reply-To: Nic Ferrier's message of "02 Feb 2002 23:50:57 +0000"
Message-ID: <873d0jmh9c.fsf@creche.redhat.com>
Lines: 29
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Nic" == Nic Ferrier <nferrier@tapsellferrier.co.uk> writes:

Nic> When I try and autoconf Classpath I get this:
Nic> configure.in:18: error: possibly undefined macro: AM_INIT_AUTOMAKE

This means you need to run `aclocal'.

Nic> I suspect this is because 1.4... automake is being found instead of
Nic> 1.5 but 1.5 is what I get if I type:
Nic>    automake --version
Nic> on the command line.

Then that's what is first in path.

Nic> Doing this:
Nic>    whereis automake

`whereis' isn't really reliable.  I don't know what it is doing
exactly (I've never used or even heard of whereis), but it sure isn't
searching $PATH.

If you use bash, try `type automake'.  For me:

    creche. whereis automake
    automake: /usr/bin/automake /usr/local/bin/automake /usr/share/automake
    creche. type automake
    automake is hashed (/usr/local/bin/automake)

Tom


From mark@wildebeest.org Sun Feb 03 05:09:09 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XJa9-0001zC-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 05:09:09 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XJZz-0005IW-00; Sun, 03 Feb 2002 11:08:59 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XJa1-0007Gy-00; Sun, 03 Feb 2002 11:09:01 +0100
Subject: Re: State of AWT
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: Classpath Project <classpath@gnu.org>
In-Reply-To: <87665fmhdr.fsf@creche.redhat.com>
References: <87ofjca52l.fsf@creche.redhat.com>
	<1012686965.13969.23.camel@elsschot> <871yg3o5xr.fsf@creche.redhat.com>
	<1012693771.13969.40.camel@elsschot>  <87665fmhdr.fsf@creche.redhat.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 03 Feb 2002 11:09:01 +0100
Message-Id: <1012730941.17456.17.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sun, 2002-02-03 at 03:25, Tom Tromey wrote:
> Mark> /tmp$ cp -r ~/src/classpath/gnu/java/awt gtkpeers/gnu/java/
> Mark> /tmp$ cd gtkpeers
> Mark> /tmp$ for i in gnu/java/awt/peer/gtk/*.java; do gcj -fPIC -g -fjni -c -o
> 
> You also need gnu.java.awt.image.
> Without that, I think the .so will have unresolved symbols and won't
> link at runtime.

Yes! That was it. Thanks. I can now see a window with buttons on my
screen and lots of stacktraces. I am so excited :)

For people trying to do this themselves. You will have to include all
java files from gnu/java/awt/image and gnu/java/awt/peer/gtk in the
shared library, but not any more.

$ for i in gnu/java/awt/image/*.java gnu/java/awt/peer/gtk/*.java; do
gcj -fPIC -g -fjni -c -o `basename $i .java`.o $i; done
$ gcc -shared -o lib-gnu-java-awt.so *.o

Cheers,

Mark


From nferrier@tapsellferrier.co.uk Sun Feb 03 07:39:14 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16XLvO-0000r0-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 07:39:14 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16XMCj-0003nr-00; Sun, 03 Feb 2002 12:57:09 +0000
To: tromey@redhat.com
Cc: classpath@gnu.org
Subject: Re: dumb build questions
References: <87u1szphni.fsf@tf1.tapsellferrier.co.uk>
	<873d0jmh9c.fsf@creche.redhat.com>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 03 Feb 2002 12:57:09 +0000
In-Reply-To: <873d0jmh9c.fsf@creche.redhat.com>
Message-ID: <87it9epvtm.fsf@tf1.tapsellferrier.co.uk>
Lines: 59
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Tom Tromey <tromey@redhat.com> writes:

> Nic> Doing this: 
> Nic>    whereis automake 
>  
> `whereis' isn't really reliable.  I don't know what it is doing 
> exactly (I've never used or even heard of whereis), but it sure isn't 
> searching $PATH. 

This is from man:

  whereis then attempts to locate the desired
  program in a list of standard Linux places

which is why it finds the one in /usr/bin first. It's a useful little
tool but it's not intended to sort out path dependancies, one uses
which (or as you say, type) for that.

  
> If you use bash, try `type automake'.  For me: 
>  
>     creche. whereis automake 
>     automake: /usr/bin/automake /usr/local/bin/automake /usr/share/automake 
>     creche. type automake 
>     automake is hashed (/usr/local/bin/automake) 

I do use bash and that does work:

        automake is hashed (/usr/local/bin/automake)

because it's first in the path, you can also tell that by doing:

   which automake


But it seems that the wrong macro files are being picked up. I
presume that I'm getting confused and that isn't happening - the
location of the macro files is hardcoded into the binary of
automake, yes?

What I get from aclocal is this:



aclocal: configure.in: 71: macro `AM_DISABLE_STATIC' not found in library
aclocal: configure.in: 72: macro `AM_PROG_LIBTOOL' not found in library
aclocal: configure.in: 110: macro `AM_PATH_GTK' not found in library
aclocal: configure.in: 111: macro `AM_PATH_GLIB' not found in library
aclocal: configure.in: 115: macro `AM_PATH_LIBART' not found in library


I'm using autoconf 2.52 as well as automake 1.5. My version of
libtool is 1.4.2a.


Please help me Obi Wan Kenobi. You're my only hope.


Nic


From mark@wildebeest.org Sun Feb 03 09:20:33 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XNVQ-0005JE-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 09:20:32 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XNVN-0005RG-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 15:20:29 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XNVP-000881-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 15:20:31 +0100
Subject: FOSDEM (Brussels February 16 & 17)
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 03 Feb 2002 15:20:31 +0100
Message-Id: <1012746031.17456.57.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

Is someone going to FOSDEM in Brussels february 16 and 17?
http://www.fosdem.org/

It seems like a fun free software developer meeting.
There are a lot of interesting people and projects coming.

Miguel de Icaza will be there to talk about the Mono project. Which
seems interesting since they are also working on a standard class
library for that (and are competing with the official GNU project dotGNU
pnetlib which is also making such a library). And they also seem to be
working together with the Intel Orp people.

Richard Dale will be telling about the KDE/QT bindings for Java (and
other languages).

The GNUStep people will be there which should be interesting since they
are working much longer then we on a open specification.

Lots of info on Gnome 2.0, the FSF Award ceremony, talks about software
patents etc. There will be lots more talks which might not have any
connection with the free java projects but which should be interesting
any way.

And it would be fun to meet some of you Classpath hackers in person. So
if anybody else is going please let me know.

Cheers,

Mark


From mark@wildebeest.org Sun Feb 03 09:23:05 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XNXt-0005Mt-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 09:23:05 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XNBF-0005Q5-00; Sun, 03 Feb 2002 14:59:41 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XNBH-00083e-00; Sun, 03 Feb 2002 14:59:43 +0100
Subject: Re: dumb build questions
From: Mark Wielaard <mark@klomp.org>
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: tromey@redhat.com, classpath@gnu.org
In-Reply-To: <87it9epvtm.fsf@tf1.tapsellferrier.co.uk>
References: <87u1szphni.fsf@tf1.tapsellferrier.co.uk>
	<873d0jmh9c.fsf@creche.redhat.com> 
	<87it9epvtm.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 03 Feb 2002 14:59:43 +0100
Message-Id: <1012744783.17456.37.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sun, 2002-02-03 at 13:57, Nic Ferrier wrote:
> What I get from aclocal is this:
> 
> aclocal: configure.in: 71: macro `AM_DISABLE_STATIC' not found in library
> aclocal: configure.in: 72: macro `AM_PROG_LIBTOOL' not found in library
> aclocal: configure.in: 110: macro `AM_PATH_GTK' not found in library
> aclocal: configure.in: 111: macro `AM_PATH_GLIB' not found in library
> aclocal: configure.in: 115: macro `AM_PATH_LIBART' not found in library
> 
> 
> I'm using autoconf 2.52 as well as automake 1.5. My version of
> libtool is 1.4.2a.

On my system (Debian GNU/Linux unstable/sid with automake1.5):
AM_DISABLE_STATIC is defined in /usr/share/aclocal/libtool.m4
AM_PROG_LIBTOOL is also defined in /usr/share/aclocal/libtool.m4
that file comes from the libtool 1.4.2-4 package
AM_PATH_GTK is defined in /usr/share/aclocal/gtk.m4
which comes from the libgtk1.2-dev 1.2.10-9 package
AM_PATH_GLIB is defined in /usr/share/aclocal/glib.m4
which comes from the libglib1.2-dev 1.2.10-3 package
AM_PATH_LIBART is defined in /usr/share/aclocal/libart.m4
which comes from the libart-dev 1.4.1.4-1 package

If those files are in the "wrong" directory on your system maybe you can
copy them?

Cheers,

Mark


From nferrier@tapsellferrier.co.uk Sun Feb 03 09:57:49 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16XO5U-0008VM-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 09:57:48 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16XOMi-0003sS-00; Sun, 03 Feb 2002 15:15:36 +0000
To: Mark Wielaard <mark@klomp.org>
Cc: tromey@redhat.com,  classpath@gnu.org
Subject: Re: dumb build questions
References: <87u1szphni.fsf@tf1.tapsellferrier.co.uk>
	<873d0jmh9c.fsf@creche.redhat.com>
	<87it9epvtm.fsf@tf1.tapsellferrier.co.uk>
	<1012744783.17456.37.camel@elsschot>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 03 Feb 2002 15:15:36 +0000
In-Reply-To: <1012744783.17456.37.camel@elsschot>
Message-ID: <87g04ippev.fsf@tf1.tapsellferrier.co.uk>
Lines: 40
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> Hi, 
>  
> On Sun, 2002-02-03 at 13:57, Nic Ferrier wrote: 
> > What I get from aclocal is this: 
> >  
> > aclocal: configure.in: 71: macro `AM_DISABLE_STATIC' not found in library 
> > aclocal: configure.in: 72: macro `AM_PROG_LIBTOOL' not found in library 
> > aclocal: configure.in: 110: macro `AM_PATH_GTK' not found in library 
> > aclocal: configure.in: 111: macro `AM_PATH_GLIB' not found in library 
> > aclocal: configure.in: 115: macro `AM_PATH_LIBART' not found in library 
> >  
> >  
> > I'm using autoconf 2.52 as well as automake 1.5. My version of 
> > libtool is 1.4.2a. 
>  
> On my system (Debian GNU/Linux unstable/sid with automake1.5): 
> AM_DISABLE_STATIC is defined in /usr/share/aclocal/libtool.m4 
> AM_PROG_LIBTOOL is also defined in /usr/share/aclocal/libtool.m4 
> that file comes from the libtool 1.4.2-4 package 
> AM_PATH_GTK is defined in /usr/share/aclocal/gtk.m4 
> which comes from the libgtk1.2-dev 1.2.10-9 package 
> AM_PATH_GLIB is defined in /usr/share/aclocal/glib.m4 
> which comes from the libglib1.2-dev 1.2.10-3 package 
> AM_PATH_LIBART is defined in /usr/share/aclocal/libart.m4 
> which comes from the libart-dev 1.4.1.4-1 package 
>  

Ah! Of course! That explains it. Keeping a dual ac system requires me
to keep both versions in sync with all the extra packages that define
autocinf stuff.

Gotcha.


Thanks Mark.


Nic


From mark@wildebeest.org Sun Feb 03 10:32:46 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XOdK-0002Xe-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 10:32:46 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XOGE-0005Tx-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 16:08:54 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XOGG-0008RX-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 16:08:56 +0100
Subject: TODO list for the next release
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 03 Feb 2002 16:08:56 +0100
Message-Id: <1012748936.17458.106.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

Here is my TODO list for the next (0.03) release.
It seems like a good idea to get a release out the door now that we have
the AWT and license clarification worked out and the libraries seem to
work with Orp 1.0.9 out of the box. 0.02 was released more then a year
ago and we made lots of progress since then. Lets show the world!

Brian, you have been our release master in the past. Will you also do
the actual release this time? When would you have time? I think we
should set a target date somewhere next week (friday or next weekend). I
will try to make sure that the things on the list below are done by
friday.

What do other people think? Am I missing something obvious that is
needed before the release?

TODO for 0.03:
- Check and apply patches in Savannah bugdatabase
  <http://savannah.gnu.org/patch/index.php?group_id=85>.
  A lot of the patches that Intel submitted were set to postponed but
  the copyright assignment papers have been sorted out so they can go in
  now.
- Add workaround for compiling with gcj (3.0.x and 3.1 CVS). I have two 
  workaround for compiling with gcj in my local tree. It might be a good
  idea to apply them.
- Check and update README, HACKING, NEWS and webpages for new release.
- Figure out why "make dist" does not work.
- Check build instructions when make dist does work so people can easily
  download the Classpath 0.03 and the ORP 1.0.9 release on a clean
  machine and get it working out of the box.
- Make release announcement for announce newsgroup, Freshmeat, etc.

Fun to have but not neccessary/to much work for 0.03:
- Popping up a AWT window with ORP
  (I have seen it "work" under gcj but cannot get it working with ORP.)
- Working out of the box with other free JVMs. SableVM and Kissme seem 
  to be not that much work to get working out of the box and Etienne
  wanted to contribute some build magic to make it simpler. Maybe if he
  has time.
- T-Shirt! Last time I promised to make T-Shirts if we ever got a new 
  release. So I should finally make them now :)

Cheers,

Mark


From nferrier@tapsellferrier.co.uk Sun Feb 03 10:41:10 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16XOlS-000301-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 10:41:10 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16XP2s-0004Rw-00; Sun, 03 Feb 2002 15:59:10 +0000
To: classpath@gnu.org
Subject: configure (build) problem
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 03 Feb 2002 15:59:09 +0000
Message-ID: <874rkypnea.fsf@tf1.tapsellferrier.co.uk>
Lines: 54
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark wants to get the build right for a fresh machine. Hopefully what
I'm doing can feed into that.

I've got autocinf generating my configure script now. But when I run
it like this:

  $ ./configure --with-gcj

I get the following output:


  checking build system type... i586-pc-linux-gnu
  checking host system type... i586-pc-linux-gnu
  checking target system type... i586-pc-linux-gnu
  checking for a BSD compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  checking for mawk... mawk
  checking whether make sets ${MAKE}... yes
  checking whether make sets ${MAKE}... (cached) yes
  checking whether ln -s works... yes
  checking for a BSD compatible install... /usr/bin/install -c
  checking for gcj... /home/nferrier/projects/gnu/gcc/local/bin/gcj
  checking for jikes... no
  checking whether to enable maintainer-specific portions of Makefiles... no
  checking for sh... /bin/sh
  checking for find... /usr/bin/find
  checking for zip... /usr/bin/zip
  checking for perl... /usr/bin/perl
  configure: creating ./config.status
  config.status: creating Makefile
  config.status: creating com/Makefile
  config.status: creating com/sun/Makefile
  config.status: creating com/sun/javadoc/Makefile
  config.status: creating doc/Makefile
  config.status: creating gnu/Makefile
  config.status: creating gnu/classpath/Makefile
  config.status: creating gnu/classpath/Configuration.java
  config.status: creating gnu/java/Makefile
  config.status: creating gnu/java/awt/Makefile
  config.status: creating gnu/java/awt/image/Makefile
  config.status: creating gnu/java/awt/peer/Makefile
  config.status: creating gnu/java/awt/peer/gtk/Makefile
  config.status: creating gnu/java/beans/Makefile
  config.status: creating gnu/java/beans/editors/Makefile
  config.status: creating gnu/java/beans/info/Makefile
  config.status: creating gnu/java/io/Makefile
  config.status: error: cannot find input file: gnu/java/io/Makefile.in


I'm using what's in the head branch of the CVS.



Nic


From mark@wildebeest.org Sun Feb 03 11:07:26 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XPAs-0003nf-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 11:07:26 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XPAI-00065P-00; Sun, 03 Feb 2002 17:06:50 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XPAJ-00010z-00; Sun, 03 Feb 2002 17:06:51 +0100
Subject: Re: configure (build) problem
From: Mark Wielaard <mark@klomp.org>
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
In-Reply-To: <874rkypnea.fsf@tf1.tapsellferrier.co.uk>
References: <874rkypnea.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 03 Feb 2002 17:06:51 +0100
Message-Id: <1012752411.17456.114.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sun, 2002-02-03 at 16:59, Nic Ferrier wrote:
> Mark wants to get the build right for a fresh machine. Hopefully what
> I'm doing can feed into that.
Yeah. Thanks for going through all the trouble. Part of the reason of
making a release will be to help people just do a configure && make &&
make install and not figure out all the GNU auto* stuff.

> I've got autocinf generating my configure script now. But when I run
> it like this:
> 
>   $ ./configure --with-gcj
> 
> I get the following output:
>
>   checking build system type... i586-pc-linux-gnu
>   checking host system type... i586-pc-linux-gnu
>   checking target system type... i586-pc-linux-gnu
> [...]
>   config.status: creating gnu/java/beans/editors/Makefile
>   config.status: creating gnu/java/beans/info/Makefile
>   config.status: creating gnu/java/io/Makefile
>   config.status: error: cannot find input file: gnu/java/io/Makefile.in
> 
> I'm using what's in the head branch of the CVS.

How strange. I just did a clean checkout and then a:
aclocal; autoheader; automake; autoconf

The automake step generated the Makefile.in from the Makefile.am in
gnu/java/io.

So doing a ./configure --with-gcj worked like a charm for me.

You do have a file gnu/java/io/Makefile.am?
Does rerunning automake create the gnu/java/io/Makefile.in file?
What about the files in gnu/java/beans/info? Do the Makefile.am,
Makefile.in and Makefile file exist in that one?

Cheers,

Mark


From cbj@gnu.org Sun Feb 03 11:34:18 2002
Received: from fe7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XPar-0006KB-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 11:34:18 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sun, 3 Feb 2002 11:34:15 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g13GYGO06193;
	Sun, 3 Feb 2002 11:34:16 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: TODO list for the next release
References: <1012748936.17458.106.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 03 Feb 2002 11:34:15 -0500
In-Reply-To: <1012748936.17458.106.camel@elsschot>
Message-ID: <m3g04ifrso.fsf@lyta.haphazard.org>
Lines: 50
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> - Check and apply patches in Savannah bugdatabase
>   <http://savannah.gnu.org/patch/index.php?group_id=85>.
>   A lot of the patches that Intel submitted were set to postponed but
>   the copyright assignment papers have been sorted out so they can go in
>   now.

The FSF has a signed document, but it failed to define developer
names, so RMS is not going to sign it until they get a letterhead
defining whose contributions count.  So I set the patches to postponed
again.

> - Add workaround for compiling with gcj (3.0.x and 3.1 CVS). I have two 
>   workaround for compiling with gcj in my local tree. It might be a good
>   idea to apply them.

Is there some way to detect gcj version and apply the right workaround
as needed?

> - Check and update README, HACKING, NEWS and webpages for new release.

Right, some of this is done already but needs updating especially with
regards to AWT.  

> - Figure out why "make dist" does not work.

I suspect some Makefile's including Java source need updating.  I can
probably fix anything else as well.

> - Check build instructions when make dist does work so people can easily
>   download the Classpath 0.03 and the ORP 1.0.9 release on a clean
>   machine and get it working out of the box.
> - Make release announcement for announce newsgroup, Freshmeat, etc.

Could you do this?  Aaron made the original announcement on Freshmeat.

> Fun to have but not neccessary/to much work for 0.03:
> - Popping up a AWT window with ORP
>   (I have seen it "work" under gcj but cannot get it working with ORP.)

I'd love to have the AWT in the same quasi working condition with ORP.
I'll look into that today.  The superbowl is boring between
commercials anyway.

I still have access to the ftp area on alpha.gnu.org as far as I know
so I should be able to make a release available when we're ready.

-- 
Brian Jones <cbj@gnu.org>


From mark@wildebeest.org Sun Feb 03 12:25:05 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XQO0-0008IA-00; Sun, 03 Feb 2002 12:25:04 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XQNx-00068L-00; Sun, 03 Feb 2002 18:25:01 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XQNz-0001FU-00; Sun, 03 Feb 2002 18:25:03 +0100
Subject: Re: TODO list for the next release
From: Mark Wielaard <mark@klomp.org>
To: Brian Jones <cbj@gnu.org>
Cc: classpath@gnu.org
In-Reply-To: <m3g04ifrso.fsf@lyta.haphazard.org>
References: <1012748936.17458.106.camel@elsschot> 
	<m3g04ifrso.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 03 Feb 2002 18:25:02 +0100
Message-Id: <1012757102.17456.144.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sun, 2002-02-03 at 17:34, Brian Jones wrote:
> Mark Wielaard <mark@klomp.org> writes:
> 
> > - Check and apply patches in Savannah bugdatabase
> >   <http://savannah.gnu.org/patch/index.php?group_id=85>.
> >   A lot of the patches that Intel submitted were set to postponed but
> >   the copyright assignment papers have been sorted out so they can go in
> >   now.
> 
> The FSF has a signed document, but it failed to define developer
> names, so RMS is not going to sign it until they get a letterhead
> defining whose contributions count.  So I set the patches to postponed
> again.

Bummer. I might take a look to see if I can reproduce the errors and
write the fixes myself then. Or are you expecting a quick turnaround for
the papers?

> > - Add workaround for compiling with gcj (3.0.x and 3.1 CVS). I have two 
> >   workaround for compiling with gcj in my local tree. It might be a good
> >   idea to apply them.
>
> Is there some way to detect gcj version and apply the right workaround
> as needed?

The workarounds are really simple and don't really hurt in other
situations. The one needed for gcj 3.0.x is:

diff -u -u -r1.14 BigInteger.java
--- java/math/BigInteger.java	22 Jan 2002 22:27:00 -0000	1.14
+++ java/math/BigInteger.java	3 Feb 2002 17:05:21 -0000
@@ -37,7 +37,7 @@
 
 package java.math;
 
-import gnu.java.math.*;
+import gnu.java.math.MPN;
 import java.util.Random;
 import java.io.ObjectInputStream;
 import java.io.ObjectOutputStream;

Which I will checkin after this email.

The one for gcc 3.1 (CVS) is:

--- vm/reference/java/lang/Class.java	22 Jan 2002 22:27:03 -0000	1.14
+++ vm/reference/java/lang/Class.java	3 Feb 2002 17:05:22 -0000
@@ -68,7 +68,7 @@
 
 public class Class {
     private Object[] signers = null;
-    private ProtectionDomain protectionDomain = null;
+    private ProtectionDomain pd = null;
     
     // The unknown protection domain.
     private final static ProtectionDomain unknownProtectionDomain;
@@ -546,10 +546,10 @@
         if (sm != null)
             sm.checkPermission(protectionDomainPermission);
 
-        if (protectionDomain == null)
+        if (pd == null)
             return unknownProtectionDomain;
         else
-            return protectionDomain;
+            return pd;
     }
 
 }

I have to check if this gives any problem with Orp but I don't think
that variable is actually used at the moment.

For the gcj from CVS we have another problem that prevents compiling the
collection classes.
<http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&database=gcc&pr=4715>
The workaround in that bugreport works for me but I don't know the
status.

And I have had some trouble with ORP accepting classes compiled with gcj
(3.0.3) I don't know what or why that is though or if it is a bug in gcj
-C or in ORP (see the orp mailinglist for more info). So maybe we should
recommend jikes anyway for now.
 
> > - Check build instructions when make dist does work so people can easily
> >   download the Classpath 0.03 and the ORP 1.0.9 release on a clean
> >   machine and get it working out of the box.
> > - Make release announcement for announce newsgroup, Freshmeat, etc.
> 
> Could you do this?  Aaron made the original announcement on Freshmeat.
Sure. Bragging about a project sounds like fun :)

> > Fun to have but not neccessary/to much work for 0.03:
> > - Popping up a AWT window with ORP
> >   (I have seen it "work" under gcj but cannot get it working with ORP.)
> 
> I'd love to have the AWT in the same quasi working condition with ORP.
> I'll look into that today.  The superbowl is boring between
> commercials anyway.

Funny. I never saw the superbowl (we don't have a football tradition in
Europe) but all I ever hear about it is that you should watch the
commercials. Strange people those Americans :)

> I still have access to the ftp area on alpha.gnu.org as far as I know
> so I should be able to make a release available when we're ready.

Great. Should we aim the release for Friday?

There is one more thing that I want to have working for the release and
that is Mauve with Orp. Then we can report what is actually supposed to
work and what not. So people can easily test their installation.

Cheers,

Mark


From mark@wildebeest.org Sun Feb 03 12:53:06 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XQp7-0002Kg-00; Sun, 03 Feb 2002 12:53:05 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XQob-00069n-00; Sun, 03 Feb 2002 18:52:33 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XQod-0001Kv-00; Sun, 03 Feb 2002 18:52:35 +0100
Subject: Re: TODO list for the next release
From: Mark Wielaard <mark@klomp.org>
To: Mark Wielaard <mark@klomp.org>
Cc: Brian Jones <cbj@gnu.org>, classpath@gnu.org
In-Reply-To: <1012757102.17456.144.camel@elsschot>
References: <1012748936.17458.106.camel@elsschot> 
	<m3g04ifrso.fsf@lyta.haphazard.org>  <1012757102.17456.144.camel@elsschot>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 03 Feb 2002 18:52:35 +0100
Message-Id: <1012758755.17458.153.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sun, 2002-02-03 at 18:25, Mark Wielaard wrote:
> The one for gcc 3.1 (CVS) is:
> 
> --- vm/reference/java/lang/Class.java	22 Jan 2002 22:27:03 -0000	1.14
> +++ vm/reference/java/lang/Class.java	3 Feb 2002 17:05:22 -0000
> @@ -68,7 +68,7 @@
>  
>  public class Class {
>      private Object[] signers = null;
> -    private ProtectionDomain protectionDomain = null;
> +    private ProtectionDomain pd = null;
>      
>      // The unknown protection domain.
>      private final static ProtectionDomain unknownProtectionDomain;
> @@ -546,10 +546,10 @@
>          if (sm != null)
>              sm.checkPermission(protectionDomainPermission);
>  
> -        if (protectionDomain == null)
> +        if (pd == null)
>              return unknownProtectionDomain;
>          else
> -            return protectionDomain;
> +            return pd;
>      }
>  
>  }
> 
> I have to check if this gives any problem with Orp but I don't think
> that variable is actually used at the moment.

Hmmm. ORP uses Class.setProtectionDomain() to set the initial protection
domain. But we don't provide that method at the moment. And they
actually need a whole couple of changes to the Class(Loader) mechanism
to have ORP work correctly (which have been submitted to savannah). It
is a miracle that what we have now actually works :)

Changing the variable name this does not make the situation better or
worse for our ORP interoperability. But does bring compiling with gcj
3.1 (CVS) a step closer. So I will commit it.

Cheers,

Mark


From cbj@gnu.org Sun Feb 03 13:20:01 2002
Received: from fe5.southeast.rr.com ([24.93.67.52] helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XRFB-0003Gb-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 13:20:01 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sun, 3 Feb 2002 13:19:54 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g13IJpx06838;
	Sun, 3 Feb 2002 13:19:51 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: TODO list for the next release
References: <1012748936.17458.106.camel@elsschot>
	<m3g04ifrso.fsf@lyta.haphazard.org>
	<1012757102.17456.144.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 03 Feb 2002 13:19:50 -0500
In-Reply-To: <1012757102.17456.144.camel@elsschot>
Message-ID: <m3r8o25sxl.fsf@lyta.haphazard.org>
Lines: 18
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> > The FSF has a signed document, but it failed to define developer
> > names, so RMS is not going to sign it until they get a letterhead
> > defining whose contributions count.  So I set the patches to postponed
> > again.
> 
> Bummer. I might take a look to see if I can reproduce the errors and
> write the fixes myself then. Or are you expecting a quick turnaround for
> the papers?

Haven't heard anything, the turnaround would be at least a week is my
guess, but is mostly dependent on RMS's schedule once the new piece of
paper is sent and arrives in Boston.

Brian
-- 
Brian Jones <cbj@gnu.org>


From nferrier@tapsellferrier.co.uk Sun Feb 03 13:42:22 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16XRan-000644-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 13:42:21 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16XRsE-0005T3-00; Sun, 03 Feb 2002 19:00:22 +0000
To: classpath@gnu.org
Subject: build (compilation errors)
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 03 Feb 2002 19:00:22 +0000
Message-ID: <87g04io0ft.fsf@tf1.tapsellferrier.co.uk>
Lines: 37
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

A fresh check out of Classpath CVS fixed my configure problems.

But now I have a compile problem:

$ make
Making all in lib
make[1]: Entering directory `/home/nferrier/projects/orp/classpath/lib'
top_builddir=.. /bin/sh ./gen-classlist.sh standard
if ! [ -e ../include ]; then -mkdir ../include; fi
top_srcdir=.. /usr/bin/perl ./mkdep.pl -h
top_srcdir=.. /usr/bin/perl ./mkdep.pl -j
make[1]: Leaving directory `/home/nferrier/projects/orp/classpath/lib'
make[1]: Entering directory `/home/nferrier/projects/orp/classpath/lib'
/home/nferrier/projects/gnu/gcc/local/bin/gcj -C -d . @classes
./../vm/current/java/lang/Class.java:71: Duplicate variable declaration: `ProtectionDomain protectionDomain' was `null protectionDomain' (<built-in>:0).
       private ProtectionDomain protectionDomain = null;
                                ^
./../java/util/LinkedHashMap.java:0: tree check: expected class 'd', have 'x' (identifier_node) in check_inner_circular_reference, at java/parse.y:5247
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[1]: *** [compile-classes] Error 1
make[1]: Leaving directory `/home/nferrier/projects/orp/classpath/lib'
make: *** [all-recursive] Error 1


I configured this with:

  configure --with-gcj

I have GCJ from CVS built locally.

I noticed Mark saying that there was a problem with GCJ 3.0 and
3.1. Is this the cause of the compilation failure?


Nic


From bryce@waitaki.otago.ac.nz Sun Feb 03 15:27:40 2002
Received: from 210-86-60-13.jetstart.xtra.co.nz ([210.86.60.13] helo=localhost.localdomain)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XTEh-0003Cn-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 15:27:39 -0500
Received: from waitaki.otago.ac.nz ([192.168.2.2])
	by localhost.localdomain (8.11.2/8.11.2) with ESMTP id g13K6jf24319;
	Mon, 4 Feb 2002 09:06:45 +1300
Message-ID: <3C5D9D18.7050607@waitaki.otago.ac.nz>
Date: Mon, 04 Feb 2002 09:27:04 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: TODO list for the next release
References: <1012748936.17458.106.camel@elsschot>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

>- Add workaround for compiling with gcj (3.0.x and 3.1 CVS). I have two 
>  workaround for compiling with gcj in my local tree. It might be a good
>  idea to apply them.
>

I will try to fix any remaining issues preventing classpath being 
compiled with GCC 3.1.

regards

Bryce.




From mark@wildebeest.org Sun Feb 03 15:34:09 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XTKy-00055R-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 15:34:09 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XTKQ-0006Gg-00; Sun, 03 Feb 2002 21:33:34 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XTKS-0001oL-00; Sun, 03 Feb 2002 21:33:36 +0100
Subject: Re: build (compilation errors)
From: Mark Wielaard <mark@klomp.org>
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
In-Reply-To: <87g04io0ft.fsf@tf1.tapsellferrier.co.uk>
References: <87g04io0ft.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 03 Feb 2002 21:33:36 +0100
Message-Id: <1012768416.17458.175.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sun, 2002-02-03 at 20:00, Nic Ferrier wrote:
> $ make
> Making all in lib
> make[1]: Entering directory `/home/nferrier/projects/orp/classpath/lib'
> top_builddir=.. /bin/sh ./gen-classlist.sh standard
> if ! [ -e ../include ]; then -mkdir ../include; fi
> top_srcdir=.. /usr/bin/perl ./mkdep.pl -h
> top_srcdir=.. /usr/bin/perl ./mkdep.pl -j
> make[1]: Leaving directory `/home/nferrier/projects/orp/classpath/lib'
> make[1]: Entering directory `/home/nferrier/projects/orp/classpath/lib'
> /home/nferrier/projects/gnu/gcc/local/bin/gcj -C -d . @classes
> ./../vm/current/java/lang/Class.java:71: Duplicate variable declaration: `ProtectionDomain protectionDomain' was `null protectionDomain' (<built-in>:0).
>        private ProtectionDomain protectionDomain = null;
>                                 ^
> ./../java/util/LinkedHashMap.java:0: tree check: expected class 'd', have 'x' (identifier_node) in check_inner_circular_reference, at java/parse.y:5247
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> make[1]: *** [compile-classes] Error 1
> make[1]: Leaving directory `/home/nferrier/projects/orp/classpath/lib'
> make: *** [all-recursive] Error 1
> 
> 
> I configured this with:
> 
>   configure --with-gcj
> 
> I have GCJ from CVS built locally.
> 
> I noticed Mark saying that there was a problem with GCJ 3.0 and
> 3.1. Is this the cause of the compilation failure?

Yes. I just checked in a workaround for the first issue with Class.java
(by renaming the protectionDomain field to pd). But for the second issue
you will need the patch for gcc/java/parse.y from Tom Tromey mentioned
in this bug report:
<http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&database=gcc&pr=4715>.

But compiling with jikes or gcj 3.0.x should work out of the box (now).

Cheers,

Mark


From mark@wildebeest.org Sun Feb 03 15:54:03 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XTeE-0005p9-00
	for <classpath@gnu.org>; Sun, 03 Feb 2002 15:54:02 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XTdq-0006Ha-00; Sun, 03 Feb 2002 21:53:38 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XTds-0001sX-00; Sun, 03 Feb 2002 21:53:40 +0100
Subject: Re: TODO list for the next release
From: Mark Wielaard <mark@klomp.org>
To: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
Cc: classpath@gnu.org
In-Reply-To: <3C5D9D18.7050607@waitaki.otago.ac.nz>
References: <1012748936.17458.106.camel@elsschot> 
	<3C5D9D18.7050607@waitaki.otago.ac.nz>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 03 Feb 2002 21:53:40 +0100
Message-Id: <1012769620.17458.188.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi Bryce,

On Sun, 2002-02-03 at 21:27, Bryce McKinlay wrote:
> Mark Wielaard wrote:
> 
> >- Add workaround for compiling with gcj (3.0.x and 3.1 CVS). I have two 
> >  workaround for compiling with gcj in my local tree. It might be a good
> >  idea to apply them.
> 
> I will try to fix any remaining issues preventing classpath being 
> compiled with GCC 3.1.

The only issue that I don't know how to work around in Classpath for 3.1
is the one that Nick also just found:
<http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&database=gcc&pr=4715>

Other then that there aren't any real issues (all the rest has
workarounds in the Classpath code).

There is a workaround in java/lang/reflect/Proxy.java that works around
a bug in 3.0.x but which I believe is already fixed in 3.1:

            // FIXME workaround for bug in gcj 3.0.x
            // Not needed with the latest gcj from cvs
            //clazz = (Configuration.HAVE_NATIVE_GENERATE_PROXY_CLASS
            //         ? generateProxyClass0(loader, data)
            //         : new ClassFactory(data).generate(loader));
            if (Configuration.HAVE_NATIVE_GENERATE_PROXY_CLASS)
              clazz = generateProxyClass0(loader, data);
            else
              {
                ClassFactory cf = new ClassFactory(data);
                clazz = cf.generate(loader);
              }

There is the java.util.TreeMap.TreeIterator constructor workaround for
<http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&database=gcc&pr=4695>:

    TreeIterator(int type)
    {
      // FIXME gcj cannot handle this. Bug java/4695
      // this(type, firstNode(), nil);
      this.type = type;
      this.next = firstNode();
      this.max = nil;
    }

And the workaround for Class.java that I just checked in since gcj
doesn't like the fact the there is a field named protectionDomain in
that class.

Cheers,

Mark




From mark@wildebeest.org Mon Feb 04 07:18:41 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Xi53-0007ij-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 07:18:41 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Xi4z-0006x4-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 13:18:37 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16Xi51-0006Xu-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 13:18:39 +0100
Subject: NEWS file for next release
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 04 Feb 2002 13:18:39 +0100
Message-Id: <1012825119.17458.210.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

I have updated the NEWS file and the package status web page for the
next release. Please let me know if I missed some important improvement
to Classpath since 0.02.

New in release 0.03 (TBD)
* More merges with libgcj have been performed including java.math which now
  provides a pure Java implementation of that package.
  Current status at <http://gcc.gnu.org/java/libgcj-classpath-compare.html>
* A pure Java implementation (Jazzlib) of java.util.zip is available.
* Added the java.rmi implementation that Transvirtual donated to the FSF.
* Includes jni.h now, eliminating the need to specify a particular VM
  via configure.
* No proprietary classes or programs are required to compile.
  Compiles out of the box with jikes or gcj.
* Separation of compiling Java source and native libraries through the 
  configure mechanism.  If given no arguments, configure will setup the
  subsequent build to only produce Java bytecode (.class files).  More
  information is available in INSTALLING.
* Support for compiling in a separate directory, as an example you may
  cd classpath-0.03; mkdir build; cd build; ../configure; make
* Works with Orp 1.0.9 out of the box. Build instructions can be found at
  <http://www.gnu.org/software/classpath/doc/orp.html>
* Lots of bugfixes that were found by using Classpath with the gcj, Orp,
  SableVM, KissMe and Jaos VMs. Please use our bugdatabase at
  <http://savannah.gnu.org/support/?group_id=85>
* Lots of updates to make Classpath more compliant with the 1.2, 1.3 and 1.4
  API specification. The current status can be found at
  <http://www.gnu.org/software/classpath/status.html>
* All files are now distributed under the same terms. Added clarification to
  GPL exception.

Cheers,

Mark


From nferrier@tapsellferrier.co.uk Mon Feb 04 07:32:01 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16XiHx-0001AS-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 07:32:01 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16XiZR-0008Q0-00; Mon, 04 Feb 2002 12:50:05 +0000
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: NEWS file for next release
References: <1012825119.17458.210.camel@elsschot>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 04 Feb 2002 12:50:05 +0000
In-Reply-To: <1012825119.17458.210.camel@elsschot>
Message-ID: <87sn8hl8ci.fsf@tf1.tapsellferrier.co.uk>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> * Support for compiling in a separate directory, as an example you may 
>   cd classpath-0.03; mkdir build; cd build; ../configure; make 

This didn't work for me on my recent build.


> * Works with Orp 1.0.9 out of the box. Build instructions can be found at 
>   <http://www.gnu.org/software/classpath/doc/orp.html> 

I'm going to test this today... I found I couldn't build ORP 1.0.9 as
per their instructions.


Nic


From mark@wildebeest.org Mon Feb 04 07:47:15 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XiWh-00036P-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 07:47:15 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XiW8-0006yU-00; Mon, 04 Feb 2002 13:46:40 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XiWA-0006dj-00; Mon, 04 Feb 2002 13:46:42 +0100
Subject: Re: NEWS file for next release
From: Mark Wielaard <mark@klomp.org>
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
In-Reply-To: <87sn8hl8ci.fsf@tf1.tapsellferrier.co.uk>
References: <1012825119.17458.210.camel@elsschot> 
	<87sn8hl8ci.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 04 Feb 2002 13:46:42 +0100
Message-Id: <1012826802.17458.238.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-02-04 at 13:50, Nic Ferrier wrote:
> Mark Wielaard <mark@klomp.org> writes:
> 
> > * Support for compiling in a separate directory, as an example you may 
> >   cd classpath-0.03; mkdir build; cd build; ../configure; make 
> 
> This didn't work for me on my recent build.

But this was with gcc 3.1 from CVS right? It should work with gcc 3.0.x
now.

> > * Works with Orp 1.0.9 out of the box. Build instructions can be found at 
> >   <http://www.gnu.org/software/classpath/doc/orp.html> 
> 
> I'm going to test this today... I found I couldn't build ORP 1.0.9 as
> per their instructions.

Great. Thanks.

Here is something I recently send to the Orp mailinglist when building
1.09. Please let me know if these things are neccessary for your build.

    I tried it out and here are some problems that I had using Debian
    GNU/Linux (unstable/sid) with a 2.4.17 kernel and gcc 2.95.4 (Debian
    prerelease). Hope it helps someone.
    
    - Need to remove the #include <asm/spinlock.h> from
    root_set_enum_ia32.cpp as I had to with the previous version.
    
    - There seems to be a gcc compiler bug that makes the following
    patch
    necessary:
    --- orp-1.0.9/base_natives/common_olv2/mon_enter_exit.cpp
    +++ orp/base_natives/common_olv2/mon_enter_exit.cpp
    @@ -294,7 +294,7 @@
     #else
                    "nop;nop;nop"
     #endif
    -               ::: "memory"
    +               : : : "memory"
            );
     
     #else

Cheers,

Mark


From cbj@gnu.org Mon Feb 04 08:41:25 2002
Received: from fe7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XjN7-00079Y-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 08:41:25 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 4 Feb 2002 08:41:24 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g14DfOo18522;
	Mon, 4 Feb 2002 08:41:24 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: Nic Ferrier <nferrier@tapsellferrier.co.uk>, classpath@gnu.org
Subject: Re: NEWS file for next release
References: <1012825119.17458.210.camel@elsschot>
	<87sn8hl8ci.fsf@tf1.tapsellferrier.co.uk>
	<1012826802.17458.238.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 04 Feb 2002 08:41:24 -0500
In-Reply-To: <1012826802.17458.238.camel@elsschot>
Message-ID: <m3n0yp4b5n.fsf@lyta.haphazard.org>
Lines: 19
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> Hi,
> 
> On Mon, 2002-02-04 at 13:50, Nic Ferrier wrote:
> > Mark Wielaard <mark@klomp.org> writes:
> > 
> > > * Support for compiling in a separate directory, as an example you may 
> > >   cd classpath-0.03; mkdir build; cd build; ../configure; make 
> > 
> > This didn't work for me on my recent build.
> 
> But this was with gcc 3.1 from CVS right? It should work with gcc 3.0.x
> now.

Hmm, what about building in a separate directory did not work for you?

-- 
Brian Jones <cbj@gnu.org>


From mark@wildebeest.org Mon Feb 04 10:29:22 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Xl3a-0004uq-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 10:29:22 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Xl3W-000750-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 16:29:18 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16Xl3Z-0000Nb-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 16:29:21 +0100
Subject: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 04 Feb 2002 16:29:20 +0100
Message-Id: <1012836560.17458.255.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

The HACKING file says:
  - IBM jikes 1.13 (newer versions up to 1.15 appear to be broken)

I am using jikes Version 1.15 - 26 Sept 2001 and didn't notice any
errors. Does anybody remember why we don't recommend jikes > 1.13?

Cheers,

Mark


From chris.gray@acunia.com Mon Feb 04 10:52:26 2002
Received: from nat.be.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XlPt-0007ya-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 10:52:25 -0500
Received: from acunia.com (IDENT:gray@sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id g14FpTs05025;
	Mon, 4 Feb 2002 16:51:29 +0100
Message-ID: <3C5EAD50.99813548@acunia.com>
Date: Mon, 04 Feb 2002 16:48:32 +0100
From: Chris Gray <chris.gray@acunia.com>
Organization: ACUNIA NV
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <1012836560.17458.255.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

> Hi,
>
> The HACKING file says:
>   - IBM jikes 1.13 (newer versions up to 1.15 appear to be broken)
>
> I am using jikes Version 1.15 - 26 Sept 2001 and didn't notice any
> errors. Does anybody remember why we don't recommend jikes > 1.13?

With Wonka we've had problems with every version after 1.12.1 (!).
"Problems" includes: dumps core on valid input, outputs illegal bytecode

(pushes & pops do not balance) ... if you need more detail I can try to
give it, but it will require a little work (download, compile, try to
run, ...)

Regards

Chris Gray
VM Architect, ACUNIA




From praher.keg@liwest.at Mon Feb 04 12:16:49 2002
Received: from lilzclust02.liwest.at ([212.33.55.12] helo=lilzcluster.liwest.at)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16XmjZ-00056g-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 12:16:49 -0500
Received: from localhost.localdomain by lilzcluster.liwest.at (8.10.2/1.1.2.11/08Jun01-1123AM)
	id g14HGlY0001275121; Mon, 4 Feb 2002 18:16:48 +0100 (MET)
Subject: nio package and asynchronous io
From: Jakob Praher <praher.keg@liwest.at>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0 (Preview Release)
Date: 04 Feb 2002 18:14:05 +0100
Message-Id: <1012842846.637.9.camel@jaques>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

hi all,

do you have any plan on adding nio support and asynchronous io to the
classpath project?
if yes what is your agenda on this subject.

bye

Jakob






From nferrier@tapsellferrier.co.uk Mon Feb 04 12:22:03 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Xmod-0005Ga-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 12:22:03 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16Xn5u-0000WG-00; Mon, 04 Feb 2002 17:39:54 +0000
To: Jakob Praher <praher.keg@liwest.at>
Cc: classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 04 Feb 2002 17:39:54 +0000
In-Reply-To: <1012842846.637.9.camel@jaques>
Message-ID: <87ofj54045.fsf@tf1.tapsellferrier.co.uk>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Jakob Praher <praher.keg@liwest.at> writes:

> hi all, 
>  
> do you have any plan on adding nio support and asynchronous io to the 
> classpath project? 
> if yes what is your agenda on this subject. 
>  

I have done a little bit of work for GCJ with this.

Unfortunately I haven't had any time recently to look at it but it's
very much in my mind because I'm also the developer of GNU-Paperclips
(a servlet engine).

When I have more time I'll probably be able to finish it off, it's
not actually that complicated.


Nic


From praher.keg@liwest.at Mon Feb 04 12:30:07 2002
Received: from lilzclust02.liwest.at ([212.33.55.12] helo=lilzcluster.liwest.at)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16XmwQ-0005e7-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 12:30:06 -0500
Received: from localhost.localdomain by lilzcluster.liwest.at (8.10.2/1.1.2.11/08Jun01-1123AM)
	id g14HU4Y0001283553; Mon, 4 Feb 2002 18:30:05 +0100 (MET)
Subject: Re: nio package and asynchronous io
From: Jakob Praher <praher.keg@liwest.at>
To: classpath@gnu.org
In-Reply-To: <87ofj54045.fsf@tf1.tapsellferrier.co.uk>
References: <1012842846.637.9.camel@jaques> 
	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0 (Preview Release)
Date: 04 Feb 2002 18:27:20 +0100
Message-Id: <1012843643.1451.12.camel@jaques>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Am Mon, 2002-02-04 um 18.39 schrieb Nic Ferrier:

> Jakob Praher <praher.keg@liwest.at> writes:
> 
> > hi all, 
> >  
> > do you have any plan on adding nio support and asynchronous io to the 
> > classpath project? 
> > if yes what is your agenda on this subject. 
> >  
> 
> I have done a little bit of work for GCJ with this.

cool. - is it anywhere I can look at it?
Have you also looked at the new Buffers that are available in merlin?


> 
> Unfortunately I haven't had any time recently to look at it but it's
> very much in my mind because I'm also the developer of GNU-Paperclips
> (a servlet engine).

yeah - this thing could improve the performance of socket based servers
quite abit - I have played with the Selector API abit and it looks like
a huge performance plus.

> 
> When I have more time I'll probably be able to finish it off, it's
> not actually that complicated.

btw:
do have any experience with the orp vm?
what's the performance compared to the client/server hotspot vms?

Jakob

> 
> 
> Nic
> 




From nferrier@tapsellferrier.co.uk Mon Feb 04 12:39:11 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Xn5D-0007VX-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 12:39:11 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16XnMb-0000Wl-00; Mon, 04 Feb 2002 17:57:09 +0000
To: Jakob Praher <praher.keg@liwest.at>
Cc: classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques>
	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>
	<1012843643.1451.12.camel@jaques>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 04 Feb 2002 17:57:09 +0000
In-Reply-To: <1012843643.1451.12.camel@jaques>
Message-ID: <87it9d3zbe.fsf@tf1.tapsellferrier.co.uk>
Lines: 50
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Jakob Praher <praher.keg@liwest.at> writes:

> Am Mon, 2002-02-04 um 18.39 schrieb Nic Ferrier: 
>  
> > Jakob Praher <praher.keg@liwest.at> writes: 
> >  
> > > hi all,  
> > >   
> > > do you have any plan on adding nio support and asynchronous io to the  
> > > classpath project?  
> > > if yes what is your agenda on this subject.  
> > >   
> >  
> > I have done a little bit of work for GCJ with this. 
>  
> cool. - is it anywhere I can look at it? 

Sorry, no. It's not ready for public consumption.


> Have you also looked at the new Buffers that are available in
> merlin? 

Nope. What's merlin? Is that what Sun call 1.4?


> > Unfortunately I haven't had any time recently to look at it but it's 
> > very much in my mind because I'm also the developer of GNU-Paperclips 
> > (a servlet engine). 
>  
> yeah - this thing could improve the performance of socket based servers 
> quite abit - I have played with the Selector API abit and it looks like 
> a huge performance plus. 

Actually, it won't make *that* much difference to servlet
engines. Servlets can only gain from connection nbio (not read and
write) and I imagine that read and write nbio are at least as
important to connection performance.


> btw: 
> do have any experience with the orp vm? 
> what's the performance compared to the client/server hotspot vms? 

I don't use ORP although I am compiling it to see how well it works.

I suggest you do the same and then you can answer your own question!


Nic


From jleuner@elandtech.com Mon Feb 04 13:38:41 2002
Received: from [212.17.38.230] (helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Xo0m-00045u-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 13:38:40 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.33 #1 (Debian))
	id 16Xnx8-0004G1-00; Mon, 04 Feb 2002 18:34:54 +0000
Received: from jleuner by bapli with local (Exim 3.33 #1 (Debian))
	id 16Xo00-0000aG-00; Mon, 04 Feb 2002 18:37:52 +0000
Date: Mon, 4 Feb 2002 18:37:52 +0000
From: John Leuner <jewel@pixie.co.za>
To: Chris Gray <chris.gray@acunia.com>
Cc: Mark Wielaard <mark@klomp.org>, classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
Message-ID: <20020204183752.B1747@bapli>
References: <3C5EAD50.99813548@acunia.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3C5EAD50.99813548@acunia.com>
User-Agent: Mutt/1.3.23i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> > Hi,
> >
> > The HACKING file says:
> >   - IBM jikes 1.13 (newer versions up to 1.15 appear to be broken)
> >
> > I am using jikes Version 1.15 - 26 Sept 2001 and didn't notice any
> > errors. Does anybody remember why we don't recommend jikes > 1.13?
> 
> With Wonka we've had problems with every version after 1.12.1 (!).
> "Problems" includes: dumps core on valid input, outputs illegal bytecode
> 
> (pushes & pops do not balance) ... if you need more detail I can try to
> give it, but it will require a little work (download, compile, try to
> run, ...)

There were issues (don't remember exactly what), but I've been using the jikes 1.15 in debian/unstable and it seems to work fine. (I have compiled all of classpath with it)

John Leuner


From sballard@netreach.com Mon Feb 04 15:19:15 2002
Received: from rawaki.netreach.net ([207.29.195.114])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Xpa7-0001LQ-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 15:19:15 -0500
Received: from netreach.com (sballard@rainbow.netreach.net [209.152.221.64]) by rawaki.netreach.net (n1/$Revision: 1.5 $) with ESMTP id PAA03510; Mon, 4 Feb 2002 15:19:05 -0500 (EST)
Message-ID: <3C5EECAB.9CBE59EF@netreach.com>
Date: Mon, 04 Feb 2002 15:18:51 -0500
From: Stuart Ballard <sballard@NetReach.Net>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.17 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: John Leuner <jewel@pixie.co.za>
CC: Chris Gray <chris.gray@acunia.com>, Mark Wielaard <mark@klomp.org>,
        classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

John Leuner wrote:
> 
> There were issues (don't remember exactly what), but I've been using
> the jikes 1.15 in debian/unstable and it seems to work fine. (I have
> compiled all of classpath with it)

FWIW, I had to put jikes in debian/unstable on hold at 1.14-0.4 because
it started doing nasty things to my own application. But I haven't tried
compiling classpath with it, so it may work for that purpose.

-- 
Stuart Ballard, Programmer
FASTNET - Internet Solutions
215.283.2300, ext. 126
www.fast.net


From etienne.gagnon@uqam.ca Mon Feb 04 15:39:16 2002
Received: from [132.208.250.6] (helo=uqam.ca)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XptO-00042d-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 15:39:15 -0500
Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6])
	by sortant.uqam.ca (8.11.6/8.11.0) with SMTP id g14KWBq12438
	for <classpath@gnu.org>; Mon, 4 Feb 2002 15:32:11 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
 by anis.telecom.uqam.ca (NAVGW 2.5.1.12) with SMTP id M2002020415321110209
 for <classpath@gnu.org>; Mon, 04 Feb 2002 15:32:11 -0500
Received: from er.uqam.ca (nobel.si.uqam.ca [132.208.219.1])
	by intrant.uqam.ca (8.11.6/8.11.0) with ESMTP id g14KV7c12218;
	Mon, 4 Feb 2002 15:31:07 -0500 (EST)
Received: from localhost (perseval.info.uqam.ca [132.208.137.96])
	by er.uqam.ca (8.10.0/8.10.0) with ESMTP id g14KV5f14410;
	Mon, 4 Feb 2002 15:31:06 -0500 (EST)
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by localhost with esmtp (Exim 3.34 #1 (Debian))
	id 16XplY-0006v4-00; Mon, 04 Feb 2002 15:31:04 -0500
Message-ID: <3C5EEF88.106@uqam.ca>
Date: Mon, 04 Feb 2002 15:31:04 -0500
From: "Etienne M. Gagnon" <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20020121
X-Accept-Language: en
MIME-Version: 1.0
To: Stuart Ballard <sballard@netreach.net>
CC: classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli> <3C5EECAB.9CBE59EF@netreach.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Stuart Ballard wrote:

> FWIW, I had to put jikes in debian/unstable on hold at 1.14-0.4 because
> it started doing nasty things to my own application. But I haven't tried
> compiling classpath with it, so it may work for that purpose.
> 


Hmmm... I experienced problems compiling Classpath with jikes 1.14.  These 
problem went away when I installed jikes 1.15 on my Debian/sid system...

Etienne
-- 
Etienne M. Gagnon                    http://www.info.uqam.ca/~egagnon/
SableVM:                                       http://www.sablevm.org/
SableCC:                                       http://www.sablecc.org/



From mark@wildebeest.org Mon Feb 04 16:08:23 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XqLf-00054c-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 16:08:23 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XqLZ-0007Hl-00; Mon, 04 Feb 2002 22:08:17 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XqLc-0001No-00; Mon, 04 Feb 2002 22:08:20 +0100
Subject: Re: nio package and asynchronous io
From: Mark Wielaard <mark@klomp.org>
To: Jakob Praher <praher.keg@liwest.at>
Cc: classpath@gnu.org
In-Reply-To: <1012843643.1451.12.camel@jaques>
References: <1012842846.637.9.camel@jaques> 
	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>  <1012843643.1451.12.camel@jaques>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 04 Feb 2002 22:08:20 +0100
Message-Id: <1012856900.17458.268.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-02-04 at 18:27, Jakob Praher wrote:
> Am Mon, 2002-02-04 um 18.39 schrieb Nic Ferrier:
> > Jakob Praher <praher.keg@liwest.at> writes:
> > 
> > > do you have any plan on adding nio support and asynchronous io to the 
> > > classpath project? 
> > > if yes what is your agenda on this subject. 
> > 
> > I have done a little bit of work for GCJ with this.

I have read the online 1.4 specs for java.nio and thought about how to
implement it but I have done no actual work. We will get it in time, but
nobody is actively working on it at the moment.

java.nio is partly based on work done by Matt Welsh.
<http://www.cs.berkeley.edu/~mdw/proj/java-nbio/>
This could be used as basis or inspiration for an actual implementation.

> do have any experience with the orp vm?
> what's the performance compared to the client/server hotspot vms?

The ORP VM should work out of the box with Classpath from CVS and
hopefully we will officially release that code this week.

According to the following reseach Orp does very well compared to other
VMs <http://www.shudo.net/jit/perf/>.

Cheers,

Mark


From mark@wildebeest.org Mon Feb 04 16:18:38 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XqVa-0005eb-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 16:18:38 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XqVW-0007IJ-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 22:18:34 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XqVY-0001Pl-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 22:18:36 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <3C5EEF88.106@uqam.ca>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com>  <3C5EEF88.106@uqam.ca>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 04 Feb 2002 22:18:36 +0100
Message-Id: <1012857516.17456.279.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

Chris Gray wrote:
> With Wonka we've had problems with every version after 1.12.1 (!).
> "Problems" includes: dumps core on valid input, outputs illegal
> bytecode

Stuart Ballard wrote:
> FWIW, I had to put jikes in debian/unstable on hold at 1.14-0.4 because
> it started doing nasty things to my own application. But I haven't tried
> compiling classpath with it, so it may work for that purpose.

Etienne M. Gagnon wrote:
> Hmmm... I experienced problems compiling Classpath with jikes 1.14.  These 
> problem went away when I installed jikes 1.15 on my Debian/sid system...

John Leuner wrote:
> There were issues (don't remember exactly what), but I've been using
> the jikes 1.15 in debian/unstable and it seems to work fine. (I have
> compiled all of classpath with it)

OK. So it seems that we can recommend jikes 1.15 for compiling Classpath
but it may have some problems for other applications. I will put that in
the HACKING and INSTALL notices.

Have people with jikes problems actaully reported them to the jikes
developers? We can try to recompile Wonka with 1.15 to see what happens.
Stuart, what program were you using which forced you to downgrade to
1.14?

Cheers,

Mark


From abies@pg.gda.pl Mon Feb 04 16:20:18 2002
Received: from mail.engelsinfo.de ([212.6.209.241])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XqXC-0005iO-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 16:20:18 -0500
Received: from pg.gda.pl (dvalin [212.6.209.232])
	by mail.engelsinfo.de (8.9.3+Sun/8.9.1) with ESMTP id WAA05956
	for <classpath@gnu.org>; Mon, 4 Feb 2002 22:10:38 +0100 (MET)
Message-ID: <3C5EFAEB.1020600@pg.gda.pl>
Date: Mon, 04 Feb 2002 22:19:39 +0100
From: Artur Biesiadowski <abies@pg.gda.pl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020108
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques> 	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>  <1012843643.1451.12.camel@jaques> <1012856900.17458.268.camel@elsschot>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:


> I have read the online 1.4 specs for java.nio and thought about how to
> implement it but I have done no actual work. We will get it in time, but
> nobody is actively working on it at the moment.

For me, most tricky parts of nio is Buffer. You have to extend JNI to 
enable them, make some special tricks in jvm to allow them to work with 
acceptable speed.

Do you think that Buffers should be a part of classpath ? Or should they 
be left for jvm implementors ? There is quite a lot of code there - all 
kinds of wrapper classes, splitting, views etc. But on the other hand, 
core get/set functions have to be really optimized for specific jvm...

Any ideas ?

Artur




From ebb9@email.byu.edu Mon Feb 04 16:46:57 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Xqwy-0008Q3-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 16:46:56 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020204214655.VWPQ26243.rwcrmhc51.attbi.com@email.byu.edu>;
          Mon, 4 Feb 2002 21:46:55 +0000
Message-ID: <3C5F00A2.5ED8BB07@email.byu.edu>
Date: Mon, 04 Feb 2002 14:44:02 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	 <3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca> <1012857516.17456.279.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I'm one of the jikes developers.  I know that Jikes 1.15 has some
problems compiling inner classes with private constructors, (jikes
compiles with exit status 0, but execution of the resulting .class file
causes a VerifyError), and there are a few of those in Classpath.  I'm
not sure if the Debian release applied any patches to the stock 1.15
install.  But the CVS version of jikes is looking better.  Jikes 1.16 is
being held up by a few more bugs; I have some partial patches in my
source tree, but have not had the time to get them all in (school has
hit me pretty heavily this semester).  I plan to spend more time on
jikes during the Olympics, when I have time off school.  My plans for
1.16 involve flawless compilation of inner classes, and I'm getting
closer.

I haven't tried compiling Classpath with the latest CVS, so I'm not sure
if it solves all the VerifyErrors of 1.15.  If you would like, I can see
about adding a tag to CVS on a stable version of jikes (possibly
reverting one or two unstable patches), to coordinate with a release of
Classpath, then provide instructions for obtaining this interim version
of jikes.

Mark Wielaard wrote:
> 
> Hi,
> 
> Chris Gray wrote:
> > With Wonka we've had problems with every version after 1.12.1 (!).
> > "Problems" includes: dumps core on valid input, outputs illegal
> > bytecode
> 
> Stuart Ballard wrote:
> > FWIW, I had to put jikes in debian/unstable on hold at 1.14-0.4 because
> > it started doing nasty things to my own application. But I haven't tried
> > compiling classpath with it, so it may work for that purpose.
> 
> Etienne M. Gagnon wrote:
> > Hmmm... I experienced problems compiling Classpath with jikes 1.14.  These
> > problem went away when I installed jikes 1.15 on my Debian/sid system...
> 
> John Leuner wrote:
> > There were issues (don't remember exactly what), but I've been using
> > the jikes 1.15 in debian/unstable and it seems to work fine. (I have
> > compiled all of classpath with it)
> 
> OK. So it seems that we can recommend jikes 1.15 for compiling Classpath
> but it may have some problems for other applications. I will put that in
> the HACKING and INSTALL notices.
> 
> Have people with jikes problems actaully reported them to the jikes
> developers? We can try to recompile Wonka with 1.15 to see what happens.
> Stuart, what program were you using which forced you to downgrade to
> 1.14?
> 
> Cheers,
> 
> Mark

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From mark@wildebeest.org Mon Feb 04 16:48:31 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XqyU-0008Ux-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 16:48:30 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XqyQ-0007K1-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 22:48:26 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16XqyT-0001Vf-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 22:48:29 +0100
Subject: Re: nio package and asynchronous io
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <3C5EFAEB.1020600@pg.gda.pl>
References: <1012842846.637.9.camel@jaques>
		<87ofj54045.fsf@tf1.tapsellferrier.co.uk> 
	<1012843643.1451.12.camel@jaques> <1012856900.17458.268.camel@elsschot> 
	<3C5EFAEB.1020600@pg.gda.pl>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 04 Feb 2002 22:48:29 +0100
Message-Id: <1012859309.17458.287.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-02-04 at 22:19, Artur Biesiadowski wrote:
> 
> Do you think that Buffers should be a part of classpath ? Or should they 
> be left for jvm implementors ? There is quite a lot of code there - all 
> kinds of wrapper classes, splitting, views etc. But on the other hand, 
> core get/set functions have to be really optimized for specific jvm...

All the publicly defined buffer classes are abstract anyway.
So yes, I think all classes defined in the 1.4 api spec should be part
of Classpath. We can even provide sample implementations of most of the
non-abstract classes. But lets first write all the java code, most of it
is infrastructure anyway. Then we can pester the VM writers to give us
efficient optimized support.

Cheers,

Mark


From bryce@waitaki.otago.ac.nz Mon Feb 04 16:54:30 2002
Received: from 210-86-61-194.jetstart.xtra.co.nz ([210.86.61.194] helo=localhost.localdomain)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Xr4I-0000b0-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 16:54:30 -0500
Received: from waitaki.otago.ac.nz ([192.168.2.2])
	by localhost.localdomain (8.11.2/8.11.2) with ESMTP id g14LXGf25095;
	Tue, 5 Feb 2002 10:33:17 +1300
Message-ID: <3C5F02EB.5030302@waitaki.otago.ac.nz>
Date: Tue, 05 Feb 2002 10:53:47 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: Jakob Praher <praher.keg@liwest.at>, classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques> 	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>  <1012843643.1451.12.camel@jaques> <1012856900.17458.268.camel@elsschot>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

>>>>do you have any plan on adding nio support and asynchronous io to the 
>>>>classpath project? 
>>>>if yes what is your agenda on this subject. 
>>>>
>>>I have done a little bit of work for GCJ with this.
>>>
>
>I have read the online 1.4 specs for java.nio and thought about how to
>implement it but I have done no actual work. We will get it in time, but
>nobody is actively working on it at the moment.
>

I've started to implement some of the Buffer and mapped I/O stuff in my 
GCJ tree too.

Its relatively simple to implement for CNI, however I think we'll need 
to look at adding some special support for buffers in GCJ in order to 
get really good performance from zero-copy I/O. Thats because the idea 
is to write things like:

while (buf.hasRemaining())
  ... = buf.get();

in order to avoid copying data into an array during I/O, but unless they 
get inlined the call overhead is going to kill any performance gain 
obtained from not copying. Inlining the hasRemaining() and all its 
friends is easy because they are final, but the buf.get() is a bit 
harder because its a virtual method. However if we taught GCJ that the 
various methods in nio usually/always return a GCJMappedByteBuffer or 
whatever, it could inline the get() too and the whole things becomes no 
less efficient than a regular bounds-checked array acccess.

Its just a shame they didn't include Buffer methods like:

byte[] get(int length); // get bytes from the buffer as a shared byte 
array.

I guess allowing that sort of thing would raise aliasing issues for the 
JITs, and you couldn't do it for a read-only buffer without changing the 
semantics of arrays.

regards

Bryce.




From burton@openprivacy.org Mon Feb 04 16:58:18 2002
Received: from dsl081-061-015.sfo1.dsl.speakeasy.net ([64.81.61.15] helo=openprivacy.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Xr7x-0000hk-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 16:58:17 -0500
Received: from openprivacy.org (localhost [127.0.0.1])
	by openprivacy.org (8.12.1/8.12.1/Debian -5) with ESMTP id g14LwGKB031126;
	Mon, 4 Feb 2002 13:58:16 -0800
Received: from localhost (localhost [[UNIX: localhost]])
	by openprivacy.org (8.12.1/8.12.1/Debian -5) id g14LwFdS031120;
	Mon, 4 Feb 2002 13:58:15 -0800
To: general@jakarta.apache.org
To: debian-java@lists.debian.org
To: classpath@gnu.org
To: java@gcc.gnu.org
Subject: Java is dead... but it could still be saved!
From: burton@openprivacy.org (Kevin A. Burton)
Date: 04 Feb 2002 13:58:01 -0800
Message-ID: <87ofj4c3km.fsf@universe.yi.org>
Lines: 60
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1.50
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Sorry for the X-post.

I just created a new mailing list:

    java-is-dead@entropy.yi.org

You can sign up here:

http://entropy.yi.org/cgi-bin/mailman/listinfo/java-is-dead

...

Are you upset at the way Java is being handled by SUN?

Do you feel lied to about the fact that SUN is still keeping Java proprietary
even after they promised us for *years* that it would be standardized?

Are you looking towards .NET/C# as an alternative but still optimistic about Java?

Do you *hate* the JCP?

Are you sick of the fact that SUN keeps throwing new features into the VM and
bloating it beyond belief?

Do you want SUN to Open Source Java?

Do you want to collaborate around other Open Source Java implementations?

... 

I created the java-is-dead mailing list to address these issues.

Note that this mailing list is a place to help fix things.  The java-is-dead
mailing list is for people who love Java but are *very* concerned.

Please feel free to forward this email or link to the mailing list from your
site.

Kevin

- -- 
Kevin A. Burton ( burton@apache.org, burton@openprivacy.org, burtonator@acm.org )
             Location - San Francisco, CA, Cell - 415.595.9965
        Jabber - burtonator@jabber.org,  Web - http://relativity.yi.org/

It is better to die on your feet than to live on your knees!
    - Emiliano Zapata

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt

iD8DBQE8XwPpAwM6xb2dfE0RAs5MAKCjopim62GAoeZSKxcPK8l5+VkJTwCbBVoC
5uMWqzV1IrVYFdcZjk8YcQ8=
=Vgaj
-----END PGP SIGNATURE-----


From per@bothner.com Mon Feb 04 17:24:19 2002
Received: from adsl-216-102-199-253.dsl.snfc21.pacbell.net ([216.102.199.253] helo=bothner.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XrX9-00029A-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 17:24:19 -0500
Received: from bothner.com (eureka.bothner.com [192.168.1.9])
	by bothner.com (8.11.6/8.11.6) with ESMTP id g14MR6p07580;
	Mon, 4 Feb 2002 14:27:06 -0800
Message-ID: <3C5F0A20.10403@bothner.com>
Date: Mon, 04 Feb 2002 14:24:32 -0800
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020125
X-Accept-Language: en-us
MIME-Version: 1.0
To: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
CC: classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques> 	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>  <1012843643.1451.12.camel@jaques> <1012856900.17458.268.camel@elsschot> <3C5F02EB.5030302@waitaki.otago.ac.nz>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Bryce McKinlay wrote:
> Inlining the hasRemaining() and all its 
> friends is easy because they are final, but the buf.get() is a bit 
> harder because its a virtual method. However if we taught GCJ that the 
> various methods in nio usually/always return a GCJMappedByteBuffer or 
> whatever, it could inline the get() too and the whole things becomes no 
> less efficient than a regular bounds-checked array acccess.

Why bound-checking?  We need to check that the current position is less
than the limit, but there is no need to check that the position is
less than the buffer size (capacity), sizne the limit is always less
than te capacity, at least if we assume a GCJMappedByteBuffer or
whatever.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/



From sballard@netreach.com Mon Feb 04 17:41:10 2002
Received: from rawaki.netreach.net ([207.29.195.114])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XrnS-0004Pr-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 17:41:10 -0500
Received: from netreach.com (cc257928-c.neave1.pa.home.com [24.23.77.187]) by rawaki.netreach.net (n1/$Revision: 1.5 $) with ESMTP id RAA20129; Mon, 4 Feb 2002 17:41:19 -0500 (EST)
Message-ID: <3C5F0DE3.4080003@netreach.com>
Date: Mon, 04 Feb 2002 17:40:35 -0500
From: Stuart Ballard <sballard@NetReach.Net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20020121
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>	<3C5EECAB.9CBE59EF@netreach.com>  <3C5EEF88.106@uqam.ca> <1012857516.17456.279.camel@elsschot>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

> Have people with jikes problems actaully reported them to the jikes
> developers? We can try to recompile Wonka with 1.15 to see what happens.
> Stuart, what program were you using which forced you to downgrade to
> 1.14?

The problems I encountered were in a program written by myself, which as 
yet I haven't had time to bundle up and release as Free Software, nor to 
chase up official permission to do so (although the people In Charge 
have unofficially told me it will be no problem).

Since I rely on this program for my day job, I just put jikes on hold as 
soon as I discovered that that definitely fixed the problems. I have 
planned on sending the jikes developers a bug report as soon as I could 
come up with a simplified testcase, but never found the time to do so.

My code does use numerous inner classes, so it's possible that the 
errors I saw were related to the bugs that Eric mentioned as being 
known. The problems were definitely errors in *running* code that 
actually compiled with no errors or warnings, which fits Eric's 
description, although I forget exactly what happened when I tried to run 
it (VerifyError or VM coredump).

Finding a reduced testcase or arranging to release my code so that the 
problem can be seen in publically-known code is still on my todo list, 
but unfortunately not as high a priority as I would like it to be. Too 
many todos, too little time todo them.

Stuart.



From cbj@gnu.org Mon Feb 04 18:13:30 2002
Received: from [24.93.67.54] (helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XsIj-0005eh-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 18:13:29 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 4 Feb 2002 18:13:08 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g14ND8220994;
	Mon, 4 Feb 2002 18:13:08 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 04 Feb 2002 18:13:08 -0500
In-Reply-To: <1012857516.17456.279.camel@elsschot>
Message-ID: <m3pu3kn8mz.fsf@lyta.haphazard.org>
Lines: 13
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> OK. So it seems that we can recommend jikes 1.15 for compiling Classpath
> but it may have some problems for other applications. I will put that in
> the HACKING and INSTALL notices.

There were also problems with compiled constants (final static) using
newer versions of jikes.  Those problems Eric supposedly has fixed in
CVS.

Brian
-- 
Brian Jones <cbj@gnu.org>


From shudo@computer.org Tue Feb 05 00:12:51 2002
Received: from mx1.aist.go.jp ([150.29.246.133])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XxuU-0003mi-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 00:12:50 -0500
Received: from rpsmtp1.aist.go.jp
	by mx1.aist.go.jp  with ESMTP id g155CmH23110
	for <classpath@gnu.org>; Tue, 5 Feb 2002 14:12:48 +0900 (JST)
	env-from (shudo@computer.org)
Received: from mail09.aist.go.jp
        by rpsmtp1.aist.go.jp  with ESMTP id g155Cls03173
        for <classpath@gnu.org>; Tue, 5 Feb 2002 14:12:47 +0900 (JST)
        env-from (shudo@computer.org)
Received: from aist.go.jp
        by mail09.aist.go.jp  with ESMTP id g155ClF16709
        for <classpath@gnu.org>; Tue, 5 Feb 2002 14:12:47 +0900 (JST)
        env-from (shudo@computer.org)
Date: Tue, 05 Feb 2002 14:12:50 +0900 (JST)
Message-Id: <20020205.141250.607954898.shudoh@localhost>
To: classpath@gnu.org
Subject: Re: nio package and asynchronous io
From: shudo@computer.org
In-Reply-To: <3C5EFAEB.1020600@pg.gda.pl>
References: <1012843643.1451.12.camel@jaques>
	<1012856900.17458.268.camel@elsschot>
	<3C5EFAEB.1020600@pg.gda.pl>
X-Mailer: Mew version 2.1 on XEmacs 21.4.6 (Common Lisp)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

From: Artur Biesiadowski <abies@pg.gda.pl>

> For me, most tricky parts of nio is Buffer. You have to extend JNI to
> enable them, make some special tricks in jvm to allow them to work with
> acceptable speed.
>
> Do you think that Buffers should be a part of classpath ? Or should they
> be left for jvm implementors ? There is quite a lot of code there - all
> kinds of wrapper classes, splitting, views etc. But on the other hand,
> core get/set functions have to be really optimized for specific jvm...

An implementation of the New I/O API belongs to both of JNI routines
and a class library (like Classpath). As Cedric Berger wrote to the
GCJ list, the API introduces 3 JNI functions, NewDirectByteBuffer,
GetDirectBufferAddress and GetDirectBufferCapacity.

The API set needs many native methods not only Java classes.
Who implements them depends on the cases.

If a JVM can support or accelerate the API some way, I'm very
interested in the techniques.

I interpreted the API spec as the followings and they may be clues:

 * The API implicitly allows us to do mmap(2).
   It can accelerate performance of I/O with files and devices
   in some cases.

 * The API implicitly allows us to do select(2).
   With it, a server program which provides services via network
   can serve a large number of clients without many threads
   corresponding to each client.

 * The API provides another I18N framework.


  Kazuyuki Shudo	shudo@computer.org	http://www.shudo.net/


From reali@inf.ethz.ch Tue Feb 05 03:25:15 2002
Received: from core.inf.ethz.ch ([129.132.178.196])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Y0uh-0007fO-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 03:25:15 -0500
Received: from lillian-ics.inf.ethz.ch (root@lillian-ics.inf.ethz.ch [129.132.134.2])
	by core.inf.ethz.ch (8.9.3/8.9.3) with ESMTP id JAA28962;
	Tue, 5 Feb 2002 09:25:09 +0100 (MET)
Received: from x.oberon.ethz.ch (pookie.inf.ethz.ch [129.132.134.15])
	by lillian-ics.inf.ethz.ch (8.9.3/8.9.3) with SMTP id JAA26882;
	Tue, 5 Feb 2002 09:25:12 +0100 (MET)
Date: Tue, 5 Feb 2002 09:25:12 +0100 (MET)
Message-Id: <200202050825.JAA26882@lillian-ics.inf.ethz.ch>
From: reali@inf.ethz.ch
X-Mailer: Oberon Mail (ejz) on Aos 21.12.2001
To: classpath@gnu.org
Cc: reali@inf.ethz.ch
Subject: Re: Compiling with jikes > 1.13
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

I downloaded and compiled the whole classpath on the 17 January 2002.

I used jikes 1.12 8/1/2000 which came with the SuSe 7.1 system with
the following options

>   ./configure --prefix=`pwd` --with-jikes --disable-load-library --disable-jni --disable-cni


The build was successful and I've been using it without problems
for the Jaos VM since then.


-Patrik
--
Patrik Reali, reali@inf.ethz.ch
http://www.inf.ethz.ch/personal/reali/
http://www.oberon.ethz.ch/jaos/
http://www.oberon.ethz.ch/native/



From chris.gray@acunia.com Tue Feb 05 03:42:43 2002
Received: from nat.be.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Y1Ba-0001QZ-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 03:42:42 -0500
Received: from acunia.com (IDENT:gray@sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id g158fms03530;
	Tue, 5 Feb 2002 09:41:49 +0100
Message-ID: <3C5F9A14.F0CB1268@acunia.com>
Date: Tue, 05 Feb 2002 09:38:44 +0100
From: Chris Gray <chris.gray@acunia.com>
Organization: ACUNIA NV
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
		<3C5EECAB.9CBE59EF@netreach.com>  <3C5EEF88.106@uqam.ca> <1012857516.17456.279.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

> Have people with jikes problems actaully reported them to the jikes
> developers? We can try to recompile Wonka with 1.15 to see what happens.
> Stuart, what program were you using which forced you to downgrade to
> 1.14?

We were going to report our main problem with 1.15, but found it was already
a Known Bug (the inner-class constructor thing).

1.15 also barfed on some non-compile-time static finals in inner classes: on
this issue we decided Jikes was right, and (hopefully) fixed our code.

Regards

Chris Gray
VM Architect, ACUNIA




From nferrier@tapsellferrier.co.uk Tue Feb 05 05:39:48 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Y30t-0001BY-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 05:39:48 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16Y3IU-0000r4-00; Tue, 05 Feb 2002 10:57:58 +0000
To: shudo@computer.org
Cc: classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012843643.1451.12.camel@jaques>
	<1012856900.17458.268.camel@elsschot> <3C5EFAEB.1020600@pg.gda.pl>
	<20020205.141250.607954898.shudoh@localhost>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 05 Feb 2002 10:57:58 +0000
In-Reply-To: <20020205.141250.607954898.shudoh@localhost>
Message-ID: <87r8o02o21.fsf@tf1.tapsellferrier.co.uk>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

shudo@computer.org writes:

>  * The API implicitly allows us to do select(2). 

or poll.


>    With it, a server program which provides services via network 
>    can serve a large number of clients without many threads 
>    corresponding to each client. 

Not exactly. You can only do this if the logic of serving the request
can be coded in a slightly different way.

Thus servlet engines cannot really benefit from this, only in terms
of accepting connections.

Of course, buffers could be setup between the servlet and the HTTP
implementation but for very small and very large outputs these would
be a major inconvieniance.


Personally, I think the work that IBM did on improving OS threads was
a more interesting avenue for improving IO performance.


Nic


From jp@hapra.at Mon Feb 04 11:05:29 2002
Received: from delysid.gnu.org ([158.121.106.20])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16XlcX-0008Qs-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 11:05:29 -0500
Received: from nouse194165.ris.at ([212.52.194.171] helo=zeus.hapra.at)
	by delysid.gnu.org with esmtp (Exim 3.34 #2)
	id 16XlcW-0002S7-00
	for <classpath@gnu.org>; Mon, 04 Feb 2002 11:05:28 -0500
Received: from localhost.localdomain ([212.33.44.226]) by zeus.hapra.at with Microsoft SMTPSVC(5.0.2195.2966);
	 Mon, 4 Feb 2002 17:02:25 +0100
Subject: nio package and asynchronous io
From: Jakob Praher <jp@hapra.at>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0 (Preview Release)
Date: 04 Feb 2002 17:02:04 +0100
Message-Id: <1012838525.637.5.camel@jaques>
Mime-Version: 1.0
X-OriginalArrivalTime: 04 Feb 2002 16:02:26.0281 (UTC) FILETIME=[56E73590:01C1AD95]
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

hi all,

do you have any plan on adding nio support and asynchronous io to the
classpath project?
if yes what is your agenda on this subject.

bye

Jakob





From rveldema@cs.vu.nl Tue Feb 05 08:27:00 2002
Received: from star.cs.vu.nl ([192.31.231.42])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Y5ci-0007PL-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 08:27:00 -0500
Received: from cs.vu.nl (neptune.cs.vu.nl) by star.cs.vu.nl with esmtp
	(Smail #71) id m16Y5ch-000C4bC; Tue, 5 Feb 2002 14:26 +0100
Message-ID: <3C5FDDA3.7090109@cs.vu.nl>
Date: Tue, 05 Feb 2002 14:26:59 +0100
From: "R.S. Veldema" <rveldema@cs.vu.nl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020123
X-Accept-Language: en-us
MIME-Version: 1.0
To: Jakob Praher <praher.keg@liwest.at>
CC: classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques> 	<87ofj54045.fsf@tf1.tapsellferrier.co.uk> <1012843643.1451.12.camel@jaques>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi all,

    I've been hacking away at my java implementation as well
and have some nio suppoprt up and running already.
I can map a file and get a web page over a socketchannel.

If you guys want it, tell me and I'll package up a new tar file.
All is GPL-ed by me.

Ps, to any of the gnu people listening:
a good while a go I submitted a copyright assignment
for my basic swing implementation and never heard anything
since then (we are talking months now...).


R.




Jakob Praher wrote:

>Am Mon, 2002-02-04 um 18.39 schrieb Nic Ferrier:
>
>>Jakob Praher <praher.keg@liwest.at> writes:
>>
>>>hi all, 
>>> 
>>>do you have any plan on adding nio support and asynchronous io to the 
>>>classpath project? 
>>>if yes what is your agenda on this subject. 
>>> 
>>>
>>I have done a little bit of work for GCJ with this.
>>
>
>cool. - is it anywhere I can look at it?
>Have you also looked at the new Buffers that are available in merlin?
>
>
>>Unfortunately I haven't had any time recently to look at it but it's
>>very much in my mind because I'm also the developer of GNU-Paperclips
>>(a servlet engine).
>>
>
>yeah - this thing could improve the performance of socket based servers
>quite abit - I have played with the Selector API abit and it looks like
>a huge performance plus.
>
>>When I have more time I'll probably be able to finish it off, it's
>>not actually that complicated.
>>
>
>btw:
>do have any experience with the orp vm?
>what's the performance compared to the client/server hotspot vms?
>
>Jakob
>
>>
>>Nic
>>
>
>
>
>_______________________________________________
>Classpath mailing list
>Classpath@gnu.org
>http://mail.gnu.org/mailman/listinfo/classpath
>





From nferrier@tapsellferrier.co.uk Tue Feb 05 08:36:11 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Y5lb-0001e9-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 08:36:11 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16Y63D-0000wv-00; Tue, 05 Feb 2002 13:54:23 +0000
To: "R.S. Veldema" <rveldema@cs.vu.nl>
Cc: Jakob Praher <praher.keg@liwest.at>,  classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques>
	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>
	<1012843643.1451.12.camel@jaques> <3C5FDDA3.7090109@cs.vu.nl>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 05 Feb 2002 13:54:23 +0000
In-Reply-To: <3C5FDDA3.7090109@cs.vu.nl>
Message-ID: <87n0yo11bk.fsf@tf1.tapsellferrier.co.uk>
Lines: 6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Golly. That's further than I got.

I'd be very interested in seeing it even if no one else is.


Nic


From rveldema@cs.vu.nl Tue Feb 05 08:53:23 2002
Received: from star.cs.vu.nl ([130.37.24.6])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Y62F-0001zO-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 08:53:23 -0500
Received: from cs.vu.nl (neptune.cs.vu.nl) by star.cs.vu.nl with esmtp
	(Smail #71) id m16Y62E-000C4bC; Tue, 5 Feb 2002 14:53 +0100
Message-ID: <3C5FE3D2.4060709@cs.vu.nl>
Date: Tue, 05 Feb 2002 14:53:22 +0100
From: "R.S. Veldema" <rveldema@cs.vu.nl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020123
X-Accept-Language: en-us
MIME-Version: 1.0
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
CC: Jakob Praher <praher.keg@liwest.at>, classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques>	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>	<1012843643.1451.12.camel@jaques> <3C5FDDA3.7090109@cs.vu.nl> <87n0yo11bk.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Nic Ferrier wrote:

here it is:

    http://www.cs.vu.nl/~rveldema/parcc1.tgz

unpack and see javalibs/java/nio, javalibs/manta/runtime/
the native side is in runtime/shared/io.c

If you actually want to try it out,
download the release from
    http://www.cs.vu.nl/~rveldema/
and unpack the file from above in Manta/manta
and it should all build, mail me if it does not.

There is no trickery yet in my nio implementation (virtual method inlining,
semantic expansion etc)
The way I thought is the way to go was first to test if the vtable 
pointer is
that  from manta.runtime.MyBufferImpl and then inline that code, otherwise
do the vtable call.
R.

>Golly. That's further than I got.
>
>I'd be very interested in seeing it even if no one else is.
>
>
>Nic
>
>_______________________________________________
>Classpath mailing list
>Classpath@gnu.org
>http://mail.gnu.org/mailman/listinfo/classpath
>





From mark@wildebeest.org Tue Feb 05 14:39:22 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YBR4-0003vr-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 14:39:22 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YBQs-00088o-00; Tue, 05 Feb 2002 20:39:10 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YBQv-0006Pe-00; Tue, 05 Feb 2002 20:39:13 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: classpath@gnu.org
In-Reply-To: <3C5F00A2.5ED8BB07@email.byu.edu>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot>  <3C5F00A2.5ED8BB07@email.byu.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 05 Feb 2002 20:39:13 +0100
Message-Id: <1012937953.24225.14.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi Eric,

On Mon, 2002-02-04 at 22:44, Eric Blake wrote:
> I'm one of the jikes developers.  I know that Jikes 1.15 has some
> problems compiling inner classes with private constructors, (jikes
> compiles with exit status 0, but execution of the resulting .class file
> causes a VerifyError), and there are a few of those in Classpath.

OK. That might explain why some people are not seeing these things. As
far as I know KissMe, SableVM and Orp don't have verifiers at the
moment. Tom Tromey recently added a verifier to gij though. But they
don't use jikes but gcj to compile to class files.

> I'm  not sure if the Debian release applied any patches to the stock
> 1.15 install.
I don't think so. From the package page:
http://packages.debian.org/unstable/devel/jikes.html
you can get at their source diff
http://ftp.debian.org/debian/pool/main/j/jikes/jikes_1.15-0.1.diff.gz
And it only contains one actual patch for NaN values.

> I haven't tried compiling Classpath with the latest CVS, so I'm not sure
> if it solves all the VerifyErrors of 1.15.  If you would like, I can see
> about adding a tag to CVS on a stable version of jikes (possibly
> reverting one or two unstable patches), to coordinate with a release of
> Classpath, then provide instructions for obtaining this interim version
> of jikes.

That would be very nice to have. But we need a way to check if it solves
the verify errors. I will spend some time tomorrow to see how/if we can
use the gcj verifier for this.

I am aiming to have the release tarball ready on friday.
How much time would you need to get an interim jikes version going?
Anything I can do to help get it ready?
I can generate binaries for GNU/Linux x86 and powerpc.

Cheers,

Mark


From mark@wildebeest.org Tue Feb 05 14:58:40 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YBjk-0005VE-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 14:58:40 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YBjf-00089Z-00; Tue, 05 Feb 2002 20:58:35 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YBji-0006Td-00; Tue, 05 Feb 2002 20:58:38 +0100
Subject: Re: nio package and asynchronous io
From: Mark Wielaard <mark@klomp.org>
To: "R.S. Veldema" <rveldema@cs.vu.nl>
Cc: classpath@gnu.org
In-Reply-To: <3C5FDDA3.7090109@cs.vu.nl>
References: <1012842846.637.9.camel@jaques>
		<87ofj54045.fsf@tf1.tapsellferrier.co.uk>
	<1012843643.1451.12.camel@jaques>  <3C5FDDA3.7090109@cs.vu.nl>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 05 Feb 2002 20:58:38 +0100
Message-Id: <1012939118.24225.34.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Tue, 2002-02-05 at 14:26, R.S. Veldema wrote:
> 
> Ps, to any of the gnu people listening:
> a good while a go I submitted a copyright assignment
> for my basic swing implementation and never heard anything
> since then (we are talking months now...).

Brian are you tracking this?
I have no idea why the copyright assignment papers sometimes takes so
long. The few times that I had to deal with the paperwork it was always
a matter of days and I know that it can go that quickly sometimes. But I
have also seen it take weeks or even months as in your case.

Paul, Brian, if you need any help dealing with the paperwork or know of
a way that I can help to make the process go more smoothly please let me
know.

Cheers,

Mark


From mark@wildebeest.org Tue Feb 05 15:14:03 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YByd-0005z9-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 15:14:03 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YByY-0008AG-00; Tue, 05 Feb 2002 21:13:58 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YByb-0006Wr-00; Tue, 05 Feb 2002 21:14:01 +0100
Subject: Re: nio package and asynchronous io
From: Mark Wielaard <mark@klomp.org>
To: "R.S. Veldema" <rveldema@cs.vu.nl>
Cc: classpath@gnu.org
In-Reply-To: <3C5FE3D2.4060709@cs.vu.nl>
References:
	<1012842846.637.9.camel@jaques>	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>	<1
	012843643.1451.12.camel@jaques> <3C5FDDA3.7090109@cs.vu.nl>
	<87n0yo11bk.fsf@tf1.tapsellferrier.co.uk>  <3C5FE3D2.4060709@cs.vu.nl>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 05 Feb 2002 21:14:01 +0100
Message-Id: <1012940041.24225.61.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Tue, 2002-02-05 at 14:53, R.S. Veldema wrote:
> here it is:
> 
>     http://www.cs.vu.nl/~rveldema/parcc1.tgz
> 
> unpack and see javalibs/java/nio, javalibs/manta/runtime/
> the native side is in runtime/shared/io.c

O boy! You got most of the infrastructure already done.
It does need some documentation though :)
Could we persuade you to contribute this to Classpath and would you
and/or the University be willing to donate the copyright to the FSF?
That would save us some time to deliver this functionality to other
VM/compiler builders.

Since everybody seems to be really hot on getting this functionality it
seems like a good idea to start working on it after the 0.03 release. I
can spend some days the first week of March to look at what people
already have and integrate that into Classpath if nobody beats me to it.

Cheers,

Mark

P.S. Seems like we have a lot of Dutch speaking Java hackers involved in
Free Software projects :)


From tromey@creche.cygnus.com Tue Feb 05 15:41:35 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16YCPH-0000CA-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 15:41:35 -0500
Received: from creche.cygnus.com (ta0205.peakpeak.com [204.144.244.205])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id NAA03926;
	Tue, 5 Feb 2002 13:41:26 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id OAA15338;
	Tue, 5 Feb 2002 14:02:24 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: "R.S. Veldema" <rveldema@cs.vu.nl>, classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques> <87ofj54045.fsf@tf1.tapsellferrier.co.uk> <1012843643.1451.12.camel@jaques> <3C5FDDA3.7090109@cs.vu.nl> <1012939118.24225.34.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  A shapely CATHOLIC SCHOOLGIRL is FIDGETING inside my costume..
Date: 05 Feb 2002 14:02:24 -0700
In-Reply-To: Mark Wielaard's message of "05 Feb 2002 20:58:38 +0100"
Message-ID: <874rkvtzfj.fsf@creche.redhat.com>
Lines: 14
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

>> On Tue, 2002-02-05 at 14:26, R.S. Veldema wrote:
>> Ps, to any of the gnu people listening:
>> a good while a go I submitted a copyright assignment
>> for my basic swing implementation and never heard anything
>> since then (we are talking months now...).

Mark> Brian are you tracking this?

Try writing directly to assign@gnu.org to see what they think the
status is.

Tom


From tromey@creche.cygnus.com Tue Feb 05 15:47:33 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16YCV3-0000Rt-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 15:47:33 -0500
Received: from creche.cygnus.com (ta0205.peakpeak.com [204.144.244.205])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id NAA05294;
	Tue, 5 Feb 2002 13:47:28 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id OAA15411;
	Tue, 5 Feb 2002 14:08:26 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: Eric Blake <ebb9@email.byu.edu>, classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli> <3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca> <1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu> <1012937953.24225.14.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  RHAPSODY in Glue!
Date: 05 Feb 2002 14:08:26 -0700
In-Reply-To: Mark Wielaard's message of "05 Feb 2002 20:39:13 +0100"
Message-ID: <871yfztz5h.fsf@creche.redhat.com>
Lines: 25
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> That would be very nice to have. But we need a way to check if
Mark> it solves the verify errors. I will spend some time tomorrow to
Mark> see how/if we can use the gcj verifier for this.

There are actually two verifiers in gcj -- the one in the compiler and
the one in the runtime.

Using the runtime verifier in this situation would be hard, because
you'd have to convince libgcj to load the bytecode for various java.*
classes, which are preloaded.

So it would probably be easier to use the verifier in the compiler.
The simplest way, which I use quite a bit, is:

    gcj --syntax-only foo.class

There are some obscure cases that gcj handles incorrectly, but these
are very unlikely to be an issue.

I suppose you could try to integrate the libgcj verifier into ORP or
one of the other VMs.  That might not be too hard.

Tom


From cbj@gnu.org Tue Feb 05 17:05:49 2002
Received: from fe4.southeast.rr.com ([24.93.67.51] helo=mail4.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YDin-0006AO-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 17:05:49 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail4.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 5 Feb 2002 17:05:58 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g15M5hS26723;
	Tue, 5 Feb 2002 17:05:43 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: tromey@redhat.com
Cc: Mark Wielaard <mark@klomp.org>, "R.S. Veldema" <rveldema@cs.vu.nl>,
   classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques>
	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>
	<1012843643.1451.12.camel@jaques> <3C5FDDA3.7090109@cs.vu.nl>
	<1012939118.24225.34.camel@elsschot>
	<874rkvtzfj.fsf@creche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 05 Feb 2002 17:05:43 -0500
In-Reply-To: <874rkvtzfj.fsf@creche.redhat.com>
Message-ID: <m3it9b1t54.fsf@lyta.haphazard.org>
Lines: 25
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
> 
> >> On Tue, 2002-02-05 at 14:26, R.S. Veldema wrote:
> >> Ps, to any of the gnu people listening:
> >> a good while a go I submitted a copyright assignment
> >> for my basic swing implementation and never heard anything
> >> since then (we are talking months now...).
> 
> Mark> Brian are you tracking this?
> 
> Try writing directly to assign@gnu.org to see what they think the
> status is.

It's not in the current list.  I have an email from Paul saying this
was done, but I think that means that assign@gnu.org then knew about
it.  At that time (27 Jul 2001) I was letting Paul handle this stuff
still but I think I've been on top of things lately.

R.S., I can send you and assign an email if no one else has already?

Brian
-- 
Brian Jones <cbj@gnu.org>


From Yann.Secq@lifl.fr Tue Feb 05 10:34:27 2002
Received: from malonne.lifl.fr ([134.206.10.29])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Y7c3-0000tD-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 10:34:27 -0500
Received: from lifl.fr (beckett.lifl.fr [134.206.10.117])
          by malonne.lifl.fr (8.9.3/jtpda-5.3.3) with ESMTP id OAA00998
          for <classpath@gnu.org>; Tue, 5 Feb 2002 14:43:57 +0100 (MET)
Message-ID: <3C5FE16D.2040401@lifl.fr>
Date: Tue, 05 Feb 2002 14:43:09 +0100
From: Yann Secq <Yann.Secq@lifl.fr>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20020121
X-Accept-Language: en, fr
MIME-Version: 1.0
To: Classpath Project <classpath@gnu.org>
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques> 	<87ofj54045.fsf@tf1.tapsellferrier.co.uk> <1012843643.1451.12.camel@jaques> <3C5FDDA3.7090109@cs.vu.nl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by malonne.lifl.fr id OAA00998
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

R.S. Veldema wrote :

> Ps, to any of the gnu people listening:
> a good while a go I submitted a copyright assignment
> for my basic swing implementation and never heard anything
> since then (we are talking months now...).

Once again this system of copyright assignment slows people
and project. I know that those issues are important, but would'nt
it be possible to have some official GNU server (=E0 la Sourceforge,
with Savannah behind if it is sufficient), and some kind of secure
electronic subscribing ?
This could provide a faster feedback to volunteers !

Cheers, yann.

PS: I know that it is not necessary the good place for those grumbling,
but some people on this list might have some answers ?




From cbj@gnu.org Tue Feb 05 22:11:13 2002
Received: from fe5.southeast.rr.com ([24.93.67.52] helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YIUL-0001fO-00
	for <classpath@gnu.org>; Tue, 05 Feb 2002 22:11:13 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 5 Feb 2002 22:11:08 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g163BCN27978;
	Tue, 5 Feb 2002 22:11:12 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Yann Secq <Yann.Secq@lifl.fr>
Cc: Classpath Project <classpath@gnu.org>
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques>
	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>
	<1012843643.1451.12.camel@jaques> <3C5FDDA3.7090109@cs.vu.nl>
	<3C5FE16D.2040401@lifl.fr>
From: Brian Jones <cbj@gnu.org>
Date: 05 Feb 2002 22:11:12 -0500
In-Reply-To: <3C5FE16D.2040401@lifl.fr>
Message-ID: <m3d6zjcnjj.fsf@lyta.haphazard.org>
Lines: 23
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Yann Secq <Yann.Secq@lifl.fr> writes:

> Once again this system of copyright assignment slows people
> and project. I know that those issues are important, but would'nt
> it be possible to have some official GNU server (=E0 la Sourceforge,
> with Savannah behind if it is sufficient), and some kind of secure
> electronic subscribing ?
> This could provide a faster feedback to volunteers !
>=20
> Cheers, yann.
>=20
> PS: I know that it is not necessary the good place for those grumbling,
> but some people on this list might have some answers ?

In the U.S. there is a method now of legally signing a document
electronically such that it could be possible to set something up, at
least for U.S. citizens.  Paul works as the FSF head system
administrator now and their backlog of tasks and things they want is
apparently very large.  No idea if this is on the list, but I do know
that your idea has at least been mentioned in the past.

--=20
Brian Jones <cbj@gnu.org>


From chris.gray@acunia.com Wed Feb 06 03:41:56 2002
Received: from nat.be.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YNeN-0008LT-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 03:41:56 -0500
Received: from acunia.com (IDENT:gray@sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id g168evs24001;
	Wed, 6 Feb 2002 09:40:58 +0100
Message-ID: <3C60EB5F.72D5DE8D@acunia.com>
Date: Wed, 06 Feb 2002 09:37:51 +0100
From: Chris Gray <chris.gray@acunia.com>
Organization: ACUNIA NV
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: Eric Blake <ebb9@email.byu.edu>, classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
		<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
		<1012857516.17456.279.camel@elsschot>  <3C5F00A2.5ED8BB07@email.byu.edu> <1012937953.24225.14.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

> Hi Eric,
>
> On Mon, 2002-02-04 at 22:44, Eric Blake wrote:
> > I'm one of the jikes developers.  I know that Jikes 1.15 has some
> > problems compiling inner classes with private constructors, (jikes
> > compiles with exit status 0, but execution of the resulting .class file
> > causes a VerifyError), and there are a few of those in Classpath.
>
> OK. That might explain why some people are not seeing these things. As
> far as I know KissMe, SableVM and Orp don't have verifiers at the
> moment.

If the bad bytecode isn't caught by a verifier then it will cause
Undefined Behaviour of the VM - the Java stack frame will underflow,
which is supposed to be impossible.  When we encountered this
problem Wonka actually threw a VirtualMachineError, but it could
as well have segfaulted or caused foreign objects to fly out of
Mark's ear.

Chris Gray
VM Architect, ACUNIA




From rveldema@cs.vu.nl Wed Feb 06 06:36:32 2002
Received: from star.cs.vu.nl ([130.37.24.6])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YQNM-0000Uc-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 06:36:32 -0500
Received: from cs.vu.nl (neptune.cs.vu.nl) by star.cs.vu.nl with esmtp
	(Smail #71) id m16YQNK-000C4VC; Wed, 6 Feb 2002 12:36 +0100
Message-ID: <3C61153E.1090401@cs.vu.nl>
Date: Wed, 06 Feb 2002 12:36:30 +0100
From: "R.S. Veldema" <rveldema@cs.vu.nl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020123
X-Accept-Language: en-us
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>, classpath@gnu.org
Subject: Re: nio package and asynchronous io
References: <1012842846.637.9.camel@jaques>	<87ofj54045.fsf@tf1.tapsellferrier.co.uk>	<1	012843643.1451.12.camel@jaques> <3C5FDDA3.7090109@cs.vu.nl>	<87n0yo11bk.fsf@tf1.tapsellferrier.co.uk>  <3C5FE3D2.4060709@cs.vu.nl> <1012940041.24225.61.camel@elsschot>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I'd be happy to contribute stuff (see earlier ps remark about swing stuff)
And yup, dislike typing docs. but I guess that's been noticed.....

Ps, yup, just yesterday people came by submitting compiler
construction assignments for me to test who were
also working on the dot-gnu thing !
R.


Mark Wielaard wrote:

>Hi,
>
>On Tue, 2002-02-05 at 14:53, R.S. Veldema wrote:
>
>>here it is:
>>
>>    http://www.cs.vu.nl/~rveldema/parcc1.tgz
>>
>>unpack and see javalibs/java/nio, javalibs/manta/runtime/
>>the native side is in runtime/shared/io.c
>>
>
>O boy! You got most of the infrastructure already done.
>It does need some documentation though :)
>Could we persuade you to contribute this to Classpath and would you
>and/or the University be willing to donate the copyright to the FSF?
>That would save us some time to deliver this functionality to other
>VM/compiler builders.
>
>Since everybody seems to be really hot on getting this functionality it
>seems like a good idea to start working on it after the 0.03 release. I
>can spend some days the first week of March to look at what people
>already have and integrate that into Classpath if nobody beats me to it.
>
>Cheers,
>
>Mark
>
>P.S. Seems like we have a lot of Dutch speaking Java hackers involved in
>Free Software projects :)
>





From mark@wildebeest.org Wed Feb 06 06:46:11 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YQWg-00011Z-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 06:46:10 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YQWQ-0000I5-00; Wed, 06 Feb 2002 12:45:54 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YQWU-0006Sg-00; Wed, 06 Feb 2002 12:45:58 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: Eric Blake <ebb9@email.byu.edu>, classpath@gnu.org
In-Reply-To: <871yfztz5h.fsf@creche.redhat.com>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	<1012937953.24225.14.camel@elsschot>  <871yfztz5h.fsf@creche.redhat.com>
Content-Type: multipart/mixed; boundary="=-/FJWweQZA55jVJJzOJUH"
X-Mailer: Evolution/1.0.2 
Date: 06 Feb 2002 12:45:58 +0100
Message-Id: <1012995958.2435.22.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-/FJWweQZA55jVJJzOJUH
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

On Tue, 2002-02-05 at 22:08, Tom Tromey wrote:
> 
> So it would probably be easier to use the verifier in the compiler.
> The simplest way, which I use quite a bit, is:
> 
>     gcj --syntax-only foo.class
> 

Nice. I tried that (with gcj from CVS) for Classpath compiled with jikes
1.15, gcj 3.0.4 and gcj 3.1 from cvs a couple of days ago. You do have
to remove java/lang/Object.class, java/lang/Class.class and
java/lang/ClassLoader.class otherwise gcj gets very confused.

But it did not show any real class verification errors for jikes 1.15,
only some unreachable bytecode warnings. For gcj 3.1 however it did show
two cases of class verification errors and even some internal compiler
errors. gcj 3.0.4 had a lot of ConstantValue attribute of field 'XXX'
has wrong type errors which seem to have been fixed in 3.1.

Output for jikes 1.15 and gcj 3.1 attached, output for gcj3.0 omitted
since it is huge and is mainly ConstantValue errors.

Cheers,

Mark

--=-/FJWweQZA55jVJJzOJUH
Content-Disposition: inline; filename=verify.jikes.out
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

java/lang/reflect/Proxy.java: In class `java.lang.reflect.Proxy':
java/lang/reflect/Proxy.java: In method `java.lang.reflect.Proxy.getProxyCl=
ass(java.lang.ClassLoader,java.lang.Class[])':
java/lang/reflect/Proxy.java:267: warning: unreachable bytecode from 38 to =
before 46
Collections.java: In class `java.util.Collections$1$SynchronizedMapEntry':
Collections.java: In method `java.util.Collections$1$SynchronizedMapEntry.c=
onstructor$0(java.util.Collections$SynchronizedMap,java.lang.Object)':
java/util/Collections$1$SynchronizedMapEntry.java:0: warning: assignment to=
 final field `e' not in constructor
java/util/zip/DeflaterEngine.java: In class `java.util.zip.DeflaterEngine':
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
findLongestMatch(int)':
java/util/zip/DeflaterEngine.java:273: warning: unreachable bytecode from 1=
18 to before 137
java/util/zip/DeflaterEngine.java:277: warning: unreachable bytecode from 1=
40 to before 158
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
setDictionary(byte[],int,int)':
java/util/zip/DeflaterEngine.java:322: warning: unreachable bytecode from 3=
 to before 21
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
deflateSlow(boolean,boolean)':
java/util/zip/DeflaterEngine.java:465: warning: unreachable bytecode from 6=
4 to before 78
java/util/zip/PendingBuffer.java: In class `java.util.zip.PendingBuffer':
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteByte(int)':
java/util/zip/PendingBuffer.java:77: warning: unreachable bytecode from 3 t=
o before 18
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteShort(int)':
java/util/zip/PendingBuffer.java:84: warning: unreachable bytecode from 3 t=
o before 18
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteInt(int)':
java/util/zip/PendingBuffer.java:92: warning: unreachable bytecode from 3 t=
o before 18
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteBlock(byte[],int,int)':
java/util/zip/PendingBuffer.java:102: warning: unreachable bytecode from 3 =
to before 18
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.al=
ignToByte()':
java/util/zip/PendingBuffer.java:113: warning: unreachable bytecode from 3 =
to before 18
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteBits(int,int)':
java/util/zip/PendingBuffer.java:127: warning: unreachable bytecode from 3 =
to before 18
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteShortMSB(int)':
java/util/zip/PendingBuffer.java:142: warning: unreachable bytecode from 3 =
to before 18
DeflaterHuffman.java: In class `java.util.zip.DeflaterHuffman$Tree':
DeflaterHuffman.java: In method `java.util.zip.DeflaterHuffman$Tree.buildCo=
des()':
DeflaterHuffman.java:134: warning: unreachable bytecode from 68 to before 8=
4

--=-/FJWweQZA55jVJJzOJUH
Content-Disposition: inline; filename=verify.gcj31.out
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

java/lang/reflect/Proxy.java: In class `java.lang.reflect.Proxy':
java/lang/reflect/Proxy.java: In method `java.lang.reflect.Proxy.getProxyCl=
ass(java.lang.ClassLoader,java.lang.Class[])':
java/lang/reflect/Proxy.java:267: warning: unreachable bytecode from 38 to =
before 46
java/lang/System.java: In class `java.lang.System':
java/lang/System.java: In method `java.lang.System.runFinalizersOnExit(bool=
ean)':
java/lang/System.java:355: verification error at PC=3D0
java/lang/System.java:355: stack overflow
java/net/Socket.java: In class `java.net.Socket':
java/net/Socket.java: In method `java.net.Socket.getLocalAddress()':
java/net/Socket.java:296: class 'java.net.SocketImpl' has no method named '=
getOption' matching signature '(I)Ljava/lang/Object;'
java/net/Socket.java: In method `java.net.Socket.setTcpNoDelay(boolean)':
java/net/Socket.java:388: class 'java.net.SocketImpl' has no method named '=
setOption' matching signature '(ILjava/lang/Object;)V'
java/net/Socket.java: In method `java.net.Socket.getTcpNoDelay()':
java/net/Socket.java:403: Internal compiler error in gen_lowpart, at emit-r=
tl.c:1183
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
java/net/ServerSocket.java: In class `java.net.ServerSocket':
java/net/ServerSocket.java: In method `java.net.ServerSocket.setSoTimeout(i=
nt)':
java/net/ServerSocket.java:226: class 'java.net.SocketImpl' has no method n=
amed 'setOption' matching signature '(ILjava/lang/Object;)V'
java/net/ServerSocket.java: In method `java.net.ServerSocket.getSoTimeout()=
':
java/net/ServerSocket.java:241: Internal compiler error in gen_lowpart, at =
emit-rtl.c:1183
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
java/net/MulticastSocket.java: In class `java.net.MulticastSocket':
java/net/MulticastSocket.java: In method `java.net.MulticastSocket.getInter=
face()':
java/net/MulticastSocket.java:103: class 'java.net.DatagramSocketImpl' has =
no method named 'getOption' matching signature '(I)Ljava/lang/Object;'
java/net/MulticastSocket.java: In method `java.net.MulticastSocket.getTTL()=
':
java/net/MulticastSocket.java:122: Internal compiler error in expand_expr, =
at expr.c:6209
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
java/net/DatagramSocket.java: In class `java.net.DatagramSocket':
java/net/DatagramSocket.java: In method `java.net.DatagramSocket.getSoTimeo=
ut()':
java/net/DatagramSocket.java:216: class 'java.net.DatagramSocketImpl' has n=
o method named 'getOption' matching signature '(I)Ljava/lang/Object;'
java/net/DatagramSocket.java: In method `java.net.DatagramSocket.setSoTimeo=
ut(int)':
java/net/DatagramSocket.java:238: class 'java.net.DatagramSocketImpl' has n=
o method named 'setOption' matching signature '(ILjava/lang/Object;)V'
java/net/DatagramSocket.java: In method `java.net.DatagramSocket.getSendBuf=
ferSize()':
java/net/DatagramSocket.java:254: Internal compiler error in gen_lowpart, a=
t emit-rtl.c:1183
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
java/beans/PropertyEditorManager.java: In class `java.beans.PropertyEditorM=
anager':
java/beans/PropertyEditorManager.java: In method `java.beans.PropertyEditor=
Manager.findEditor(java.lang.Class)':
java/beans/PropertyEditorManager.java:112: verification error at PC=3D155
java/beans/PropertyEditorManager.java:112: invalid local variable type in i=
inc

--=-/FJWweQZA55jVJJzOJUH--


From mark@wildebeest.org Wed Feb 06 09:41:00 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YTFk-0005fw-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 09:40:53 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YTFT-0000Nf-00; Wed, 06 Feb 2002 15:40:35 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YTFX-0003Be-00; Wed, 06 Feb 2002 15:40:39 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: Eric Blake <ebb9@email.byu.edu>, classpath@gnu.org
In-Reply-To: <871yfztz5h.fsf@creche.redhat.com>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	<1012937953.24225.14.camel@elsschot>  <871yfztz5h.fsf@creche.redhat.com>
Content-Type: multipart/mixed; boundary="=-QlEzfMkdEDz9SDJAdW25"
X-Mailer: Evolution/1.0.2 
Date: 06 Feb 2002 15:40:39 +0100
Message-Id: <1013006439.2434.35.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-QlEzfMkdEDz9SDJAdW25
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

On Tue, 2002-02-05 at 22:08, Tom Tromey wrote:
> 
> Using the runtime verifier in this situation would be hard, because
> you'd have to convince libgcj to load the bytecode for various java.*
> classes, which are preloaded.

The attached program tries to do it anyway. And I get a lot of verify
errors when using this verifier on classes generated with jikes 1.15.
But as you can see from the attached output I also got a lot of other
errors that indicate that libgcj doesn't like what I am doing :)

Besides Object, Class and ClassLoader I had to remove the following
classes since they seemed to completely hang the verifier!
  java/lang/reflect/Proxy*.class
  java/util/AbstractMap\$1.class 
  java/util/AbstractMap\$3.class 
  java/util/Collections$7.class
  java/util/Collections\$7.class 
  java/util/Collections$SingletonMap.class
  java/util/Collections\$SingletonMap.class 
  java/util/Collections\$SynchronizedMap.class 
  java/util/WeakHashMap\$WeakEntrySet.class 
  java/util/zip/DeflaterHuffman.class 
  java/util/TreeMap\$SubMap.class 
  java/text/RuleBasedCollator.class 
  gnu/java/awt/peer/gtk/GtkComponentPeer.class 

I am going to play a bit more with this to see if I can see were some of
the other errors come from to better understand what libgcj is doing and
wether I am not feeding you completely bogus data.

Cheers,

Mark

--=-QlEzfMkdEDz9SDJAdW25
Content-Description: 
Content-Disposition: inline; filename=VerifyClass.java
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-java; charset=ISO-8859-15

import java.io.*;

public class VerifyClass extends ClassLoader
{
    public static void main(String args[])
    {
        if (args.length =3D=3D 1)
          {
            System.out.println("Verifying: " + args[0]);
            try
              {
                new VerifyClass().verify(args[0]);
              }
            catch (IOException ioe)
              {
                System.err.println(ioe);
              }
          }
        else
          System.out.println("argument must be a class file");
    }

    void verify(String classFile) throws IOException
    {
        InputStream is =3D new FileInputStream(classFile);
        ByteArrayOutputStream os =3D new ByteArrayOutputStream();
        byte[] buf =3D new byte[2048];
        int read =3D is.read(buf);

        while(read > 0)
          {
            os.write(buf, 0, read);
            read =3D is.read(buf);
          }

        byte[] data =3D os.toByteArray();

        try
          {
            Class c =3D defineClass(data, 0, data.length);
            resolveClass(c);
          }
        catch(Error e)
          {
            System.err.println(e);
          }
    }
}

--=-QlEzfMkdEDz9SDJAdW25
Content-Disposition: inline; filename=verify.jikes
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

java.lang.VerifyError: verification failed at PC 31 in java.lang.String:toC=
harArray(()[C): incompatible type on stack
java.lang.VerifyError: verification failed at PC 18 in java.io.ObjectInputS=
tream:resolveClass((Ljava.io.ObjectStreamClass;)Ljava.lang.Class;): incompa=
tible type on stack
java.lang.IncompatibleClassChangeError: java.util.RandomAccessSubList
java.lang.IncompatibleClassChangeError: java.util.Hashtable$HashEntry
java.lang.VerifyError: verification failed at PC 224 in java.util.TimeZone:=
getTimeZone((Ljava.lang.String;)Ljava.util.TimeZone;): incompatible return =
type
java.lang.VerifyError: verification failed at PC 106 in java.util.ResourceB=
undle:tryBundle((Ljava.lang.String;Ljava.util.Locale;Ljava.lang.ClassLoader=
;Ljava.util.ResourceBundle;Ljava.util.HashMap;)Ljava.util.ResourceBundle;):=
 incompatible type on stack
java.lang.VerifyError: verification failed at PC 165 in java.util.Calendar:=
getInstance((Ljava.util.TimeZone;Ljava.util.Locale;)Ljava.util.Calendar;): =
incompatible return type
java.lang.IncompatibleClassChangeError: java.util.HashMap$HashEntry
java.lang.IncompatibleClassChangeError: java.util.Collections$3
java.lang.IncompatibleClassChangeError: java.util.Collections$4
java.lang.IncompatibleClassChangeError: java.util.Collections$5
java.lang.IncompatibleClassChangeError: java.util.Collections$6
java.lang.VerifyError: verification failed at PC 8 in java.util.Collections=
$SingletonSet:iterator(()Ljava.util.Iterator;): incompatible return type
java.lang.IncompatibleClassChangeError: java.util.Collections$SynchronizedL=
ist
java.lang.IncompatibleClassChangeError: java.util.Collections$SynchronizedR=
andomAccessList
java.lang.IncompatibleClassChangeError: java.util.Collections$SynchronizedL=
istIterator
java.lang.IncompatibleClassChangeError: java.util.Collections$SynchronizedS=
et
java.lang.IncompatibleClassChangeError: java.util.Collections$SynchronizedS=
ortedMap
java.lang.IncompatibleClassChangeError: java.util.Collections$SynchronizedS=
ortedSet
java.lang.IncompatibleClassChangeError: java.util.Collections$UnmodifiableL=
ist
java.lang.IncompatibleClassChangeError: java.util.Collections$UnmodifiableR=
andomAccessList
java.lang.IncompatibleClassChangeError: java.util.Collections$UnmodifiableL=
istIterator
java.lang.IncompatibleClassChangeError: java.util.Collections$UnmodifiableM=
ap$UnmodifiableEntrySet
java.lang.IncompatibleClassChangeError: java.util.Collections$UnmodifiableS=
et
java.lang.IncompatibleClassChangeError: java.util.Collections$UnmodifiableS=
ortedMap
java.lang.IncompatibleClassChangeError: java.util.Collections$UnmodifiableS=
ortedSet
java.lang.IncompatibleClassChangeError: java.util.zip.ZipFile
java.lang.IncompatibleClassChangeError: java.util.zip.ZipOutputStream
java.lang.IncompatibleClassChangeError: java.util.zip.DeflaterEngine
java.lang.IncompatibleClassChangeError: java.util.zip.DeflaterPending
java.lang.InternalError: unexpected exception during linking: java.lang.Cla=
ssNotFoundException: java.util.zip.DeflaterHuffman
java.lang.InternalError: unexpected exception during linking: java.lang.Cla=
ssNotFoundException: java.util.zip.DeflaterHuffman
java.lang.IncompatibleClassChangeError: java.util.zip.ZipInputStream
java.lang.IncompatibleClassChangeError: java.util.zip.GZIPInputStream
java.lang.IncompatibleClassChangeError: java.util.zip.GZIPOutputStream
java.lang.IncompatibleClassChangeError: java.util.LinkedHashMap$LinkedHashE=
ntry
java.lang.IncompatibleClassChangeError: java.util.TreeMap$Node
java.lang.VerifyError: verification failed at PC 54 in java.net.InetAddress=
:checkCacheFor((Ljava.lang.String;)[Ljava.net.InetAddress;): array required
java.lang.VerifyError: verification failed at PC 82 in java.net.URLDecoder:=
decode((Ljava.lang.String;Ljava.lang.String;)Ljava.lang.String;): array typ=
e expected
java.lang.VerifyError: verification failed at PC 7 in java.security.Policy:=
<clinit>(()V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 47 in java.security.KeyPai=
rGenerator:getInstance((Ljava.lang.String;Ljava.lang.String;Ljava.security.=
Provider;)Ljava.security.KeyPairGenerator;): incompatible type on stack
java.lang.VerifyError: verification failed at PC 47 in java.security.Signat=
ure:getInstance((Ljava.lang.String;Ljava.lang.String;Ljava.security.Provide=
r;)Ljava.security.Signature;): incompatible type on stack
java.lang.VerifyError: verification failed at PC 37 in java.security.Identi=
ty:hashCode(()I): incompatible type on stack
java.lang.VerifyError: verification failed at PC 321 in java.text.DateForma=
t:computeInstance((IILjava.util.Locale;ZZ)Ljava.text.DateFormat;): incompat=
ible return type
java.lang.VerifyError: verification failed at PC 58 in java.text.NumberForm=
at:computeInstance((Ljava.util.Locale;Ljava.lang.String;Ljava.lang.String;)=
Ljava.text.NumberFormat;): incompatible return type
java.lang.VerifyError: verification failed at PC 961 in java.text.SimpleDat=
eFormat:parse((Ljava.lang.String;Ljava.text.ParsePosition;)Ljava.util.Date;=
): array type expected
java.lang.VerifyError: verification failed at PC 163 in java.text.Attribute=
dString:<init>((Ljava.text.AttributedCharacterIterator;II[Ljava.text.Attrib=
utedCharacterIterator$Attribute;)V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 20 in java.text.BreakItera=
tor:getCharacterInstance((Ljava.util.Locale;)Ljava.text.BreakIterator;): in=
compatible return type
java.lang.VerifyError: verification failed at PC 28 in java.text.Collator:g=
etInstance((Ljava.util.Locale;)Ljava.text.Collator;): incompatible return t=
ype
java.lang.VerifyError: verification failed at PC 18 in java.awt.image.Color=
Model:getRGBdefault(()Ljava.awt.image.ColorModel;): incompatible return typ=
e
java.lang.InternalError: unexpected exception during linking: java.lang.Nul=
lPointerException
java.lang.VerifyError: verification failed at PC 34 in java.awt.Component:g=
etGraphicsConfigurationImpl(()Ljava.awt.GraphicsConfiguration;): incompatib=
le type on stack
java.lang.IncompatibleClassChangeError: java.awt.Container$GfxPaintVisitor
java.lang.IncompatibleClassChangeError: java.awt.Container$GfxPrintVisitor
java.lang.IncompatibleClassChangeError: java.awt.Container$GfxPaintAllVisit=
or
java.lang.IncompatibleClassChangeError: java.awt.Container$GfxPrintAllVisit=
or
java.lang.VerifyError: verification failed at PC 2 in java.awt.geom.Rectang=
ularShape:setFrame((Ljava.awt.geom.Rectangle2D;)V): incompatible type on st=
ack
java.lang.InternalError: unexpected exception during linking: java.lang.Nul=
lPointerException
java.lang.VerifyError: verification failed at PC 2 in java.awt.Window:<init=
>((Ljava.awt.Frame;)V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 12 in java.beans.beanconte=
xt.BeanContextChildSupport:<init>((Ljava.beans.beancontext.BeanContextChild=
;)V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 7 in java.rmi.server.RMISo=
cketFactory:<clinit>(()V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 20 in java.rmi.server.ObjI=
D:<init>(()V): incompatible type on stack
java.lang.LinkageError: class gnu.java.io.decode.Decoder already loaded
java.lang.LinkageError: class gnu.java.io.decode.Decoder already loaded
java.lang.LinkageError: class gnu.java.io.decode.Decoder already loaded
java.lang.LinkageError: class gnu.java.io.decode.Decoder already loaded
java.lang.LinkageError: class gnu.java.io.decode.Decoder already loaded
java.lang.LinkageError: class gnu.java.io.encode.Encoder already loaded
java.lang.LinkageError: class gnu.java.io.encode.Encoder already loaded
java.lang.LinkageError: class gnu.java.io.encode.Encoder already loaded
java.lang.LinkageError: class gnu.java.io.encode.Encoder already loaded
java.lang.LinkageError: class gnu.java.io.encode.Encoder already loaded
java.lang.InternalError: unexpected exception during linking: java.lang.Nul=
lPointerException
java.lang.InternalError: unexpected exception during linking: java.lang.Cla=
ssNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: unexpected exception during linking: java.lang.Cla=
ssNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class null: ja=
va.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class null: ja=
va.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class null: ja=
va.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class gnu.java=
.awt.peer.gtk.GtkToggleButtonPeer: java.lang.ClassNotFoundException: gnu.ja=
va.awt.peer.gtk.GtkComponentPeer
java.lang.LinkageError: class gnu.java.awt.peer.gtk.GtkGenericPeer already =
loaded
java.lang.LinkageError: class gnu.java.awt.peer.gtk.GtkGenericPeer already =
loaded
java.lang.InternalError: Unexpected exception while defining class null: ja=
va.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class null: ja=
va.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class null: ja=
va.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class gnu.java=
.awt.peer.gtk.GtkContainerPeer: java.lang.ClassNotFoundException: gnu.java.=
awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class gnu.java=
.awt.peer.gtk.GtkContainerPeer: java.lang.ClassNotFoundException: gnu.java.=
awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class gnu.java=
.awt.peer.gtk.GtkContainerPeer: java.lang.ClassNotFoundException: gnu.java.=
awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class gnu.java=
.awt.peer.gtk.GtkContainerPeer: java.lang.ClassNotFoundException: gnu.java.=
awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class null: ja=
va.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class null: ja=
va.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class gnu.java=
.awt.peer.gtk.GtkContainerPeer: java.lang.ClassNotFoundException: gnu.java.=
awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class gnu.java=
.awt.peer.gtk.GtkToggleButtonPeer: java.lang.ClassNotFoundException: gnu.ja=
va.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class gnu.java=
.awt.peer.gtk.GtkContainerPeer: java.lang.ClassNotFoundException: gnu.java.=
awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class null: ja=
va.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class null: ja=
va.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class gnu.java=
.awt.peer.gtk.GtkTextComponentPeer: java.lang.ClassNotFoundException: gnu.j=
ava.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: Unexpected exception while defining class gnu.java=
.awt.peer.gtk.GtkTextComponentPeer: java.lang.ClassNotFoundException: gnu.j=
ava.awt.peer.gtk.GtkComponentPeer
java.lang.InternalError: unexpected exception during linking: java.lang.Cla=
ssNotFoundException: gnu.java.awt.peer.gtk.GtkComponentPeer
java.lang.VerifyError: verification failed at PC 43 in gnu.java.rmi.server.=
UnicastConnectionManager:getInstance((Ljava.lang.String;ILjava.rmi.server.R=
MIClientSocketFactory;)Lgnu.java.rmi.server.UnicastConnectionManager;): inc=
ompatible type on stack
java.lang.InternalError: unexpected exception during linking: java.lang.Nul=
lPointerException
java.lang.InternalError: unexpected exception during linking: java.lang.Nul=
lPointerException

--=-QlEzfMkdEDz9SDJAdW25--


From mark@wildebeest.org Wed Feb 06 12:35:33 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YVym-0003hS-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 12:35:33 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YVy3-0000TV-00; Wed, 06 Feb 2002 18:34:47 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YVy6-00022Y-00; Wed, 06 Feb 2002 18:34:50 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: Mark Wielaard <mark@klomp.org>
Cc: tromey@redhat.com, Eric Blake <ebb9@email.byu.edu>, classpath@gnu.org
In-Reply-To: <1013006439.2434.35.camel@elsschot>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	<1012937953.24225.14.camel@elsschot>  <871yfztz5h.fsf@creche.redhat.com> 
	<1013006439.2434.35.camel@elsschot>
Content-Type: multipart/mixed; boundary="=-ZBInUjsIGAtb2kqeEL77"
X-Mailer: Evolution/1.0.2 
Date: 06 Feb 2002 18:34:50 +0100
Message-Id: <1013016890.2434.71.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-ZBInUjsIGAtb2kqeEL77
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

On Wed, 2002-02-06 at 15:40, Mark Wielaard wrote:
> 
> I am going to play a bit more with this to see if I can see were some of
> the other errors come from to better understand what libgcj is doing and
> wether I am not feeding you completely bogus data.

I changed the program a little bit to force loading all classes through
the same ClassLoader when possible. Now it actually seems to work. But a
lot of the VerifyErrors seem to be wrong.

For example the verifier doesn't like something like the following:

Method name:"compareTo" public Signature: 108=(java.lang.Object)int
Attribute "Code", length:56, max_stack:2, max_locals:2, code_length:24
  0: aload_1
  1: instanceof #1=<Class java.math.BigInteger>
  4: ifeq 16
  7: aload_0
  8: aload_1
  9: checkcast #1=<Class java.math.BigInteger>
 12: invokestatic #110=<Method java.math.BigInteger.compareTo
(java.math.BigInteger,java.math.BigInteger)int>
 15: ireturn
 16: new #111=<Class java.lang.ClassCastException>
 19: dup
 20: invokespecial #113=<Method java.lang.ClassCastException.<init>
()void>
 23: athrow

$ ./verifyclass java/math/BigInteger.class 
Verifying: java/math/BigInteger.class
java.lang.VerifyError: verification failed at PC 23 in
java.math.BigInteger:compareTo((Ljava.lang.Object;)I): incompatible type
on stack

But the bytecode looks good to me.

I attach the VerifyClass code so people can play with it.

I also tried compiling jikes from CVS but I am unable to compile
Classpath with it. Simple test programs work though. Needs some
debugging. Eric, is jikes from CVS 'stable'?

Cheers,

Mark

--=-ZBInUjsIGAtb2kqeEL77
Content-Description: 
Content-Disposition: inline; filename=VerifyClass.java
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-java; charset=ISO-8859-15

import java.io.*;

public class VerifyClass extends ClassLoader
{
    public static void main(String args[])
    {
      if (args.length =3D=3D 1)
        {
          System.out.println("Verifying: " + args[0]);
          try
            {
              VerifyClass verifier =3D new VerifyClass();
              Class c =3D verifier.load(args[0]);
              verifier.resolveClass(c);
            }
          catch (Throwable t)
            {
              System.err.println(t);
            }
        }
      else
        System.out.println("argument must be a class file");
    }

    Class load(String classFile) throws IOException
    {
      InputStream is =3D new FileInputStream(classFile);
      ByteArrayOutputStream os =3D new ByteArrayOutputStream();
      byte[] buf =3D new byte[2048];

      int read =3D is.read(buf);
      while(read > 0)
        {
          os.write(buf, 0, read);
          read =3D is.read(buf);
        }

      byte[] data =3D os.toByteArray();
      return defineClass(data, 0, data.length);
    }

    protected Class loadClass(String name, boolean link)
      throws java.lang.ClassNotFoundException
    {
      if (!"java.lang.Object".equals(name))
        {
	  try
	    {
              Class c =3D load(name.replace('.','/') + ".class");

              if (link)
                resolveClass(c);

	      return c;
            }
	  catch(IOException ioe) { }
	}
      return super.loadClass(name, link);
    }
}

--=-ZBInUjsIGAtb2kqeEL77--


From tromey@creche.cygnus.com Wed Feb 06 13:56:00 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16YXEd-0000mZ-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 13:55:59 -0500
Received: from creche.cygnus.com (ta0207.peakpeak.com [204.144.244.207])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id LAA16058;
	Wed, 6 Feb 2002 11:55:50 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id MAA19509;
	Wed, 6 Feb 2002 12:17:02 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: Eric Blake <ebb9@email.byu.edu>, classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli> <3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca> <1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu> <1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com> <1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  HUMAN REPLICAS are inserted into VATS of NUTRITIONAL YEAST...
Date: 06 Feb 2002 12:17:02 -0700
In-Reply-To: Mark Wielaard's message of "06 Feb 2002 18:34:50 +0100"
Message-ID: <87y9i6ju8h.fsf@creche.redhat.com>
Lines: 40
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> I changed the program a little bit to force loading all classes
Mark> through the same ClassLoader when possible. Now it actually
Mark> seems to work. But a lot of the VerifyErrors seem to be wrong.

There are probably remaining bugs in the verifier.  I'm interested in
killing these as quickly as possible.

Mark> For example the verifier doesn't like something like the following:

I tried the appended example, which gives nearly identical bytecode.
It worked fine for me :-(.  Could you try it?

Mark> I attach the VerifyClass code so people can play with it.

Thanks, I'll give it a try soon.

Tom

public class bi
{
  int x;

  private static int compareTo (bi one, bi two)
  {
    return one.x - two.x;
  }

  public int compareTo (Object obj)
  {
    if (obj instanceof bi)
      return compareTo (this, (bi) obj);
    throw new ClassCastException ();
  }

  public static void main (String[] args)
  {
  }
}


From mark@wildebeest.org Wed Feb 06 14:41:40 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YXwo-0005Ia-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 14:41:39 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YXwU-0000Yd-00; Wed, 06 Feb 2002 20:41:18 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YXwY-0001oX-00; Wed, 06 Feb 2002 20:41:22 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: Eric Blake <ebb9@email.byu.edu>, classpath@gnu.org
In-Reply-To: <87y9i6ju8h.fsf@creche.redhat.com>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	<1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	<1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot> 
	<87y9i6ju8h.fsf@creche.redhat.com>
Content-Type: multipart/mixed; boundary="=-K0IXNtqigY3JA2SsXr1M"
X-Mailer: Evolution/1.0.2 
Date: 06 Feb 2002 20:41:21 +0100
Message-Id: <1013024481.2435.109.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-K0IXNtqigY3JA2SsXr1M
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

On Wed, 2002-02-06 at 20:17, Tom Tromey wrote:
> >>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
> 
> Mark> I changed the program a little bit to force loading all classes
> Mark> through the same ClassLoader when possible. Now it actually
> Mark> seems to work. But a lot of the VerifyErrors seem to be wrong.
> 
> There are probably remaining bugs in the verifier.  I'm interested in
> killing these as quickly as possible.
>
> Mark> For example the verifier doesn't like something like the following:
> 
> I tried the appended example, which gives nearly identical bytecode.
> It worked fine for me :-(.  Could you try it?

That one works now for me. A friend (hi Erwin!) pointed out that my
program was a bit eager with respect to loading java.lang.Throwable and
java.lang.String through my ClassLoader. The verifier got confused about
wether those classes were really assignable to the reference type on the
stack (they were not since they had different ClassLoaders!).

> Thanks, I'll give it a try soon.

Here is a new version that just ignores all java.lang classes.
Still have to debug some more since the program now get
NullPointerExceptions and hangs again on some classes (seems that trying
to fool the SystemClassLoader is not a good idea :) But I have attached
the results so far. I will go through the VerifyErrors I get now to see
if they are real.

Cheers,

Mark

--=-K0IXNtqigY3JA2SsXr1M
Content-Disposition: inline; filename=VerifyClass.java
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-java; charset=ISO-8859-15

import java.io.*;

public class VerifyClass extends ClassLoader
{
    public static void main(String args[])
    {
      if (args.length =3D=3D 1)
        {
          System.out.println("Verifying: " + args[0]);
          try
            {
              if (args[0].indexOf("java/lang/") < 0)
                {
                  VerifyClass verifier =3D new VerifyClass();
                  Class c =3D verifier.load(args[0]);
                  verifier.resolveClass(c);
                }
              else
	        System.out.println("Skipping java.lang class");
            }
          catch (Throwable t)
            {
              System.out.println(t);
            }
        }
      else
        System.out.println("argument must be a class file");
    }

    Class load(String classFile) throws IOException
    {
      InputStream is =3D new FileInputStream(classFile);
      ByteArrayOutputStream os =3D new ByteArrayOutputStream();
      byte[] buf =3D new byte[2048];

      int read =3D is.read(buf);
      while(read > 0)
        {
          os.write(buf, 0, read);
          read =3D is.read(buf);
        }

      byte[] data =3D os.toByteArray();
      return defineClass(data, 0, data.length);
    }

    protected Class loadClass(String name, boolean link)
      throws java.lang.ClassNotFoundException
    {
      // System.out.println("Loading: " + name);
      if (!name.startsWith("java.lang"))
        {
	  try
	    {
              Class c =3D load(name.replace('.','/') + ".class");

              if (link)
                resolveClass(c);

	      return c;
            }
	  catch(IOException ioe) { }
	}
      return super.loadClass(name, link);
    }
}

--=-K0IXNtqigY3JA2SsXr1M
Content-Disposition: inline; filename=verify.results
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

Verifying: ./java/lang/VerifyError.class
java.lang.VerifyError: verification failed at PC 64 in java.util.Collection=
s:shuffle((Ljava.util.List;Ljava.util.Random;)V): array required
java.lang.VerifyError: verification failed at PC 37 in java.util.zip.ZipFil=
e:readEntries(()V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 37 in java.util.zip.ZipFil=
e:readEntries(()V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 54 in java.net.InetAddress=
:checkCacheFor((Ljava.lang.String;)[Ljava.net.InetAddress;): array required
java.lang.VerifyError: verification failed at PC 82 in java.net.URLDecoder:=
decode((Ljava.lang.String;Ljava.lang.String;)Ljava.lang.String;): array typ=
e expected
java.lang.VerifyError: verification failed at PC 58 in java.text.NumberForm=
at:computeInstance((Ljava.util.Locale;Ljava.lang.String;Ljava.lang.String;)=
Ljava.text.NumberFormat;): incompatible return type
java.lang.VerifyError: verification failed at PC 961 in java.text.SimpleDat=
eFormat:parse((Ljava.lang.String;Ljava.text.ParsePosition;)Ljava.util.Date;=
): array type expected
java.lang.VerifyError: verification failed at PC 163 in java.text.Attribute=
dString:<init>((Ljava.text.AttributedCharacterIterator;II[Ljava.text.Attrib=
utedCharacterIterator$Attribute;)V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 58 in java.text.NumberForm=
at:computeInstance((Ljava.util.Locale;Ljava.lang.String;Ljava.lang.String;)=
Ljava.text.NumberFormat;): incompatible return type
java.lang.VerifyError: verification failed at PC 12 in java.beans.beanconte=
xt.BeanContextChildSupport:<init>((Ljava.beans.beancontext.BeanContextChild=
;)V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 20 in java.rmi.server.ObjI=
D:<init>(()V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 43 in gnu.java.rmi.server.=
UnicastConnectionManager:getInstance((Ljava.lang.String;ILjava.rmi.server.R=
MIClientSocketFactory;)Lgnu.java.rmi.server.UnicastConnectionManager;): inc=
ompatible type on stack

--=-K0IXNtqigY3JA2SsXr1M--


From ebb9@email.byu.edu Wed Feb 06 15:26:14 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16YYdx-0007LJ-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 15:26:14 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020206202612.WODW3578.rwcrmhc52.attbi.com@email.byu.edu>
          for <classpath@gnu.org>; Wed, 6 Feb 2002 20:26:12 +0000
Message-ID: <3C618FA1.CFA8082D@email.byu.edu>
Date: Wed, 06 Feb 2002 13:18:41 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath list <classpath@gnu.org>
Subject: build question
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I'm trying to do a completely fresh build of classpath with the latest
CVS version of Jikes, to see what needs to be fixed in Jikes (or what
workarounds need to be patched into classpath) by Friday.  But during
the autoreconf stage, I was getting:

$ automake native/jni/java-lang/Makefile
automake: native/jni/java-lang/Makefile.am: `\' is not a standard
libtool library name
native/jni/java-lang/Makefile.am:15: invalid unused variable name:
`libjavalang_la_LIBADD'
native/jni/java-lang/Makefile.am:6: invalid unused variable name:
`libjavalang_la_SOURCES'
native/jni/java-lang/Makefile.am:18: invalid unused variable name:
`libjavalangreflect_la_LDFLAGS'
native/jni/java-lang/Makefile.am:17: invalid unused variable name:
`libjavalang_la_LDFLAGS'
native/jni/java-lang/Makefile.am:13: invalid unused variable name:
`libjavalangreflect_la_SOURCES'
$

Is it ok to commit this patch?  Then I can actually do a build to report
on the status of jikes/classpath.

2002-02-06  Eric Blake  <ebb9@email.byu.edu>

	* native/jni/java-lang/Makefile.am: Clean up automake problems
	caused by trailing '\'.

Index: native/jni/java-lang/Makefile.am
===================================================================
RCS file:
/cvsroot/classpath/classpath/native/jni/java-lang/Makefile.am,v
retrieving revision 1.1
diff -u -r1.1 Makefile.am
--- native/jni/java-lang/Makefile.am    5 Nov 2001 03:03:27 -0000      
1.1
+++ native/jni/java-lang/Makefile.am    6 Feb 2002 20:24:38 -0000
@@ -1,10 +1,7 @@
 SUBDIRS =
-pkglib_LTLIBRARIES = \
-                       libjavalang.la \
-                       libjavalangreflect.la
+pkglib_LTLIBRARIES =   libjavalang.la  libjavalangreflect.la

-libjavalang_la_SOURCES := \
-                       java_lang_System.c \
+libjavalang_la_SOURCES = java_lang_System.c \
                        java_lang_Object.c \
                        java_lang_Float.c \
                        java_lang_Double.c \


-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From mark@wildebeest.org Wed Feb 06 15:38:44 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YYq4-0000o7-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 15:38:44 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YYps-0000ao-00; Wed, 06 Feb 2002 21:38:32 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YYpw-00081b-00; Wed, 06 Feb 2002 21:38:36 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: classpath@gnu.org
In-Reply-To: <1013024481.2435.109.camel@elsschot>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	<1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	<1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot> 
	<87y9i6ju8h.fsf@creche.redhat.com>  <1013024481.2435.109.camel@elsschot>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 06 Feb 2002 21:38:36 +0100
Message-Id: <1013027916.2434.121.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Wed, 2002-02-06 at 20:41, Mark Wielaard wrote:
> But I have attached the results so far.
> I will go through the VerifyErrors I get now to see if they are real.

Reading bytecode makes your head hurt.

> java.lang.VerifyError: verification failed at PC 82 in java.net.URLDecoder:decode((Ljava.lang.String;Ljava.lang.String;)Ljava.lang.String;): array type expected

This seems to be a bug in the verifier. When you see arraylength the
stack may contain null. But isarray() in verifier.cc does not check for
null for some reason.

Now I am debugging the verifier when I wanted to debug jikes bytecode
generation :)

Cheers,

Mark


From mark@wildebeest.org Wed Feb 06 15:43:11 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YYuM-00011k-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 15:43:10 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YYuB-0000b5-00; Wed, 06 Feb 2002 21:42:59 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YYuF-00082p-00; Wed, 06 Feb 2002 21:43:03 +0100
Subject: Re: build question
From: Mark Wielaard <mark@klomp.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
In-Reply-To: <3C618FA1.CFA8082D@email.byu.edu>
References: <3C618FA1.CFA8082D@email.byu.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 06 Feb 2002 21:43:03 +0100
Message-Id: <1013028183.2435.125.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Wed, 2002-02-06 at 21:18, Eric Blake wrote:
> $ automake native/jni/java-lang/Makefile
> automake: native/jni/java-lang/Makefile.am: `\' is not a standard
> libtool library name
> native/jni/java-lang/Makefile.am:15: invalid unused variable name:
> `libjavalang_la_LIBADD'
> native/jni/java-lang/Makefile.am:6: invalid unused variable name:
> `libjavalang_la_SOURCES'
> native/jni/java-lang/Makefile.am:18: invalid unused variable name:
> `libjavalangreflect_la_LDFLAGS'
> native/jni/java-lang/Makefile.am:17: invalid unused variable name:
> `libjavalang_la_LDFLAGS'
> native/jni/java-lang/Makefile.am:13: invalid unused variable name:
> `libjavalangreflect_la_SOURCES'

What version of automake are you using?
You will need automake 1.5 to build Classpath from CVS (see HACKING).

Cheers,

Mark


From ebb9@email.byu.edu Wed Feb 06 15:56:30 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16YZ7G-0002C9-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 15:56:30 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020206205626.YXHN26243.rwcrmhc51.attbi.com@email.byu.edu>;
          Wed, 6 Feb 2002 20:56:26 +0000
Message-ID: <3C61930A.D711ECCF@email.byu.edu>
Date: Wed, 06 Feb 2002 13:33:14 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: Classpath list <classpath@gnu.org>
Subject: Re: build question
References: <3C618FA1.CFA8082D@email.byu.edu> <1013028183.2435.125.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:
> 
> Hi,
> 
> What version of automake are you using?
> You will need automake 1.5 to build Classpath from CVS (see HACKING).

automake 1.5, as bundled in cygwin under their automake-devel branch.
I'm not sure if the cygwin developers have done anything on top of the
stock automake 1.5 distribution.

I modelled my patch after java-io/Makefile.am; the only Makefile.am
giving me problems was the one in java-lang.

> 
> Cheers,
> 
> Mark

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From mark@wildebeest.org Wed Feb 06 16:06:22 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YZGo-0002km-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 16:06:22 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YZGe-0000cE-00; Wed, 06 Feb 2002 22:06:12 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YZGi-0002vA-00; Wed, 06 Feb 2002 22:06:16 +0100
Subject: Re: build question
From: Mark Wielaard <mark@klomp.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
In-Reply-To: <3C61930A.D711ECCF@email.byu.edu>
References: <3C618FA1.CFA8082D@email.byu.edu>
	<1013028183.2435.125.camel@elsschot>  <3C61930A.D711ECCF@email.byu.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 06 Feb 2002 22:06:16 +0100
Message-Id: <1013029576.2434.130.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Wed, 2002-02-06 at 21:33, Eric Blake wrote:
> > 
> > What version of automake are you using?
> > You will need automake 1.5 to build Classpath from CVS (see HACKING).
> 
> automake 1.5, as bundled in cygwin under their automake-devel branch.
> I'm not sure if the cygwin developers have done anything on top of the
> stock automake 1.5 distribution.
> 
> I modelled my patch after java-io/Makefile.am; the only Makefile.am
> giving me problems was the one in java-lang.

How strange. My automake (1.5-1.1 from Debian GNU/Linux) has no problems
with it. Your patch looks harmless to me. But Brian is our automake
guru. I am also afraid that you are the first person trying the build
system under cygwin.

Cheers,

Mark


From tromey@creche.cygnus.com Wed Feb 06 16:13:53 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16YZO5-00030m-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 16:13:53 -0500
Received: from creche.cygnus.com (ta0207.peakpeak.com [204.144.244.207])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id OAA16321;
	Wed, 6 Feb 2002 14:13:49 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id OAA26363;
	Wed, 6 Feb 2002 14:35:03 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli> <3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca> <1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu> <1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com> <1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot> <87y9i6ju8h.fsf@creche.redhat.com> <1013024481.2435.109.camel@elsschot> <1013027916.2434.121.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  TAPPING?  You POLITICIANS!  Don't you realize that the END of the
 ``Wash Cycle'' is a TREASURED MOMENT for most people?!
Date: 06 Feb 2002 14:35:03 -0700
In-Reply-To: Mark Wielaard's message of "06 Feb 2002 21:38:36 +0100"
Message-ID: <87u1sugupk.fsf@creche.redhat.com>
Lines: 23
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

>> java.lang.VerifyError: verification failed at PC 82 in java.net.URLDecoder:decode((Ljava.lang.String;Ljava.lang.String;)Ljava.lang.String;): array type expected

Mark> This seems to be a bug in the verifier. When you see arraylength the
Mark> stack may contain null. But isarray() in verifier.cc does not check for
Mark> null for some reason.

Thanks.  I've checked in a new test case for this (they are in the
Mauve "verify" module).  Interestingly, gcj crashes on the test case.

I've also written a verifier patch which I am testing.  I'll check it
in once that is done.

Mark> Now I am debugging the verifier when I wanted to debug jikes
Mark> bytecode generation :)

Sorry about that.

If you don't mind, please keep sending verifier bug reports as you
find them.  I'm happy to write the test cases and the fixes.

Tom


From cbj@gnu.org Wed Feb 06 16:21:29 2002
Received: from fe5.southeast.rr.com ([24.93.67.52] helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YZVR-0003TT-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 16:21:29 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Wed, 6 Feb 2002 16:21:09 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g16LLEZ32289;
	Wed, 6 Feb 2002 16:21:14 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: build question
References: <3C618FA1.CFA8082D@email.byu.edu>
From: Brian Jones <cbj@gnu.org>
Date: 06 Feb 2002 16:21:13 -0500
In-Reply-To: <3C618FA1.CFA8082D@email.byu.edu>
Message-ID: <m3pu3i5mt2.fsf@lyta.haphazard.org>
Lines: 12
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake <ebb9@email.byu.edu> writes:

> Is it ok to commit this patch?  Then I can actually do a build to report
> on the status of jikes/classpath.

It's okay to make that change.  Clearly something is wrong with the
cygwin automake, or with textmode/binmode and the file, but you
shouldn't let it bother you at this point.

Brian
-- 
Brian Jones <cbj@gnu.org>


From tromey@creche.cygnus.com Wed Feb 06 16:24:45 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16YZYa-0003ey-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 16:24:44 -0500
Received: from creche.cygnus.com (ta0207.peakpeak.com [204.144.244.207])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id OAA18961;
	Wed, 6 Feb 2002 14:24:39 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id OAA11799;
	Wed, 6 Feb 2002 14:45:52 -0700
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: build question
References: <3C618FA1.CFA8082D@email.byu.edu>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  I HAVE to buy a new ``DODGE MISER'' and two dozen JORDACHE
 JEANS because my viewscreen is ``USER-FRIENDLY''!!
Date: 06 Feb 2002 14:45:51 -0700
In-Reply-To: Eric Blake's message of "Wed, 06 Feb 2002 13:18:41 -0700"
Message-ID: <87lme6gu7k.fsf@creche.redhat.com>
Lines: 30
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Eric" == Eric Blake <ebb9@email.byu.edu> writes:

Eric> automake: native/jni/java-lang/Makefile.am: `\' is not a standard
Eric> libtool library name

This is curious.  This error shouldn't happen.  Apparently what is
happening here is that automake thinks that the `\' continuation
character in the definition of pkglib_LTLIBRARIES is supposed to be
the name of a library.

I can't reproduce this problem here.  Since you are using Cygwin,
which most of us aren't, perhaps the problem is somehow related to
that.  For instance, it could be a line termination problem.

Could you investigate this for me?  I'd like to fix automake.

I notice in lib/Automake/XFile.pm we use binmode on the file handle.
Is that really correct though?  I'd have thought we would not want to
use it, so that line terminators are auto-translated.  (This is just a
suspicion though.  I don't actually know what the problem is.)

Eric> -libjavalang_la_SOURCES := \
Eric> -                       java_lang_System.c \
Eric> +libjavalang_la_SOURCES = java_lang_System.c \

I think this part of the patch is fine.
Generally there's no reason to use `:='.
Having `\' after the `=' ought to work though.

Tom


From mark@wildebeest.org Wed Feb 06 16:30:43 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YZeN-0004MT-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 16:30:43 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YZeB-0000dg-00; Wed, 06 Feb 2002 22:30:31 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YZeF-0007LN-00; Wed, 06 Feb 2002 22:30:35 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: classpath@gnu.org
In-Reply-To: <87u1sugupk.fsf@creche.redhat.com>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	<1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	<1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot>
	<87y9i6ju8h.fsf@creche.redhat.com> <1013024481.2435.109.camel@elsschot>
	<1013027916.2434.121.camel@elsschot>  <87u1sugupk.fsf@creche.redhat.com>
Content-Type: multipart/mixed; boundary="=-jRMoetA976y/aHuk5h+l"
X-Mailer: Evolution/1.0.2 
Date: 06 Feb 2002 22:30:35 +0100
Message-Id: <1013031035.2434.152.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-jRMoetA976y/aHuk5h+l
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi Tom,

On Wed, 2002-02-06 at 22:35, Tom Tromey wrote:
> 
> Thanks.  I've checked in a new test case for this (they are in the
> Mauve "verify" module).  Interestingly, gcj crashes on the test case.
> 
> I've also written a verifier patch which I am testing.  I'll check it
> in once that is done.
Wow, you are quick. I made a patch myself which I have attached. With
this patch I don't get any array related VerifyErrors which either means
my patch is completely broken or jikes doesn't generate faulty array
accesses. I am interested in how your fix looks.

> Mark> Now I am debugging the verifier when I wanted to debug jikes
> Mark> bytecode generation :)
> 
> Sorry about that.

Don't worry about it. I learned a lot today.

Cheers,

Mark

--=-jRMoetA976y/aHuk5h+l
Content-Description: 
Content-Disposition: inline; filename=verify.patch
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

Index: verify.cc
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/gcc/gcc/libjava/verify.cc,v
retrieving revision 1.32
diff -u -r1.32 verify.cc
--- verify.cc	2002/02/01 05:48:00	1.32
+++ verify.cc	2002/02/06 21:23:08
@@ -1161,6 +1161,10 @@
   // compatible with type ELEMENT.  Returns the actual element type.
   type require_array_type (type array, type element)
   {
+    // If array is null pretend that it contains ELEMENT type.
+    if (array.key =3D=3D null_type)
+      return element;
+
     if (! array.isarray ())
       verify_fail ("array required");
=20
@@ -2796,7 +2800,7 @@
 	  case op_arraylength:
 	    {
 	      type t =3D pop_type (reference_type);
-	      if (! t.isarray ())
+	      if (! t.isarray () && t.key !=3D null_type)
 		verify_fail ("array type expected");
 	      push_type (int_type);
 	    }


--=-jRMoetA976y/aHuk5h+l--


From tromey@creche.cygnus.com Wed Feb 06 16:51:23 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16YZyN-0006zm-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 16:51:23 -0500
Received: from creche.cygnus.com (ta0207.peakpeak.com [204.144.244.207])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id OAA25328;
	Wed, 6 Feb 2002 14:51:20 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id PAA13453;
	Wed, 6 Feb 2002 15:12:35 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli> <3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca> <1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu> <1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com> <1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot> <87y9i6ju8h.fsf@creche.redhat.com> <1013024481.2435.109.camel@elsschot> <1013027916.2434.121.camel@elsschot> <87u1sugupk.fsf@creche.redhat.com> <1013031035.2434.152.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Send your questions to ``ASK ZIPPY'', Box 40474,
 San Francisco, CA 94140, USA
Date: 06 Feb 2002 15:12:35 -0700
In-Reply-To: Mark Wielaard's message of "06 Feb 2002 22:30:35 +0100"
Message-ID: <87u1sufeek.fsf@creche.redhat.com>
Lines: 8
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> I am interested in how your fix looks.

It is basically the same as your fix, except I added a type::isnull()
method.

Tom


From mark@wildebeest.org Wed Feb 06 17:52:27 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YavT-0003q5-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 17:52:27 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YavH-0000hS-00; Wed, 06 Feb 2002 23:52:15 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YavL-0002IV-00; Wed, 06 Feb 2002 23:52:19 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: classpath@gnu.org
In-Reply-To: <1013024481.2435.109.camel@elsschot>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	<1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	<1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot> 
	<87y9i6ju8h.fsf@creche.redhat.com>  <1013024481.2435.109.camel@elsschot>
Content-Type: multipart/mixed; boundary="=-NOxvrUqBtp+3rltEkOdj"
X-Mailer: Evolution/1.0.2 
Date: 06 Feb 2002 23:52:19 +0100
Message-Id: <1013035939.2434.161.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-NOxvrUqBtp+3rltEkOdj
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

On Wed, 2002-02-06 at 20:41, Mark Wielaard wrote:
> java.lang.VerifyError: verification failed at PC 37 in java.util.zip.ZipFile:readEntries(()V): incompatible type on stack

Another bug in the verifier. dup2 actually dups the stack. Patch
attached. Still not found any bugs in jikes.

Cheers,

Mark

--=-NOxvrUqBtp+3rltEkOdj
Content-Disposition: inline; filename=verify.patch2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

Index: verify.cc
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/gcc/gcc/libjava/verify.cc,v
retrieving revision 1.33
diff -u -u -r1.33 verify.cc
--- verify.cc	2002/02/06 21:53:59	1.33
+++ verify.cc	2002/02/06 22:49:37
@@ -2382,6 +2382,8 @@
 		  push_type (t);
 		  push_type (t2);
 		}
+	      else
+		push_type (t);
 	      push_type (t);
 	    }
 	    break;

--=-NOxvrUqBtp+3rltEkOdj--


From bryce@waitaki.otago.ac.nz Wed Feb 06 18:56:58 2002
Received: from waitaki.otago.ac.nz ([139.80.75.140])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Ybvt-0000T1-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 18:56:57 -0500
Received: from waitaki.otago.ac.nz (IDENT:bryce@reason.otago.ac.nz [139.80.119.17])
	by waitaki.otago.ac.nz (8.11.6/8.11.2) with ESMTP id g16NuYO09596;
	Thu, 7 Feb 2002 12:56:34 +1300
Message-ID: <3C61C2C3.8090407@waitaki.otago.ac.nz>
Date: Thu, 07 Feb 2002 12:56:51 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: Nic Ferrier <nferrier@tapsellferrier.co.uk>, classpath@gnu.org
Subject: Re: NEWS file for next release
References: <1012825119.17458.210.camel@elsschot> 	<87sn8hl8ci.fsf@tf1.tapsellferrier.co.uk> <1012826802.17458.238.camel@elsschot>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

>- There seems to be a gcc compiler bug that makes the following
>    patch
>    necessary:
>    --- orp-1.0.9/base_natives/common_olv2/mon_enter_exit.cpp
>    +++ orp/base_natives/common_olv2/mon_enter_exit.cpp
>    @@ -294,7 +294,7 @@
>     #else
>                    "nop;nop;nop"
>     #endif
>    -               ::: "memory"
>    +               : : : "memory"
>            );
>     
>     #else
>

I think that is not a bug, but rather an obscure C++ misfeature called 
"trigraphs".

regards

Bryce.




From mark@wildebeest.org Wed Feb 06 19:10:07 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Yc8d-0001DT-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 19:10:07 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Yc8M-0000k6-00; Thu, 07 Feb 2002 01:09:50 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16Yc8Q-0003ai-00; Thu, 07 Feb 2002 01:09:54 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: classpath@gnu.org
In-Reply-To: <87u1sufeek.fsf@creche.redhat.com>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	<1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	<1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot>
	<87y9i6ju8h.fsf@creche.redhat.com> <1013024481.2435.109.camel@elsschot>
	<1013027916.2434.121.camel@elsschot> <87u1sugupk.fsf@creche.redhat.com>
	<1013031035.2434.152.camel@elsschot>  <87u1sufeek.fsf@creche.redhat.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 07 Feb 2002 01:09:54 +0100
Message-Id: <1013040594.2434.169.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Wed, 2002-02-06 at 23:12, Tom Tromey wrote:
> >>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
> 
> Mark> I am interested in how your fix looks.
> 
> It is basically the same as your fix, except I added a type::isnull()
> method.

It looks like that does not solve all problems with null arrays.
The following program gives a verify error but I am to tired to figure
out what goes wrong (both with jikes and gcj -C).

import java.io.InterruptedIOException;
public class NullArray
{
  public static void main(String[] args)
  {
    InterruptedIOException[] s = null;
    int i = s[0].bytesTransferred;
  }
}

$ gcj -C NullArray.java
$ ./verifyclass NullArray.class
java.lang.VerifyError: verification failed at PC 5 in
NullArray:main(([Ljava.lang.String;)V): incompatible type on stack

Method name:"main" public static Signature: 6=(java.lang.String[])void
Attribute "Code", length:38, max_stack:2, max_locals:3, code_length:10
  0: aconst_null
  1: astore_1
  2: aload_1
  3: iconst_0
  4: aaload
  5: getfield #13=<Field java.io.InterruptedIOException.bytesTransferred
int>
  8: istore_2
  9: return

I will get some sleep now. Happy verifier hacking.

Good night,

Mark


From tromey@creche.cygnus.com Wed Feb 06 19:53:34 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Ycog-0004sw-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 19:53:34 -0500
Received: from creche.cygnus.com (ta0207.peakpeak.com [204.144.244.207])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id RAA22785;
	Wed, 6 Feb 2002 17:53:30 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id SAA17020;
	Wed, 6 Feb 2002 18:14:47 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli> <3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca> <1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu> <1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com> <1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot> <87y9i6ju8h.fsf@creche.redhat.com> <1013024481.2435.109.camel@elsschot> <1013035939.2434.161.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Mary Tyler Moore's SEVENTH HUSBAND is wearing my DACRON TANK TOP
 in a cheap hotel in HONOLULU!
Date: 06 Feb 2002 18:14:47 -0700
In-Reply-To: Mark Wielaard's message of "06 Feb 2002 23:52:19 +0100"
Message-ID: <87heouay9k.fsf@creche.redhat.com>
Lines: 14
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

>> java.lang.VerifyError: verification failed at PC 37 in java.util.zip.ZipFile:readEntries(()V): incompatible type on stack

Mark> Another bug in the verifier. dup2 actually dups the stack. Patch
Mark> attached. Still not found any bugs in jikes.

Thanks.
Perhaps we should move the verifier patches to one of the gcj lists.

I agree your patch is correct and I'm going to check it in.
I've also written a regression test for it.

Tom


From ebb9@email.byu.edu Wed Feb 06 21:52:28 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Yefk-0005Rz-00
	for <classpath@gnu.org>; Wed, 06 Feb 2002 21:52:28 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020207025224.IOJM26243.rwcrmhc51.attbi.com@email.byu.edu>;
          Thu, 7 Feb 2002 02:52:24 +0000
Message-ID: <3C61EB5D.477E4891@email.byu.edu>
Date: Wed, 06 Feb 2002 19:50:11 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: tromey@redhat.com, classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	 <3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	 <1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	 <1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	 <1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:
> 
> 
> I also tried compiling jikes from CVS but I am unable to compile
> Classpath with it. Simple test programs work though. Needs some
> debugging. Eric, is jikes from CVS 'stable'?

I just committed a patch, after spending all afternoon hacking, that
ensures that the CVS version of jikes will compile Classpath without
failure.  I have not tried your verify script to see if all the class
files are valid, but it is in better shape than yesterday when jikes was
dumping core.

Actually, I'd feel better if you ran your verify script on the output of
the current CVS version of jikes, to check my work.  If it succeeds with
no compile or verify errors, then I will tag the current state of jikes
CVS as stable, and update the Classpath documentation to point to that
version.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From chris.gray@acunia.com Thu Feb 07 04:12:45 2002
Received: from nat.be.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Ykbl-0004M9-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 04:12:45 -0500
Received: from acunia.com (IDENT:gray@sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id g179B5s13144;
	Thu, 7 Feb 2002 10:11:06 +0100
Message-ID: <3C62466A.159B508A@acunia.com>
Date: Thu, 07 Feb 2002 10:18:34 +0100
From: Chris Gray <chris.gray@acunia.com>
Organization: ACUNIA NV
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
CC: Mark Wielaard <mark@klomp.org>,
   Nic Ferrier <nferrier@tapsellferrier.co.uk>, classpath@gnu.org
Subject: Re: NEWS file for next release
References: <1012825119.17458.210.camel@elsschot> 	<87sn8hl8ci.fsf@tf1.tapsellferrier.co.uk> <1012826802.17458.238.camel@elsschot> <3C61C2C3.8090407@waitaki.otago.ac.nz>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Bryce McKinlay wrote:

> I think that is not a bug, but rather an obscure C++ misfeature called
> "trigraphs".

Don't I recall reading in the index of some GNU manual (probably for
gcc):
  ANSI Trigraphs
    You don't want to know about this particular braindamage.

:)

Chris Gray
VM Architect, ACUNIA




From mark@wildebeest.org Thu Feb 07 07:34:28 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Ynkx-0007uP-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 07:34:27 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Ynkg-0001HJ-00; Thu, 07 Feb 2002 13:34:10 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16Ynkk-0002zA-00; Thu, 07 Feb 2002 13:34:14 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: tromey@redhat.com, classpath@gnu.org
In-Reply-To: <3C61EB5D.477E4891@email.byu.edu>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	<1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	<1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot> 
	<3C61EB5D.477E4891@email.byu.edu>
Content-Type: multipart/mixed; boundary="=-KP/jHlAnuzZO5uuzYEVB"
X-Mailer: Evolution/1.0.2 
Date: 07 Feb 2002 13:34:14 +0100
Message-Id: <1013085254.2435.200.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-KP/jHlAnuzZO5uuzYEVB
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi Eric,

On Thu, 2002-02-07 at 03:50, Eric Blake wrote:
> 
> I just committed a patch, after spending all afternoon hacking, that
> ensures that the CVS version of jikes will compile Classpath without
> failure.  I have not tried your verify script to see if all the class
> files are valid, but it is in better shape than yesterday when jikes was
> dumping core.

It now compiles Classpath out of the (CVS) box for me. Great.

> Actually, I'd feel better if you ran your verify script on the output of
> the current CVS version of jikes, to check my work.  If it succeeds with
> no compile or verify errors, then I will tag the current state of jikes
> CVS as stable, and update the Classpath documentation to point to that
> version.

I would not take the gcj verifiers to seriously. That code needs a bit
more love (and testcases) before I would trust it (but Tom did fix the
last bug I found yesterday, yeah Tom!). And my little VerifyClass
program does a couple of wacky things which you should not do with
ClassLoaders. But I have attached what I have found with the gcj
--syntax-only and the libgcj verifier.

And this time it actually had a valid VerifyError!
This new jikes is a bit to clever about String concatenations.
Take the following from javax/naming/RefAddr.java:

public String toString()
{
  return "[RefAddr type: "+getType()+" content: "+getContent()+']';
}

This gives a: java.lang.VerifyError: verification failed at PC 30 in
javax.naming.RefAddr:toString(()Ljava.lang.String;): incompatible type
on stack

Which is correct since the byte code reads:

Method name:"toString" public Signature: 10=()java.lang.String
Attribute "Code", length:61, max_stack:3, max_locals:1, code_length:37
  0: new #35=<Class java.lang.StringBuffer>
  3: dup
  4: ldc #37=<String "[RefAddr type: ">
  6: invokespecial #42=<Method java.lang.StringBuffer.<init>
(java.lang.String)void>
  9: aload_0
 10: invokevirtual #20=<Method javax.naming.RefAddr.getType
()java.lang.String>
 13: invokevirtual #46=<Method java.lang.StringBuffer.append
(java.lang.String)java.lang.StringBuffer>
 16: ldc #47=<String " content: ">
 18: invokevirtual #46=<Method java.lang.StringBuffer.append
(java.lang.String)java.lang.StringBuffer>
 21: aload_0
 22: invokevirtual #27=<Method javax.naming.RefAddr.getContent
()java.lang.Object>
 25: invokevirtual #51=<Method java.lang.StringBuffer.append
(java.lang.Object)java.lang.StringBuffer>
 28: ldc #52=<String "]">
 30: invokevirtual #56=<Method java.lang.StringBuffer.append
(char)java.lang.StringBuffer>
 33: invokevirtual #58=<Method java.lang.StringBuffer.toString
()java.lang.String>
 36: areturn

It is trying to call append(char) on the String "]". Note that the java
source has a char ']'. Jikes seems to have decided to promote it to a
String. jikes 1.15 did not do this.

The rest of the verify output follows, but I have not analysed it yet.
But the above error seems like a showstopper.

Cheers,

Mark

--=-KP/jHlAnuzZO5uuzYEVB
Content-Description: 
Content-Disposition: attachment; filename=verify-jikes.libgcj
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

java.lang.VerifyError: verification failed at PC 137 in java.util.PropertyP=
ermission$1:implies((Ljava.security.Permission;)Z): incompatible type on st=
ack
java.lang.VerifyError: verification failed at PC 108 in java.security.Basic=
Permission$1:implies((Ljava.security.Permission;)Z): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 58 in java.text.NumberForm=
at:computeInstance((Ljava.util.Locale;Ljava.lang.String;Ljava.lang.String;)=
Ljava.text.NumberFormat;): incompatible return type
java.lang.VerifyError: verification failed at PC 75 in java.text.SimpleDate=
Format:<init>(()V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 163 in java.text.Attribute=
dString:<init>((Ljava.text.AttributedCharacterIterator;II[Ljava.text.Attrib=
utedCharacterIterator$Attribute;)V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 58 in java.text.NumberForm=
at:computeInstance((Ljava.util.Locale;Ljava.lang.String;Ljava.lang.String;)=
Ljava.text.NumberFormat;): incompatible return type
java.lang.VerifyError: verification failed at PC 30 in java.awt.Dimension:t=
oString(()Ljava.lang.String;): incompatible type on stack
java.lang.VerifyError: verification failed at PC 43 in java.awt.Point:toStr=
ing(()Ljava.lang.String;): incompatible type on stack
java.lang.VerifyError: verification failed at PC 12 in java.beans.beanconte=
xt.BeanContextChildSupport:<init>((Ljava.beans.beancontext.BeanContextChild=
;)V): incompatible type on stack
java.lang.VerifyError: verification failed at PC 25 in java.rmi.server.Remo=
teObject:readObject((Ljava.io.ObjectInputStream;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 25 in java.rmi.server.Remo=
teObject:readObject((Ljava.io.ObjectInputStream;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 25 in java.rmi.server.Remo=
teObject:readObject((Ljava.io.ObjectInputStream;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 25 in java.rmi.server.Remo=
teObject:readObject((Ljava.io.ObjectInputStream;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 25 in java.rmi.server.Remo=
teObject:readObject((Ljava.io.ObjectInputStream;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 25 in java.rmi.server.Remo=
teObject:readObject((Ljava.io.ObjectInputStream;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 2 in gnu.java.awt.peer.gtk=
.GtkToggleButtonPeer:<init>((Ljava.awt.Checkbox;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 2 in gnu.java.awt.peer.gtk=
.GtkToggleButtonPeer:<init>((Ljava.awt.Checkbox;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 2 in gnu.java.awt.peer.gtk=
.GtkCheckboxPeer:<init>((Ljava.awt.Checkbox;Ljava.awt.peer.ComponentPeer;)V=
): incompatible type on stack
java.lang.VerifyError: verification failed at PC 2 in gnu.java.awt.peer.gtk=
.GtkToggleButtonPeer:<init>((Ljava.awt.Checkbox;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 2 in gnu.java.awt.peer.gtk=
.GtkTextComponentPeer:<init>((Ljava.awt.TextComponent;)V): incompatible typ=
e on stack
java.lang.VerifyError: verification failed at PC 2 in gnu.java.awt.peer.gtk=
.GtkTextComponentPeer:<init>((Ljava.awt.TextComponent;)V): incompatible typ=
e on stack
java.lang.VerifyError: verification failed at PC 2 in gnu.java.awt.peer.gtk=
.GtkTextComponentPeer:<init>((Ljava.awt.TextComponent;)V): incompatible typ=
e on stack
java.lang.VerifyError: verification failed at PC 43 in gnu.java.rmi.server.=
UnicastConnectionManager:getInstance((Ljava.lang.String;ILjava.rmi.server.R=
MIClientSocketFactory;)Lgnu.java.rmi.server.UnicastConnectionManager;): inc=
ompatible type on stack
java.lang.VerifyError: verification failed at PC 25 in java.rmi.server.Remo=
teObject:readObject((Ljava.io.ObjectInputStream;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 25 in java.rmi.server.Remo=
teObject:readObject((Ljava.io.ObjectInputStream;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 25 in java.rmi.server.Remo=
teObject:readObject((Ljava.io.ObjectInputStream;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 25 in java.rmi.server.Remo=
teObject:readObject((Ljava.io.ObjectInputStream;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 25 in java.rmi.server.Remo=
teObject:readObject((Ljava.io.ObjectInputStream;)V): incompatible type on s=
tack
java.lang.VerifyError: verification failed at PC 30 in javax.naming.RefAddr=
:toString(()Ljava.lang.String;): incompatible type on stack
java.lang.VerifyError: verification failed at PC 30 in javax.naming.RefAddr=
:toString(()Ljava.lang.String;): incompatible type on stack
java.lang.VerifyError: verification failed at PC 30 in javax.naming.RefAddr=
:toString(()Ljava.lang.String;): incompatible type on stack

--=-KP/jHlAnuzZO5uuzYEVB
Content-Description: 
Content-Disposition: attachment; filename=verify-jikes.gcj
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

Proxy.java: In class `java.lang.reflect.Proxy$ClassFactory':
Proxy.java: In method `java.lang.reflect.Proxy$ClassFactory.internal(java.l=
ang.String,boolean)':
Proxy.java:1414: verification error at PC=3D173
Proxy.java:1414: invalid argument type
Proxy.java:1414: expected type 'char' but stack contains 'java.lang.String'
Proxy.java: In constructor `(java.lang.reflect.Proxy$ProxyData)':
Proxy.java:906: verification error at PC=3D103
Proxy.java:906: invalid argument type
Proxy.java:906: expected type 'char' but stack contains 'java.lang.String'
Collections.java: In class `java.util.Collections$1$SynchronizedMapEntry':
Collections.java: In method `java.util.Collections$1$SynchronizedMapEntry.c=
onstructor$0(java.util.Collections$SynchronizedMap,java.lang.Object)':
java/util/Collections$1$SynchronizedMapEntry.java:0: warning: assignment to=
 final field `e' not in constructor
java/util/WeakHashMap.java: In class `java.util.WeakHashMap':
java/util/WeakHashMap.java: In constructor `(int,float)':
java/util/WeakHashMap.java:538: class 'java.util.WeakHashMap$WeakEntrySet' =
has no method named '<init>' matching signature '(Ljava/util/WeakHashMap;Lj=
ava/util/WeakHashMap$2;)V'
java/util/WeakHashMap.java:538: expected type 'java.util.WeakHashMap$WeakEn=
trySet' but stack contains 'void'
java/util/WeakHashMap.java:538: expected type 'java.util.WeakHashMap' but s=
tack contains 'java.util.WeakHashMap$WeakEntrySet'
java/util/WeakHashMap.java:538: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
PropertyPermission.java: In class `java.util.PropertyPermission$1':
PropertyPermission.java: In method `java.util.PropertyPermission$1.implies(=
java.security.Permission)':
PropertyPermission.java:227: verification error at PC=3D137
PropertyPermission.java:227: invalid argument type
PropertyPermission.java:227: expected type 'char' but stack contains 'java.=
lang.String'
java/util/zip/DeflaterEngine.java: In class `java.util.zip.DeflaterEngine':
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
setLevel(int)':
java/util/zip/DeflaterEngine.java:138: warning: unreachable bytecode from 5=
1 to before 89
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
updateHash()':
java/util/zip/DeflaterEngine.java:178: warning: unreachable bytecode from 3=
 to before 28
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
insertString()':
java/util/zip/DeflaterEngine.java:192: warning: unreachable bytecode from 2=
6 to before 161
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
findLongestMatch(int)':
java/util/zip/DeflaterEngine.java:273: warning: unreachable bytecode from 1=
18 to before 128
java/util/zip/DeflaterEngine.java:277: warning: unreachable bytecode from 1=
31 to before 141
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
setDictionary(byte[],int,int)':
java/util/zip/DeflaterEngine.java:322: warning: unreachable bytecode from 3=
 to before 13
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
deflateStored(boolean,boolean)':
java/util/zip/DeflaterEngine.java:368: warning: unreachable bytecode from 8=
8 to before 125
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
deflateFast(boolean,boolean)':
java/util/zip/DeflaterEngine.java:403: warning: unreachable bytecode from 1=
09 to before 162
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
deflateSlow(boolean,boolean)':
java/util/zip/DeflaterEngine.java:465: warning: unreachable bytecode from 6=
4 to before 74
java/util/zip/DeflaterEngine.java:498: warning: unreachable bytecode from 2=
30 to before 282
java/util/zip/DeflaterEngine.java: In method `java.util.zip.DeflaterEngine.=
deflate(boolean,boolean)':
java/util/zip/DeflaterEngine.java:550: warning: unreachable bytecode from 2=
7 to before 98
java/util/zip/PendingBuffer.java: In class `java.util.zip.PendingBuffer':
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteByte(int)':
java/util/zip/PendingBuffer.java:77: warning: unreachable bytecode from 3 t=
o before 11
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteShort(int)':
java/util/zip/PendingBuffer.java:84: warning: unreachable bytecode from 3 t=
o before 11
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteInt(int)':
java/util/zip/PendingBuffer.java:92: warning: unreachable bytecode from 3 t=
o before 11
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteBlock(byte[],int,int)':
java/util/zip/PendingBuffer.java:102: warning: unreachable bytecode from 3 =
to before 11
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.al=
ignToByte()':
java/util/zip/PendingBuffer.java:113: warning: unreachable bytecode from 3 =
to before 11
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteBits(int,int)':
java/util/zip/PendingBuffer.java:127: warning: unreachable bytecode from 3 =
to before 11
java/util/zip/PendingBuffer.java:129: warning: unreachable bytecode from 14=
 to before 53
java/util/zip/PendingBuffer.java: In method `java.util.zip.PendingBuffer.wr=
iteShortMSB(int)':
java/util/zip/PendingBuffer.java:142: warning: unreachable bytecode from 3 =
to before 11
java/util/zip/DeflaterHuffman.java: In class `java.util.zip.DeflaterHuffman=
':
java/util/zip/DeflaterHuffman.java: In method `java.util.zip.DeflaterHuffma=
n.sendAllTrees(int)':
java/util/zip/DeflaterHuffman.java:608: warning: unreachable bytecode from =
127 to before 134
java/util/zip/DeflaterHuffman.java: In method `java.util.zip.DeflaterHuffma=
n.compressBlock()':
java/util/zip/DeflaterHuffman.java:619: warning: unreachable bytecode from =
33 to before 73
java/util/zip/DeflaterHuffman.java:642: warning: unreachable bytecode from =
179 to before 249
java/util/zip/DeflaterHuffman.java:648: warning: unreachable bytecode from =
271 to before 279
java/util/zip/DeflaterHuffman.java:653: warning: unreachable bytecode from =
291 to before 305
java/util/zip/DeflaterHuffman.java: In method `java.util.zip.DeflaterHuffma=
n.flushStoredBlock(byte[],int,int,boolean)':
java/util/zip/DeflaterHuffman.java:661: warning: unreachable bytecode from =
3 to before 25
java/util/zip/DeflaterHuffman.java: In method `java.util.zip.DeflaterHuffma=
n.flushBlock(byte[],int,int,boolean)':
java/util/zip/DeflaterHuffman.java:711: warning: unreachable bytecode from =
249 to before 291
java/util/zip/DeflaterHuffman.java: In method `java.util.zip.DeflaterHuffma=
n.tallyLit(int)':
java/util/zip/DeflaterHuffman.java:748: warning: unreachable bytecode from =
3 to before 73
java/util/zip/DeflaterHuffman.java: In method `java.util.zip.DeflaterHuffma=
n.tallyDist(int,int)':
java/util/zip/DeflaterHuffman.java:759: warning: unreachable bytecode from =
3 to before 39
DeflaterHuffman.java: In class `java.util.zip.DeflaterHuffman$Tree':
DeflaterHuffman.java: In method `java.util.zip.DeflaterHuffman$Tree.writeSy=
mbol(int)':
DeflaterHuffman.java:91: warning: unreachable bytecode from 3 to before 14
DeflaterHuffman.java: In method `java.util.zip.DeflaterHuffman$Tree.buildCo=
des()':
DeflaterHuffman.java:124: warning: unreachable bytecode from 29 to before 5=
5
DeflaterHuffman.java:130: warning: unreachable bytecode from 85 to before 1=
37
DeflaterHuffman.java:134: warning: unreachable bytecode from 152 to before =
162
DeflaterHuffman.java:142: warning: unreachable bytecode from 185 to before =
235
DeflaterHuffman.java: In method `java.util.zip.DeflaterHuffman$Tree.buildLe=
ngth(int[])':
DeflaterHuffman.java:188: warning: unreachable bytecode from 184 to before =
295
DeflaterHuffman.java:247: warning: unreachable bytecode from 499 to before =
587
java/net/DatagramSocket.java: In class `java.net.DatagramSocket':
java/net/DatagramSocket.java: In method `java.net.DatagramSocket.getSoTimeo=
ut()':
java/net/DatagramSocket.java:216: class 'java.net.DatagramSocketImpl' has n=
o method named 'getOption' matching signature '(I)Ljava/lang/Object;'
java/net/DatagramSocket.java: In method `java.net.DatagramSocket.setSoTimeo=
ut(int)':
java/net/DatagramSocket.java:238: class 'java.net.DatagramSocketImpl' has n=
o method named 'setOption' matching signature '(ILjava/lang/Object;)V'
java/net/DatagramSocket.java: In method `java.net.DatagramSocket.getSendBuf=
ferSize()':
java/net/DatagramSocket.java:254: Internal compiler error in gen_lowpart, a=
t emit-rtl.c:1183
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
java/net/Socket.java: In class `java.net.Socket':
java/net/Socket.java: In method `java.net.Socket.getLocalAddress()':
java/net/Socket.java:296: class 'java.net.SocketImpl' has no method named '=
getOption' matching signature '(I)Ljava/lang/Object;'
java/net/Socket.java: In method `java.net.Socket.setTcpNoDelay(boolean)':
java/net/Socket.java:388: class 'java.net.SocketImpl' has no method named '=
setOption' matching signature '(ILjava/lang/Object;)V'
java/net/Socket.java: In method `java.net.Socket.getTcpNoDelay()':
java/net/Socket.java:403: Internal compiler error in gen_lowpart, at emit-r=
tl.c:1183
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
java/net/MulticastSocket.java: In class `java.net.MulticastSocket':
java/net/MulticastSocket.java: In method `java.net.MulticastSocket.getInter=
face()':
java/net/MulticastSocket.java:103: class 'java.net.DatagramSocketImpl' has =
no method named 'getOption' matching signature '(I)Ljava/lang/Object;'
java/net/MulticastSocket.java: In method `java.net.MulticastSocket.getTTL()=
':
java/net/MulticastSocket.java:122: Internal compiler error in expand_expr, =
at expr.c:6209
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
java/net/ServerSocket.java: In class `java.net.ServerSocket':
java/net/ServerSocket.java: In method `java.net.ServerSocket.setSoTimeout(i=
nt)':
java/net/ServerSocket.java:226: class 'java.net.SocketImpl' has no method n=
amed 'setOption' matching signature '(ILjava/lang/Object;)V'
java/net/ServerSocket.java: In method `java.net.ServerSocket.getSoTimeout()=
':
java/net/ServerSocket.java:241: Internal compiler error in gen_lowpart, at =
emit-rtl.c:1183
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
BasicPermission.java: In class `java.security.BasicPermission$1':
BasicPermission.java: In method `java.security.BasicPermission$1.implies(ja=
va.security.Permission)':
BasicPermission.java:226: verification error at PC=3D108
BasicPermission.java:226: invalid argument type
BasicPermission.java:226: expected type 'char' but stack contains 'java.lan=
g.String'
java/text/SimpleDateFormat.java: In class `java.text.SimpleDateFormat':
java/text/SimpleDateFormat.java: In constructor `()':
java/text/SimpleDateFormat.java:174: verification error at PC=3D75
java/text/SimpleDateFormat.java:174: invalid argument type
java/text/SimpleDateFormat.java:174: expected type 'char' but stack contain=
s 'java.lang.String'
java/awt/Dimension.java: In class `java.awt.Dimension':
java/awt/Dimension.java: In method `java.awt.Dimension.toString()':
java/awt/Dimension.java:159: verification error at PC=3D30
java/awt/Dimension.java:159: invalid argument type
java/awt/Dimension.java:159: expected type 'char' but stack contains 'java.=
lang.String'
java/awt/Point.java: In class `java.awt.Point':
java/awt/Point.java: In method `java.awt.Point.toString()':
java/awt/Point.java:170: verification error at PC=3D43
java/awt/Point.java:170: invalid argument type
java/awt/Point.java:170: expected type 'char' but stack contains 'java.lang=
.String'
java/rmi/server/RemoteObject.java: In class `java.rmi.server.RemoteObject':
java/rmi/server/RemoteObject.java: In method `java.rmi.server.RemoteObject.=
readObject(java.io.ObjectInputStream)':
java/rmi/server/RemoteObject.java:94: verification error at PC=3D25
java/rmi/server/RemoteObject.java:94: invalid argument type
java/rmi/server/RemoteObject.java:94: expected type 'char' but stack contai=
ns 'java.lang.String'
java/rmi/server/RMIClassLoader.java: In class `java.rmi.server.RMIClassLoad=
er':
java/rmi/server/RMIClassLoader.java: In method `java.rmi.server.RMIClassLoa=
der.<clinit>()':
java/rmi/server/RMIClassLoader.java:55: class 'java.rmi.server.RMIClassLoad=
er$MyClassLoader' has no method named '<init>' matching signature '(Ljava/r=
mi/server/RMIClassLoader$1;)V'
java/rmi/server/RMIClassLoader.java:55: expected type 'java.rmi.server.RMIC=
lassLoader$MyClassLoader' but stack contains 'void'
gnu/java/rmi/server/UnicastRemoteCall.java: In class `gnu.java.rmi.server.U=
nicastRemoteCall':
gnu/java/rmi/server/UnicastRemoteCall.java: In method `gnu.java.rmi.server.=
UnicastRemoteCall.getOutputStream()':
gnu/java/rmi/server/UnicastRemoteCall.java:77: class 'gnu.java.rmi.server.U=
nicastRemoteCall$DummyObjectOutputStream' has no method named '<init>' matc=
hing signature '(Lgnu/java/rmi/server/UnicastRemoteCall;Lgnu/java/rmi/serve=
r/UnicastRemoteCall$1;)V'
gnu/java/rmi/server/UnicastRemoteCall.java:77: expected type 'null' but sta=
ck contains 'void'
gnu/java/rmi/server/UnicastRemoteCall.java: In method `gnu.java.rmi.server.=
UnicastRemoteCall.getInputStream()':
gnu/java/rmi/server/UnicastRemoteCall.java:90: class 'gnu.java.rmi.server.U=
nicastRemoteCall$DummyObjectInputStream' has no method named '<init>' match=
ing signature '(Lgnu/java/rmi/server/UnicastRemoteCall;Lgnu/java/rmi/server=
/UnicastRemoteCall$2;)V'
gnu/java/rmi/server/UnicastRemoteCall.java:90: expected type 'null' but sta=
ck contains 'void'
gnu/java/rmi/server/UnicastRemoteCall.java: In method `gnu.java.rmi.server.=
UnicastRemoteCall.getResultStream(boolean)':
gnu/java/rmi/server/UnicastRemoteCall.java:100: class 'gnu.java.rmi.server.=
UnicastRemoteCall$DummyObjectOutputStream' has no method named '<init>' mat=
ching signature '(Lgnu/java/rmi/server/UnicastRemoteCall;Lgnu/java/rmi/serv=
er/UnicastRemoteCall$1;)V'
gnu/java/rmi/server/UnicastRemoteCall.java:100: expected type 'null' but st=
ack contains 'void'
javax/naming/RefAddr.java: In class `javax.naming.RefAddr':
javax/naming/RefAddr.java: In method `javax.naming.RefAddr.toString()':
javax/naming/RefAddr.java:140: verification error at PC=3D30
javax/naming/RefAddr.java:140: invalid argument type
javax/naming/RefAddr.java:140: expected type 'char' but stack contains 'jav=
a.lang.String'

--=-KP/jHlAnuzZO5uuzYEVB--


From cbj@gnu.org Thu Feb 07 09:26:12 2002
Received: from fe7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YpV6-0006WG-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 09:26:12 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Thu, 7 Feb 2002 09:26:11 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g17EQBQ07163;
	Thu, 7 Feb 2002 09:26:11 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: GNU Classpath <classpath@gnu.org>
Subject: make dist fixes
From: Brian Jones <cbj@gnu.org>
Date: 07 Feb 2002 09:26:11 -0500
Message-ID: <m3lme5bc70.fsf@lyta.haphazard.org>
Lines: 37
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I just checked in a set of fixes to help get make dist to work.  I've
run into a problem with the generated Makefiles that comes from one of
the auto* tools.  The distclean-compile: target for the native
directories (native/fdlibm in example) looks like this.

distclean-compile:
        -rm -f *.tab.c

 $(DEPDIR)/dtoa.Plo
 $(DEPDIR)/e_acos.Plo
 $(DEPDIR)/e_asin.Plo
 $(DEPDIR)/e_atan2.Plo
 $(DEPDIR)/e_exp.Plo
...

make[2]: Entering directory `/home/cbj/cvs/classpath/build/native/fdlibm'
Makefile:263: *** missing separator.  Stop.
make[2]: Leaving directory `/home/cbj/cvs/classpath/build/native/fdlibm'

This appears traceable back to automake, which generated this.

distclean-compile:
        -rm -f *.tab.c

@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/dtoa.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/e_acos.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/e_asin.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/e_atan2.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/e_exp.Plo@am__quote@
...

I think Tom works on automake, I'm hoping he can help answer the
question of how to fix or work around this.  I'm using automake 1.5.

Brian
-- 
Brian Jones <cbj@gnu.org>


From mark@wildebeest.org Thu Feb 07 09:47:14 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YppR-0000ze-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 09:47:14 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YppL-0001MJ-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 15:47:07 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YppQ-00087Q-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 15:47:12 +0100
Subject: Re: NEWS file for next release
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <3C62466A.159B508A@acunia.com>
References: <1012825119.17458.210.camel@elsschot>
		<87sn8hl8ci.fsf@tf1.tapsellferrier.co.uk>
	<1012826802.17458.238.camel@elsschot>
	<3C61C2C3.8090407@waitaki.otago.ac.nz>  <3C62466A.159B508A@acunia.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 07 Feb 2002 15:47:12 +0100
Message-Id: <1013093232.2435.219.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Thu, 2002-02-07 at 10:18, Chris Gray wrote:
> Bryce McKinlay wrote:
> 
> > I think that is not a bug, but rather an obscure C++ misfeature called
> > "trigraphs".
> 
> Don't I recall reading in the index of some GNU manual (probably for
> gcc):
>   ANSI Trigraphs
>     You don't want to know about this particular braindamage.
> 
> :)

Really funny. The gcc manual actually says that when it "explains" the
-trigraphs option. That is all the documentation it gives! Argh.

I tried to lookup more info on trigraphs but could not find that much.
What I could find did not say that ::: was actually a trigraph. Stange.
The patch is neccessary and does work for me (gcc 3.0.4 debian
prerelease). Does anybody know if it is a real fix or something bogus?

Anyway, I added a new file with the patches that I needed as
resource/orp-1.0.9.patch and updated the ORP build instructions for
using the native Classpath libraries with the latest ORP on
<http://www.gnu.org/software/classpath/doc/orp.html>. (And I actually
tested it with clean installs of both ORP and Classpath.) If someone
else could try it out that would be much appreciated.

I also updated the README file with new URLs for the VMs that currently
use Classpath and added the following text:

    GNU Classpath has been tested to work out of the box with the latest
    ORP release. Instructions for building ORP with this GNU Classpath
    release can be found at
    <http://www.gnu.org/software/classpath/doc/orp.html>. Most JVMs come
    with their own customized version of GNU Classpath. Please check if
    there is a customised version available for the JVM you use before
    trying the bare bones GNU Classpath release. We are working with the
    JVM creators to keep the differences between the core classes as
    small as possible. Please tell us if you make GNU Classpath work
    with a new JVM.
    
We are very close to a realease now. Yeah!

Cheers,

Mark


From mark@wildebeest.org Thu Feb 07 10:22:14 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YqNK-0003T5-00; Thu, 07 Feb 2002 10:22:14 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YqNE-0001NW-00; Thu, 07 Feb 2002 16:22:08 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YqNJ-000119-00; Thu, 07 Feb 2002 16:22:13 +0100
Subject: Re: make dist fixes
From: Mark Wielaard <mark@klomp.org>
To: Brian Jones <cbj@gnu.org>
Cc: GNU Classpath <classpath@gnu.org>
In-Reply-To: <m3lme5bc70.fsf@lyta.haphazard.org>
References: <m3lme5bc70.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 07 Feb 2002 16:22:13 +0100
Message-Id: <1013095333.2435.223.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi Brian,

I am afraid I don't understand enough of automake to help.
But I am currently updating the Makefile.am EXTRA_DIST java file lists.
Please yell if that interferes with your work then I won't commit.

Cheers,

Mark


From sballard@netreach.com Thu Feb 07 10:48:46 2002
Received: from rawaki.netreach.net ([207.29.195.114])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Yqn0-0006aG-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 10:48:46 -0500
Received: from netreach.com (sballard@rainbow.netreach.net [209.152.221.64]) by rawaki.netreach.net (n1/$Revision: 1.5 $) with ESMTP id KAA10466; Thu, 7 Feb 2002 10:48:58 -0500 (EST)
Message-ID: <3C62A1C6.979E13E5@netreach.com>
Date: Thu, 07 Feb 2002 10:48:22 -0500
From: Stuart Ballard <sballard@NetReach.Net>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.17 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: classpath@gnu.org
Subject: Re: NEWS file for next release
References: <1012825119.17458.210.camel@elsschot>
			<87sn8hl8ci.fsf@tf1.tapsellferrier.co.uk>
		<1012826802.17458.238.camel@elsschot>
		<3C61C2C3.8090407@waitaki.otago.ac.nz>  <3C62466A.159B508A@acunia.com> <1013093232.2435.219.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:
> 
> The patch is neccessary and does work for me (gcc 3.0.4 debian
> prerelease). Does anybody know if it is a real fix or something bogus?

Isn't it just that "::" is a valid operator in C++ (but not in C)?

I have no idea what a line of code that uses three : operators in a row
could possibly mean (in either language) and I can't find the source
code file to get context. But my guess is that the tokenizer is seeing
:: and thinking "ooh, class member operator" (or whatever that operator
is called in c++), and it doesn't occur to it that it might actually be
two separate ":" operators.

Now whether that means the fix is *real* or not is unclear to me. C is
pretty good at avoiding these kinds of ambiguous situations, but I bet
that:

int *a; int b;
c = b/*a;

wouldn't divide b by the value pointed to by a, either :)

Anyone know what these three ":" operators are actually supposed to be
doing in this case? At first I assumed that it was in the context of
some wacky nested use of the ternary operator, but even then the closest
you can get is a?b?c?d:e:f:g - the three ":"s must be separated by
something.

Stuart.
-- 
Stuart Ballard, Programmer
FASTNET - Internet Solutions
215.283.2300, ext. 126
www.fast.net


From cbj@gnu.org Thu Feb 07 11:23:02 2002
Received: from fe6.southeast.rr.com ([24.93.67.53] helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YrKA-00006H-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 11:23:02 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Thu, 7 Feb 2002 11:23:01 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g17GN1r07739;
	Thu, 7 Feb 2002 11:23:01 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: make dist fixes
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<1013095333.2435.223.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 07 Feb 2002 11:23:01 -0500
In-Reply-To: <1013095333.2435.223.camel@elsschot>
Message-ID: <m37kppfehm.fsf@lyta.haphazard.org>
Lines: 14
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> Hi Brian,
> 
> I am afraid I don't understand enough of automake to help.
> But I am currently updating the Makefile.am EXTRA_DIST java file lists.
> Please yell if that interferes with your work then I won't commit.

It does not interfere.  Please commit the work.  Thanks for doing this
tedious part.

Brian
-- 
Brian Jones <cbj@gnu.org>


From ebb9@email.byu.edu Thu Feb 07 11:41:11 2002
Received: from rwcrmhc54.attbi.com ([216.148.227.87])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Yrbj-0002es-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 11:41:11 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc54.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020207164104.DPIV1214.rwcrmhc54.attbi.com@email.byu.edu>;
          Thu, 7 Feb 2002 16:41:04 +0000
Message-ID: <3C62AE03.FA72CF2A@email.byu.edu>
Date: Thu, 07 Feb 2002 09:40:35 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: tromey@redhat.com, classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	 <3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	 <1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	 <1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	 <1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot>
	 <3C61EB5D.477E4891@email.byu.edu> <1013085254.2435.200.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:
> 
> And this time it actually had a valid VerifyError!
> This new jikes is a bit to clever about String concatenations.

I'll fix that today, and repost here when it is up.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From mark@wildebeest.org Thu Feb 07 12:45:00 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YsbU-0000Qw-00; Thu, 07 Feb 2002 12:45:00 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YsbO-0001Ss-00; Thu, 07 Feb 2002 18:44:54 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YsbS-0001yR-00; Thu, 07 Feb 2002 18:44:58 +0100
Subject: Re: make dist fixes
From: Mark Wielaard <mark@klomp.org>
To: Brian Jones <cbj@gnu.org>
Cc: GNU Classpath <classpath@gnu.org>
In-Reply-To: <m37kppfehm.fsf@lyta.haphazard.org>
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<1013095333.2435.223.camel@elsschot>  <m37kppfehm.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 07 Feb 2002 18:44:58 +0100
Message-Id: <1013103898.2434.231.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Thu, 2002-02-07 at 17:23, Brian Jones wrote:
> It does not interfere.  Please commit the work.  Thanks for doing this
> tedious part.

Done.

2002-02-07  Mark Wielaard  <mark@klomp.org>

  * configure.in (AC_OUTPUT): add gnu/java/math/Makefile and
  java/awt/font/Makefile.
  * java/awt/Makefile.am (EXTRA_DIST): add GridBagConstraints.java and
  sort entries.
  (SUBDIRS): add font.
  * java/awt/datatransfer/Makefile.am (EXTRA_DIST): add
  MimeTypeParseException.java and SystemFlavorMap.java.
  * java/awt/event/Makefile.am (EXTRA_DIST): Sort entries.
  * java/awt/font/Makefile.am: new file.
  * java/lang/Makefile.am (EXTRA_DIST): add CharSequence.java and sort
  entries.
  * java/net/Makefile.am (EXTRA_DIST): add URLClassLoader.java and sort
  entries.
  * java/security/Makefile.am 9EXTRA_DIST): add AccessController.java
  and sort entries.
  * java/text/Makefile.am (EXTRA_DIST): add DecimalFormat.java, remove
  DefaultBreakIterator.java and sort entries.
  * java/util/Makefile.am (EXTRA_DIST): remove Bucket.java,
  DoubleEnumeration.java and sort entries.
  * com/sun/javadoc/Makefile.am (EXTRA_DIST): sort entries.
  * gnu/java/Makefile.am (SUBDIRS): add math.
  * gnu/java/awt/image/Makefile.am (EXTRA_DIST): sort entries.
  * gnu/java/awt/peer/gtk/Makefile.am (EXTRA_DIST): sort entries.
  * gnu/java/io/decode/Makefile.am (EXTRA_DIST): sort entries.
  * gnu/java/io/encode/Makefile.am (EXTRA_DIST): sort entries.
  * gnu/java/math/Makefile.am: new file.
  * gnu/java/security/provider/Makefile.am (EXTRA_DIST): add
  DefaultPolicy.java.

And make dist now generates an almost usefull tarball.
It is missing include/jni.h.in and include/jni_md-x86-linux-gnu.h and I
don't know how to add them since there is some magic going on with the
include dir.

Cheers,

Mark


From bryce@waitaki.otago.ac.nz Thu Feb 07 16:07:02 2002
Received: from 210-86-62-146.jetstart.xtra.co.nz ([210.86.62.146] helo=localhost.localdomain)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Yvkz-0001ix-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 16:07:02 -0500
Received: from waitaki.otago.ac.nz ([192.168.2.2])
	by localhost.localdomain (8.11.2/8.11.2) with ESMTP id g17KjDf27854;
	Fri, 8 Feb 2002 09:45:14 +1300
Message-ID: <3C62EC49.8070807@waitaki.otago.ac.nz>
Date: Fri, 08 Feb 2002 10:06:17 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: Stuart Ballard <sballard@NetReach.Net>
CC: classpath@gnu.org
Subject: Re: NEWS file for next release
References: <1012825119.17458.210.camel@elsschot>			<87sn8hl8ci.fsf@tf1.tapsellferrier.co.uk>		<1012826802.17458.238.camel@elsschot>		<3C61C2C3.8090407@waitaki.otago.ac.nz>  <3C62466A.159B508A@acunia.com> <1013093232.2435.219.camel@elsschot> <3C62A1C6.979E13E5@netreach.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Stuart Ballard wrote:

>I have no idea what a line of code that uses three : operators in a row
>could possibly mean (in either language) and I can't find the source
>code file to get context. But my guess is that the tokenizer is seeing
>:: and thinking "ooh, class member operator" (or whatever that operator
>is called in c++), and it doesn't occur to it that it might actually be
>two separate ":" operators.
>

That would be my guess too, since (after reading the GCC manual) it 
turns out that ":::" is not a trigraph after all.

>Anyone know what these three ":" operators are actually supposed to be
>doing in this case? 
>

It was an inline asm statement, which has no operands. In this case I'll 
bet its there as a write barrier to synchronize memory before releasing 
a lock. On x86, the hardware never reorders writes (ie another CPU 
cannot see a lock as released before any previous writes to memory were 
completed), but having an empty inline asm with the "memory" flag is a 
safeguard to ensure that GCC will not reschedule writes across the lock 
either.

regards

Bryce.




From mark@wildebeest.org Thu Feb 07 18:22:09 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Yxrl-0004bm-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 18:22:09 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Yxrf-0001f6-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 00:22:03 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16Yxrj-00032m-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 00:22:07 +0100
Subject: Draft release announcement (please comment)
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 08 Feb 2002 00:22:07 +0100
Message-Id: <1013124127.2434.257.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

I made a draft for the 0.03 release announcement.
It can be found in CVS as doc/www.gnu.org/announce/20020208.wml.
(Please be careful when updating the web pages.)

Attached is a text version. Since English is not my native language I
would like it if someone checked the grammar. Please yell if the content
is not clear, correct, confusing, etc.

We need to do (I want to do) some more things before we can actually
release, but we are almost there:

- Need to fix make dist (see mailing list)
- Check new jikes (Eric Blake is working on this)
- Check and recheck release tarball.
- Setup and run Mauve, publish results.

Did I forget anything?

I did contact James Blair about using Drop on a T-shirt back in November
and he was enthousiastic about the idea. But then we didn't actually
make a release so I did not follow up on it. Since we will get a release
soon I tried to contact him again but he has not yet responded. So we
will have to wait a little while before I can make T-shirts to celebrate
the release. If anybody has the original black and white line art of
Drop "the evil water droplet" then please send it to me.

But now I need some sleep.

Good night,

Mark


From mark@wildebeest.org Thu Feb 07 18:27:55 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YxxK-0004kg-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 18:27:55 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YxxB-0001fT-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 00:27:45 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16YxxG-000349-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 00:27:50 +0100
Subject: Re: Draft release announcement (please comment)
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <1013124127.2434.257.camel@elsschot>
References: <1013124127.2434.257.camel@elsschot>
Content-Type: multipart/mixed; boundary="=-jgP7na5dRReCMT8g+M73"
X-Mailer: Evolution/1.0.2 
Date: 08 Feb 2002 00:27:50 +0100
Message-Id: <1013124470.2434.260.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-jgP7na5dRReCMT8g+M73
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

On Fri, 2002-02-08 at 00:22, Mark Wielaard wrote:
> 
> Attached is a text version. Since English is not my native language I
> would like it if someone checked the grammar. Please yell if the content
> is not clear, correct, confusing, etc.

Forgot to attach it. Here it is.

Cheers,

Mark

--=-jgP7na5dRReCMT8g+M73
Content-Disposition: inline; filename=announce.txt
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

 DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DR=
AFT
 NOT YET THE REAL ANNOUNCEMENT! PLEASE COMMENT.

   We are pleased to announce a new development release of GNU Classpath. G=
NU
   Classpath, Essential Libraries for Java, is a project to create free cor=
e
   class libraries for use with virtual machines and compilers for the Java
   language.

   New in this release are the addition of java.util.zip and java.rmi
   packages, VM independent jni.h, more flexible build environment to
   separate class and native code generation, out of the box support for th=
e
   ORP VM, and lots of bug fixes and updates to make GNU Classpath more
   compliant with the 1.2, 1.3 and 1.4 API specification. The copyleft has
   been clarified and all code in the library is now distributed under the
   same terms.

   Here are the answers to some questions you might have about this project
   and this release.

   1). Where can I get it?

   GNU Classpath 0.03 can be downloaded from:
   ftp://alpha.gnu.org/pub/gnu/classpath/classpath-0.03.tar.gz

   2). What is included?

   The following packages (some with subpackages) are supported:

     * java.applet (untested)
     * java.awt (very experimental)
     * java.beans
     * java.io
     * java.lang
     * java.math
     * java.net
     * java.rmi
     * java.security (partially functioning)
     * java.sql
     * java.text (untested)
     * java.util
     * java.util.jar
     * java.util.zip

   This is enough to run many non-awt programs. Not all classes and methods
   are implemented in this release, but most are. Many of the implemented
   classes are already up to the 1.2 API spec. Some are already compliant
   with the 1.3 and (preliminary) 1.4 API specification. More information o=
n
   the current status of each package can be found at
   http://www.gnu.org/software/classpath/status.html

   3). What is required to build/install/run?

   GNU Classpath requires a working GNU build environment and a byte code
   compiler such as jikes, gcj or kjc. When creating native code you will
   also need a working C compiler and a recent Gnome development libraries
   (gtk+, libart and gdk-pixbuf). More information on the precise version
   numbers for the tools and libraries can be found in the INSTALL file.

   4). What platforms and VMs are supported?

   GNU/Linux is the only platform that has been tested. We plan to eventual=
ly
   support many others.

   This release support ORP 1.0.9 out of the box. But other compilers and
   virtual machines such as gcj, Kissme, SableVM, Jupiter and Jaos also wor=
k
   with slightly customized versions of GNU Classpath. Please check if ther=
e
   is a customized version available for the VM you use before trying the
   bare bones GNU Classpath release. We are working with the VM creators to
   keep the differences between the core classes as small as possible.

   5). Who should use this software?

   This is a development release only. You should only install it if you ar=
e
   interested in Classpath development or reporting bugs. We appreciate bot=
h.
   You might also be interested if you enjoy installing random alpha
   software.

   6). Where do I go for more information?

   The project home page with information on our mailing list can be found =
at
   http://www.classpath.org/ or
   http://www.gnu.org/software/classpath/classpath.html

   The bug database, CVS, task-manager and latest news can be found on
   Savannah at http://savannah.gnu.org/projects/classpath/


--=-jgP7na5dRReCMT8g+M73--


From cbj@gnu.org Thu Feb 07 18:56:20 2002
Received: from fe7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16YyOp-00080W-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 18:56:19 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Thu, 7 Feb 2002 18:56:18 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g17NuIL09683;
	Thu, 7 Feb 2002 18:56:18 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: Draft release announcement (please comment)
References: <1013124127.2434.257.camel@elsschot>
	<1013124470.2434.260.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 07 Feb 2002 18:56:18 -0500
In-Reply-To: <1013124470.2434.260.camel@elsschot>
Message-ID: <m3eljwdexp.fsf@lyta.haphazard.org>
Lines: 22
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> Hi,
> 
> On Fri, 2002-02-08 at 00:22, Mark Wielaard wrote:
> > 
> > Attached is a text version. Since English is not my native
> > language I would like it if someone checked the grammar. Please
> > yell if the content is not clear, correct, confusing, etc.
> 
> Forgot to attach it. Here it is.
> 
> Cheers,
> 
> Mark DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT
> DRAFT DRAFT DRAFT NOT YET THE REAL ANNOUNCEMENT! PLEASE COMMENT.

Seems okay to me.

Brian
-- 
Brian Jones <cbj@gnu.org>


From cbj@gnu.org Thu Feb 07 21:22:46 2002
Received: from fe7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Z0gY-0000ML-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 21:22:46 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Thu, 7 Feb 2002 21:22:39 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g182MeI05977;
	Thu, 7 Feb 2002 21:22:40 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: GNU Classpath <classpath@gnu.org>
Subject: Re: make dist fixes
References: <m3lme5bc70.fsf@lyta.haphazard.org>
From: Brian Jones <cbj@gnu.org>
Date: 07 Feb 2002 21:22:39 -0500
In-Reply-To: <m3lme5bc70.fsf@lyta.haphazard.org>
Message-ID: <m3u1sssoeo.fsf@lyta.haphazard.org>
Lines: 16
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones <cbj@gnu.org> writes:

> I just checked in a set of fixes to help get make dist to work.  I've
> run into a problem with the generated Makefiles that comes from one of
> the auto* tools.  

Dove into automake and configure tonight and solved this little
mystery.  Essentially the check for what to put in @am__include@ is only
done as part of something previously included only when using
--enable-jni because of one of the checks for a compiler or
something.  I've moved the 'if' statement down a bit in configure.in
to fix this.

Brian
-- 
Brian Jones <cbj@gnu.org>


From tromey@creche.cygnus.com Thu Feb 07 23:22:55 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Z2Yo-00082F-00; Thu, 07 Feb 2002 23:22:54 -0500
Received: from creche.cygnus.com (ta0194.peakpeak.com [204.144.244.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id VAA01772;
	Thu, 7 Feb 2002 21:22:51 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id VAA17533;
	Thu, 7 Feb 2002 21:44:27 -0700
To: Brian Jones <cbj@gnu.org>
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: make dist fixes
References: <m3lme5bc70.fsf@lyta.haphazard.org> <m3u1sssoeo.fsf@lyta.haphazard.org>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Boy, am I glad it's only 1971...
Date: 07 Feb 2002 21:44:26 -0700
In-Reply-To: Brian Jones's message of "07 Feb 2002 21:22:39 -0500"
Message-ID: <87r8nwpoph.fsf@creche.redhat.com>
Lines: 24
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Brian" == Brian Jones <cbj@gnu.org> writes:

>> I just checked in a set of fixes to help get make dist to work.  I've
>> run into a problem with the generated Makefiles that comes from one of
>> the auto* tools.  

Brian> Dove into automake and configure tonight and solved this little
Brian> mystery.  Essentially the check for what to put in
Brian> @am__include@ is only done as part of something previously
Brian> included only when using --enable-jni because of one of the
Brian> checks for a compiler or something.  I've moved the 'if'
Brian> statement down a bit in configure.in to fix this.

Thanks for looking at this.
We're aware of the problem.  Every conditional you use must always be
declared -- running AM_CONDITIONAL in an `if' or something in
configure will (could) generate output that confuses make.

In the CVS automake we've added code to check for this at configure
time.  We can't do a perfect job, since autoconf doesn't really know
about shell flow-control, but we can detect the error when it occurs
and report it to the user.

Tom


From tromey@creche.cygnus.com Thu Feb 07 23:24:08 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Z2Zz-00088Q-00; Thu, 07 Feb 2002 23:24:07 -0500
Received: from creche.cygnus.com (ta0194.peakpeak.com [204.144.244.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id VAA01980;
	Thu, 7 Feb 2002 21:24:04 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id VAA17540;
	Thu, 7 Feb 2002 21:45:40 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: Brian Jones <cbj@gnu.org>, GNU Classpath <classpath@gnu.org>
Subject: Re: make dist fixes
References: <m3lme5bc70.fsf@lyta.haphazard.org> <1013095333.2435.223.camel@elsschot> <m37kppfehm.fsf@lyta.haphazard.org> <1013103898.2434.231.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  I am deeply CONCERNED and I want something GOOD for BREAKFAST!
Date: 07 Feb 2002 21:45:39 -0700
In-Reply-To: Mark Wielaard's message of "07 Feb 2002 18:44:58 +0100"
Message-ID: <87ofj0pong.fsf@creche.redhat.com>
Lines: 14
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> It is missing include/jni.h.in and include/jni_md-x86-linux-gnu.h and I
Mark> don't know how to add them since there is some magic going on with the
Mark> include dir.

You ought to be able to use something like this in the top-level
Makefile.am:

    EXTRA_DIST = include/jni.h.in include/jni_md-x86-linux-gnu.h

I'm a little surprised that jni.h.in isn't automatically distributed.

Tom


From cbj@gnu.org Thu Feb 07 23:41:25 2002
Received: from fe7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Z2qj-0002FY-00
	for <classpath@gnu.org>; Thu, 07 Feb 2002 23:41:25 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Thu, 7 Feb 2002 23:41:23 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g184fOo04670;
	Thu, 7 Feb 2002 23:41:24 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: tromey@redhat.com
Cc: Mark Wielaard <mark@klomp.org>, GNU Classpath <classpath@gnu.org>
Subject: Re: make dist fixes
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<1013095333.2435.223.camel@elsschot>
	<m37kppfehm.fsf@lyta.haphazard.org>
	<1013103898.2434.231.camel@elsschot>
	<87ofj0pong.fsf@creche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 07 Feb 2002 23:41:24 -0500
In-Reply-To: <87ofj0pong.fsf@creche.redhat.com>
Message-ID: <m3n0ykshzf.fsf@lyta.haphazard.org>
Lines: 21
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
> 
> Mark> It is missing include/jni.h.in and include/jni_md-x86-linux-gnu.h and I
> Mark> don't know how to add them since there is some magic going on with the
> Mark> include dir.
> 
> You ought to be able to use something like this in the top-level
> Makefile.am:
> 
>     EXTRA_DIST = include/jni.h.in include/jni_md-x86-linux-gnu.h
> 
> I'm a little surprised that jni.h.in isn't automatically distributed.

No surprise there.  Fixed it tonight, but I missed Mark's message so I
don't know if he is referring to CVS or to what happens when he does
make dist.  Anyway I'm committing my changes now.

-- 
Brian Jones <cbj@gnu.org>


From cbj@gnu.org Fri Feb 08 00:00:58 2002
Received: from fe8.southeast.rr.com ([24.93.67.55] helo=mail8.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Z39e-00032T-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 00:00:58 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail8.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Fri, 8 Feb 2002 00:00:51 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1850vg31228;
	Fri, 8 Feb 2002 00:00:57 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: GNU Classpath <classpath@gnu.org>
Subject: Re: make dist fixes
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<m3u1sssoeo.fsf@lyta.haphazard.org>
From: Brian Jones <cbj@gnu.org>
Date: 08 Feb 2002 00:00:57 -0500
In-Reply-To: <m3u1sssoeo.fsf@lyta.haphazard.org>
Message-ID: <m31yfwa7p2.fsf@lyta.haphazard.org>
Lines: 18
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

The release is planned for tomorrow, but we haven't had the chance to
have folks test a pre-release .tar.gz.  For me, make distcheck fails
for unknown reasons at this time, but I've been able to build and
install and use classpath with orp from this pre-release.

I've placed a pre-release file at

ftp://alpha.gnu.org/gnu/classpath/classpath-0.03-pre1.tar.gz

Please try it, tomorrow night I can release a final .tar after
problems are fixed.  In the time I have, I could not make it possible
to include generated JNI header files, so a user would need gcjh if
configuring with --enable-jni or for two points use the version I
wrote and stuck into classpath-tools with a working VM.

Brian
-- 
Brian Jones <cbj@gnu.org>


From chris.gray@acunia.com Fri Feb 08 03:09:40 2002
Received: from nat.be.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Z66G-0008Bq-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 03:09:40 -0500
Received: from acunia.com (IDENT:gray@sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id g1888cs27265;
	Fri, 8 Feb 2002 09:08:39 +0100
Message-ID: <3C638889.541A3A28@acunia.com>
Date: Fri, 08 Feb 2002 09:12:57 +0100
From: Chris Gray <chris.gray@acunia.com>
Organization: ACUNIA NV
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: NEWS file for next release
References: <1012825119.17458.210.camel@elsschot>
			<87sn8hl8ci.fsf@tf1.tapsellferrier.co.uk>
		<1012826802.17458.238.camel@elsschot>
		<3C61C2C3.8090407@waitaki.otago.ac.nz>  <3C62466A.159B508A@acunia.com> <1013093232.2435.219.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

> Hi,
>
> On Thu, 2002-02-07 at 10:18, Chris Gray wrote:
>
> > Don't I recall reading in the index of some GNU manual (probably for
> > gcc):
> >   ANSI Trigraphs
> >     You don't want to know about this particular braindamage.
> >
> > :)
>
> Really funny. The gcc manual actually says that when it "explains" the
> -trigraphs option. That is all the documentation it gives! Argh.

I actually had to use them once.  I was compiling C code on an IBM
mainframe and doing most of my editing on a PC XT ... there was no
other way of getting source code converted from the DOS code page
to EBCDIC and back, and still be recognisable.

It's quite easy really - you just write { and } as ??< and ??>, [ ] as
??( ??), ~ as ??-, and so forth.  Unfortunately the sed scripts I used
to do this stuff ended up in the skip, along with the PC XT ... (the
mainframe is probably still running. ;>)  Anyway, I don't recall
anything about ::: - have you tried the I Ching?

Chris




From ebb9@email.byu.edu Fri Feb 08 03:20:55 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Z6H9-0008VA-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 03:20:55 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020208082045.ZDEX1672.rwcrmhc51.attbi.com@email.byu.edu>;
          Fri, 8 Feb 2002 08:20:45 +0000
Message-ID: <3C638A27.34F7D2EA@email.byu.edu>
Date: Fri, 08 Feb 2002 01:19:51 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>, tromey@redhat.com,
 	classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	 <3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	 <1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	 <1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	 <1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot>
	 <3C61EB5D.477E4891@email.byu.edu> <1013085254.2435.200.camel@elsschot> <3C62AE03.FA72CF2A@email.byu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake wrote:
> 
> Mark Wielaard wrote:
> >
> > And this time it actually had a valid VerifyError!
> > This new jikes is a bit to clever about String concatenations.
> 
> I'll fix that today, and repost here when it is up.

I committed that patch to Jikes' CVS earlier today, fixing the
VerifyErrors with string concatenation.  I'm trying to get one more
patch through the test suite and in CVS by tomorrow morning, then I'll
take a look at the other verify errors you reported.  My gut feeling is
that we may have to make some private constructors in inner classes more
accessible as a temporary workaround, until jikes 1.16 is released.
-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From Yann.Secq@lifl.fr Fri Feb 08 05:57:54 2002
Received: from malonne.lifl.fr ([134.206.10.29])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Z8iy-0004Rb-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 05:57:53 -0500
Received: from lifl.fr (beckett.lifl.fr [134.206.10.117])
          by malonne.lifl.fr (8.9.3/jtpda-5.3.3) with ESMTP id LAA26541
          for <classpath@gnu.org>; Fri, 8 Feb 2002 11:57:47 +0100 (MET)
Message-ID: <3C63AEF1.40303@lifl.fr>
Date: Fri, 08 Feb 2002 11:56:49 +0100
From: Yann Secq <Yann.Secq@lifl.fr>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20020203
X-Accept-Language: en, fr
MIME-Version: 1.0
To: Classpath Project <classpath@gnu.org>
Subject: AWT components ?
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi, I've foud a project called KJC, which is a set of AWT components
that were designed to bring Swing-like abilities to applets.
It doesn't seems to be maintained any more, but the license is
"open" and perhaps the author could give it to the FSF ?

I haven't looked at the source but we could perhaps find
some usefull stuff ?
Here is the link :  http://openlab.ring.gr.jp/kyasu/

Cheers, yann.

-- 
  / Yann SECQ            Equipe SMAC           secq@lifl.fr \
| Multi-Agent Systems Modeling & Agent Oriented Programming |
  \ http://www.lifl.fr/SMAC        http://www.lifl.fr/~secq /



From cbj@gnu.org Fri Feb 08 08:00:55 2002
Received: from fe8.southeast.rr.com ([24.93.67.55] helo=mail8.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZAe7-0000zG-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 08:00:55 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail8.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Fri, 8 Feb 2002 08:00:12 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g18D0Im00795;
	Fri, 8 Feb 2002 08:00:18 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Eric Blake <ebb9@email.byu.edu>
Cc: classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot>
	<3C5F00A2.5ED8BB07@email.byu.edu> <1012937953.24225.14.camel@elsschot>
	<871yfztz5h.fsf@creche.redhat.com> <1013006439.2434.35.camel@elsschot>
	<1013016890.2434.71.camel@elsschot> <3C61EB5D.477E4891@email.byu.edu>
	<1013085254.2435.200.camel@elsschot> <3C62AE03.FA72CF2A@email.byu.edu>
	<3C638A27.34F7D2EA@email.byu.edu>
From: Brian Jones <cbj@gnu.org>
Date: 08 Feb 2002 08:00:18 -0500
In-Reply-To: <3C638A27.34F7D2EA@email.byu.edu>
Message-ID: <m3g04cp1r1.fsf@lyta.haphazard.org>
Lines: 24
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake <ebb9@email.byu.edu> writes:

> Eric Blake wrote:
> > 
> > Mark Wielaard wrote:
> > >
> > > And this time it actually had a valid VerifyError!
> > > This new jikes is a bit to clever about String concatenations.
> > 
> > I'll fix that today, and repost here when it is up.
> 
> I committed that patch to Jikes' CVS earlier today, fixing the
> VerifyErrors with string concatenation.  I'm trying to get one more
> patch through the test suite and in CVS by tomorrow morning, then I'll
> take a look at the other verify errors you reported.  My gut feeling is
> that we may have to make some private constructors in inner classes more
> accessible as a temporary workaround, until jikes 1.16 is released.

Let me know what I should pull from jikes cvs to compile with for the
official release.

Brian
-- 
Brian Jones <cbj@gnu.org>


From mark@wildebeest.org Fri Feb 08 09:42:38 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZCEY-0001HF-00; Fri, 08 Feb 2002 09:42:38 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZCER-0002JS-00; Fri, 08 Feb 2002 15:42:31 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZCEW-00042e-00; Fri, 08 Feb 2002 15:42:36 +0100
Subject: Re: make dist fixes
From: Mark Wielaard <mark@klomp.org>
To: Brian Jones <cbj@gnu.org>
Cc: classpath@gnu.org
In-Reply-To: <m31yfwa7p2.fsf@lyta.haphazard.org>
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<m3u1sssoeo.fsf@lyta.haphazard.org>  <m31yfwa7p2.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 08 Feb 2002 15:42:36 +0100
Message-Id: <1013179356.2435.349.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi Brian,

On Fri, 2002-02-08 at 06:00, Brian Jones wrote:
> For me, make distcheck fails for unknown reasons at this time

distcheck fails for me with a 'Error: files left after uninstall'
since all files (classes) that where unpacked from the zip file are
still in the install directory after an uninstall. That is annoying but
not very bad.

> I've placed a pre-release file at
> ftp://alpha.gnu.org/gnu/classpath/classpath-0.03-pre1.tar.gz

Tried it on my main development machine and compiling went all OK.
But when trying out orp I got

$ mains/orp/Linux/dbg/orp -swapjit 0 1 -classpath $CLASSPATH Hello

Linking error: ???? (6) while resolving method at constant pool index 33
in class gnu/java/io/encode/Encoder8859_1

Linking error: ???? (6) while resolving method at constant pool index 33
in class gnu/java/io/encode/Encoder8859_1

Fatal error: can't compile gnu/java/io/encode/Encoder8859_1.<clinit>()V

I am going to check what went wrong.

When I tried the build on a machine without jikes and zip installed
something went wrong. The build automatically used gcj to compile the
classes (good). But since $(ZIP) was not defined it then gave the
following error:

r -D glibj.zip gnu java javax > /dev/null
/bin/sh: r: command not found
make[1]: [glibj.zip] Error 127 (ignored)

configure should complain about the absence of zip.

> In the time I have, I could not make it possible
> to include generated JNI header files, so a user would need gcjh if
> configuring with --enable-jni

I don't think that is a very big problem. Most people that are trying
Classpath now probably have gcc installed.

Cheers,

Mark


From mark@wildebeest.org Fri Feb 08 10:20:04 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZCok-00037B-00; Fri, 08 Feb 2002 10:20:03 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZCoe-0002LY-00; Fri, 08 Feb 2002 16:19:56 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZCoj-0001Az-00; Fri, 08 Feb 2002 16:20:01 +0100
Subject: Re: make dist fixes
From: Mark Wielaard <mark@klomp.org>
To: Brian Jones <cbj@gnu.org>
Cc: classpath@gnu.org
In-Reply-To: <1013179356.2435.349.camel@elsschot>
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<m3u1sssoeo.fsf@lyta.haphazard.org>  <m31yfwa7p2.fsf@lyta.haphazard.org> 
	<1013179356.2435.349.camel@elsschot>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 08 Feb 2002 16:20:01 +0100
Message-Id: <1013181601.2435.357.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Fri, 2002-02-08 at 15:42, Mark Wielaard wrote:
> $ mains/orp/Linux/dbg/orp -swapjit 0 1 -classpath $CLASSPATH Hello
> 
> Linking error: ???? (6) while resolving method at constant pool index 33
> in class gnu/java/io/encode/Encoder8859_1
> 
> Linking error: ???? (6) while resolving method at constant pool index 33
> in class gnu/java/io/encode/Encoder8859_1
> 
> Fatal error: can't compile gnu/java/io/encode/Encoder8859_1.<clinit>()V
> 
> I am going to check what went wrong.

OK. Ignore me. I still had the jikes with the StringBuffer.append bug in
my path. Reconfigure with jikes 1.15 and everything works.

I will try the new jikes from CVS now.

Cheers,

Mark


From mark@wildebeest.org Fri Feb 08 10:43:19 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZDBH-0006Uq-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 10:43:19 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZDBA-0002MO-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 16:43:12 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZDBF-0000U5-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 16:43:17 +0100
Subject: Re: make dist fixes
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <1013181601.2435.357.camel@elsschot>
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<m3u1sssoeo.fsf@lyta.haphazard.org>  <m31yfwa7p2.fsf@lyta.haphazard.org> 
	<1013179356.2435.349.camel@elsschot>  <1013181601.2435.357.camel@elsschot>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 08 Feb 2002 16:43:17 +0100
Message-Id: <1013182997.2435.366.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Fri, 2002-02-08 at 16:20, Mark Wielaard wrote:
> 
> OK. Ignore me. I still had the jikes with the StringBuffer.append bug in
> my path. Reconfigure with jikes 1.15 and everything works.
> 
> I will try the new jikes from CVS now.

Same problem :(
I have not yet figured out if it is a jikes compiler problem or a ORP
jit problem.

The StingBuffer.append() bug is gone though.

Cheers,

Mark


From mark@wildebeest.org Fri Feb 08 11:17:36 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZDiS-0008Jx-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 11:17:36 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZDiL-0002Ns-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 17:17:29 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZDiQ-0000Wz-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 17:17:34 +0100
Subject: Trouble with gcj 3.0.4 (BasicPermission.java)
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 08 Feb 2002 17:17:34 +0100
Message-Id: <1013185054.2435.384.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

When testing the pre-release tarbal with gcj 3.0.4 20020202 (Debian
prerelease) I got the following:

/usr/bin/gcj -C -d . @classes
./../java/security/BasicPermission.java:64: Class
`java.security.BasicPermission' can't subclass interface
`java.security.acl.Permission'.
   public abstract class BasicPermission extends Permission implements
                                                 ^
The released version of gcj (3.0.3) does not have this strange bug.
Changing Permission to java.security.Permission solves it.

Strangely enough I only have this with the release tarbal not with the
cvs tree. Hmmm.

Cheers,

Mark


From mark@wildebeest.org Fri Feb 08 12:20:10 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZEgz-0005Du-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 12:20:09 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZEgs-0002Q5-00; Fri, 08 Feb 2002 18:20:02 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZEgx-0005AL-00; Fri, 08 Feb 2002 18:20:07 +0100
Subject: Re: make dist fixes
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Cc: Eric Blake <ebb9@email.byu.edu>
In-Reply-To: <1013182997.2435.366.camel@elsschot>
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<m3u1sssoeo.fsf@lyta.haphazard.org>  <m31yfwa7p2.fsf@lyta.haphazard.org> 
	<1013179356.2435.349.camel@elsschot>  <1013181601.2435.357.camel@elsschot> 
	<1013182997.2435.366.camel@elsschot>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 08 Feb 2002 18:20:07 +0100
Message-Id: <1013188807.2434.395.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Fri, 2002-02-08 at 16:43, Mark Wielaard wrote:
> > I will try the new jikes from CVS now.
> 
> Same problem :(
> I have not yet figured out if it is a jikes compiler problem or a ORP
> jit problem.

The problem seems to come from the fact that jikes 1.15 (and gcj)
generate things like:
1804: invokestatic #34=<Method
gnu.java.io.encode.EncoderEightBitLookup.loadTable ()void>

But jikes 1.15a (from CVS) generates:
1804: invokestatic #33=<Method
gnu.java.io.encode.Encoder8859_1.loadTable ()void>

Since loadTable() is a static method in (the superclass)
EncoderEightBitLookup not in (the subclass) Encoder8859_1 it seems that
jikes 1.15a generates wrong code in this case.

Cheers,

Mark


From tromey@creche.cygnus.com Fri Feb 08 13:49:46 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZG5h-0005SD-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 13:49:45 -0500
Received: from creche.cygnus.com (ta0201.peakpeak.com [204.144.244.201])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id LAA08489;
	Fri, 8 Feb 2002 11:49:42 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id MAA15752;
	Fri, 8 Feb 2002 12:11:28 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: Trouble with gcj 3.0.4 (BasicPermission.java)
References: <1013185054.2435.384.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  What PROGRAM are they watching?
Date: 08 Feb 2002 12:11:27 -0700
In-Reply-To: Mark Wielaard's message of "08 Feb 2002 17:17:34 +0100"
Message-ID: <874rkrdc0w.fsf@creche.redhat.com>
Lines: 26
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> /usr/bin/gcj -C -d . @classes
Mark> ./../java/security/BasicPermission.java:64: Class
Mark> `java.security.BasicPermission' can't subclass interface
Mark> `java.security.acl.Permission'.
Mark>    public abstract class BasicPermission extends Permission implements
Mark>                                                  ^
Mark> The released version of gcj (3.0.3) does not have this strange bug.
Mark> Changing Permission to java.security.Permission solves it.

You'll have to work around it.  3.0.4 is perhaps the last of the 3.0
releases (hard to be certain).  3.1 is due in April.  The gcj hackers
aren't really fixing bugs in 3.0 at all any more; I have that tree
checked out for reference but I haven't built it in many months.

For problems like this, where the fix is something we wouldn't write
from scratch and is just a workaround for a current compiler problem,
I would prefer that we only have the fix in this particular Classpath
release.  So the idea would be that we make a release branch and then
add the workarounds there.  My idea here is that in the long term we'd
prefer the existing code, as it is "more natural", and perhaps by the
time the next Classpath release comes around we won't have to worry
about this particular compiler any more.  What do you think?

Tom


From ebb9@email.byu.edu Fri Feb 08 17:35:30 2002
Received: from rwcrmhc54.attbi.com ([216.148.227.87])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZJcA-0006l1-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 17:35:30 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc54.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020208223529.LVSC1214.rwcrmhc54.attbi.com@email.byu.edu>;
          Fri, 8 Feb 2002 22:35:29 +0000
Message-ID: <3C64239D.194683C1@email.byu.edu>
Date: Fri, 08 Feb 2002 12:14:37 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: make dist fixes
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	 <m3u1sssoeo.fsf@lyta.haphazard.org> <m31yfwa7p2.fsf@lyta.haphazard.org>
	 <1013179356.2435.349.camel@elsschot> <1013181601.2435.357.camel@elsschot>
	 <1013182997.2435.366.camel@elsschot> <1013188807.2434.395.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Actually, the bug was in jikes 1.15, and is still in the jit.  JLS 13
requires that compilers emit method references relative to the class
that qualifies the method invocation, even if that class only inherits
the method.  It is then up to the VM to correctly track inheritance
issues when resolving method calls.  Sun's javac 1.3 also had this bug,
JDK 1.4 compiles the way jikes 1.15a does (ie. Encoder8859_1.loadTable).

It makes a difference in this example:

in A.java:
class A
{
  static void m() { System.out.print("a"); }
}

in B.java:
class B extends A {}

in C.java:
class C
{
  public static void main(String[] args)
  {
    B.m();
  }
}

Now, recompile B.java:
class B extends A
{
  static void m() { System.out.print("b"); }
}

The result of executing the (unchanged) C.class should now be "b", not
"a".

This is also the reason that Sun's javap program will often list null as
the method or field name for classes compiled with javac 1.4, because
they have not yet fixed javap to take inheritance into account.

Mark Wielaard wrote:
> 
> 
> The problem seems to come from the fact that jikes 1.15 (and gcj)
> generate things like:
> 1804: invokestatic #34=<Method
> gnu.java.io.encode.EncoderEightBitLookup.loadTable ()void>
> 
> But jikes 1.15a (from CVS) generates:
> 1804: invokestatic #33=<Method
> gnu.java.io.encode.Encoder8859_1.loadTable ()void>
> 
> Since loadTable() is a static method in (the superclass)
> EncoderEightBitLookup not in (the subclass) Encoder8859_1 it seems that
> jikes 1.15a generates wrong code in this case.
> 
> Cheers,
> 
> Mark

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer



From ebb9@email.byu.edu Fri Feb 08 17:35:43 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZJcN-0006lE-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 17:35:43 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020208223542.PBGY1147.rwcrmhc52.attbi.com@email.byu.edu>;
          Fri, 8 Feb 2002 22:35:42 +0000
Message-ID: <3C64239D.194683C1@email.byu.edu>
Date: Fri, 08 Feb 2002 12:14:37 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: make dist fixes
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	 <m3u1sssoeo.fsf@lyta.haphazard.org> <m31yfwa7p2.fsf@lyta.haphazard.org>
	 <1013179356.2435.349.camel@elsschot> <1013181601.2435.357.camel@elsschot>
	 <1013182997.2435.366.camel@elsschot> <1013188807.2434.395.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Actually, the bug was in jikes 1.15, and is still in the jit.  JLS 13
requires that compilers emit method references relative to the class
that qualifies the method invocation, even if that class only inherits
the method.  It is then up to the VM to correctly track inheritance
issues when resolving method calls.  Sun's javac 1.3 also had this bug,
JDK 1.4 compiles the way jikes 1.15a does (ie. Encoder8859_1.loadTable).

It makes a difference in this example:

in A.java:
class A
{
  static void m() { System.out.print("a"); }
}

in B.java:
class B extends A {}

in C.java:
class C
{
  public static void main(String[] args)
  {
    B.m();
  }
}

Now, recompile B.java:
class B extends A
{
  static void m() { System.out.print("b"); }
}

The result of executing the (unchanged) C.class should now be "b", not
"a".

This is also the reason that Sun's javap program will often list null as
the method or field name for classes compiled with javac 1.4, because
they have not yet fixed javap to take inheritance into account.

Mark Wielaard wrote:
> 
> 
> The problem seems to come from the fact that jikes 1.15 (and gcj)
> generate things like:
> 1804: invokestatic #34=<Method
> gnu.java.io.encode.EncoderEightBitLookup.loadTable ()void>
> 
> But jikes 1.15a (from CVS) generates:
> 1804: invokestatic #33=<Method
> gnu.java.io.encode.Encoder8859_1.loadTable ()void>
> 
> Since loadTable() is a static method in (the superclass)
> EncoderEightBitLookup not in (the subclass) Encoder8859_1 it seems that
> jikes 1.15a generates wrong code in this case.
> 
> Cheers,
> 
> Mark

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer



From mark@wildebeest.org Fri Feb 08 19:32:27 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZLRL-0006Vt-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 19:32:27 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZLR4-0002fg-00; Sat, 09 Feb 2002 01:32:10 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZLR9-0004cX-00; Sat, 09 Feb 2002 01:32:15 +0100
Subject: Re: Trouble with gcj 3.0.4 (BasicPermission.java)
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: classpath@gnu.org
In-Reply-To: <874rkrdc0w.fsf@creche.redhat.com>
References: <1013185054.2435.384.camel@elsschot> 
	<874rkrdc0w.fsf@creche.redhat.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 09 Feb 2002 01:32:15 +0100
Message-Id: <1013214735.2434.458.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Fri, 2002-02-08 at 20:11, Tom Tromey wrote:
> 
> For problems like this, where the fix is something we wouldn't write
> from scratch and is just a workaround for a current compiler problem,
> I would prefer that we only have the fix in this particular Classpath
> release.  So the idea would be that we make a release branch and then
> add the workarounds there.  My idea here is that in the long term we'd
> prefer the existing code, as it is "more natural", and perhaps by the
> time the next Classpath release comes around we won't have to worry
> about this particular compiler any more.  What do you think?

I think a branch is a little over the top for this release. We have some
other workarounds in the current tree for compiler problems. e.g.

java/lang/reflect/Proxy.java: // FIXME workaround for bug in gcj 3.0.x
java/util/TreeMap.java: // FIXME gcj cannot handle this. Bug java/4695

And I think some compilers versions might be much longer around then we
hope (just look at all the different versions of jikes that people are
still using). So I will just commit the workaround with the words FIXME,
gcj, workaround and/or bug. The workaround is to simply use the fully
qualified classname in this case and that doesn't matter for other
compiler (versions).

Cheers,

Mark


From mark@wildebeest.org Fri Feb 08 20:08:19 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZM03-0008Qo-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 20:08:19 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZLzv-0002hO-00; Sat, 09 Feb 2002 02:08:11 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZM00-0004oG-00; Sat, 09 Feb 2002 02:08:16 +0100
Subject: Re: make dist fixes
From: Mark Wielaard <mark@klomp.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: classpath@gnu.org
In-Reply-To: <3C64239D.194683C1@email.byu.edu>
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<m3u1sssoeo.fsf@lyta.haphazard.org> <m31yfwa7p2.fsf@lyta.haphazard.org>
	<1013179356.2435.349.camel@elsschot> <1013181601.2435.357.camel@elsschot>
	<1013182997.2435.366.camel@elsschot> <1013188807.2434.395.camel@elsschot> 
	<3C64239D.194683C1@email.byu.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 09 Feb 2002 02:08:16 +0100
Message-Id: <1013216896.2434.484.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi Eric,

On Fri, 2002-02-08 at 20:14, Eric Blake wrote:
> Actually, the bug was in jikes 1.15, and is still in the jit.  JLS 13
> requires that compilers emit method references relative to the class
> that qualifies the method invocation, even if that class only inherits
> the method.  It is then up to the VM to correctly track inheritance
> issues when resolving method calls.  Sun's javac 1.3 also had this bug,
> JDK 1.4 compiles the way jikes 1.15a does (ie. Encoder8859_1.loadTable).

That (and the example) seems to make sense. But it also means that we
don't have one bug in jikes, but two bugs, one in ORP and one in gcj
byte code generation. Sigh.

That basicly means we don't recommend jikes 1.15a for this Classpath
release and ORP 1.0.9, or we wait for a new ORP release with a fix.
Hmmmm. I would opt for releasing now and adding a note about this
problem (with newer versions of jikes and ORP) to the README/INSTALL
file. Or we could try to produce a patch for ORP, but I am not sure that
is very easy.

Cheers,

Mark


From ebb9@email.byu.edu Fri Feb 08 20:16:55 2002
Received: from rwcrmhc54.attbi.com ([216.148.227.87])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZM8N-0000QG-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 20:16:55 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc54.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020209011653.PYOB1214.rwcrmhc54.attbi.com@email.byu.edu>;
          Sat, 9 Feb 2002 01:16:53 +0000
Message-ID: <3C647881.ECD2E1C1@email.byu.edu>
Date: Fri, 08 Feb 2002 18:16:49 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: make dist fixes
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	 <m3u1sssoeo.fsf@lyta.haphazard.org> <m31yfwa7p2.fsf@lyta.haphazard.org>
	 <1013179356.2435.349.camel@elsschot> <1013181601.2435.357.camel@elsschot>
	 <1013182997.2435.366.camel@elsschot> <1013188807.2434.395.camel@elsschot>
	 <3C64239D.194683C1@email.byu.edu> <1013216896.2434.484.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Keep in mind that a workaround for this is to explicitly qualify the
method with the desired class (ie. the one where the method is actually
defined).

In other words, instead of
  Encoder8859_1.loadTable()
in the source code, use
  EncoderEightBitLookup.loadTable()

The only problem I see with this approach is if EncoderEightBitLookup is
not accessible when Encoder8859_1 is.  Then an alternative workaround
would be to modify Encoder8859_1 by adding this method:
  public static void loadTable() { super.loadTable(); }

I'm not familiar with the ORP code, but these workarounds shouldn't be
too hard.

Do you want me to file a PR for the gcc bug?  I've yet to get a working
compile of gcj on my cygwin box, so I'm not sure how well I would do on
bug reporting.

Mark Wielaard wrote:
> 
> That (and the example) seems to make sense. But it also means that we
> don't have one bug in jikes, but two bugs, one in ORP and one in gcj
> byte code generation. Sigh.
> 
> That basicly means we don't recommend jikes 1.15a for this Classpath
> release and ORP 1.0.9, or we wait for a new ORP release with a fix.
> Hmmmm. I would opt for releasing now and adding a note about this
> problem (with newer versions of jikes and ORP) to the README/INSTALL
> file. Or we could try to produce a patch for ORP, but I am not sure that
> is very easy.
> 
> Cheers,
> 
> Mark

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From mark@wildebeest.org Fri Feb 08 21:18:53 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZN6K-0004k9-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 21:18:52 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZN6C-0002jj-00; Sat, 09 Feb 2002 03:18:44 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZN6H-0001vS-00; Sat, 09 Feb 2002 03:18:49 +0100
Subject: Re: make dist fixes
From: Mark Wielaard <mark@klomp.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: classpath@gnu.org
In-Reply-To: <3C647881.ECD2E1C1@email.byu.edu>
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<m3u1sssoeo.fsf@lyta.haphazard.org> <m31yfwa7p2.fsf@lyta.haphazard.org>
	<1013179356.2435.349.camel@elsschot> <1013181601.2435.357.camel@elsschot>
	<1013182997.2435.366.camel@elsschot> <1013188807.2434.395.camel@elsschot>
	<3C64239D.194683C1@email.byu.edu> <1013216896.2434.484.camel@elsschot> 
	<3C647881.ECD2E1C1@email.byu.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 09 Feb 2002 03:18:49 +0100
Message-Id: <1013221129.2435.505.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sat, 2002-02-09 at 02:16, Eric Blake wrote:
> Keep in mind that a workaround for this is to explicitly qualify the
> method with the desired class (ie. the one where the method is actually
> defined).
> 
> In other words, instead of
>   Encoder8859_1.loadTable()
> in the source code, use
>   EncoderEightBitLookup.loadTable()

O boy, a workaround that can be put in the Classpath code.
And it works! (for HelloWorld, I still haven't setup Mauve for more
extensive testing). Great! I can checkin that workaround for the
encode/decode code.

What are your thoughts on jikes 1.15a (CVS) is it better then jikes
1.15? Do you want to make a (semi) release of that code?

> I'm not familiar with the ORP code, but these workarounds shouldn't be
> too hard.

I did look briefly at the ORP code and it isn't that dificult. The code
can be found in common/class_loader/Resolve.cpp and Class.cpp. I think I
understand what goes wrong (the method gets looked up by going up in the
class hierarchy, but then the constant pool of the original referenced
class seems to be used) but I haven't actually tried to change/fix the
code.

> Do you want me to file a PR for the gcc bug?  I've yet to get a working
> compile of gcj on my cygwin box, so I'm not sure how well I would do on
> bug reporting.

I think your explanation plus example is good enough to put in the bug
database (maybe with a reference to the email that showed the bytecode).
That way the issue will not be forgotten.

I am afraid that gcj does not yet compile on cygwin, although there is
currently a lot of work done to get it to compile on Windows (if mingw
is the same kind of thing as cygwin).

Cheers,

Mark


From tromey@creche.cygnus.com Fri Feb 08 21:30:06 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZNHC-0005AP-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 21:30:06 -0500
Received: from creche.cygnus.com (ta0199.peakpeak.com [204.144.244.199])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id TAA31609;
	Fri, 8 Feb 2002 19:30:00 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id TAA04204;
	Fri, 8 Feb 2002 19:51:51 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: Eric Blake <ebb9@email.byu.edu>, classpath@gnu.org
Subject: Re: make dist fixes
References: <m3lme5bc70.fsf@lyta.haphazard.org> <m3u1sssoeo.fsf@lyta.haphazard.org> <m31yfwa7p2.fsf@lyta.haphazard.org> <1013179356.2435.349.camel@elsschot> <1013181601.2435.357.camel@elsschot> <1013182997.2435.366.camel@elsschot> <1013188807.2434.395.camel@elsschot> <3C64239D.194683C1@email.byu.edu> <1013216896.2434.484.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Well, I'm INVISIBLE AGAIN..  I might as well pay a visit to the
 LADIES ROOM...
Date: 08 Feb 2002 19:51:51 -0700
In-Reply-To: Mark Wielaard's message of "09 Feb 2002 02:08:16 +0100"
Message-ID: <87k7tn4baw.fsf@creche.redhat.com>
Lines: 10
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> That (and the example) seems to make sense. But it also means
Mark> that we don't have one bug in jikes, but two bugs, one in ORP
Mark> and one in gcj byte code generation. Sigh.

If you have the time, would you mind constructing a test case so we
can see if gij also has the runtime bug?  I'd appreciate that.

Tom


From tromey@creche.cygnus.com Fri Feb 08 21:35:09 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZNM4-0006vG-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 21:35:08 -0500
Received: from creche.cygnus.com (ta0199.peakpeak.com [204.144.244.199])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id TAA32340;
	Fri, 8 Feb 2002 19:35:04 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id TAA04245;
	Fri, 8 Feb 2002 19:56:55 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: Eric Blake <ebb9@email.byu.edu>, classpath@gnu.org
Subject: Re: make dist fixes
References: <m3lme5bc70.fsf@lyta.haphazard.org> <m3u1sssoeo.fsf@lyta.haphazard.org> <m31yfwa7p2.fsf@lyta.haphazard.org> <1013179356.2435.349.camel@elsschot> <1013181601.2435.357.camel@elsschot> <1013182997.2435.366.camel@elsschot> <1013188807.2434.395.camel@elsschot> <3C64239D.194683C1@email.byu.edu> <1013216896.2434.484.camel@elsschot> <3C647881.ECD2E1C1@email.byu.edu> <1013221129.2435.505.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  --Hello, POLICE?  I"ve got ABBOTT & COSTELLO here on suspicion of
 HIGHWAY ROBBERY!!
Date: 08 Feb 2002 19:56:55 -0700
In-Reply-To: Mark Wielaard's message of "09 Feb 2002 03:18:49 +0100"
Message-ID: <878za34b2g.fsf@creche.redhat.com>
Lines: 28
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> I think your explanation plus example is good enough to put in
Mark> the bug database (maybe with a reference to the email that
Mark> showed the bytecode).

I concur.  Eric's email was certainly enough for me to understand the
problem.  Eric, would you mind simply pasting the text of your email
into a new gcj Gnats PR?

Mark> I am afraid that gcj does not yet compile on cygwin, although
Mark> there is currently a lot of work done to get it to compile on
Mark> Windows (if mingw is the same kind of thing as cygwin).

Sort of.

Adam's work is targeted at being able to build a linux-x-mingw
toolchain.  This means you'll be able to run gcj on Linux and have it
generate a Windows executable.

After his work you still won't be able to build a native Cygwin (or
Windows) compiler.  There are still some remaining compiler bugs
relating to case-insensitive file systems.  (The ongoing Darwin port
avoids this by requiring you to use a case-sensitive fs.)  (The bugs
are probably not too hard to fix, but nobody has seriously looked into
it.)

Tom


From tromey@creche.cygnus.com Fri Feb 08 21:36:44 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZNNb-0006xM-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 21:36:43 -0500
Received: from creche.cygnus.com (ta0199.peakpeak.com [204.144.244.199])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id TAA32524;
	Fri, 8 Feb 2002 19:36:41 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id TAA04266;
	Fri, 8 Feb 2002 19:58:32 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: Trouble with gcj 3.0.4 (BasicPermission.java)
References: <1013185054.2435.384.camel@elsschot> <874rkrdc0w.fsf@creche.redhat.com> <1013214735.2434.458.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  I'll eat ANYTHING that's BRIGHT BLUE!!
Date: 08 Feb 2002 19:58:31 -0700
In-Reply-To: Mark Wielaard's message of "09 Feb 2002 01:32:15 +0100"
Message-ID: <8766574azs.fsf@creche.redhat.com>
Lines: 15
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> I think a branch is a little over the top for this release.

Perhaps.  I think someday we'll have to do branches.  Sometimes it is
helpful to work out the process before you really need it.  (With
automake I found I didn't know I needed a branch until it was too
late... so obviously that experience colors my perception.)

Mark> So I will just commit the workaround with the words FIXME, gcj,
Mark> workaround and/or bug.

Works for me, thanks.

Tom


From mark@wildebeest.org Fri Feb 08 22:25:13 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZO8X-0000iJ-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 22:25:13 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZO8H-0002mT-00; Sat, 09 Feb 2002 04:24:57 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZO8N-0002p0-00; Sat, 09 Feb 2002 04:25:03 +0100
Subject: Re: make dist fixes
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
Cc: Eric Blake <ebb9@email.byu.edu>, classpath@gnu.org
In-Reply-To: <87k7tn4baw.fsf@creche.redhat.com>
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<m3u1sssoeo.fsf@lyta.haphazard.org> <m31yfwa7p2.fsf@lyta.haphazard.org>
	<1013179356.2435.349.camel@elsschot> <1013181601.2435.357.camel@elsschot>
	<1013182997.2435.366.camel@elsschot> <1013188807.2434.395.camel@elsschot>
	<3C64239D.194683C1@email.byu.edu> <1013216896.2434.484.camel@elsschot> 
	<87k7tn4baw.fsf@creche.redhat.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 09 Feb 2002 04:25:02 +0100
Message-Id: <1013225102.2435.577.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sat, 2002-02-09 at 03:51, Tom Tromey wrote:
> >>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
> 
> Mark> That (and the example) seems to make sense. But it also means
> Mark> that we don't have one bug in jikes, but two bugs, one in ORP
> Mark> and one in gcj byte code generation. Sigh.
> 
> If you have the time, would you mind constructing a test case so we
> can see if gij also has the runtime bug?  I'd appreciate that.

Simple tests don't show the bug with either orp or gij (it must be
something special about gnu/java/io/encode/Encoder8859_* (the workaround
that Eric posted does work though). But the following Test which fails
with orp seems to succeed with gij.

public class Test
{
  public static void main(String[] args)
  {
    new gnu.java.io.encode.Encoder8859_1(null);
  }
}

A quick look in interpret.cc and resolve.cc also seems to suggest to me
that gij is doing the correct thing.

Cheers,

Mark


From mark@wildebeest.org Fri Feb 08 22:37:10 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZOK6-0002ZE-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 22:37:10 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZOJz-0002n3-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 04:37:03 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZOK4-0002rM-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 04:37:08 +0100
Subject: The release
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 09 Feb 2002 04:37:08 +0100
Message-Id: <1013225828.2434.591.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

It is Saturday already (for me) and I did not do everything I wanted to
for the release (fix last build glitches and try some bigger tests/setup
mauve). I can spend some time tomorrow to polish it a bit more and test
it better. But it is already much, much better then the 0.02 release
that we have now (and which people still seem to download now and then).

Brian, if you just want to make a release now please go ahead and I will
do the announcements first thing in the morning. If you think it can use
some more polish (it can probably always use some more polish) then I
will try to polish it some more tomorrow.

Cheers,

Mark


From ebb9@email.byu.edu Sat Feb 09 04:25:05 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZTkn-00081N-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 04:25:05 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020209092501.ZCLU1147.rwcrmhc52.attbi.com@email.byu.edu>;
          Sat, 9 Feb 2002 09:25:01 +0000
Message-ID: <3C64EAE1.C8A506F1@email.byu.edu>
Date: Sat, 09 Feb 2002 02:24:49 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: tromey@redhat.com, classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	 <3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	 <1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	 <1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	 <1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot>
	 <3C61EB5D.477E4891@email.byu.edu> <1013085254.2435.200.camel@elsschot>
Content-Type: multipart/mixed;
 boundary="------------DB6C49C513D9058E1A679786"
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

This is a multi-part message in MIME format.
--------------DB6C49C513D9058E1A679786
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Mark Wielaard wrote:
> 
> The rest of the verify output follows, but I have not analysed it yet.
> 
> Cheers,
> 
> Mark
> 
>   ------------------------------------------------------------------------
>                           Name: verify-jikes.libgcj
>    verify-jikes.libgcj    Type: Plain Text (text/plain)
>                       Encoding: quoted-printable

It looks like all the errors listed in this file were "incompatible type
on stack", in other words, side effects of your ClassLoader hack.

> 
>                        Name: verify-jikes.gcj
>    verify-jikes.gcj    Type: Plain Text (text/plain)
>                    Encoding: quoted-printable

I have addressed all the errors listed in this file.  With the attached
patch and the latest CVS version of jikes (as of 9:15 am UTC Feb 9),
this should be completely resolved.  If you agree with me, then I will
tag the current version of jikes CVS as stable, and bump the version to
1.15b.  Shall I go ahead and commit the patch?

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer
--------------DB6C49C513D9058E1A679786
Content-Type: text/plain; charset=us-ascii;
 name="diff.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="diff.patch"

2002-02-09  Eric Blake  <ebb9@email.byu.edu>

	* java/net/DatagramSocketImpl.java (setOption, getOption): Work
	around gcj bug of wrong emitted qualifier for inherited method.
	* java/net/SocketImpl.java (setOption, getOption): Ditto.
	* java/util/WeakHashMap.java (WeakEntrySet): Work around jikes
	1.15 bug of private constructors in inner classes.
	* java/rmi/server/RMIClassLoader.java (MyClassLoader): Ditto.
	* gnu/java/rmi/server/UnicastRemoteCall.java
	(DummyObjectOutputStream, DummyObjectInputStream): Ditto.

Index: java/net/DatagramSocketImpl.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/net/DatagramSocketImpl.java,v
retrieving revision 1.11
diff -u -r1.11 DatagramSocketImpl.java
--- java/net/DatagramSocketImpl.java	22 Jan 2002 22:27:00 -0000	1.11
+++ java/net/DatagramSocketImpl.java	9 Feb 2002 09:17:31 -0000
@@ -1,5 +1,5 @@
 /* DatagramSocketImpl.java -- Abstract class for UDP socket implementations
-   Copyright (C) 1998, 1999 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999 2000, 2001, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -203,4 +203,34 @@
   {
     return localPort;
   }
+
+  /**
+   * Sets the specified option on a socket to the passed in object.  For
+   * options that take an integer argument, the passed in object is an
+   * <code>Integer</code>.  For options that are set to on or off, the
+   * value passed will be a <code>Boolean</code>.   The <code>option_id</code> 
+   * parameter is one of the defined constants in the superinterface.
+   *
+   * @param option_id The identifier of the option
+   * @param val The value to set the option to
+   *
+   * @exception SocketException If an error occurs
+   */
+  public abstract void setOption(int option_id, Object val)
+    throws SocketException;
+
+  /**
+   * Returns the current setting of the specified option.  The 
+   * <code>Object</code> returned will be an <code>Integer</code> for options 
+   * that have integer values.  For options that are set to on or off, a 
+   * <code>Boolean</code> will be returned.   The <code>option_id</code>
+   * is one of the defined constants in the superinterface.
+   *
+   * @param option_id The option identifier
+   *
+   * @return The current value of the option
+   *
+   * @exception SocketException If an error occurs
+   */
+  public abstract Object getOption(int option_id) throws SocketException;
 }
Index: java/net/SocketImpl.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/net/SocketImpl.java,v
retrieving revision 1.7
diff -u -r1.7 SocketImpl.java
--- java/net/SocketImpl.java	22 Jan 2002 22:27:00 -0000	1.7
+++ java/net/SocketImpl.java	9 Feb 2002 09:17:31 -0000
@@ -1,5 +1,5 @@
 /* SocketImpl.java -- Abstract socket implementation class
-   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -234,4 +234,34 @@
     return "[addr=" + address.toString() + ",port=" + Integer.toString(port) +
       ",localport=" + Integer.toString(localport) + "]";
   }
+
+  /**
+   * Sets the specified option on a socket to the passed in object.  For
+   * options that take an integer argument, the passed in object is an
+   * <code>Integer</code>.  For options that are set to on or off, the
+   * value passed will be a <code>Boolean</code>.   The <code>option_id</code> 
+   * parameter is one of the defined constants in the superinterface.
+   *
+   * @param option_id The identifier of the option
+   * @param val The value to set the option to
+   *
+   * @exception SocketException If an error occurs
+   */
+  public abstract void setOption(int option_id, Object val)
+    throws SocketException;
+
+  /**
+   * Returns the current setting of the specified option.  The 
+   * <code>Object</code> returned will be an <code>Integer</code> for options 
+   * that have integer values.  For options that are set to on or off, a 
+   * <code>Boolean</code> will be returned.   The <code>option_id</code>
+   * is one of the defined constants in the superinterface.
+   *
+   * @param option_id The option identifier
+   *
+   * @return The current value of the option
+   *
+   * @exception SocketException If an error occurs
+   */
+  public abstract Object getOption(int option_id) throws SocketException;
 }
Index: java/util/WeakHashMap.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/WeakHashMap.java,v
retrieving revision 1.10
diff -u -r1.10 WeakHashMap.java
--- java/util/WeakHashMap.java	22 Jan 2002 22:27:01 -0000	1.10
+++ java/util/WeakHashMap.java	9 Feb 2002 09:17:31 -0000
@@ -1,6 +1,6 @@
 /* java.util.WeakHashMap -- a hashtable that keeps only weak references
    to its keys, allowing the virtual machine to reclaim them
-   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -169,6 +169,13 @@
    */
   private final class WeakEntrySet extends AbstractSet
   {
+    /**
+     * Non-private constructor to reduce bytecode emitted.
+     */
+    WeakEntrySet()
+    {
+    }
+
     /**
      * Returns the size of this set.
      *
Index: java/rmi/server/RMIClassLoader.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/rmi/server/RMIClassLoader.java,v
retrieving revision 1.2
diff -u -r1.2 RMIClassLoader.java
--- java/rmi/server/RMIClassLoader.java	22 Jan 2002 22:27:00 -0000	1.2
+++ java/rmi/server/RMIClassLoader.java	9 Feb 2002 09:17:31 -0000
@@ -1,5 +1,5 @@
 /*
-  Copyright (c) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+  Copyright (c) 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -46,12 +46,20 @@
 
 public class RMIClassLoader {
 
-static private class MyClassLoader extends ClassLoader {
-
-Class defineClass(String name, byte[] data) {
-	return (defineClass(name, data, 0, data.length));
-}
-}
+  static private class MyClassLoader extends ClassLoader
+  {
+    /**
+     * Non-private constructor to reduce bytecode emitted.
+     */
+    MyClassLoader()
+    {
+    }
+
+    Class defineClass(String name, byte[] data)
+    {
+      return (defineClass(name, data, 0, data.length));
+    }
+  }
 static private MyClassLoader loader = new MyClassLoader();
 
 /**
Index: gnu/java/rmi/server/UnicastRemoteCall.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/rmi/server/UnicastRemoteCall.java,v
retrieving revision 1.2
diff -u -r1.2 UnicastRemoteCall.java
--- gnu/java/rmi/server/UnicastRemoteCall.java	22 Jan 2002 22:26:57 -0000	1.2
+++ gnu/java/rmi/server/UnicastRemoteCall.java	9 Feb 2002 09:17:31 -0000
@@ -1,5 +1,5 @@
 /*
-  Copyright (c) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+  Copyright (c) 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -133,179 +133,232 @@
 	vec.addElement(obj);
 }
 
-/**
- * Dummy object output class.
- */
-private class DummyObjectOutputStream implements ObjectOutput {
-
-public void writeBoolean(boolean v) throws IOException {
-	vec.addElement(new Boolean(v));
-}
-
-public void writeByte(int v) throws IOException {
-	vec.addElement(new Byte((byte)v));
-}
-
-public void writeChar(int v) throws IOException {
-	vec.addElement(new Character((char)v));
-}
-
-public void writeDouble(double v) throws IOException {
-	vec.addElement(new Double(v));
-}
-
-public void writeFloat(float v) throws IOException {
-	vec.addElement(new Float(v));
-}
-
-public void writeInt(int v) throws IOException {
-	vec.addElement(new Integer(v));
-}
-
-public void writeLong(long v) throws IOException {
-	vec.addElement(new Long(v));
-}
-
-public void writeShort(int v) throws IOException {
-	vec.addElement(new Short((short)v));
-}
-
-public void writeObject(Object obj) throws IOException {
-	vec.addElement(obj);
-}
-
-public void write(byte b[]) throws IOException {
-	throw new IOException("not required");
-}
-
-public void write(byte b[], int off, int len) throws IOException {
-	throw new IOException("not required");
-}
-
-public void write(int b) throws IOException {
-	throw new IOException("not required");
-}
-
-public void writeBytes(String s) throws IOException {
-	throw new IOException("not required");
-}
-
-public void writeChars(String s) throws IOException {
-	throw new IOException("not required");
-}
-
-public void writeUTF(String str) throws IOException {
-	throw new IOException("not required");
-}
-
-public void flush() throws IOException {
-}
-
-public void close() throws IOException {
-}
-
-}
-
-/**
- * Dummy object input class.
- */
-private class DummyObjectInputStream implements ObjectInput {
-
-public boolean readBoolean() throws IOException {
-	Object obj = vec.elementAt(ptr++);
-	return (((Boolean)obj).booleanValue());
-}
+  /**
+   * Dummy object output class.
+   */
+  private class DummyObjectOutputStream implements ObjectOutput
+  {
+    /**
+     * Non-private constructor to reduce bytecode emitted.
+     */
+    DummyObjectOutputStream()
+    {
+    }
+
+    public void writeBoolean(boolean v) throws IOException
+    {
+      vec.addElement(new Boolean(v));
+    }
+
+    public void writeByte(int v) throws IOException
+    {
+      vec.addElement(new Byte((byte)v));
+    }
+
+    public void writeChar(int v) throws IOException
+    {
+      vec.addElement(new Character((char)v));
+    }
+
+    public void writeDouble(double v) throws IOException
+    {
+      vec.addElement(new Double(v));
+    }
+
+    public void writeFloat(float v) throws IOException
+    {
+      vec.addElement(new Float(v));
+    }
+
+    public void writeInt(int v) throws IOException
+    {
+      vec.addElement(new Integer(v));
+    }
+
+    public void writeLong(long v) throws IOException
+    {
+      vec.addElement(new Long(v));
+    }
+
+    public void writeShort(int v) throws IOException
+    {
+      vec.addElement(new Short((short)v));
+    }
+
+    public void writeObject(Object obj) throws IOException
+    {
+      vec.addElement(obj);
+    }
+
+    public void write(byte b[]) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public void write(byte b[], int off, int len) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public void write(int b) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public void writeBytes(String s) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public void writeChars(String s) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public void writeUTF(String str) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public void flush() throws IOException
+    {
+    }
+
+    public void close() throws IOException
+    {
+    }
+
+  }
+
+  /**
+   * Dummy object input class.
+   */
+  private class DummyObjectInputStream implements ObjectInput
+  {
+    /**
+     * Non-private constructor to reduce bytecode emitted.
+     */
+    DummyObjectInputStream()
+    {
+    }
+
+    public boolean readBoolean() throws IOException
+    {
+      Object obj = vec.elementAt(ptr++);
+      return (((Boolean)obj).booleanValue());
+    }
+
+    public byte readByte() throws IOException
+    {
+      Object obj = vec.elementAt(ptr++);
+      return (((Byte)obj).byteValue());
+    }
+
+    public char readChar() throws IOException
+    {
+      Object obj = vec.elementAt(ptr++);
+      return (((Character)obj).charValue());
+    }
+
+    public double readDouble() throws IOException
+    {
+      Object obj = vec.elementAt(ptr++);
+      return (((Double)obj).doubleValue());
+    }
+
+    public float readFloat() throws IOException
+    {
+      Object obj = vec.elementAt(ptr++);
+      return (((Float)obj).floatValue());
+    }
+
+    public int readInt() throws IOException
+    {
+      Object obj = vec.elementAt(ptr++);
+      return (((Integer)obj).intValue());
+    }
+
+    public long readLong() throws IOException
+    {
+      Object obj = vec.elementAt(ptr++);
+      return (((Long)obj).longValue());
+    }
+
+    public short readShort() throws IOException
+    {
+      Object obj = vec.elementAt(ptr++);
+      return (((Short)obj).shortValue());
+    }
+
+    public Object readObject() throws IOException
+    {
+      return (vec.elementAt(ptr++));
+    }
+
+    public int read(byte b[]) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public int read(byte b[], int off, int len) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public int read() throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public long skip(long n) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public int available() throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public void readFully(byte b[]) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public void readFully(byte b[], int off, int len) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public String readLine() throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public String readUTF() throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public int readUnsignedByte() throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public int readUnsignedShort() throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public int skipBytes(int n) throws IOException
+    {
+      throw new IOException("not required");
+    }
+
+    public void close() throws IOException
+    {
+    }
 
-public byte readByte() throws IOException {
-	Object obj = vec.elementAt(ptr++);
-	return (((Byte)obj).byteValue());
-}
-
-public char readChar() throws IOException {
-	Object obj = vec.elementAt(ptr++);
-	return (((Character)obj).charValue());
-}
-
-public double readDouble() throws IOException {
-	Object obj = vec.elementAt(ptr++);
-	return (((Double)obj).doubleValue());
-}
-
-public float readFloat() throws IOException {
-	Object obj = vec.elementAt(ptr++);
-	return (((Float)obj).floatValue());
-}
-
-public int readInt() throws IOException {
-	Object obj = vec.elementAt(ptr++);
-	return (((Integer)obj).intValue());
-}
-
-public long readLong() throws IOException {
-	Object obj = vec.elementAt(ptr++);
-	return (((Long)obj).longValue());
-}
-
-public short readShort() throws IOException {
-	Object obj = vec.elementAt(ptr++);
-	return (((Short)obj).shortValue());
-}
-
-public Object readObject() throws IOException {
-	return (vec.elementAt(ptr++));
-}
-
-public int read(byte b[]) throws IOException {
-	throw new IOException("not required");
-}
-
-public int read(byte b[], int off, int len) throws IOException {
-	throw new IOException("not required");
-}
-
-public int read() throws IOException {
-	throw new IOException("not required");
-}
-
-public long skip(long n) throws IOException {
-	throw new IOException("not required");
-}
-
-public int available() throws IOException {
-	throw new IOException("not required");
-}
-
-public void readFully(byte b[]) throws IOException {
-	throw new IOException("not required");
-}
-
-public void readFully(byte b[], int off, int len) throws IOException {
-	throw new IOException("not required");
-}
-
-public String readLine() throws IOException {
-	throw new IOException("not required");
-}
-
-public String readUTF() throws IOException {
-	throw new IOException("not required");
-}
-
-public int readUnsignedByte() throws IOException {
-	throw new IOException("not required");
-}
-
-public int readUnsignedShort() throws IOException {
-	throw new IOException("not required");
-}
-
-public int skipBytes(int n) throws IOException {
-	throw new IOException("not required");
-}
-
-public void close() throws IOException {
-}
-
-}
+  }
 
 }

--------------DB6C49C513D9058E1A679786--



From toraneko@kun.ne.jp Sat Feb 09 04:56:30 2002
Received: from yahoobb240236062.bbtec.net ([43.240.236.62] helo=arpa.local)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZUFC-0002qW-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 04:56:30 -0500
Received: from localhost (localhost [127.0.0.1])
	by arpa.local (Postfix) with ESMTP id B243215F18
	for <classpath@gnu.org>; Sat,  9 Feb 2002 18:55:13 +0900 (JST)
Date: Sat, 09 Feb 2002 18:55:13 +0900 (JST)
Message-Id: <20020209.185513.74749073.toraneko@kun.ne.jp>
To: classpath@gnu.org
Subject: can't compile with SUN's javac
From: Takashi Okamoto <toraneko@kun.ne.jp>
X-Mailer: Mew version 2.1.52 on Emacs 20.7 / Mule 4.1 (AOI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hello,classpath.

I can't compile classpath with SUN's javac. I got following messages.
When I added 'this.' before pointed-out place, I could compile them.

regards.
----
Takashi Okamoto


# javac -classpath .:vm/reference -d classes `find java gnu/java gnu/tools gnu/classpath gnu/vm  -name "*.java"`

arpa:/usr/local/tmp/classpath# LANG=C javac -classpath .:vm/reference -d classes `find java gnu/java gnu/tools gnu/classpath gnu/vm  -name "*.java"`
java/util/Arrays.java:2433: equals(java.lang.Object,java.lang.Object) is inherited from java.util.AbstractCollection and hides method in outer class java.util.Arrays.  An explicit 'this' qualifier must be used to select the desired instance.
        if (equals(o, a[i]))
            ^
java/util/Arrays.java:2442: equals(java.lang.Object,java.lang.Object) is inherited from java.util.AbstractCollection and hides method in outer class java.util.Arrays.  An explicit 'this' qualifier must be used to select the desired instance.
        if (equals(o, a[i]))
            ^
java/util/WeakHashMap.java:486: get() is inherited from java.lang.ref.Reference and hides method in outer class java.util.WeakHashMap.  An explicit 'this' qualifier must be used to select the desired instance.
      final Object key = get();
                         ^
3 errors




From mark@wildebeest.org Sat Feb 09 09:32:25 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZYYD-0000VK-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 09:32:25 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZYXT-0003Ch-00; Sat, 09 Feb 2002 15:31:39 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZYXZ-0000wd-00; Sat, 09 Feb 2002 15:31:45 +0100
Subject: Re: can't compile with SUN's javac
From: Mark Wielaard <mark@klomp.org>
To: Takashi Okamoto <toraneko@kun.ne.jp>
Cc: classpath@gnu.org
In-Reply-To: <20020209.185513.74749073.toraneko@kun.ne.jp>
References: <20020209.185513.74749073.toraneko@kun.ne.jp>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 09 Feb 2002 15:31:44 +0100
Message-Id: <1013265104.2435.654.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sat, 2002-02-09 at 10:55, Takashi Okamoto wrote:
> 
> I can't compile classpath with SUN's javac. I got following messages.
> When I added 'this.' before pointed-out place, I could compile them.

We don't officially support the Sun javac compiler (there are now
multiple free compilers). But these errors seem real and I will fix the
code (although I think the compiler could just issue a warning here).

Which version of Sun javac is this?
In the past the Sun compilers didn't like to compile some of the core
classes.

Thanks,

Mark


From mark@wildebeest.org Sat Feb 09 09:56:26 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZYvR-0001ZX-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 09:56:25 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZYvB-0003Dp-00; Sat, 09 Feb 2002 15:56:09 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZYvH-0000Oq-00; Sat, 09 Feb 2002 15:56:15 +0100
Subject: Re: Compiling with jikes > 1.13
From: Mark Wielaard <mark@klomp.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: tromey@redhat.com, classpath@gnu.org
In-Reply-To: <3C64EAE1.C8A506F1@email.byu.edu>
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	<3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	<1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	<1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	<1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot>
	<3C61EB5D.477E4891@email.byu.edu> <1013085254.2435.200.camel@elsschot> 
	<3C64EAE1.C8A506F1@email.byu.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 09 Feb 2002 15:56:14 +0100
Message-Id: <1013266574.2435.681.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sat, 2002-02-09 at 10:24, Eric Blake wrote:
> >                           Name: verify-jikes.libgcj
> 
> It looks like all the errors listed in this file were "incompatible type
> on stack", in other words, side effects of your ClassLoader hack.

Yeah. Sorry about all the false positives. It did show some bugs in the
libgcj verifier earlier though, so it was not a complete waste.

> >                        Name: verify-jikes.gcj
> 
> I have addressed all the errors listed in this file.  With the attached
> patch and the latest CVS version of jikes (as of 9:15 am UTC Feb 9),
> this should be completely resolved.  If you agree with me, then I will
> tag the current version of jikes CVS as stable, and bump the version to
> 1.15b.

Yes, could you please also add a note in the INSTALL file about this
version (were to get it and that the jikes developers recommend this
version for compiling Classpath, etc, etc.) I can generate binaries for
GNU/Linux x86 and powerpc if you want.

> Shall I go ahead and commit the patch?

Yes please. But could you please explicitly mark these as "FIXME
workaround for <compiler> bug" in the source code so we don't
accidentially remove them again in the future (for example when we
remerge with libgcj). And could you in the future please separate
indentation formating from code change, that make the diffs easier to
read.

This great, you even put in some workaround for gcj which now enables me
to get around the problem I had with ORP and gcj compiled classes when
testing DatagramSocket.

Thanks,

Mark


From brawer@acm.org Sat Feb 09 10:00:04 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZYyx-0001rl-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 10:00:03 -0500
Received: from [0.0.0.0] (195.15.167.97) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C6086B700047049 for classpath@gnu.org; Sat, 9 Feb 2002 15:59:14 +0100
From: Sascha Brawer <brawer@acm.org>
To: <classpath@gnu.org>
Subject: Undocumented values of documented final fields
Date: Sat, 9 Feb 2002 15:48:45 +0100
Message-Id: <20020209144845.30545@pop.schoedler.ch>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

does Classpath aim to provide the same values for final fields as the Sun
JDK implementation does, even if the concrete value is not part of the
specification?

Context: I am currently working on java.util.logging, and the
documentation of the Logging API does not specify the integer values for
the standard logging levels -- for example the result of
java.util.logging.Level.WARNING.intValue().  My question is not specific
to java.util.logging, though.

-- Sascha Brawer, brawer@acm.org




From toraneko@kun.ne.jp Sat Feb 09 10:16:57 2002
Received: from yahoobb240236062.bbtec.net ([43.240.236.62] helo=arpa.local)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZZFJ-00030I-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 10:16:57 -0500
Received: from localhost (localhost [127.0.0.1])
	by arpa.local (Postfix) with ESMTP
	id E847E15C08; Sun, 10 Feb 2002 00:15:41 +0900 (JST)
Date: Sun, 10 Feb 2002 00:15:41 +0900 (JST)
Message-Id: <20020210.001541.74756582.toraneko@kun.ne.jp>
To: mark@klomp.org
Cc: classpath@gnu.org
Subject: Re: can't compile with SUN's javac
From: Takashi Okamoto <toraneko@kun.ne.jp>
In-Reply-To: <1013265104.2435.654.camel@elsschot>
References: <20020209.185513.74749073.toraneko@kun.ne.jp>
	<1013265104.2435.654.camel@elsschot>
X-Mailer: Mew version 2.1.52 on Emacs 20.7 / Mule 4.1 (AOI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi, Mark.

From: Mark Wielaard <mark@klomp.org>
Subject: Re: can't compile with SUN's javac
Date: 09 Feb 2002 15:31:44 +0100

> We don't officially support the Sun javac compiler (there are now
> multiple free compilers). But these errors seem real and I will fix the
> code (although I think the compiler could just issue a warning here).
> 
> Which version of Sun javac is this?
> In the past the Sun compilers didn't like to compile some of the core
> classes.

I use jdk1.3.1_02 on linux.

$ java -version
java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

best regards.
----
Takashi Okamoto


From arenn@urbanophile.com Sat Feb 09 10:39:39 2002
Received: from rwcrmhc53.attbi.com ([204.127.198.39])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZZbH-0005I7-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 10:39:39 -0500
Received: from urbanophile.com ([12.250.156.235]) by rwcrmhc53.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020209153933.ZRAT2951.rwcrmhc53.attbi.com@urbanophile.com>;
          Sat, 9 Feb 2002 15:39:33 +0000
Received: (from arenn@localhost)
	by urbanophile.com (8.9.3/8.8.7) id KAA25049;
	Sat, 9 Feb 2002 10:45:40 -0600
Date: Sat, 9 Feb 2002 10:45:40 -0600
From: arenn@urbanophile.com
To: Sascha Brawer <brawer@acm.org>
Cc: classpath@gnu.org
Subject: Re: Undocumented values of documented final fields
Message-ID: <20020209104540.A25046@urbanophile.com>
Mail-Followup-To: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
References: <20020209144845.30545@pop.schoedler.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0.1i
In-Reply-To: <20020209144845.30545@pop.schoedler.ch>; from brawer@acm.org on Sat, Feb 09, 2002 at 03:48:45PM +0100
Organization: GNU's Not Unix!
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Sascha Brawer (brawer@acm.org) wrote:
> does Classpath aim to provide the same values for final fields as the Sun
> JDK implementation does, even if the concrete value is not part of the
> specification?
> 
> Context: I am currently working on java.util.logging, and the
> documentation of the Logging API does not specify the integer values for
> the standard logging levels -- for example the result of
> java.util.logging.Level.WARNING.intValue().  My question is not specific
> to java.util.logging, though.

In short, yes.  I've captured these values in the past by writing short
programs that dump them to stdout.  

-- 
Aaron M. Renn (arenn@urbanophile.com) http://www.urbanophile.com/arenn/

"We have a choice, either to change the way we live, which is unacceptable, 
or to change the way that they live, and we chose the latter."
  - Sec. of Defense Donald Rumsfeld, News briefing, 2001-09-18



From cbj@gnu.org Sat Feb 09 11:30:22 2002
Received: from [24.93.67.52] (helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZaOM-0007k5-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 11:30:22 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sat, 9 Feb 2002 11:30:01 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g19GU1i03230;
	Sat, 9 Feb 2002 11:30:01 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: The release
References: <1013225828.2434.591.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 09 Feb 2002 11:30:01 -0500
In-Reply-To: <1013225828.2434.591.camel@elsschot>
Message-ID: <m3lme2mxdi.fsf@lyta.haphazard.org>
Lines: 21
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> Hi,
> 
> It is Saturday already (for me) and I did not do everything I wanted to
> for the release (fix last build glitches and try some bigger tests/setup
> mauve). I can spend some time tomorrow to polish it a bit more and test
> it better. But it is already much, much better then the 0.02 release
> that we have now (and which people still seem to download now and then).
> 
> Brian, if you just want to make a release now please go ahead and I will
> do the announcements first thing in the morning. If you think it can use
> some more polish (it can probably always use some more polish) then I
> will try to polish it some more tomorrow.

I'm fixing that header stuff, not quite done.  I also need to grab the
new jikes when it is tagged and ready.

Brian
-- 
Brian Jones <cbj@gnu.org>


From tromey@creche.cygnus.com Sat Feb 09 11:56:09 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZanI-0001y3-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 11:56:08 -0500
Received: from creche.cygnus.com (ta0198.peakpeak.com [204.144.244.198])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id JAA27960;
	Sat, 9 Feb 2002 09:56:04 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id KAA05155;
	Sat, 9 Feb 2002 10:18:05 -0700
To: arenn@urbanophile.com
Cc: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
Subject: Re: Undocumented values of documented final fields
References: <20020209144845.30545@pop.schoedler.ch> <20020209104540.A25046@urbanophile.com>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Is it NOUVELLE CUISINE when 3 olives are struggling with a scallop
 in a plate of SAUCE MORNAY?
Date: 09 Feb 2002 10:18:05 -0700
In-Reply-To: arenn@urbanophile.com's message of "Sat, 9 Feb 2002 10:45:40 -0600"
Message-ID: <87it96y3oy.fsf@creche.redhat.com>
Lines: 59
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "arenn" == arenn  <arenn@urbanophile.com> writes:

>> does Classpath aim to provide the same values for final fields as the Sun
>> JDK implementation does, even if the concrete value is not part of the
>> specification?

This is required.  Otherwise the "write once run anywhere" feature of
Java is compromised.

arenn> In short, yes.  I've captured these values in the past by
arenn> writing short programs that dump them to stdout.

In libgcj we have a simple program that uses reflection to print
integer values.  I've appended this.  This can be really useful when
you have a lot of such constants.

Tom

// Show a value given class name and constant name.

/* Copyright (C) 2000  Free Software Foundation

   This file is part of libgcj.

This software is copyrighted work licensed under the terms of the
Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
details.  */

/* Written by Tom Tromey <tromey@redhat.com>.  */

// Use like this to print a `static final' value (integers only, not
// strings yet):
//   java showval java.awt.geom.AffineTransform.TYPE_IDENTITY
// Prints result like:
//   TYPE_IDENTITY = 0
// In conjunction with a keyboard macro you can do a number of
// constants very easily.

import java.lang.reflect.*;

public class showval
{
  public static void main (String[] args)
  {
    int ch = args[0].lastIndexOf ('.');
    String className = args[0].substring (0, ch);
    String constName = args[0].substring (ch + 1);
    try
      {
	Class klass = Class.forName (className);
	Field field = klass.getField (constName);
	System.out.println (constName + " = " + field.getInt (null));
      }
    catch (Throwable _)
      {
	System.out.println (_);
      }
  }
}


From ebb9@email.byu.edu Sat Feb 09 14:14:48 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZcxU-0002my-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 14:14:48 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020209191444.EWCL1672.rwcrmhc51.attbi.com@email.byu.edu>;
          Sat, 9 Feb 2002 19:14:44 +0000
Message-ID: <3C656BE6.E4472CE8@email.byu.edu>
Date: Sat, 09 Feb 2002 11:35:19 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: tromey@redhat.com
CC: Classpath list <classpath@gnu.org>
Subject: Re: build question
References: <3C618FA1.CFA8082D@email.byu.edu> <87lme6gu7k.fsf@creche.redhat.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Tom Tromey wrote:
> 
> >>>>> "Eric" == Eric Blake <ebb9@email.byu.edu> writes:
> 
> Eric> automake: native/jni/java-lang/Makefile.am: `\' is not a standard
> Eric> libtool library name
> 
> This is curious.  This error shouldn't happen.  Apparently what is
> happening here is that automake thinks that the `\' continuation
> character in the definition of pkglib_LTLIBRARIES is supposed to be
> the name of a library.
> 
> I can't reproduce this problem here.  Since you are using Cygwin,
> which most of us aren't, perhaps the problem is somehow related to
> that.  For instance, it could be a line termination problem.
> 
> Could you investigate this for me?  I'd like to fix automake.

It has to be line terminator translation somewhere, because this hack to
automake makes everything work for me.  I'm sure you could find a more
elegant way to fix the problem, and that the real fix should be upstream
in the sources rather than in the final executable; however, I'm not
familiar enough with the automake sources and/or perl to suggest a
better fix.

$ diff -u automake.bak automake
--- automake.bak        Sat Feb  9 10:35:42 2002
+++ automake    Sat Feb  9 11:31:48 2002
@@ -6455,6 +6455,7 @@

     while ($_ = $am_file->getline)
     {
+        s/\r\n/\n/g;
        if (/$IGNORE_PATTERN/o)
        {
            # Merely delete comments beginning with two hashes.
@@ -6498,6 +6499,7 @@
     # FIXME: shouldn't use $_ in this loop; it is too big.
     while ($_)
     {
+        s/\r\n/\n/g;
        $_ .= "\n"
            unless substr ($_, -1, 1) eq "\n";

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From tromey@creche.cygnus.com Sat Feb 09 14:27:18 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Zd9a-00032x-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 14:27:18 -0500
Received: from creche.cygnus.com (ta0202.peakpeak.com [204.144.244.202])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id MAA13617;
	Sat, 9 Feb 2002 12:27:15 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id MAA05891;
	Sat, 9 Feb 2002 12:49:18 -0700
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: build question
References: <3C618FA1.CFA8082D@email.byu.edu> <87lme6gu7k.fsf@creche.redhat.com> <3C656BE6.E4472CE8@email.byu.edu>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  I will SHAVE and buy JELL-O and bring my MARRIAGE MANUAL!!
Date: 09 Feb 2002 12:49:17 -0700
In-Reply-To: Eric Blake's message of "Sat, 09 Feb 2002 11:35:19 -0700"
Message-ID: <874rkqwi4i.fsf@creche.redhat.com>
Lines: 12
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Eric" == Eric Blake <ebb9@email.byu.edu> writes:

Eric> It has to be line terminator translation somewhere, because this
Eric> hack to automake makes everything work for me.

Thanks for looking into this.
I'll see if we can come up with a better patch.
Would you mind testing one when it is available?
We're planning to release automake 1.6 shortly, and I'd like to make
sure this bug is fixed in that release.

Tom


From jleuner@elandtech.com Sat Feb 09 14:32:45 2002
Received: from [212.17.37.130] (helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZdEq-0004oQ-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 14:32:44 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.33 #1 (Debian))
	id 16ZdB1-0004DN-00; Sat, 09 Feb 2002 19:28:47 +0000
Received: from jleuner by bapli with local (Exim 3.33 #1 (Debian))
	id 16ZdDl-0006qu-00; Sat, 09 Feb 2002 19:31:37 +0000
Date: Sat, 9 Feb 2002 19:31:37 +0000
From: John Leuner <jewel@pixie.co.za>
To: jewel@pixie.co.za
Cc: classpath@gnu.org
Subject: Crash in java_lang_Double.c with kissme
Message-ID: <20020209193137.J1747@bapli>
References: <m3lme5bc70.fsf@lyta.haphazard.org> <m3u1sssoeo.fsf@lyta.haphazard.org> <m31yfwa7p2.fsf@lyta.haphazard.org> <1013179356.2435.349.camel@elsschot> <1013181601.2435.357.camel@elsschot> <1013182997.2435.366.camel@elsschot> <1013188807.2434.395.camel@elsschot> <3C64239D.194683C1@email.byu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3C64239D.194683C1@email.byu.edu>
User-Agent: Mutt/1.3.23i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

The code in java_lang_Double.c was crashing with my JVM (kissme) because it was failing to recognise the infinity values.

The following patch fixes the crash, but there are still many mauve failures (which might be causes by kissme or classpath)

The comparison was failing even though the two values have the same binary value (when printed out in gdb).

Index: native/jni/java-lang/java_lang_Double.c
===================================================================
RCS file: /cvsroot/classpath/classpath/native/jni/java-lang/java_lang_Double.c,v
retrieving revision 1.8
diff -u -r1.8 java_lang_Double.c
--- native/jni/java-lang/java_lang_Double.c     22 Jan 2002 22:27:02 -0000      1.8
+++ native/jni/java-lang/java_lang_Double.c     9 Feb 2002 19:25:11 -0000
@@ -149,6 +149,9 @@
   char *s, *d;
   int i;
 
+  memset(buffer, 0, sizeof(buffer));
+  memset(result, 0, sizeof(result));
+
 #ifdef DEBUG
   fprintf (stderr, "java.lang.Double.toString (%g)\n", value);
 #endif
@@ -156,10 +159,10 @@
   if ((*env)->CallStaticBooleanMethod(env, cls, isNaNID, value))
     return (*env)->NewStringUTF(env, "NaN");
   
-  if (value == POSITIVE_INFINITY)
+  if ((long long) value == (long long) POSITIVE_INFINITY)
     return (*env)->NewStringUTF(env, "Infinity");
 
-  if (value == NEGATIVE_INFINITY)
+  if ((long long) value == (long long) NEGATIVE_INFINITY)
     return (*env)->NewStringUTF(env, "-Infinity");
 
   _dtoa (value, 0, 20, &decpt, &sign, NULL, buffer, (int)isFloat);


From cbj@gnu.org Sat Feb 09 14:39:43 2002
Received: from [24.93.67.53] (helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZdLb-0005G3-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 14:39:43 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sat, 9 Feb 2002 14:39:02 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g19Jd1v06116;
	Sat, 9 Feb 2002 14:39:01 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: tromey@redhat.com
Cc: Eric Blake <ebb9@email.byu.edu>, Classpath list <classpath@gnu.org>
Subject: Re: build question
References: <3C618FA1.CFA8082D@email.byu.edu>
	<87lme6gu7k.fsf@creche.redhat.com> <3C656BE6.E4472CE8@email.byu.edu>
	<874rkqwi4i.fsf@creche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 09 Feb 2002 14:39:01 -0500
In-Reply-To: <874rkqwi4i.fsf@creche.redhat.com>
Message-ID: <m3d6zejvhm.fsf@lyta.haphazard.org>
Lines: 21
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Eric" == Eric Blake <ebb9@email.byu.edu> writes:
> 
> Eric> It has to be line terminator translation somewhere, because this
> Eric> hack to automake makes everything work for me.
> 
> Thanks for looking into this.
> I'll see if we can come up with a better patch.
> Would you mind testing one when it is available?
> We're planning to release automake 1.6 shortly, and I'd like to make
> sure this bug is fixed in that release.

It may just be that Eric needed to mount the drive/directory in
binmode instead of textmode in cygwin or that the CYGWIN environment
variable needed 'binmode' in it.

You can of course make automake more immune to this problem and that's
good too.
-- 
Brian Jones <cbj@gnu.org>


From cbj@gnu.org Sat Feb 09 14:41:21 2002
Received: from [24.93.67.53] (helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZdNB-0005ZS-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 14:41:21 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sat, 9 Feb 2002 14:41:00 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g19Jf0F06129;
	Sat, 9 Feb 2002 14:41:00 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: John Leuner <jewel@pixie.co.za>
Cc: classpath@gnu.org
Subject: Re: Crash in java_lang_Double.c with kissme
References: <m3lme5bc70.fsf@lyta.haphazard.org>
	<m3u1sssoeo.fsf@lyta.haphazard.org>
	<m31yfwa7p2.fsf@lyta.haphazard.org>
	<1013179356.2435.349.camel@elsschot>
	<1013181601.2435.357.camel@elsschot>
	<1013182997.2435.366.camel@elsschot>
	<1013188807.2434.395.camel@elsschot> <3C64239D.194683C1@email.byu.edu>
	<20020209193137.J1747@bapli>
From: Brian Jones <cbj@gnu.org>
Date: 09 Feb 2002 14:41:00 -0500
In-Reply-To: <20020209193137.J1747@bapli>
Message-ID: <m38za2jveb.fsf@lyta.haphazard.org>
Lines: 16
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

John Leuner <jewel@pixie.co.za> writes:

> The code in java_lang_Double.c was crashing with my JVM (kissme)
> because it was failing to recognise the infinity values.
> 
> The following patch fixes the crash, but there are still many mauve
> failures (which might be causes by kissme or classpath)
> 
> The comparison was failing even though the two values have the same
> binary value (when printed out in gdb).

I think I tested this with ORP and Mauve quite a bit.

Brian
-- 
Brian Jones <cbj@gnu.org>


From jleuner@elandtech.com Sat Feb 09 14:49:35 2002
Received: from [212.17.37.130] (helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZdV2-0005oS-00; Sat, 09 Feb 2002 14:49:32 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.33 #1 (Debian))
	id 16ZdR2-0004PU-00; Sat, 09 Feb 2002 19:45:20 +0000
Received: from jleuner by bapli with local (Exim 3.33 #1 (Debian))
	id 16ZdTb-0006uo-00; Sat, 09 Feb 2002 19:47:59 +0000
Date: Sat, 9 Feb 2002 19:47:59 +0000
From: John Leuner <jewel@pixie.co.za>
To: Brian Jones <cbj@gnu.org>
Cc: John Leuner <jewel@pixie.co.za>, classpath@gnu.org
Subject: Re: Crash in java_lang_Double.c with kissme
Message-ID: <20020209194759.K1747@bapli>
References: <m3lme5bc70.fsf@lyta.haphazard.org> <m3u1sssoeo.fsf@lyta.haphazard.org> <m31yfwa7p2.fsf@lyta.haphazard.org> <1013179356.2435.349.camel@elsschot> <1013181601.2435.357.camel@elsschot> <1013182997.2435.366.camel@elsschot> <1013188807.2434.395.camel@elsschot> <3C64239D.194683C1@email.byu.edu> <20020209193137.J1747@bapli> <m38za2jveb.fsf@lyta.haphazard.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <m38za2jveb.fsf@lyta.haphazard.org>
User-Agent: Mutt/1.3.23i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Sat, Feb 09, 2002 at 02:41:00PM -0500, Brian Jones wrote:
> John Leuner <jewel@pixie.co.za> writes:
> 
> > The code in java_lang_Double.c was crashing with my JVM (kissme)
> > because it was failing to recognise the infinity values.
> > 
> > The following patch fixes the crash, but there are still many mauve
> > failures (which might be causes by kissme or classpath)
> > 
> > The comparison was failing even though the two values have the same
> > binary value (when printed out in gdb).
> 
> I think I tested this with ORP and Mauve quite a bit.

Yeah, I need to investigate more. It probably has to do with the code that loads Doubles from the constant pool.

John Leuner




From bryce@waitaki.otago.ac.nz Sat Feb 09 17:58:51 2002
Received: from 210-86-62-146.jetstart.xtra.co.nz ([210.86.62.146] helo=localhost.localdomain)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZgSI-000209-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 17:58:50 -0500
Received: from waitaki.otago.ac.nz ([192.168.2.2])
	by localhost.localdomain (8.11.2/8.11.2) with ESMTP id g19Maof32669;
	Sun, 10 Feb 2002 11:36:50 +1300
Message-ID: <3C65A987.9000302@waitaki.otago.ac.nz>
Date: Sun, 10 Feb 2002 11:58:15 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: Draft release announcement (please comment)
References: <1013124127.2434.257.camel@elsschot> <1013124470.2434.260.camel@elsschot>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

>
>   5). Who should use this software?
>
>   This is a development release only. You should only install it if you are
>   interested in Classpath development or reporting bugs. We appreciate both.
>   You might also be interested if you enjoy installing random alpha
>   software.
>

I think this part sounds a bit too pessimistic. How about something like:

5). Who should use this software?

Although it is already capable of supporting many Java applications, 
this is a development release. As such, there are still many unfinished 
components, and some problems are to be expected. You should install it 
if you are interested in Classpath development or reporting bugs. We 
appreciate both.

regards

Bryce.




From ebb9@email.byu.edu Sat Feb 09 18:45:34 2002
Received: from rwcrmhc54.attbi.com ([216.148.227.87])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZhBW-0005iK-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 18:45:34 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc54.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020209234533.HHDD1214.rwcrmhc54.attbi.com@email.byu.edu>;
          Sat, 9 Feb 2002 23:45:33 +0000
Message-ID: <3C65B491.829193F8@email.byu.edu>
Date: Sat, 09 Feb 2002 16:45:22 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: tromey@redhat.com, classpath@gnu.org
Subject: Re: Compiling with jikes > 1.13
References: <3C5EAD50.99813548@acunia.com> <20020204183752.B1747@bapli>
	 <3C5EECAB.9CBE59EF@netreach.com> <3C5EEF88.106@uqam.ca>
	 <1012857516.17456.279.camel@elsschot> <3C5F00A2.5ED8BB07@email.byu.edu>
	 <1012937953.24225.14.camel@elsschot> <871yfztz5h.fsf@creche.redhat.com>
	 <1013006439.2434.35.camel@elsschot> <1013016890.2434.71.camel@elsschot>
	 <3C61EB5D.477E4891@email.byu.edu> <1013085254.2435.200.camel@elsschot>
	 <3C64EAE1.C8A506F1@email.byu.edu> <1013266574.2435.681.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:
> 
> Yes, could you please also add a note in the INSTALL file about this
> version (were to get it and that the jikes developers recommend this
> version for compiling Classpath, etc, etc.)

OK, that will be my next patch.

> I can generate binaries for
> GNU/Linux x86 and powerpc if you want.

That would be nice, except that I only have CVS write access for jikes,
not access to the project web site, so I can't post any binaries or
tarballs.  The way I see it, if someone is willing to download
Classpath, it won't kill them to build their own version of jikes from
CVS.

> 
> > Shall I go ahead and commit the patch?
> 
> Yes please. But could you please explicitly mark these as "FIXME
> workaround for <compiler> bug" in the source code so we don't
> accidentially remove them again in the future (for example when we
> remerge with libgcj). And could you in the future please separate
> indentation formating from code change, that make the diffs easier to
> read.

The workarounds are committed, and separately from formatting changes. 
By the way, in the source code I only commented about the method
inheritance workaround.  Adding a non-private constructor to private
inner classes is a good idea even if it weren't a compiler workaround,
since it results in less bytecode (the compiler would have had to
generate a synthetic non-private constructor anyways in addition to the
implicit private one).

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From mark@wildebeest.org Sat Feb 09 21:54:49 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Zk8f-0000YP-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 21:54:49 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Zk8E-0003dZ-00; Sun, 10 Feb 2002 03:54:22 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16Zk8K-0001HD-00; Sun, 10 Feb 2002 03:54:28 +0100
Subject: Re: Draft release announcement (please comment)
From: Mark Wielaard <mark@klomp.org>
To: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
Cc: classpath@gnu.org
In-Reply-To: <3C65A987.9000302@waitaki.otago.ac.nz>
References: <1013124127.2434.257.camel@elsschot>
	<1013124470.2434.260.camel@elsschot>  <3C65A987.9000302@waitaki.otago.ac.nz>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 10 Feb 2002 03:54:28 +0100
Message-Id: <1013309668.23128.85.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sat, 2002-02-09 at 23:58, Bryce McKinlay wrote:
> 
> I think this part sounds a bit too pessimistic. How about something like:
> 
> 5). Who should use this software?
> 
> Although it is already capable of supporting many Java applications, 
> this is a development release. As such, there are still many unfinished 
> components, and some problems are to be expected. You should install it 
> if you are interested in Classpath development or reporting bugs. We 
> appreciate both.

Thanks. Sounds much better. I have added it to the announcement text.

Cheers,

Mark


From mark@wildebeest.org Sat Feb 09 22:40:16 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Zkqd-0003hH-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 22:40:15 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZkqW-0003fW-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 04:40:08 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16Zkqc-0001WN-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 04:40:14 +0100
Subject: Orp does zip files
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 10 Feb 2002 04:40:14 +0100
Message-Id: <1013312414.23128.101.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

I complained to Brian that the new make install only installed the
glibj.zip file but not the class files which I thought were neccessary
for Orp. Silly me. Orp 1.0.9 added support for reading classes from zip
files. So I have updated the GNU Classpath and ORP page
http://www.gnu.org/software/classpath/doc/orp.html
to mention this fact.

Just thought to mail it to the list so people know to adjust their
classpath (and don't make a fool out of themselves by mailing bogus
complaints to Brian...)

Cheers,

Mark



From cbj@gnu.org Sat Feb 09 23:15:40 2002
Received: from fe5.southeast.rr.com ([24.93.67.52] helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZlOu-00051q-00
	for <classpath@gnu.org>; Sat, 09 Feb 2002 23:15:40 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sat, 9 Feb 2002 23:15:33 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1A4FXR15000;
	Sat, 9 Feb 2002 23:15:33 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: Orp does zip files
References: <1013312414.23128.101.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 09 Feb 2002 23:15:33 -0500
In-Reply-To: <1013312414.23128.101.camel@elsschot>
Message-ID: <m3n0yim0pm.fsf@lyta.haphazard.org>
Lines: 21
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> Hi,
> 
> I complained to Brian that the new make install only installed the
> glibj.zip file but not the class files which I thought were neccessary
> for Orp. Silly me. Orp 1.0.9 added support for reading classes from zip
> files. So I have updated the GNU Classpath and ORP page
> http://www.gnu.org/software/classpath/doc/orp.html
> to mention this fact.

Anything else left to do before releasing?  I'm going to tag the
source tree when it is definite.  You mentioned updating the INSTALL
file for jikes.

make install should handle zip or no zip now.  Let me know if you have
other problems.

Brian
-- 
Brian Jones <cbj@gnu.org>


From ebb9@email.byu.edu Sun Feb 10 00:33:12 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Zmbw-0002wB-00; Sun, 10 Feb 2002 00:33:12 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020210053310.ORZG1672.rwcrmhc51.attbi.com@email.byu.edu>;
          Sun, 10 Feb 2002 05:33:10 +0000
Message-ID: <3C65FB72.C039BD62@email.byu.edu>
Date: Sat, 09 Feb 2002 21:47:46 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
CC: Mark Wielaard <mark@klomp.org>, classpath@gnu.org
Subject: Re: Release [Was: Orp does zip files]
References: <1013312414.23128.101.camel@elsschot> <m3n0yim0pm.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones wrote:
>
> Anything else left to do before releasing?  I'm going to tag the
> source tree when it is definite.  You mentioned updating the INSTALL
> file for jikes.

I'm good to go.  Jikes 1-15b is now up and running on its CVS server,
and Classpath's INSTALL and HACKING have been updated accordingly.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From mark@wildebeest.org Sun Feb 10 08:41:48 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZuEm-0000qu-00; Sun, 10 Feb 2002 08:41:48 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZuEe-0004As-00; Sun, 10 Feb 2002 14:41:40 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZuEk-0004Lk-00; Sun, 10 Feb 2002 14:41:46 +0100
Subject: Re: Orp does zip files
From: Mark Wielaard <mark@klomp.org>
To: Brian Jones <cbj@gnu.org>
Cc: classpath@gnu.org
In-Reply-To: <m3n0yim0pm.fsf@lyta.haphazard.org>
References: <1013312414.23128.101.camel@elsschot> 
	<m3n0yim0pm.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 10 Feb 2002 14:41:46 +0100
Message-Id: <1013348506.658.3.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sun, 2002-02-10 at 05:15, Brian Jones wrote:
> 
> make install should handle zip or no zip now.  Let me know if you have
> other problems.

The zip file is still giving me trouble. Character doesn't seem to be
able to read the unicode tables even though they are definitely in the
zip file. Unpacking the zip and changing the CLASSPATH to
/usr/local/classpath/share/classpath solves that though.

I am now going through mauve (pain, mauve doesn't like automake 1.5,
which is required for Classpath) to see if I can find any other
showstoppers.

Cheers,

Mark


From mark@wildebeest.org Sun Feb 10 10:28:46 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZvuI-0006QL-00; Sun, 10 Feb 2002 10:28:46 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Zvu6-0004E4-00; Sun, 10 Feb 2002 16:28:34 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZvuC-00065P-00; Sun, 10 Feb 2002 16:28:40 +0100
Subject: Re: Release [Was: Orp does zip files]
From: Mark Wielaard <mark@klomp.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: Brian Jones <cbj@gnu.org>, classpath@gnu.org
In-Reply-To: <3C65FB72.C039BD62@email.byu.edu>
References: <1013312414.23128.101.camel@elsschot>
	<m3n0yim0pm.fsf@lyta.haphazard.org>  <3C65FB72.C039BD62@email.byu.edu>
Content-Type: multipart/mixed; boundary="=-3zOt5j0PJW89bGVNgStH"
X-Mailer: Evolution/1.0.2 
Date: 10 Feb 2002 16:28:40 +0100
Message-Id: <1013354920.16789.65.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-3zOt5j0PJW89bGVNgStH
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

On Sun, 2002-02-10 at 05:47, Eric Blake wrote:
> I'm good to go.  Jikes 1-15b is now up and running on its CVS server,
> and Classpath's INSTALL and HACKING have been updated accordingly.

I tested jikes 1.15b with mauve and it can still generate bytecode that
crashes Orp 1.0.9 (note that most of these are probably faults in Orp,
but I haven't checked). I haven't tried other versions of jikes (or gcj)
yet. Attached is my mauve-classpath file.
The results: 135835 of 3605730 tests failed

We could try to work around these things but that might postpone the
release a lot. It might be better to throw this release out in the world
and work on these things for the next release (some are probably things
that should be fixed in the compilers and/or the VMs).

Note that most crashes are in either Vector and GregorianCalendar:

Linking error: ???? (6) while resolving method at constant pool index
222 in class java/util/GregorianCalendar

Fatal error: can't compile
java/util/GregorianCalendar.<init>(Ljava/util/TimeZone;Ljava/util/Locale;)V

Linking error: ???? (6) while resolving method at constant pool index
123 in class java/util/Vector

Fatal error: can't compile java/util/Vector.clone()Ljava/lang/Object;

Maybe working around these two would be nice.

The only real showstopper for me is the fact that java.lang.Character
does not work with the glibj.zip file. We could fix
ClassLoaderHelper.getSystemResourceAsFile() to handle zip files or just
revert to installing all classes and not the zip file.

Cheers,

Mark

--=-3zOt5j0PJW89bGVNgStH
Content-Disposition: attachment; filename=mauve-classpath
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

# Config file that tells mauve about the `classpath' tag.
JDK1.0
JDK1.1
JDK1.2

# Disabled for jikes 1.15b
# Cannot be compiled
!java.lang.String.StringTest
!java.sql.Connection.TestJdbc10
!java.sql.DatabaseMetaData.TestJdbc10
!java.text.DecimalFormat.parse
# Crash orp 1.0.9
!java.io.ObjectInputOutput.InputTest
!java.io.PipedStream.receive
!java.lang.Cloneable.CloneableTest
!java.lang.Object.ObjectTest
!java.lang.Object.clone
!java.lang.String.decode
!java.lang.reflect.Array.newInstance
!java.net.URL.URLTest
!java.text.ACIAttribute.Test
!java.text.AttributedString.Test
!java.text.CharacterIterator.implement
!java.text.ChoiceFormat.format
!java.text.DateFormat.Test
!java.text.SimpleDateFormat.Test
!java.text.SimpleDateFormat.getAndSet2DigitYearStart
!java.text.SimpleDateFormat.regress
!java.util.BitSet.jdk10
!java.util.Calendar
!java.util.Properties.load
!java.util.zip.GZIPInputStream.basic
!java.util.zip.ZipInputStream.basic
!java.util.zip.ZipInputStream.close
# Hang Orp 1.0.9
!java.io.PipedStream.close

# These tests crasj orp 1.0.9 when compiled with gcj 3.1 (CVS)

--=-3zOt5j0PJW89bGVNgStH--


From mark@wildebeest.org Sun Feb 10 11:16:05 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Zwe4-0001GM-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 11:16:04 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16Zwdx-0004FW-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 17:15:57 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16Zwe3-0004Tn-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 17:16:03 +0100
Subject: Re: Release [Was: Orp does zip files]
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <1013354920.16789.65.camel@elsschot>
References: <1013312414.23128.101.camel@elsschot>
	<m3n0yim0pm.fsf@lyta.haphazard.org>  <3C65FB72.C039BD62@email.byu.edu> 
	<1013354920.16789.65.camel@elsschot>
Content-Type: multipart/mixed; boundary="=-npiN9fqOPKX40PfdWgMT"
X-Mailer: Evolution/1.0.2 
Date: 10 Feb 2002 17:16:03 +0100
Message-Id: <1013357763.658.75.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-npiN9fqOPKX40PfdWgMT
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

On Sun, 2002-02-10 at 16:28, Mark Wielaard wrote:
> I tested jikes 1.15b with mauve and it can still generate bytecode that
> crashes Orp 1.0.9 (note that most of these are probably faults in Orp,
> but I haven't checked). I haven't tried other versions of jikes (or gcj)
> yet. Attached is my mauve-classpath file.
> The results: 135835 of 3605730 tests failed

Attached is a mauve-classpath file which can be used with Orp 1.0.9 when
compiling Classpath and Mauve with gcj (3.0.4).
The results: 189 of 2412 tests failed
(The strange thing is that it doesn't run the big tests like for
java.lang.Character so the number of tests is very low.)

Cheers,

Mark

--=-npiN9fqOPKX40PfdWgMT
Content-Disposition: attachment; filename=mauve-classpath
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

# Config file that tells mauve about the `classpath' tag.
JDK1.0
JDK1.1
JDK1.2

# Disabled for gcj 3.0.4 (Debian prerelease 20020202)
# Cannot be compiled
!java.text.Annotation.Test
!java.text.AttributedString.Test
!java.text.AttributedCharacterIterator.implement
!java.text.ACIAttribute.Test
!java.lang.Integer.getInteger
!java.lang.Math.min
!java.sql.DatabaseMetaData.TestJdbc10
!java.sql.Connection.TestJdbc10
# Crash Orp 1.0.9
!java.beans.DescriptorTest
!java.beans.IntrospectorTest
!java.lang.Object.clone
!java.lang.reflect.Array.newInstance
!java.util.BitSet.jdk10
# Hang Orp 1.0.9
!java.io.PipedStream.close


--=-npiN9fqOPKX40PfdWgMT--


From cbj@gnu.org Sun Feb 10 11:55:22 2002
Received: from [24.93.67.51] (helo=mail4.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZxG5-0004R5-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 11:55:21 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail4.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sun, 10 Feb 2002 11:55:17 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1AGt1725265;
	Sun, 10 Feb 2002 11:55:01 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: Orp does zip files
References: <1013312414.23128.101.camel@elsschot>
	<m3n0yim0pm.fsf@lyta.haphazard.org> <1013348506.658.3.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 10 Feb 2002 11:55:00 -0500
In-Reply-To: <1013348506.658.3.camel@elsschot>
Message-ID: <m3g0498efv.fsf@lyta.haphazard.org>
Lines: 25
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> Hi,
> 
> On Sun, 2002-02-10 at 05:15, Brian Jones wrote:
> > 
> > make install should handle zip or no zip now.  Let me know if you have
> > other problems.
> 
> The zip file is still giving me trouble. Character doesn't seem to be
> able to read the unicode tables even though they are definitely in the
> zip file. Unpacking the zip and changing the CLASSPATH to
> /usr/local/classpath/share/classpath solves that though.
> 
> I am now going through mauve (pain, mauve doesn't like automake 1.5,
> which is required for Classpath) to see if I can find any other
> showstoppers.

Okay, we'll not bother with a zip at all then until this is fixed
after this release.  I guess that solves the only remaining
showstopper?

Brian
-- 
Brian Jones <cbj@gnu.org>


From mark@wildebeest.org Sun Feb 10 12:14:43 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZxYp-0005MX-00; Sun, 10 Feb 2002 12:14:43 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZxYh-0004HR-00; Sun, 10 Feb 2002 18:14:35 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ZxYo-0006U4-00; Sun, 10 Feb 2002 18:14:42 +0100
Subject: Re: Orp does zip files
From: Mark Wielaard <mark@klomp.org>
To: Brian Jones <cbj@gnu.org>
Cc: classpath@gnu.org
In-Reply-To: <m3g0498efv.fsf@lyta.haphazard.org>
References: <1013312414.23128.101.camel@elsschot>
	<m3n0yim0pm.fsf@lyta.haphazard.org> <1013348506.658.3.camel@elsschot> 
	<m3g0498efv.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 10 Feb 2002 18:14:41 +0100
Message-Id: <1013361281.16789.87.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sun, 2002-02-10 at 17:55, Brian Jones wrote:
> 
> Okay, we'll not bother with a zip at all then until this is fixed
> after this release.  I guess that solves the only remaining
> showstopper?

Going through the mauve logs shows lots of opertunities for
improvements. But some of that stuff is actually compiler/VM
improvements. I would say, lets release what we have now so others can
play with it and we promise to make 0.04 the perfect release :)
Seriously, what we have now is certainly not perfect, but it is so much
better then the last release that I think we should just release it and
get some feedback on it.

Cheers,

Mark


From tromey@creche.cygnus.com Sun Feb 10 13:28:42 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ZyiP-0002V6-00; Sun, 10 Feb 2002 13:28:41 -0500
Received: from creche.cygnus.com (ta0200.peakpeak.com [204.144.244.200])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id LAA07427;
	Sun, 10 Feb 2002 11:28:37 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id LAA14994;
	Sun, 10 Feb 2002 11:50:55 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: Brian Jones <cbj@gnu.org>, classpath@gnu.org
Subject: Re: Orp does zip files
References: <1013312414.23128.101.camel@elsschot> <m3n0yim0pm.fsf@lyta.haphazard.org> <1013348506.658.3.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Yow!!  It's LIBERACE and TUESDAY WELD!!  High on a HILL... driving a
 LITTLE CAR...  I wanna be in that LITTLE CAR, too!!  I wanna drive off
 with LIBBY and TUESDAY!
Date: 10 Feb 2002 11:50:55 -0700
In-Reply-To: Mark Wielaard's message of "10 Feb 2002 14:41:46 +0100"
Message-ID: <87vgd5rx0w.fsf@creche.redhat.com>
Lines: 9
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> I am now going through mauve (pain, mauve doesn't like automake
Mark> 1.5, which is required for Classpath) to see if I can find any
Mark> other showstoppers.

If you want to upgrade Mauve's requirement here, feel free.

Tom


From mark@wildebeest.org Sun Feb 10 16:12:11 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16a1Gd-0006fJ-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 16:12:11 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16a1GV-0004Pj-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 22:12:03 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16a1Gb-0000zG-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 22:12:09 +0100
Subject: Re: Release [Was: Orp does zip files]
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <1013357763.658.75.camel@elsschot>
References: <1013312414.23128.101.camel@elsschot>
	<m3n0yim0pm.fsf@lyta.haphazard.org>  <3C65FB72.C039BD62@email.byu.edu> 
	<1013354920.16789.65.camel@elsschot>  <1013357763.658.75.camel@elsschot>
Content-Type: multipart/mixed; boundary="=-JbHSgDiAyMqHPazIey6e"
X-Mailer: Evolution/1.0.2 
Date: 10 Feb 2002 22:12:09 +0100
Message-Id: <1013375529.658.124.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-JbHSgDiAyMqHPazIey6e
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

On Sun, 2002-02-10 at 17:16, Mark Wielaard wrote:
> On Sun, 2002-02-10 at 16:28, Mark Wielaard wrote:
> > I tested jikes 1.15b with mauve and it can still generate bytecode that
> > crashes Orp 1.0.9 (note that most of these are probably faults in Orp,
> > but I haven't checked). I haven't tried other versions of jikes (or gcj)
> > yet. Attached is my mauve-classpath file.
> > The results: 135835 of 3605730 tests failed
> 
> Attached is a mauve-classpath file which can be used with Orp 1.0.9 when
> compiling Classpath and Mauve with gcj (3.0.4).
> The results: 189 of 2412 tests failed
> (The strange thing is that it doesn't run the big tests like for
> java.lang.Character so the number of tests is very low.)

New datapoint. This is with Classpath and Mauve compiled with jikes
Version 1.15 - 26 Sept 2001. Attached is the mauve-classpath file used.
The results: 135901 of 3606034 tests failed
(304 more tests run then jikes 1.15b, but also 66 more failures)

This test was done with the version that Brian just put at
ftp://alpha.gnu.org/gnu/classpath/classpath-0.03.tar.gz
The announcement email will follow soon.

Cheers,

Mark

--=-JbHSgDiAyMqHPazIey6e
Content-Disposition: attachment; filename=mauve-classpath.jikes115
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

# Config file that tells mauve about the `classpath' tag.
JDK1.0
JDK1.1
JDK1.2

# Disabled for jikes 1.15 - 26 Sept 2001
# Cannot be compiled
!java.lang.String.StringTest
!java.sql.DatabaseMetaData.TestJdbc10
!java.sql.Connection.TestJdbc10
# Crash Orp 1.0.9
!java.io.ObjectInputOutput.InputTest
!java.lang.Object.clone
!java.lang.reflect.Array.newInstance
!java.util.BitSet.jdk10
# Hang Orp 1.0.9
!java.io.PipedStream.close


--=-JbHSgDiAyMqHPazIey6e--


From mark@wildebeest.org Sun Feb 10 17:48:59 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16a2mJ-0005F2-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 17:48:59 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16a2m8-0004T1-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 23:48:48 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16a2mE-0001IU-00
	for <classpath@gnu.org>; Sun, 10 Feb 2002 23:48:54 +0100
Subject: Announcement - GNU Classpath 0.03 released
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 10 Feb 2002 23:48:54 +0100
Message-Id: <1013381334.16789.139.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

GNU Classpath 0.03 Announcement

We are pleased to announce a new development release of GNU Classpath. GNU
Classpath, Essential Libraries for Java, is a project to create free core
class libraries for use with virtual machines and compilers for the Java
language.

New in this release are the addition of java.util.zip and java.rmi
packages, VM independent jni.h, more flexible build environment to
separate class and native code generation, out of the box support for the
ORP VM, and lots of bug fixes and updates to make GNU Classpath more
compliant with the 1.2, 1.3 and 1.4 API specification. The copyleft has
been clarified and all code in the library is now distributed under the
same terms.

Here are the answers to some questions you might have about this project
and this release.

1). Where can I get it?

GNU Classpath 0.03 can be downloaded from:
ftp://alpha.gnu.org/pub/gnu/classpath/classpath-0.03.tar.gz

2). What is included?

The following packages (some with subpackages) are supported:

  * java.applet (untested)
  * java.awt (very experimental)
  * java.beans
  * java.io
  * java.lang
  * java.math
  * java.net
  * java.rmi
  * java.security (partially functioning)
  * java.sql
  * java.text (untested)
  * java.util
  * java.util.jar
  * java.util.zip

This is enough to run many non-awt programs. Not all classes and methods
are implemented in this release, but most are. Many of the implemented
classes are already up to the 1.2 API spec. Some are already compliant
with the 1.3 and (preliminary) 1.4 API specification. More information on
the current status of each package can be found at
http://www.gnu.org/software/classpath/status.html

3). What is required to build/install/run?

GNU Classpath requires a working GNU build environment and a byte code
compiler such as jikes, gcj or kjc. When creating native code you will
also need a working C compiler and up to date Gnome development libraries
(gtk+, libart and gdk-pixbuf). More information on the precise version
numbers for the tools and libraries can be found in the INSTALL file.

4). What platforms and VMs are supported?

GNU/Linux is the only platform that has been tested. We plan to eventually
support many others.

This release support ORP 1.0.9 out of the box. But other compilers and
virtual machines such as gcj, Kissme, SableVM, Jupiter and Jaos also work
with slightly customized versions of GNU Classpath. Please check if there
is a customized version available for the VM you use before trying the
bare bones GNU Classpath release. We are working with the VM creators to
keep the differences between the core classes as small as possible.

5). Who should use this software?

Although it is already capable of supporting many Java applications, this
is a development release. As such, there are still many unfinished
components, and some problems are to be expected. You should install it if
you are interested in Classpath development or reporting bugs. We
appreciate both.

6). Where do I go for more information?

The project home page with information on our mailing list can be found at
http://www.classpath.org/ or
http://www.gnu.org/software/classpath/classpath.html

The bug database, CVS, task-manager and latest news can be found on
Savannah at http://savannah.gnu.org/projects/classpath/


From reali@inf.ethz.ch Mon Feb 11 07:32:13 2002
Received: from core.inf.ethz.ch ([129.132.178.196])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16aFcy-0002EE-00
	for <classpath@gnu.org>; Mon, 11 Feb 2002 07:32:12 -0500
Received: from lillian-ics.inf.ethz.ch (root@lillian-ics.inf.ethz.ch [129.132.134.2])
	by core.inf.ethz.ch (8.9.3/8.9.3) with ESMTP id NAA15083;
	Mon, 11 Feb 2002 13:32:04 +0100 (MET)
Received: from x.oberon.ethz.ch (pookie.inf.ethz.ch [129.132.134.15])
	by lillian-ics.inf.ethz.ch (8.9.3/8.9.3) with SMTP id NAA26255;
	Mon, 11 Feb 2002 13:32:06 +0100 (MET)
Date: Mon, 11 Feb 2002 13:32:06 +0100 (MET)
Message-Id: <200202111232.NAA26255@lillian-ics.inf.ethz.ch>
From: reali@inf.ethz.ch
X-Mailer: Oberon Mail (ejz) on Aos 21.12.2001
To: classpath@gnu.org
Cc: reali@inf.ethz.ch
Subject: classpath-0.03 and Jaos
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi!

I want to congratulate the classpath developers for
the tremendous effort of the last weeks. It's great
and rare to see so much entusiasm and great results.
THANKS!


I donwloaded the classpath-0.03 release and compiled it
for the Jaos VM. Everything went fine, I only had a
problem with the glibj.zip archive, which I had to
generate by hand.

I ran all my test and could find no problem; the 
"compress" and "db" Spec benchmarks ran as usual.
Nothing broken :-)

I made a first release of Jaos under BSD-like licence
on friday (but with an older version of classpath).
This release is in a quite raw state. A new one with the
newest classpath will follow soon.
We are also going to release the underlying kernel
(first beta) next week.


And now the build details:

* built on a machine with SuSE 7.1 and jikes 1.12 8/1/2000

* had to install the latest automake, the one in the distro
was too old (the SuSE 7.3 has the newest one already)
 
* I don't use GTK, GLIB, and LIBART, so I remove them from the configuration
vi configure.in
/dnl Check for AWT related glib
:d7
:wq

* my VMSystem.java is modified (I added my own properties in
insertSystemProperties)

* my Character.java is modified to load the configuration from
a file instead of a class (this is a bootstrapping problem that
should be removed soon)

* ./configure --prefix=`pwd` --with-jikes --disable-load-library --disable-jni --disable-cni

* make

* lib/glibj.zip was not created automatically. I tried to "make glibj.zip",
but to no use. Apparently my $(ZIP) is not set. So I run the command by hand.



-Patrik
--
Patrik Reali, reali@inf.ethz.ch
http://www.inf.ethz.ch/personal/reali/
http://www.oberon.ethz.ch/jaos/
http://www.oberon.ethz.ch/native/



From cbj@gnu.org Mon Feb 11 09:00:39 2002
Received: from [24.93.67.53] (helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16aH0Y-0007k8-00
	for <classpath@gnu.org>; Mon, 11 Feb 2002 09:00:39 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 11 Feb 2002 09:00:13 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1BE09a24518;
	Mon, 11 Feb 2002 09:00:09 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: reali@inf.ethz.ch
Cc: classpath@gnu.org
Subject: Re: classpath-0.03 and Jaos
References: <200202111232.NAA26255@lillian-ics.inf.ethz.ch>
From: Brian Jones <cbj@gnu.org>
Date: 11 Feb 2002 09:00:09 -0500
In-Reply-To: <200202111232.NAA26255@lillian-ics.inf.ethz.ch>
Message-ID: <m3bsewp192.fsf@lyta.haphazard.org>
Lines: 22
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

reali@inf.ethz.ch writes:

> * my VMSystem.java is modified (I added my own properties in
> insertSystemProperties)

This shouldn't matter.  In fact when we do zip these things
maybe we should zip the vm dependent stuff separately.

> * ./configure --prefix=`pwd` --with-jikes --disable-load-library
> --disable-jni --disable-cni

Just leave off the jni/cni options off if you don't want them.  Jikes
is used by default if not specified.

> * lib/glibj.zip was not created automatically. I tried to "make
> glibj.zip", but to no use. Apparently my $(ZIP) is not set. So I run
> the command by hand.

Our Character class doesn't like to be in a zip apparently.  We have
to fix this soon.
-- 
Brian Jones <cbj@gnu.org>


From sascha@schoedler.ch Fri Feb 08 07:58:05 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ZAbN-0000sl-00
	for <classpath@gnu.org>; Fri, 08 Feb 2002 07:58:05 -0500
Received: from [195.15.167.217] by mail01.agrinet.ch with HTTP; Fri, 8 Feb 2002 13:57:15 +0100
Message-ID: <3C6086B2000008A9@mail01.agrinet.ch>
Date: Fri, 8 Feb 2002 13:57:15 +0100
From: sascha@schoedler.ch
Subject: =?iso-8859-1?Q?Uncodumented=20values=20of=20documented=20final=20fields?=
To: classpath@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

should Classpath provide the same values for final fields as the Sun impl=
ementation,
even if the concrete value is not part of the specification?

Context: I am currently working on java.util.logging, and the documentati=
on
of the Logging API does not specify the integer values for the standard
logging levels, for example the result of java.util.logging.Level.WARNING=
.intValue().
However, I think my question applies to many other packages as well.

-- Sascha Brawer, brawer@acm.org






From mark@klomp.org Mon Feb 11 09:28:52 2002
Received: from [212.0.243.3] (helo=mx0.tryllian.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16aHRr-0000sV-00
	for <classpath@gnu.org>; Mon, 11 Feb 2002 09:28:51 -0500
Received: (qmail 5143 invoked from network); 11 Feb 2002 14:28:22 -0000
Received: from unknown (HELO florijn.intra.tryllian.net) (212.0.243.10)
  by outcast.tryllian.com with SMTP; 11 Feb 2002 14:28:22 -0000
Subject: Re: classpath-0.03 and Jaos
From: Mark Wielaard <mark@klomp.org>
To: Brian Jones <cbj@gnu.org>
Cc: reali@inf.ethz.ch, classpath@gnu.org
In-Reply-To: <m3bsewp192.fsf@lyta.haphazard.org>
References: <200202111232.NAA26255@lillian-ics.inf.ethz.ch> 
	<m3bsewp192.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 11 Feb 2002 15:28:26 +0100
Message-Id: <1013437706.3340.49.camel@florijn>
Mime-Version: 1.0
X-Message: scanned for viruses by AMaViS
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-02-11 at 15:00, Brian Jones wrote:
> reali@inf.ethz.ch writes:
> 
> > * my VMSystem.java is modified (I added my own properties in
> > insertSystemProperties)
> 
> This shouldn't matter.  In fact when we do zip these things
> maybe we should zip the vm dependent stuff separately.

That is a good idea.

> > * lib/glibj.zip was not created automatically. I tried to "make
> > glibj.zip", but to no use. Apparently my $(ZIP) is not set. So I run
> > the command by hand.
> 
> Our Character class doesn't like to be in a zip apparently.  We have
> to fix this soon.

Sorry about this. All tests that I ran before the release had been
without the zip file, so when this issue was found the support for
generating glibj.zip was yanked at the last minute. I should have known
about this issue with Character because the Orp developers had already
submitted a patch for it. But I ignored it for this release because the
paperwork was not completely done. It is also a bit ugly workaround
since Character is such an important class when bootstrapping the
system. We should really make the static initializers of java.lang
classes depend less on other parts of the library.

Cheers,

Mark



From nferrier@tapsellferrier.co.uk Mon Feb 11 21:48:37 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16aSzk-0001Ak-00
	for <classpath@gnu.org>; Mon, 11 Feb 2002 21:48:37 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16aTIA-0005BE-00; Tue, 12 Feb 2002 03:07:38 +0000
To: classpath@gnu.org
Subject: bedtime report (it's not what it sounds like)
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 12 Feb 2002 03:07:38 +0000
Message-ID: <87n0yf5ret.fsf@tf1.tapsellferrier.co.uk>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

No, this isn't spam porn.

It's me, frustrated with Classpath and going to bed.

Before I do, I thought I'd raise some issues here (as much for me as
for anyone else).

- build doesn't seem to work with the --prefix switch
- make install doesn't seem to install the classes!?
- GCC 2.95 can be used to compile ORP


Nic


From cbj@gnu.org Mon Feb 11 22:04:07 2002
Received: from fe6.southeast.rr.com ([24.93.67.53] helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16aTEl-0001fD-00
	for <classpath@gnu.org>; Mon, 11 Feb 2002 22:04:07 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 11 Feb 2002 22:03:59 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1C33wb19116;
	Mon, 11 Feb 2002 22:03:58 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
Subject: Re: bedtime report (it's not what it sounds like)
References: <87n0yf5ret.fsf@tf1.tapsellferrier.co.uk>
From: Brian Jones <cbj@gnu.org>
Date: 11 Feb 2002 22:03:58 -0500
In-Reply-To: <87n0yf5ret.fsf@tf1.tapsellferrier.co.uk>
Message-ID: <m3r8nrmme9.fsf@lyta.haphazard.org>
Lines: 17
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Nic Ferrier <nferrier@tapsellferrier.co.uk> writes:

> No, this isn't spam porn.
> 
> It's me, frustrated with Classpath and going to bed.
> 
> Before I do, I thought I'd raise some issues here (as much for me as
> for anyone else).
> 
> - build doesn't seem to work with the --prefix switch
> - make install doesn't seem to install the classes!?

I think you should send us your config.log and make output and
comment if you are using CVS or the 0.03 release.  Sorry for your
troubles, I'm sure we can find the problem.
-- 
Brian Jones <cbj@gnu.org>


From michal.cierniak@intel.com Tue Feb 12 02:34:22 2002
Received: from fmfdns01.fm.intel.com ([132.233.247.10] helo=calliope1.fm.intel.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16aXSG-0002VH-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 02:34:21 -0500
Received: from fmsmsxvs043.fm.intel.com (fmsmsxv043-1.fm.intel.com [132.233.48.128])
	by calliope1.fm.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.50 2002/02/08 23:45:02 root Exp $) with SMTP id HAA01022
	for <classpath@gnu.org>; Tue, 12 Feb 2002 07:34:14 GMT
Received: from FMSMSX018.fm.intel.com ([132.233.42.197])
 by fmsmsxvs043.fm.intel.com (NAVGW 2.5.1.16) with SMTP id M2002021123332130945
 ; Mon, 11 Feb 2002 23:33:21 -0800
Received: by fmsmsx018.fm.intel.com with Internet Mail Service (5.5.2653.19)
	id <1Y36DZCY>; Mon, 11 Feb 2002 23:34:12 -0800
Message-ID: <794826DE8867D411BAB8009027AE9EB90FE781BA@FMSMSX38>
From: "Cierniak, Michal" <michal.cierniak@intel.com>
To: "'Nic Ferrier'" <nferrier@tapsellferrier.co.uk>, classpath@gnu.org
Subject: RE: bedtime report (it's not what it sounds like)
Date: Mon, 11 Feb 2002 23:34:11 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Nic Ferrier <nferrier@tapsellferrier.co.uk> writes:

> - GCC 2.95 can be used to compile ORP

Is this really an "issue"?  Or did staying up late make you type "can"
instead of "can't"?

I'm not using gcc 2.95, but some people complained recently about
compilation problems on the ORP mailing list and others replied with
suggested fixes.  I remember that Mark Wielaard sent a fix a few weeks ago
(you can read it at http://groups.yahoo.com/group/orp/message/450).  If
that's not the problem you're experiencing, can you send a description of
your problem to the ORP mailing list?  We're trying hard to fix problems
reported by ORP users, but you must help us by at least telling us what the
problem is (giving us a fix would be even better).  Unfortunately, we don't
have resources to check every possible version of Linux and gcc, but if you
send us specific gcc error messages, we should be able to fix the problem
even without having that particular version of gcc.

You can sign up to the ORP mailing list and view the archives at
http://groups.yahoo.com/group/orp

Thanks,
Michal


From nferrier@tapsellferrier.co.uk Tue Feb 12 13:05:20 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ahIt-0002zr-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 13:05:20 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16ahbN-0007bk-00; Tue, 12 Feb 2002 18:24:25 +0000
To: classpath@gnu.org
Subject: Build problems.
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 12 Feb 2002 18:24:25 +0000
Message-ID: <87k7tizhgm.fsf@tf1.tapsellferrier.co.uk>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Ok. Here is what I did.

$ mkdir /orp
$ cd /orp
$ mkdir local
$ cvs -d ... co classpath
$ cd classpath
$ aclocal
$ automake
$ autoconf
$ ./configure --prefix=/orp/local --enable-jni
$ make
$ make install

And after all that:

$ ls -la /orp/local/classpath
 =>

drwxr-xr-x    2 nferrier staff        4096 Feb 12 18:18 .
drwxr-xr-x    3 nferrier staff        4096 Feb 12 18:18 ..


In other words the classes don't get installed when you specify a
prefix.



Nic


From mark@wildebeest.org Tue Feb 12 15:09:31 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ajF5-0005f5-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 15:09:31 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ajEL-0006Cs-00; Tue, 12 Feb 2002 21:08:45 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ajET-000795-00; Tue, 12 Feb 2002 21:08:53 +0100
Subject: Re: bedtime report (it's not what it sounds like)
From: Mark Wielaard <mark@klomp.org>
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
In-Reply-To: <87n0yf5ret.fsf@tf1.tapsellferrier.co.uk>
References: <87n0yf5ret.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 12 Feb 2002 21:08:53 +0100
Message-Id: <1013544533.8586.15.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi Nic,

On Tue, 2002-02-12 at 04:07, Nic Ferrier wrote:
> No, this isn't spam porn.
Be carefull, you might trigger someones spam filter :)

> It's me, frustrated with Classpath and going to bed.
>
> Before I do, I thought I'd raise some issues here (as much for me as
> for anyone else).
Thanks for letting us know. Not only to take your pain away, but also to
prevent others from getting pain in the first place.

> - build doesn't seem to work with the --prefix switch
Are you using the classpath-0.03 tarbal? Any other configure flags
given? It works for me:
$ wget ftp://alpha.gnu.org/pub/gnu/classpath/classpath-0.03.tar.gz
$ tar zxf classpath-0.03.tar.gz
$ cd classpath-0.03
$ ./configure --prefix=/tmp/cinstall --enable-jni
$ make
$ make install

Now the files that are normally put into /usr/local/classpath are in
/tmp/cinstall. Could you send a log of your configure, make and make
install output?

> - make install doesn't seem to install the classes!?
With or without the --prefix?
It seems to work with and without for me. The classes are put in
directories under <prefix>/share/classpath/.

> - GCC 2.95 can be used to compile ORP
What error messages do you get? I have successfully compiled orp 1.0.9
with gcc 3.0.x and orp 1.0.8 with gcc 3.1. The needed patches should be
in the resources directory in classpath.

Cheers,

Mark


From mark@wildebeest.org Tue Feb 12 15:16:54 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ajMD-000640-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 15:16:53 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ajLJ-0006DD-00; Tue, 12 Feb 2002 21:15:57 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ajLQ-0007Ao-00; Tue, 12 Feb 2002 21:16:04 +0100
Subject: RE: bedtime report (it's not what it sounds like)
From: Mark Wielaard <mark@klomp.org>
To: "Cierniak, Michal" <michal.cierniak@intel.com>
Cc: 'Nic Ferrier' <nferrier@tapsellferrier.co.uk>, classpath@gnu.org
In-Reply-To: <794826DE8867D411BAB8009027AE9EB90FE781BA@FMSMSX38>
References: <794826DE8867D411BAB8009027AE9EB90FE781BA@FMSMSX38>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 12 Feb 2002 21:16:04 +0100
Message-Id: <1013544964.8587.23.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Tue, 2002-02-12 at 08:34, Cierniak, Michal wrote:
> Nic Ferrier <nferrier@tapsellferrier.co.uk> writes:
> 
> > - GCC 2.95 can be used to compile ORP
> [...]
> I'm not using gcc 2.95, but some people complained recently about
> compilation problems on the ORP mailing list and others replied with
> suggested fixes.  I remember that Mark Wielaard sent a fix a few weeks ago
> (you can read it at http://groups.yahoo.com/group/orp/message/450).

Those patches are also in resource/orp-1.0.9.patch in the classpath-0.03
release. Note that if you try to compile with a CVS development version
of gcc 3.1 then you also need the following patch:

--- orp.orig/common/include/properties.h        Fri Nov 16 10:14:38 2001
+++ orp/common/include/properties.h     Wed Jan  9 16:15:03 2002
@@ -166,10 +166,10 @@
                        idx = i;
                        return current;
                }
-               friend Properties;
+               friend class Properties;
        };
 
-       friend Iterator;
+       friend class Iterator;
 public:
        Properties()
        {

> You can sign up to the ORP mailing list and view the archives at
> http://groups.yahoo.com/group/orp

Yahoo groups is really a pain to use. Even Sourceforge Geocrawler is
better then that (although i really like mailman as used by
mail.gnu.org). Don't you have archives that are a bit more easy to read
then groups.yahoo.com?

Cheers,

Mark


From cbj@gnu.org Tue Feb 12 15:41:48 2002
Received: from [24.93.67.52] (helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ajkJ-0000SR-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 15:41:48 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 12 Feb 2002 15:40:52 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1CKeqv00591;
	Tue, 12 Feb 2002 15:40:52 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
Subject: Re: Build problems.
References: <87k7tizhgm.fsf@tf1.tapsellferrier.co.uk>
From: Brian Jones <cbj@gnu.org>
Date: 12 Feb 2002 15:40:52 -0500
In-Reply-To: <87k7tizhgm.fsf@tf1.tapsellferrier.co.uk>
Message-ID: <m3aduewi0b.fsf@lyta.haphazard.org>
Lines: 46
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

How interesting, you specified a prefix inside the bloody
srcdir/buildir.  Never tried that.  I have company coming over
tonight, but if I get a chance I'll check it out.

Brian

Nic Ferrier <nferrier@tapsellferrier.co.uk> writes:

> Ok. Here is what I did.
> 
> $ mkdir /orp
> $ cd /orp
> $ mkdir local
> $ cvs -d ... co classpath
> $ cd classpath
> $ aclocal
> $ automake
> $ autoconf
> $ ./configure --prefix=/orp/local --enable-jni
> $ make
> $ make install
> 
> And after all that:
> 
> $ ls -la /orp/local/classpath
>  =>
> 
> drwxr-xr-x    2 nferrier staff        4096 Feb 12 18:18 .
> drwxr-xr-x    3 nferrier staff        4096 Feb 12 18:18 ..
> 
> 
> In other words the classes don't get installed when you specify a
> prefix.
> 
> 
> 
> Nic
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
> 

-- 
Brian Jones <cbj@gnu.org>


From nferrier@tapsellferrier.co.uk Tue Feb 12 15:47:24 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ajpj-0000rd-00; Tue, 12 Feb 2002 15:47:23 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16ak8D-0007gF-00; Tue, 12 Feb 2002 21:06:29 +0000
To: Brian Jones <cbj@gnu.org>
Cc: classpath@gnu.org
Subject: Re: Build problems.
References: <87k7tizhgm.fsf@tf1.tapsellferrier.co.uk>
	<m3aduewi0b.fsf@lyta.haphazard.org>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 12 Feb 2002 21:06:29 +0000
In-Reply-To: <m3aduewi0b.fsf@lyta.haphazard.org>
Message-ID: <874rkmxve2.fsf@tf1.tapsellferrier.co.uk>
Lines: 36
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones <cbj@gnu.org> writes:

> How interesting, you specified a prefix inside the bloody 
> srcdir/buildir.  

No I didn't.


> > $ mkdir /orp 
> > $ cd /orp 
> > $ mkdir local 

Note that I don't cd into the local dir.


> > $ cvs -d ... co classpath 
> > $ cd classpath 
> > $ aclocal 
> > $ automake 
> > $ autoconf 
> > $ ./configure --prefix=/orp/local --enable-jni 
> > $ make 
> > $ make install 

The directory structure looks like this:

 /orp
   /local
   /classpath
     /gnu
     etc...

The prefix is specified as /orp/local


Nic


From nferrier@tapsellferrier.co.uk Tue Feb 12 15:49:07 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ajrO-00016U-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 15:49:07 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16ak9l-0007gP-00; Tue, 12 Feb 2002 21:08:05 +0000
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: bedtime report (it's not what it sounds like)
References: <87n0yf5ret.fsf@tf1.tapsellferrier.co.uk>
	<1013544533.8586.15.camel@elsschot>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 12 Feb 2002 21:08:05 +0000
In-Reply-To: <1013544533.8586.15.camel@elsschot>
Message-ID: <87wuxiwgqy.fsf@tf1.tapsellferrier.co.uk>
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> > - build doesn't seem to work with the --prefix switch 
> Are you using the classpath-0.03 tarbal? Any other configure flags 
> given? It works for me: 

This isn't the problem. It seems to me that the problem is that the
classes are not installed.


I'm using the CVS which is tagged to 0.03


Nic


From mark@wildebeest.org Tue Feb 12 16:03:51 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ak5f-00024h-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 16:03:51 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ak50-0006Fa-00; Tue, 12 Feb 2002 22:03:10 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16ak57-0001qb-00; Tue, 12 Feb 2002 22:03:17 +0100
Subject: Re: bedtime report (it's not what it sounds like)
From: Mark Wielaard <mark@klomp.org>
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
In-Reply-To: <87wuxiwgqy.fsf@tf1.tapsellferrier.co.uk>
References: <87n0yf5ret.fsf@tf1.tapsellferrier.co.uk>
	<1013544533.8586.15.camel@elsschot> 
	<87wuxiwgqy.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 12 Feb 2002 22:03:17 +0100
Message-Id: <1013547797.8587.38.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Tue, 2002-02-12 at 22:08, Nic Ferrier wrote:
> Mark Wielaard <mark@klomp.org> writes:
> 
> > > - build doesn't seem to work with the --prefix switch 
> > Are you using the classpath-0.03 tarbal? Any other configure flags 
> > given? It works for me: 
> 
> This isn't the problem. It seems to me that the problem is that the
> classes are not installed.

Send more output logs.
We cannot help you if you don't give us enough information!

Cheers,

Mark


From mark@wildebeest.org Tue Feb 12 16:19:03 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16akKM-0002ev-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 16:19:03 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16akK8-0006GG-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 22:18:48 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16akKF-0001tv-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 22:18:55 +0100
Subject: Re: Build problems.
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 12 Feb 2002 22:18:55 +0100
Message-Id: <1013548735.8586.51.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Tue, 2002-02-12 at 22:09, Nic Ferrier wrote:
> Mark Wielaard <mark@klomp.org> writes:
> >  
> > That is strange because according to what you do above 
> > /opt/local/classpath should contain the sources you checked out from 
> > CVS. 
> 
> This caught Brian out as well. Note that I didn't cd into the local
> directory before checking out classpath cvs.

I see. But then I don't understand where the /opt/local/classpath
directory comes from. You should have /opt/local/[info|lib|share] dirs
after installing.

Please send some more output and not only the build commands.

Cheers,

Mark


From cbj@gnu.org Tue Feb 12 16:25:38 2002
Received: from [24.93.67.51] (helo=mail4.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16akQj-0002wR-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 16:25:38 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail4.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 12 Feb 2002 16:25:30 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1CLPDq00856;
	Tue, 12 Feb 2002 16:25:13 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: Nic Ferrier <nferrier@tapsellferrier.co.uk>, classpath@gnu.org
Subject: Re: bedtime report (it's not what it sounds like)
References: <87n0yf5ret.fsf@tf1.tapsellferrier.co.uk>
	<1013544533.8586.15.camel@elsschot>
	<87wuxiwgqy.fsf@tf1.tapsellferrier.co.uk>
	<1013547797.8587.38.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 12 Feb 2002 16:25:13 -0500
In-Reply-To: <1013547797.8587.38.camel@elsschot>
Message-ID: <m3g046s892.fsf@lyta.haphazard.org>
Lines: 23
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> Hi,
> 
> On Tue, 2002-02-12 at 22:08, Nic Ferrier wrote:
> > Mark Wielaard <mark@klomp.org> writes:
> > 
> > > > - build doesn't seem to work with the --prefix switch 
> > > Are you using the classpath-0.03 tarbal? Any other configure flags 
> > > given? It works for me: 
> > 
> > This isn't the problem. It seems to me that the problem is that the
> > classes are not installed.
> 
> Send more output logs.
> We cannot help you if you don't give us enough information!

After 'make', go into the 'lib' directory and type 'make install >
/tmp/log 2>&1' and send the /tmp/log.

Brian
-- 
Brian Jones <cbj@gnu.org>


From cbj@gnu.org Tue Feb 12 17:49:59 2002
Received: from [24.93.67.52] (helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16alkL-00029n-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 17:49:59 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 12 Feb 2002 17:49:33 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1CMnXK01253;
	Tue, 12 Feb 2002 17:49:33 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: GNU Classpath <classpath@gnu.org>
Subject: Intel assignments
From: Brian Jones <cbj@gnu.org>
Date: 12 Feb 2002 17:49:33 -0500
Message-ID: <m3n0yemi2q.fsf@lyta.haphazard.org>
Lines: 7
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

To interested classpath-hackers, the patches from Intel can indeed now
be merged.  The paperwork has been accepted by the FSF.  I've updated
the Savannah patch list to put them in an Open state.

Brian
-- 
Brian Jones <cbj@gnu.org>


From nferrier@tapsellferrier.co.uk Tue Feb 12 19:35:27 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16anOR-0002Mr-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 19:35:27 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16angx-00077t-00; Wed, 13 Feb 2002 00:54:35 +0000
To: classpath@gnu.org
Subject: build failures: a small update
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 13 Feb 2002 00:54:35 +0000
Message-ID: <87it92urp0.fsf@tf1.tapsellferrier.co.uk>
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

The tar file DOES work with the settings I'm using.

But, unless I'm doing something wrong with the CVS setup, the CVS
tagged to 0.03 doesn't work. I'm not sure how important that is
however.

Note that I may well be doing something wrong with the CVS setup, I
wasn't aware one had to run autoheader for example (there isn't a doc
anywhere describing the order?)

I don't want to send in all the config stuff (and clutter people's
mailboxes with the large downloads) until I know that I've got
everything setup right.

So, just for the record here's what I did:


$ cd classpath #the cvs top-level
$ aclocal
$ autoheader
$ automake
$ autoconf


Is that right? If so I'll submit some config and make logs tommorow.



Nic



From cbj@gnu.org Tue Feb 12 23:10:24 2002
Received: from [24.93.67.55] (helo=mail8.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16aqkS-0005ra-00
	for <classpath@gnu.org>; Tue, 12 Feb 2002 23:10:24 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail8.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 12 Feb 2002 23:09:42 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1D49hb07983;
	Tue, 12 Feb 2002 23:09:43 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
Subject: Re: build failures: a small update
References: <87it92urp0.fsf@tf1.tapsellferrier.co.uk>
From: Brian Jones <cbj@gnu.org>
Date: 12 Feb 2002 23:09:43 -0500
In-Reply-To: <87it92urp0.fsf@tf1.tapsellferrier.co.uk>
Message-ID: <m3it92m394.fsf@lyta.haphazard.org>
Lines: 35
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Nic Ferrier <nferrier@tapsellferrier.co.uk> writes:

> The tar file DOES work with the settings I'm using.

Good

> But, unless I'm doing something wrong with the CVS setup, the CVS
> tagged to 0.03 doesn't work. I'm not sure how important that is
> however.

I just checked out that version and built it okay here, at least the
class files anyway.  I didn't bother with --enable-jni.

> Note that I may well be doing something wrong with the CVS setup, I
> wasn't aware one had to run autoheader for example (there isn't a doc
> anywhere describing the order?)

The HACKING file documents how to build from CVS.  You should use this
if you want to build from CVS.

> So, just for the record here's what I did:
> 
> $ cd classpath #the cvs top-level
> $ aclocal
> $ autoheader
> $ automake
> $ autoconf
> 
> Is that right? If so I'll submit some config and make logs tommorow.

Yes, that's correct.  You should not receive any errors when doing
that, except perhaps about config.h being unchanged if you've done it
before.
-- 
Brian Jones <cbj@gnu.org>


From michal.cierniak@intel.com Wed Feb 13 17:41:26 2002
Received: from fmr01.intel.com ([192.55.52.18] helo=hermes.fm.intel.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16b519-00077T-00
	for <classpath@gnu.org>; Wed, 13 Feb 2002 14:24:36 -0500
Received: from petasus.fm.intel.com (petasus.fm.intel.com [10.1.192.37])
	by hermes.fm.intel.com (8.11.6/8.11.6/d: outer.mc,v 1.30 2002/02/09 00:16:23 root Exp $) with ESMTP id g1DJNh803587
	for <classpath@gnu.org>; Wed, 13 Feb 2002 19:23:43 GMT
Received: from fmsmsxvs040.fm.intel.com (fmsmsxv040-1.fm.intel.com [132.233.48.108])
	by petasus.fm.intel.com (8.11.6/8.11.6/d: inner.mc,v 1.12 2002/02/09 00:15:52 root Exp $) with SMTP id g1DJNmd03435
	for <classpath@gnu.org>; Wed, 13 Feb 2002 19:23:48 GMT
Received: from FMSMSX016.fm.intel.com ([132.233.42.195])
 by fmsmsxvs040.fm.intel.com (NAVGW 2.5.1.16) with SMTP id M2002021311235914821
 ; Wed, 13 Feb 2002 11:23:59 -0800
Received: by fmsmsx016.fm.intel.com with Internet Mail Service (5.5.2653.19)
	id <1Y3X0Z3T>; Wed, 13 Feb 2002 11:24:29 -0800
Message-ID: <794826DE8867D411BAB8009027AE9EB90FE781D0@FMSMSX38>
From: "Cierniak, Michal" <michal.cierniak@intel.com>
To: "'Mark Wielaard'" <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Archiving email
Date: Wed, 13 Feb 2002 11:21:40 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="ISO-8859-1"
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

> > You can sign up to the ORP mailing list and view the archives at
> > http://groups.yahoo.com/group/orp
> 
> Yahoo groups is really a pain to use. Even Sourceforge Geocrawler is
> better then that (although i really like mailman as used by
> mail.gnu.org). Don't you have archives that are a bit more 
> easy to read then groups.yahoo.com?

You may be right that Yahoo is not the best way to handle a mailing list.  I
don't like mail.gnu.org because as far as I can see, it doesn't hide email
addresses.  I'm a little concerned that every email I send to the Classpath
mailing list increases a possibility that I will get spam because someone
will scan GNU's mail archives and add my email to their lists.  I'm not
expert on privacy issues, so maybe there's something I'm missing, but I'd
like to note that since I started to send email to the Classpath mailing
list, I started to receive spam messages at my work email address.  It may
be just a coincidence, but I hadn't received any spam prior to that and I'm
really careful not to give away my work email to places that might
potentially resell it.

I have however considered migrating ORP to the SourceForge Geocrawler
because they do seem to hide email addresses.

Does anyone on this mailing list have any suggestions?  My experience in
managing mailing lists is quite limited.

Michal


From julian@sektor37.de Wed Feb 13 21:07:50 2002
Received: from pd9e49fdf.dip.t-dialin.net ([217.228.159.223] helo=gate.local.zo)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bBJN-00016I-00
	for <classpath@gnu.org>; Wed, 13 Feb 2002 21:07:49 -0500
Received: from sektor37.de (block.local.zo [10.0.0.7])
	by gate.local.zo (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id DAA26478
	for <classpath@gnu.org>; Thu, 14 Feb 2002 03:04:27 +0100
Message-ID: <3C6B0D62.40003@sektor37.de>
Date: Thu, 14 Feb 2002 02:05:38 +0100
From: Julian Scheid <julian@sektor37.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath@gnu.org
Subject: Patch for com/sun/javadoc/Doclet
Content-Type: multipart/mixed;
 boundary="------------070304030601020803070201"
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

This is a multi-part message in MIME format.
--------------070304030601020803070201
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

The validOptions() method is supposed to be static
as well, like all other methods in Doclet.

Julian

--------------070304030601020803070201
Content-Type: text/plain;
 name="Doclet.java.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Doclet.java.patch"

--- classpath-0.03/com/sun/javadoc/Doclet.java	Fri Mar 17 22:10:01 2000
+++ classpath-0.03-patched/com/sun/javadoc/Doclet.java	Thu Feb 14 02:39:41 2002
@@ -71,7 +71,7 @@
   * @return <code>true</code> if the options are valid, <code>false</code>
   * otherwise.
   */
-public boolean
+public static boolean
 validOptions(String[][] opts, DocErrorReporter logger)
 {
   return(true);

--------------070304030601020803070201--



From bryce@waitaki.otago.ac.nz Wed Feb 13 22:31:27 2002
Received: from waitaki.otago.ac.nz ([139.80.75.140])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bCcH-0007Xx-00
	for <classpath@gnu.org>; Wed, 13 Feb 2002 22:31:26 -0500
Received: from waitaki.otago.ac.nz (IDENT:bryce@reason.otago.ac.nz [139.80.119.17])
	by waitaki.otago.ac.nz (8.11.6/8.11.2) with ESMTP id g1E3VFO03485;
	Thu, 14 Feb 2002 16:31:15 +1300
Message-ID: <3C6B2F8D.3050509@waitaki.otago.ac.nz>
Date: Thu, 14 Feb 2002 16:31:25 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: Julian Scheid <julian@sektor37.de>
CC: classpath@gnu.org
Subject: Re: Patch for com/sun/javadoc/Doclet
References: <3C6B0D62.40003@sektor37.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Applied.

Thanks!

Bryce.

Julian Scheid wrote:

> The validOptions() method is supposed to be static
> as well, like all other methods in Doclet.





From ebb9@email.byu.edu Thu Feb 14 15:55:38 2002
Received: from rwcrmhc53.attbi.com ([204.127.198.39])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16bSul-0002Z1-00
	for <classpath@gnu.org>; Thu, 14 Feb 2002 15:55:36 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc53.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020214205521.JECZ2951.rwcrmhc53.attbi.com@email.byu.edu>
          for <classpath@gnu.org>; Thu, 14 Feb 2002 20:55:21 +0000
Message-ID: <3C6C23B2.44F2C7F6@email.byu.edu>
Date: Thu, 14 Feb 2002 13:53:06 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath list <classpath@gnu.org>
Subject: java.lang.StrictMath
Content-Type: multipart/mixed;
 boundary="------------1D7045C4B216ECDF42498DDD"
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

This is a multi-part message in MIME format.
--------------1D7045C4B216ECDF42498DDD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

OK to commit?  If it weren't for this little section of StrictMath.java,
I would have committed without asking.  But since it involves copyright
issues, I want to make sure.  I don't think I tainted myself, since the
copyright notice of fdlibm (the source for my algorithms) does say it is
freely usable.

By the way, converting arcane C to Java is not an exercise for the
weak-minded :)

/*
 * Some of the algorithms in this class are in the public domain, as
part
 * of fdlibm (freely-distributable math library), available at
 * http://www.netlib.org/fdlibm/, and carry the following copyright:
 * ====================================================
 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
 *
 * Developed at SunSoft, a Sun Microsystems, Inc. business.
 * Permission to use, copy, modify, and distribute this
 * software is freely granted, provided that this notice
 * is preserved.
 * ====================================================
 */

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer
--------------1D7045C4B216ECDF42498DDD
Content-Type: text/plain; charset=us-ascii;
 name="diff.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="diff.patch"

2002-02-14  Eric Blake  <ebb9@email.byu.edu>

	* java/lang/Makefile.am: Add StrictMath.java.
	* java/lang/StrictMath.java: New file.
	* java/lang/Math.java: Formatting and comments (no functional
	changes).

Index: java/lang/Makefile.am
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Makefile.am,v
retrieving revision 1.9
diff -u -r1.9 Makefile.am
--- java/lang/Makefile.am	7 Feb 2002 17:43:00 -0000	1.9
+++ java/lang/Makefile.am	14 Feb 2002 20:44:20 -0000
@@ -62,6 +62,7 @@
 SecurityManager.java \
 Short.java \
 StackOverflowError.java \
+StrictMath.java \
 StringBuffer.java \
 StringIndexOutOfBoundsException.java \
 String.java \
Index: java/lang/Math.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Math.java,v
retrieving revision 1.10
diff -u -r1.10 Math.java
--- java/lang/Math.java	22 Jan 2002 22:27:00 -0000	1.10
+++ java/lang/Math.java	14 Feb 2002 20:44:20 -0000
@@ -1,5 +1,5 @@
-/* java.lang.Math
-   Copyright (C) 1998, 2001 Free Software Foundation, Inc.
+/* java.lang.Math -- common mathematical functions, native allowed
+   Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -7,7 +7,7 @@
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2, or (at your option)
 any later version.
- 
+
 GNU Classpath is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
@@ -58,7 +58,7 @@
   /**
    * Math is non-instantiable
    */
-  private Math ()
+  private Math()
   {
   }
 
@@ -66,25 +66,30 @@
   {
     if (Configuration.INIT_LOAD_LIBRARY)
       {
-	System.loadLibrary ("javalang");
+	System.loadLibrary("javalang");
       }
   }
 
-  static Random rand;
+  /**
+   * A random number generator, initialized on first use.
+   */
+  private static Random rand;
 
   /**
-   * The mathematical constant <em>e</em>.
-   * Used in natural log and exp.
+   * The most accurate approximation to the mathematical constant <em>e</em>:
+   * <code>2.718281828459045</code>. Used in natural log and exp.
+   *
    * @see #log(double)
    * @see #exp(double)
    */
-  public static final double E = 2.7182818284590452354;
+  public static final double E = 2.718281828459045;
 
   /**
-   * The mathematical constant <em>pi</em>.
-   * This is the ratio of a circle's diameter to its circumference.
+   * The most accurate approximation to the mathematical constant <em>pi</em>:
+   * <code>3.141592653589793</code>. This is the ratio of a circle's diameter
+   * to its circumference.
    */
-  public static final double PI = 3.14159265358979323846;
+  public static final double PI = 3.141592653589793;
 
   /**
    * Take the absolute value of the argument.
@@ -96,13 +101,13 @@
    * a computer, MIN_VALUE is what will be returned.
    * This is a <em>negative</em> value.  You have been warned.
    *
-   * @param a the number to take the absolute value of.
-   * @return the absolute value.
-   * @see java.lang.Integer#MIN_VALUE
+   * @param i the number to take the absolute value of
+   * @return the absolute value
+   * @see Integer#MIN_VALUE
    */
-  public static int abs (int a)
+  public static int abs(int i)
   {
-    return (a < 0) ? -a : a;
+    return (i < 0) ? -i : i;
   }
 
   /**
@@ -115,73 +120,80 @@
    * a computer, MIN_VALUE is what will be returned.
    * This is a <em>negative</em> value.  You have been warned.
    *
-   * @param a the number to take the absolute value of.
-   * @return the absolute value.
-   * @see java.lang.Long#MIN_VALUE
+   * @param l the number to take the absolute value of
+   * @return the absolute value
+   * @see Long#MIN_VALUE
    */
-  public static long abs (long a)
+  public static long abs(long l)
   {
-    return (a < 0) ? -a : a;
+    return (l < 0) ? -l : l;
   }
 
   /**
    * Take the absolute value of the argument.
    * (Absolute value means make it positive.)
-   * @param a the number to take the absolute value of.
-   * @return the absolute value.
+   * <P>
+   *
+   * This is equivalent, but faster than, calling
+   * <code>Float.intBitsToFloat(0x7fffffff & Float.floatToIntBits(a))</code>.
+   *
+   * @param f the number to take the absolute value of
+   * @return the absolute value
    */
-  public static float abs (float a)
+  public static float abs(float f)
   {
-    // avoid method call overhead, but treat -0.0 correctly
-    // return Float.intBitsToFloat(0x7fffffff & Float.floatToIntBits(a));
-    return (a <= 0) ? 0 - a : a;
+    return (f <= 0) ? 0 - f : f;
   }
 
   /**
    * Take the absolute value of the argument.
    * (Absolute value means make it positive.)
-   * @param a the number to take the absolute value of.
-   * @return the absolute value.
+   *
+   * This is equivalent, but faster than, calling
+   * <code>Double.longBitsToDouble(Double.doubleToLongBits(a)
+   *       &lt;&lt; 1) &gt;&gt;&gt; 1);</code>.
+   *
+   * @param d the number to take the absolute value of
+   * @return the absolute value
    */
-  public static double abs (double a)
+  public static double abs(double dn)
   {
-    // avoid method call overhead, but treat -0.0 correctly
-    // return Double.longBitsToDouble((Double.doubleToLongBits(a)<<1)>>>1);
-    return (a <= 0) ? 0 - a : a;
+    return (d <= 0) ? 0 - d : d;
   }
 
   /**
    * Return whichever argument is smaller.
+   *
    * @param a the first number
    * @param b a second number
-   * @return the smaller of the two numbers.
+   * @return the smaller of the two numbers
    */
-  public static int min (int a, int b)
+  public static int min(int a, int b)
   {
     return (a < b) ? a : b;
   }
 
   /**
    * Return whichever argument is smaller.
+   *
    * @param a the first number
    * @param b a second number
-   * @return the smaller of the two numbers.
+   * @return the smaller of the two numbers
    */
-  public static long min (long a, long b)
+  public static long min(long a, long b)
   {
     return (a < b) ? a : b;
   }
 
   /**
-   * Return whichever argument is smaller.
    * Return whichever argument is smaller. If either argument is NaN, the
    * result is NaN, and when comparing 0 and -0, -0 is always smaller.
    *
    * @param a the first number
    * @param b a second number
-   * @return the smaller of the two numbers.
+   * @return the smaller of the two numbers
    */
-  public static float min (float a, float b)
+  public static float min(float a, float b)
   {
     // this check for NaN, from JLS 15.21.1, saves a method call
     if (a != a)
@@ -199,9 +211,9 @@
    *
    * @param a the first number
    * @param b a second number
-   * @return the smaller of the two numbers.
+   * @return the smaller of the two numbers
    */
-  public static double min (double a, double b)
+  public static double min(double a, double b)
   {
     // this check for NaN, from JLS 15.21.1, saves a method call
     if (a != a)
@@ -215,22 +227,24 @@
 
   /**
    * Return whichever argument is larger.
+   *
    * @param a the first number
    * @param b a second number
-   * @return the larger of the two numbers.
+   * @return the larger of the two numbers
    */
-  public static int max (int a, int b)
+  public static int max(int a, int b)
   {
     return (a > b) ? a : b;
   }
 
   /**
    * Return whichever argument is larger.
+   *
    * @param a the first number
    * @param b a second number
-   * @return the larger of the two numbers.
+   * @return the larger of the two numbers
    */
-  public static long max (long a, long b)
+  public static long max(long a, long b)
   {
     return (a > b) ? a : b;
   }
@@ -241,9 +255,9 @@
    *
    * @param a the first number
    * @param b a second number
-   * @return the larger of the two numbers.
+   * @return the larger of the two numbers
    */
-  public static float max (float a, float b)
+  public static float max(float a, float b)
   {
     // this check for NaN, from JLS 15.21.1, saves a method call
     if (a != a)
@@ -261,9 +275,9 @@
    *
    * @param a the first number
    * @param b a second number
-   * @return the larger of the two numbers.
+   * @return the larger of the two numbers
    */
-  public static double max (double a, double b)
+  public static double max(double a, double b)
   {
     // this check for NaN, from JLS 15.21.1, saves a method call
     if (a != a)
@@ -276,216 +290,354 @@
   }
 
   /**
-   * The trigonometric function <em>sin</em>.
-   * @param a the angle (in radians).
-   * @return sin(a).
-   */
-  public native static double sin (double a);
-
-  /**
-   * The trigonometric function <em>cos</em>.
-   * @param a the angle (in radians).
-   * @return cos(a).
-   */
-  public native static double cos (double a);
-
-  /**
-   * The trigonometric function <em>tan</em>.
-   * @param a the angle (in radians).
-   * @return tan(a).
-   */
-  public native static double tan (double a);
-
-  /**
-   * The trigonometric function <em>arcsin</em>.
-   * The range of angles you will get are from -pi/2 to pi/2 radians (-90 to 90 degrees)
-   * @param a the sin to turn back into an angle.
-   * @return arcsin(a).
-   */
-  public native static double asin (double a);
-
-  /**
-   * The trigonometric function <em>arccos</em>.
-   * The range of angles you will get are from 0 to pi radians (0 to 180 degrees).
-   * @param a the cos to turn back into an angle.
-   * @return arccos(a).
-   */
-  public native static double acos (double a);
-
-  /**
-   * The trigonometric function <em>arctan</em>.
-   * The range of angles you will get are from -pi/2 to pi/2 radians (-90 to 90 degrees)
-   * @param a the sin to turn back into an angle.
-   * @return arcsin(a).
-   * @see #atan(double,double)
-   */
-  public native static double atan (double a);
-
-  /**
-   * A special version of the trigonometric function <em>arctan</em>.
-   * Given a position (x,y), this function will give you the angle of
-   * that position.
-   * The range of angles you will get are from -pi to pi radians (-180 to 180 degrees),
-   * the whole spectrum of angles.  That is what makes this function so
-   * much more useful than the other <code>atan()</code>.
+   * The trigonometric function <em>sin</em>. The sine of NaN or infinity is
+   * NaN, and the sine of 0 retains its sign. This is accurate within 1 ulp,
+   * and is semi-monotonic.
+   *
+   * @param a the angle (in radians)
+   * @return sin(a)
+   */
+  public native static double sin(double a);
+
+  /**
+   * The trigonometric function <em>cos</em>. The cosine of NaN or infinity is
+   * NaN. This is accurate within 1 ulp, and is semi-monotonic.
+   *
+   * @param a the angle (in radians)
+   * @return cos(a)
+   */
+  public native static double cos(double a);
+
+  /**
+   * The trigonometric function <em>tan</em>. The tangent of NaN or infinity
+   * is NaN, and the tangent of 0 retains its sign. This is accurate within 1
+   * ulp, and is semi-monotonic.
+   *
+   * @param a the angle (in radians)
+   * @return tan(a)
+   */
+  public native static double tan(double a);
+
+  /**
+   * The trigonometric function <em>arcsin</em>. The range of angles returned
+   * is -pi/2 to pi/2 radians (-90 to 90 degrees). If the argument is NaN or
+   * its absolute value is beyond 1, the result is NaN; and the arcsine of
+   * 0 retains its sign. This is accurate within 1 ulp, and is semi-monotonic.
+   *
+   * @param a the sin to turn back into an angle
+   * @return arcsin(a)
+   */
+  public native static double asin(double a);
+
+  /**
+   * The trigonometric function <em>arccos</em>. The range of angles returned
+   * is 0 to pi radians (0 to 180 degrees). If the argument is NaN or
+   * its absolute value is beyond 1, the result is NaN. This is accurate
+   * within 1 ulp, and is semi-monotonic.
+   *
+   * @param a the cos to turn back into an angle
+   * @return arccos(a)
+   */
+  public native static double acos(double a);
+
+  /**
+   * The trigonometric function <em>arcsin</em>. The range of angles returned
+   * is -pi/2 to pi/2 radians (-90 to 90 degrees). If the argument is NaN, the
+   * result is NaN; and the arctangent of 0 retains its sign. This is accurate
+   * within 1 ulp, and is semi-monotonic.
+   *
+   * @param a the tan to turn back into an angle
+   * @return arcsin(a)
+   * @see #atan2(double, double)
+   */
+  public native static double atan(double a);
+
+  /**
+   * A special version of the trigonometric function <em>arctan</em>, for
+   * converting rectangular coordinates <em>(x, y)</em> to polar
+   * <em>(r, theta)</em>. This computes the arctangent of x/y in the range
+   * of -pi to pi radians (-180 to 180 degrees). Special cases:<ul>
+   * <li>If either argument is NaN, the result is NaN.</li>
+   * <li>If the first argument is positive zero and the second argument is
+   * positive, or the first argument is positive and finite and the second
+   * argument is positive infinity, then the result is positive zero.</li>
+   * <li>If the first argument is negative zero and the second argument is
+   * positive, or the first argument is negative and finite and the second
+   * argument is positive infinity, then the result is negative zero.</li>
+   * <li>If the first argument is positive zero and the second argument is
+   * negative, or the first argument is positive and finite and the second
+   * argument is negative infinity, then the result is the double value
+   * closest to pi.</li>
+   * <li>If the first argument is negative zero and the second argument is
+   * negative, or the first argument is negative and finite and the second
+   * argument is negative infinity, then the result is the double value
+   * closest to -pi.</li>
+   * <li>If the first argument is positive and the second argument is
+   * positive zero or negative zero, or the first argument is positive
+   * infinity and the second argument is finite, then the result is the
+   * double value closest to pi/2.</li>
+   * <li>If the first argument is negative and the second argument is
+   * positive zero or negative zero, or the first argument is negative
+   * infinity and the second argument is finite, then the result is the
+   * double value closest to -pi/2.</li>
+   * <li>If both arguments are positive infinity, then the result is the
+   * double value closest to pi/4.</li>
+   * <li>If the first argument is positive infinity and the second argument
+   * is negative infinity, then the result is the double value closest to
+   * 3*pi/4.</li>
+   * <li>If the first argument is negative infinity and the second argument
+   * is positive infinity, then the result is the double value closest to
+   * -pi/4.</li>
+   * <li>If both arguments are negative infinity, then the result is the
+   * double value closest to -3*pi/4.</li>
+   *
+   * </ul><p>This is accurate within 2 ulps, and is semi-monotonic. To get r,
+   * use sqrt(x*x+y*y).
+   *
    * @param y the y position
    * @param x the x position
-   * @return arcsin(a).
+   * @return <em>theta</em> in the conversion of (x, y) to (r, theta)
    * @see #atan(double)
    */
-  public native static double atan2 (double y, double x);
+  public native static double atan2(double y, double x);
 
   /**
-   * Take <em>e</em><sup>a</sup>.  The opposite of <code>log()</code>.
-   * @param a the number to raise to the power.
-   * @return the number raised to the power of <em>e</em>.
+   * Take <em>e</em><sup>a</sup>.  The opposite of <code>log()</code>. If the
+   * argument is NaN, the result is NaN; if the argument is positive infinity,
+   * the result is positive infinity; and if the argument is negative
+   * infinity, the result is positive zero. This is accurate within 1 ulp,
+   * and is semi-monotonic.
+   *
+   * @param a the number to raise to the power
+   * @return the number raised to the power of <em>e</em>
    * @see #log(double)
-   * @see #pow(double,double)
+   * @see #pow(double, double)
    */
-  public native static double exp (double a);
+  public native static double exp(double a);
 
   /**
-   * Take ln(a) (the natural log).  The opposite of <code>exp()</code>.
-   * Note that the way to get log<sub>b</sub>(a) is to do this:
+   * Take ln(a) (the natural log).  The opposite of <code>exp()</code>. If the
+   * argument is NaN or negative, the result is NaN; if the argument is
+   * positive infinity, the result is positive infinity; and if the argument
+   * is either zero, the result is negative infinity. This is accurate within
+   * 1 ulp, and is semi-monotonic.
+   *
+   * <p>Note that the way to get log<sub>b</sub>(a) is to do this:
    * <code>ln(a) / ln(b)</code>.
-   * @param a the number to take the natural log of.
-   * @return the natural log of <code>a</code>.
+   *
+   * @param a the number to take the natural log of
+   * @return the natural log of <code>a</code>
    * @see #exp(double)
    */
-  public native static double log (double a);
+  public native static double log(double a);
 
   /**
-   * Take a square root.
-   * For other roots, to pow(a,1/rootNumber).
+   * Take a square root. If the argument is NaN or negative, the result is
+   * NaN; if the argument is positive infinity, the result is positive
+   * infinity; and if the result is either zero, the result is the same.
+   * This is accurate within the limits of doubles.
+   *
+   * <p>For other roots, use pow(a, 1 / rootNumber).
+   *
    * @param a the numeric argument
-   * @return the square root of the argument.
-   * @see #pow(double,double)
-   */
-  public native static double sqrt (double a);
-
-  /**
-   * Take a number to a power.
-   * @param a the number to raise.
-   * @param b the power to raise it to.
-   * @return a<sup>b</sup>.
+   * @return the square root of the argument
+   * @see #pow(double, double)
    */
-  public native static double pow (double a, double b);
+  public native static double sqrt(double a);
 
   /**
-   * Get the floating point remainder on two numbers,
-   * which really does the following:
-   * <P>
-   *
-   * <OL>
-   *   <LI>
-   *       Takes x/y and finds the nearest integer <em>n</em> to the
-   *       quotient.  (Uses the <code>rint()</code> function to do this.
-   *   </LI>
-   *   <LI>
-   *       Takes x - y*<em>n</em>.
-   *   </LI>
-   *   <LI>
-   *       If x = y*n, then the result is 0 if x is positive and -0 if x
-   *       is negative.
-   *   </LI>
-   * </OL>
+   * Raise a number to a power. Special cases:<ul>
+   * <li>If the second argument is positive or negative zero, then the result
+   * is 1.0.</li>
+   * <li>If the second argument is 1.0, then the result is the same as the
+   * first argument.</li>
+   * <li>If the second argument is NaN, then the result is NaN.</li>
+   * <li>If the first argument is NaN and the second argument is nonzero,
+   * then the result is NaN.</li>
+   * <li>If the absolute value of the first argument is greater than 1 and
+   * the second argument is positive infinity, or the absolute value of the
+   * first argument is less than 1 and the second argument is negative
+   * infinity, then the result is positive infinity.</li>
+   * <li>If the absolute value of the first argument is greater than 1 and
+   * the second argument is negative infinity, or the absolute value of the
+   * first argument is less than 1 and the second argument is positive
+   * infinity, then the result is positive zero.</li>
+   * <li>If the absolute value of the first argument equals 1 and the second
+   * argument is infinite, then the result is NaN.</li>
+   * <li>If the first argument is positive zero and the second argument is
+   * greater than zero, or the first argument is positive infinity and the
+   * second argument is less than zero, then the result is positive zero.</li>
+   * <li>If the first argument is positive zero and the second argument is
+   * less than zero, or the first argument is positive infinity and the
+   * second argument is greater than zero, then the result is positive
+   * infinity.</li>
+   * <li>If the first argument is negative zero and the second argument is
+   * greater than zero but not a finite odd integer, or the first argument is
+   * negative infinity and the second argument is less than zero but not a
+   * finite odd integer, then the result is positive zero.</li>
+   * <li>If the first argument is negative zero and the second argument is a
+   * positive finite odd integer, or the first argument is negative infinity
+   * and the second argument is a negative finite odd integer, then the result
+   * is negative zero.</li>
+   * <li>If the first argument is negative zero and the second argument is
+   * less than zero but not a finite odd integer, or the first argument is
+   * negative infinity and the second argument is greater than zero but not a
+   * finite odd integer, then the result is positive infinity.</li>
+   * <li>If the first argument is negative zero and the second argument is a
+   * negative finite odd integer, or the first argument is negative infinity
+   * and the second argument is a positive finite odd integer, then the result
+   * is negative infinity.</li>
+   * <li>If the first argument is less than zero and the second argument is a
+   * finite even integer, then the result is equal to the result of raising
+   * the absolute value of the first argument to the power of the second
+   * argument.</li>
+   * <li>If the first argument is less than zero and the second argument is a
+   * finite odd integer, then the result is equal to the negative of the
+   * result of raising the absolute value of the first argument to the power
+   * of the second argument.</li>
+   * <li>If the first argument is finite and less than zero and the second
+   * argument is finite and not an integer, then the result is NaN.</li>
+   * <li>If both arguments are integers, then the result is exactly equal to
+   * the mathematical result of raising the first argument to the power of
+   * the second argument if that result can in fact be represented exactly as
+   * a double value.</li>
+   *
+   * </ul><p>(In the foregoing descriptions, a floating-point value is
+   * considered to be an integer if and only if it is a fixed point of the
+   * method {@link #ceil(double)} or, equivalently, a fixed point of the
+   * method {@link #floor(double)}. A value is a fixed point of a one-argument
+   * method if and only if the result of applying the method to the value is
+   * equal to the value.) This is accurate within 1 ulp, and is semi-monotonic.
+   *
+   * @param a the number to raise
+   * @param b the power to raise it to
+   * @return a<sup>b</sup>
+   */
+  public native static double pow(double a, double b);
+
+  /**
+   * Get the IEEE 754 floating point remainder on two numbers. This is the
+   * value of <code>x - y * <em>n</em></code>, where <em>n</em> is the closest
+   * double to <code>x / y</code> (ties go to the even n); for a zero
+   * remainder, the sign is that of <code>x</code>. If either argument is NaN,
+   * the first argument is infinite, or the second argument is zero, the result
+   * is NaN; if x is finite but y is infinte, the result is x. This is
+   * accurate within the limits of doubles.
    *
    * @param x the dividend (the top half)
    * @param y the divisor (the bottom half)
-   * @return the IEEE 754-defined floating point remainder of x/y.
+   * @return the IEEE 754-defined floating point remainder of x/y
    * @see #rint(double)
    */
-  public native static double IEEEremainder (double x, double y);
+  public native static double IEEEremainder(double x, double y);
 
   /**
    * Take the nearest integer that is that is greater than or equal to the
-   * argument.
-   * @param a the value to act upon.
-   * @return the nearest integer >= <code>a</code>.
+   * argument. If the argument is NaN, infinite, or zero, the result is the
+   * same; if the argument is between -1 and 0, the result is negative zero.
+   * Note that <code>Math.ceil(x) == -Math.floor(-x)</code>.
+   *
+   * @param a the value to act upon
+   * @return the nearest integer &gt;= <code>a</code>
    */
-  public native static double ceil (double a);
+  public native static double ceil(double a);
 
   /**
    * Take the nearest integer that is that is less than or equal to the
-   * argument.
-   * @param a the value to act upon.
-   * @return the nearest integer <= <code>a</code>.
+   * argument. If the argument is NaN, infinite, or zero, the result is the
+   * same. Note that <code>Math.ceil(x) == -Math.floor(-x)</code>.
+   *
+   * @param a the value to act upon
+   * @return the nearest integer &lt;= <code>a</code>
    */
-  public native static double floor (double a);
+  public native static double floor(double a);
 
   /**
    * Take the nearest integer to the argument.  If it is exactly between
-   * two integers, the even integer is taken.
-   * @param a the value to act upon.
-   * @return the nearest integer to <code>a</code>.
+   * two integers, the even integer is taken. If the argument is NaN,
+   * infinite, or zero, the result is the same.
+   *
+   * @param a the value to act upon
+   * @return the nearest integer to <code>a</code>
    */
-  public native static double rint (double a);
+  public native static double rint(double a);
 
   /**
-   * Take the nearest integer to the argument.  If it is exactly between
-   * two integers, then the lower of the two (-10 lower than -9) is taken.
-   * If the argument is less than Integer.MIN_VALUE or negative infinity,
-   * Integer.MIN_VALUE will be returned.  If the argument is greater than
-   * Integer.MAX_VALUE, Integer.MAX_VALUE will be returned.
-   *
-   * @param a the argument to round.
-   * @return the nearest integer to the argument.
-   * @see java.lang.Integer#MIN_VALUE
-   * @see java.lang.Integer#MAX_VALUE
+   * Take the nearest integer to the argument.  This is equivalent to
+   * <code>(int) Math.floor(a + 0.5f). If the argument is NaN, the result
+   * is 0; otherwise if the argument is outside the range of int, the result
+   * will be Integer.MIN_VALUE or Integer.MAX_VALUE, as appropriate.
+   *
+   * @param a the argument to round
+   * @return the nearest integer to the argument
+   * @see Integer#MIN_VALUE
+   * @see Integer#MAX_VALUE
    */
-  public static int round (float a)
+  public static int round(float a)
   {
-    return (int) floor (a + 0.5f);
+    return (int) floor(a + 0.5f);
   }
 
   /**
-   * Take the nearest integer to the argument.  If it is exactly between
-   * two integers, then the lower of the two (-10 lower than -9) is taken.
-   * If the argument is less than Long.MIN_VALUE or negative infinity,
-   * Long.MIN_VALUE will be returned.  If the argument is greater than
-   * Long.MAX_VALUE, Long.MAX_VALUE will be returned.
+   * Take the nearest long to the argument.  This is equivalent to
+   * <code>(long) Math.floor(a + 0.5)</code>. If the argument is NaN, the
+   * result is 0; otherwise if the argument is outside the range of long, the
+   * result will be Long.MIN_VALUE or Long.MAX_VALUE, as appropriate.
    *
-   * @param a the argument to round.
-   * @return the nearest integer to the argument.
-   * @see java.lang.Long#MIN_VALUE
-   * @see java.lang.Long#MAX_VALUE
+   * @param a the argument to round
+   * @return the nearest long to the argument
+   * @see Long#MIN_VALUE
+   * @see Long#MAX_VALUE
    */
-  public static long round (double a)
+  public static long round(double a)
   {
-    return (long) floor (a + 0.5d);
+    return (long) floor(a + 0.5d);
   }
 
   /**
-   * Get a random number.  This behaves like Random.nextDouble().
-   * @return a random number.
-   * @see java.lang.Random#nextDouble()
+   * Get a random number.  This behaves like Random.nextDouble(), seeded by
+   * System.currentTimeMillis() when first called. In other words, the number
+   * is from a pseudorandom sequence, and lies in the range [+0.0, 1.0).
+   * This random sequence is only used by this method, and is threadsafe,
+   * although you may want your own random number generator if it is shared
+   * among threads.
+   *
+   * @return a random number
+   * @see Random#nextDouble()
+   * @see System#currentTimeMillis()
    */
-  public static synchronized double random ()
+  public static synchronized double random()
   {
     if (rand == null)
-      rand = new Random ();
-    return rand.nextDouble ();
+      rand = new Random();
+    return rand.nextDouble();
   }
 
   /**
-   * Convert from degrees to radians.
-   * The formula for this is radians = degrees * (pi/180).
+   * Convert from degrees to radians. The formula for this is
+   * radians = degrees * (pi/180); however it is not always exact given the
+   * limitations of floating point numbers.
+   *
    * @param degrees an angle in degrees
    * @return the angle in radians
+   * @since 1.2
    */
-  public static double toRadians (double degrees)
+  public static double toRadians(double degrees)
   {
-    return degrees * 0.017453292519943295;	/* (degrees * (PI/180)) */
+    return degrees * (PI / 180);
   }
 
   /**
-   * Convert from radians to degrees.
-   * The formula for this is degrees = radians * (180/pi).
+   * Convert from radians to degrees. The formula for this is
+   * degrees = radians * (180/pi); however it is not always exact given the
+   * limitations of floating point numbers.
+   *
    * @param rads an angle in radians
    * @return the angle in degrees
+   * @since 1.2
    */
-  public static double toDegrees (double rads)
+  public static double toDegrees(double rads)
   {
-    return rads / 0.017453292519943295;	/* (rads / (PI/180)) */
+    return rads * (180 / PI);
   }
 }
Index: java/lang/StrictMath.java
===================================================================
RCS file: java/lang/StrictMath.java
diff -N java/lang/StrictMath.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ java/lang/StrictMath.java	14 Feb 2002 20:44:21 -0000
@@ -0,0 +1,1840 @@
+/* java.lang.StrictMath -- common mathematical functions, strict Java
+   Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+/*
+ * Some of the algorithms in this class are in the public domain, as part
+ * of fdlibm (freely-distributable math library), available at
+ * http://www.netlib.org/fdlibm/, and carry the following copyright:
+ * ====================================================
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ *
+ * Developed at SunSoft, a Sun Microsystems, Inc. business.
+ * Permission to use, copy, modify, and distribute this
+ * software is freely granted, provided that this notice
+ * is preserved.
+ * ====================================================
+ */
+
+package java.lang;
+
+import java.util.Random;
+import gnu.classpath.Configuration;
+
+/**
+ * Helper class containing useful mathematical functions and constants.
+ * This class mirrors {@link Math}, but is 100% portable, because it uses
+ * no native methods whatsoever.  Unfortunately, this usually means less
+ * efficiency and speed, as Math can use native methods.
+ *
+ * <p>The source of the various algorithms used is the fdlibm library, at:<br>
+ * <a href="http://www.netlib.org/fdlibm/">http://www.netlib.org/fdlibm/</a>
+ *
+ * Note that angles are specified in radians.  Conversion functions are
+ * provided for your convenience.
+ *
+ * @author Eric Blake <ebb9@email.byu.edu>
+ * @since 1.3
+ */
+public final strictfp class StrictMath
+{
+  /**
+   * StrictMath is non-instantiable.
+   */
+  private StrictMath()
+  {
+  }
+
+  /**
+   * A random number generator, initialized on first use.
+   *
+   * @see #random()
+   */
+  private static Random rand;
+
+  /**
+   * The most accurate approximation to the mathematical constant <em>e</em>:
+   * <code>2.718281828459045</code>. Used in natural log and exp.
+   *
+   * @see #log(double)
+   * @see #exp(double)
+   */
+  public static final double E
+    = 2.718281828459045; // Long bits 0x4005bf0z8b145769L.
+
+  /**
+   * The most accurate approximation to the mathematical constant <em>pi</em>:
+   * <code>3.141592653589793</code>. This is the ratio of a circle's diameter
+   * to its circumference.
+   */
+  public static final double PI
+    = 3.141592653589793; // Long bits 0x400921fb54442d18L.
+
+  /**
+   * Take the absolute value of the argument. (Absolute value means make
+   * it positive.)
+   *
+   * <p>Note that the the largest negative value (Integer.MIN_VALUE) cannot
+   * be made positive.  In this case, because of the rules of negation in
+   * a computer, MIN_VALUE is what will be returned.
+   * This is a <em>negative</em> value.  You have been warned.
+   *
+   * @param i the number to take the absolute value of
+   * @return the absolute value
+   * @see Integer#MIN_VALUE
+   */
+  public static int abs(int i)
+  {
+    return (i < 0) ? -i : i;
+  }
+
+  /**
+   * Take the absolute value of the argument. (Absolute value means make
+   * it positive.)
+   *
+   * <p>Note that the the largest negative value (Long.MIN_VALUE) cannot
+   * be made positive.  In this case, because of the rules of negation in
+   * a computer, MIN_VALUE is what will be returned.
+   * This is a <em>negative</em> value.  You have been warned.
+   *
+   * @param l the number to take the absolute value of
+   * @return the absolute value
+   * @see Long#MIN_VALUE
+   */
+  public static long abs(long l)
+  {
+    return (l < 0) ? -l : l;
+  }
+
+  /**
+   * Take the absolute value of the argument. (Absolute value means make
+   * it positive.)
+   *
+   * @param f the number to take the absolute value of
+   * @return the absolute value
+   */
+  public static float abs(float f)
+  {
+    return (f <= 0) ? 0 - f : f;
+  }
+
+  /**
+   * Take the absolute value of the argument. (Absolute value means make
+   * it positive.)
+   *
+   * @param d the number to take the absolute value of
+   * @return the absolute value
+   */
+  public static double abs(double d)
+  {
+    return (d <= 0) ? 0 - d : d;
+  }
+
+  /**
+   * Return whichever argument is smaller.
+   *
+   * @param a the first number
+   * @param b a second number
+   * @return the smaller of the two numbers
+   */
+  public static int min(int a, int b)
+  {
+    return (a < b) ? a : b;
+  }
+
+  /**
+   * Return whichever argument is smaller.
+   *
+   * @param a the first number
+   * @param b a second number
+   * @return the smaller of the two numbers
+   */
+  public static long min(long a, long b)
+  {
+    return (a < b) ? a : b;
+  }
+
+  /**
+   * Return whichever argument is smaller. If either argument is NaN, the
+   * result is NaN, and when comparing 0 and -0, -0 is always smaller.
+   *
+   * @param a the first number
+   * @param b a second number
+   * @return the smaller of the two numbers
+   */
+  public static float min(float a, float b)
+  {
+    // this check for NaN, from JLS 15.21.1, saves a method call
+    if (a != a)
+      return a;
+    // no need to check if b is NaN; < will work correctly
+    // recall that -0.0 == 0.0, but [+-]0.0 - [+-]0.0 behaves special
+    if (a == 0 && b == 0)
+      return -(-a - b);
+    return (a < b) ? a : b;
+  }
+
+  /**
+   * Return whichever argument is smaller. If either argument is NaN, the
+   * result is NaN, and when comparing 0 and -0, -0 is always smaller.
+   *
+   * @param a the first number
+   * @param b a second number
+   * @return the smaller of the two numbers
+   */
+  public static double min(double a, double b)
+  {
+    // this check for NaN, from JLS 15.21.1, saves a method call
+    if (a != a)
+      return a;
+    // no need to check if b is NaN; < will work correctly
+    // recall that -0.0 == 0.0, but [+-]0.0 - [+-]0.0 behaves special
+    if (a == 0 && b == 0)
+      return -(-a - b);
+    return (a < b) ? a : b;
+  }
+
+  /**
+   * Return whichever argument is larger.
+   *
+   * @param a the first number
+   * @param b a second number
+   * @return the larger of the two numbers
+   */
+  public static int max(int a, int b)
+  {
+    return (a > b) ? a : b;
+  }
+
+  /**
+   * Return whichever argument is larger.
+   *
+   * @param a the first number
+   * @param b a second number
+   * @return the larger of the two numbers
+   */
+  public static long max(long a, long b)
+  {
+    return (a > b) ? a : b;
+  }
+
+  /**
+   * Return whichever argument is larger. If either argument is NaN, the
+   * result is NaN, and when comparing 0 and -0, 0 is always larger.
+   *
+   * @param a the first number
+   * @param b a second number
+   * @return the larger of the two numbers
+   */
+  public static float max(float a, float b)
+  {
+    // this check for NaN, from JLS 15.21.1, saves a method call
+    if (a != a)
+      return a;
+    // no need to check if b is NaN; > will work correctly
+    // recall that -0.0 == 0.0, but [+-]0.0 - [+-]0.0 behaves special
+    if (a == 0 && b == 0)
+      return a - -b;
+    return (a > b) ? a : b;
+  }
+
+  /**
+   * Return whichever argument is larger. If either argument is NaN, the
+   * result is NaN, and when comparing 0 and -0, 0 is always larger.
+   *
+   * @param a the first number
+   * @param b a second number
+   * @return the larger of the two numbers
+   */
+  public static double max(double a, double b)
+  {
+    // this check for NaN, from JLS 15.21.1, saves a method call
+    if (a != a)
+      return a;
+    // no need to check if b is NaN; > will work correctly
+    // recall that -0.0 == 0.0, but [+-]0.0 - [+-]0.0 behaves special
+    if (a == 0 && b == 0)
+      return a - -b;
+    return (a > b) ? a : b;
+  }
+
+  /**
+   * The trigonometric function <em>sin</em>. The sine of NaN or infinity is
+   * NaN, and the sine of 0 retains its sign.
+   *
+   * @param a the angle (in radians)
+   * @return sin(a)
+   */
+  public static double sin(double a)
+  {
+    if (a == Double.NEGATIVE_INFINITY || ! (a < Double.POSITIVE_INFINITY))
+      return Double.NaN;
+
+    if (abs(a) <= PI / 4)
+      return sin(a, 0);
+
+    // Argument reduction needed.
+    double[] y = new double[2];
+    int n = remPiOver2(a, y);
+    switch (n & 3)
+      {
+      case 0:
+        return sin(y[0], y[1]);
+      case 1:
+        return cos(y[0], y[1]);
+      case 2:
+        return -sin(y[0], y[1]);
+      default:
+        return -cos(y[0], y[1]);
+      }
+  }
+
+  /**
+   * The trigonometric function <em>cos</em>. The cosine of NaN or infinity is
+   * NaN.
+   *
+   * @param a the angle (in radians).
+   * @return cos(a).
+   */
+  public static double cos(double a)
+  {
+    if (a == Double.NEGATIVE_INFINITY || ! (a < Double.POSITIVE_INFINITY))
+      return Double.NaN;
+
+    if (abs(a) <= PI / 4)
+      return cos(a, 0);
+
+    // Argument reduction needed.
+    double[] y = new double[2];
+    int n = remPiOver2(a, y);
+    switch (n & 3)
+      {
+      case 0:
+        return cos(y[0], y[1]);
+      case 1:
+        return -sin(y[0], y[1]);
+      case 2:
+        return -cos(y[0], y[1]);
+      default:
+        return sin(y[0], y[1]);
+      }
+  }
+
+  /**
+   * The trigonometric function <em>tan</em>. The tangent of NaN or infinity
+   * is NaN, and the tangent of 0 retains its sign.
+   *
+   * @param a the angle (in radians)
+   * @return tan(a)
+   */
+  public static double tan(double a)
+  {
+    if (a == Double.NEGATIVE_INFINITY || ! (a < Double.POSITIVE_INFINITY))
+      return Double.NaN;
+
+    if (abs(a) <= PI / 4)
+      return tan(a, 0, false);
+
+    // Argument reduction needed.
+    double[] y = new double[2];
+    int n = remPiOver2(a, y);
+    return tan(y[0], y[1], (n & 1) == 1);
+  }
+
+  /**
+   * The trigonometric function <em>arcsin</em>. The range of angles returned
+   * is -pi/2 to pi/2 radians (-90 to 90 degrees). If the argument is NaN or
+   * its absolute value is beyond 1, the result is NaN; and the arcsine of
+   * 0 retains its sign.
+   *
+   * @param x the sin to turn back into an angle
+   * @return arcsin(x)
+   */
+  public static double asin(double x)
+  {
+    boolean negative = x < 0;
+    if (negative)
+      x = -x;
+    if (! (x <= 1))
+      return Double.NaN;
+    if (x == 1)
+      return negative ? -PI / 2 : PI / 2;
+    if (x < 0.5)
+      {
+        if (x < 1 / TWO_27)
+          return negative ? -x : x;
+        double t = x * x;
+        double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t
+                                                         * (PS4 + t * PS5)))));
+        double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4)));
+        return negative ? -x - x * (p / q) : x + x * (p / q);
+      }
+    double w = 1 - x; // 1>|x|>=0.5.
+    double t = w * 0.5;
+    double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t
+                                                     * (PS4 + t * PS5)))));
+    double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4)));
+    double s = sqrt(t);
+    if (x >= 0.975)
+      {
+        w = p / q;
+        t = PI / 2 - (2 * (s + s * w) - PI_L / 2);
+      }
+    else
+      {
+        w = (float) s;
+        double c = (t - w * w) / (s + w);
+        p = 2 * s * (p / q) - (PI_L / 2 - 2 * c);
+        q = PI / 4 - 2 * w;
+        t = PI / 4 - (p - q);
+      }
+    return negative ? -t : t;
+  }
+
+  /**
+   * The trigonometric function <em>arccos</em>. The range of angles returned
+   * is 0 to pi radians (0 to 180 degrees). If the argument is NaN or
+   * its absolute value is beyond 1, the result is NaN.
+   *
+   * @param x the cos to turn back into an angle
+   * @return arccos(x)
+   */
+  public static double acos(double x)
+  {
+    boolean negative = x < 0;
+    if (negative)
+      x = -x;
+    if (! (x <= 1))
+      return Double.NaN;
+    if (x == 1)
+      return negative ? PI : 0;
+    if (x < 0.5)
+      {
+        if (x < 1 / TWO_57)
+          return PI / 2;
+        double z = x * x;
+        double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z
+                                                         * (PS4 + z * PS5)))));
+        double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4)));
+        double r = x - (PI_L / 2 - x * (p / q));
+        return negative ? PI / 2 + r : PI / 2 - r;
+      }
+    if (negative) // x<=-0.5.
+      {
+        double z = (1 + x) * 0.5;
+        double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z
+                                                         * (PS4 + z * PS5)))));
+        double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4)));
+        double s = sqrt(z);
+        double w = p / q * s - PI_L / 2;
+        return PI - 2 * (s + w);
+      }
+    double z = (1 - x) * 0.5; // x>0.5.
+    double s = sqrt(z);
+    double df = (float) s;
+    double c = (z - df * df) / (s + df);
+    double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z
+                                                     * (PS4 + z * PS5)))));
+    double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4)));
+    double w = p / q * s + c;
+    return 2 * (df + w);
+  }
+
+  /**
+   * The trigonometric function <em>arcsin</em>. The range of angles returned
+   * is -pi/2 to pi/2 radians (-90 to 90 degrees). If the argument is NaN, the
+   * result is NaN; and the arctangent of 0 retains its sign.
+   *
+   * @param x the tan to turn back into an angle
+   * @return arcsin(x)
+   * @see #atan2(double, double)
+   */
+  public static double atan(double x)
+  {
+    double lo;
+    double hi;
+    boolean negative = x < 0;
+    if (negative)
+      x = -x;
+    if (x >= TWO_66)
+      return negative ? -PI / 2 : PI / 2;
+    if (! (x >= 0.4375)) // |x|<7/16, or NaN.
+      {
+        if (! (x >= 1 / TWO_29)) // Small, or NaN.
+          return negative ? -x : x;
+        lo = hi = 0;
+      }
+    else if (x < 1.1875)
+      {
+        if (x < 0.6875) // 7/16<=|x|<11/16.
+          {
+            x = (2 * x - 1) / (2 + x);
+            hi = ATAN_0_5H;
+            lo = ATAN_0_5L;
+          }
+        else // 11/16<=|x|<19/16.
+          {
+            x = (x - 1) / (x + 1);
+            hi = PI / 4;
+            lo = PI_L / 4;
+          }
+      }
+    else if (x < 2.4375) // 19/16<=|x|<39/16.
+      {
+        x = (x - 1.5) / (1 + 1.5 * x);
+        hi = ATAN_1_5H;
+        lo = ATAN_1_5L;
+      }
+    else // 39/16<=|x|<2**66.
+      {
+        x = -1 / x;
+        hi = PI / 2;
+        lo = PI_L / 2;
+      }
+
+    // Break sum from i=0 to 10 ATi*z**(i+1) into odd and even poly.
+    double z = x * x;
+    double w = z * z;
+    double s1 = z * (AT0 + w * (AT2 + w * (AT4 + w * (AT6 + w
+                                                      * (AT8 + w * AT10)))));
+    double s2 = w * (AT1 + w * (AT3 + w * (AT5 + w * (AT7 + w * AT9))));
+    if (hi == 0)
+      return negative ? x * (s1 + s2) - x : x - x * (s1 + s2);
+    z = hi - ((x * (s1 + s2) - lo) - x);
+    return negative ? -z : z;
+  }
+
+  /**
+   * A special version of the trigonometric function <em>arctan</em>, for
+   * converting rectangular coordinates <em>(x, y)</em> to polar
+   * <em>(r, theta)</em>. This computes the arctangent of x/y in the range
+   * of -pi to pi radians (-180 to 180 degrees). Special cases:<ul>
+   * <li>If either argument is NaN, the result is NaN.</li>
+   * <li>If the first argument is positive zero and the second argument is
+   * positive, or the first argument is positive and finite and the second
+   * argument is positive infinity, then the result is positive zero.</li>
+   * <li>If the first argument is negative zero and the second argument is
+   * positive, or the first argument is negative and finite and the second
+   * argument is positive infinity, then the result is negative zero.</li>
+   * <li>If the first argument is positive zero and the second argument is
+   * negative, or the first argument is positive and finite and the second
+   * argument is negative infinity, then the result is the double value
+   * closest to pi.</li>
+   * <li>If the first argument is negative zero and the second argument is
+   * negative, or the first argument is negative and finite and the second
+   * argument is negative infinity, then the result is the double value
+   * closest to -pi.</li>
+   * <li>If the first argument is positive and the second argument is
+   * positive zero or negative zero, or the first argument is positive
+   * infinity and the second argument is finite, then the result is the
+   * double value closest to pi/2.</li>
+   * <li>If the first argument is negative and the second argument is
+   * positive zero or negative zero, or the first argument is negative
+   * infinity and the second argument is finite, then the result is the
+   * double value closest to -pi/2.</li>
+   * <li>If both arguments are positive infinity, then the result is the
+   * double value closest to pi/4.</li>
+   * <li>If the first argument is positive infinity and the second argument
+   * is negative infinity, then the result is the double value closest to
+   * 3*pi/4.</li>
+   * <li>If the first argument is negative infinity and the second argument
+   * is positive infinity, then the result is the double value closest to
+   * -pi/4.</li>
+   * <li>If both arguments are negative infinity, then the result is the
+   * double value closest to -3*pi/4.</li>
+   *
+   * </ul><p>This returns theta, the angle of the point. To get r, albeit
+   * slightly inaccurately, use sqrt(x*x+y*y).
+   *
+   * @param y the y position
+   * @param x the x position
+   * @return <em>theta</em> in the conversion of (x, y) to (r, theta)
+   * @see #atan(double)
+   */
+  public static double atan2(double y, double x)
+  {
+    if (x != x || y != y)
+      return Double.NaN;
+    if (x == 1)
+      return atan(y);
+    if (x == Double.POSITIVE_INFINITY)
+      {
+        if (y == Double.POSITIVE_INFINITY)
+          return PI / 4;
+        if (y == Double.NEGATIVE_INFINITY)
+          return -PI / 4;
+        return 0 * y;
+      }
+    if (x == Double.NEGATIVE_INFINITY)
+      {
+        if (y == Double.POSITIVE_INFINITY)
+          return 3 * PI / 4;
+        if (y == Double.NEGATIVE_INFINITY)
+          return -3 * PI / 4;
+        return (1 / (0 * y) == Double.POSITIVE_INFINITY) ? PI : -PI;
+      }
+    if (y == 0)
+      {
+        if (1 / (0 * x) == Double.POSITIVE_INFINITY)
+          return y;
+        return (1 / y == Double.POSITIVE_INFINITY) ? PI : -PI;
+      }
+    if (y == Double.POSITIVE_INFINITY || y == Double.NEGATIVE_INFINITY
+        || x == 0)
+      return y < 0 ? -PI / 2 : PI / 2;
+
+    double z = abs(y / x); // Safe to do y/x.
+    if (z > TWO_60)
+      z = PI / 2 + 0.5 * PI_L;
+    else if (x < 0 && z < 1 / TWO_60)
+      z = 0;
+    else
+      z = atan(z);
+    if (x > 0)
+      return y > 0 ? z : -z;
+    return y > 0 ? PI - (z - PI_L) : z - PI_L - PI;
+  }
+
+  /**
+   * Take <em>e</em><sup>a</sup>.  The opposite of <code>log()</code>. If the
+   * argument is NaN, the result is NaN; if the argument is positive infinity,
+   * the result is positive infinity; and if the argument is negative
+   * infinity, the result is positive zero.
+   *
+   * @param x the number to raise to the power
+   * @return the number raised to the power of <em>e</em>
+   * @see #log(double)
+   * @see #pow(double, double)
+   */
+  public static double exp(double x)
+  {
+    if (x != x)
+      return x;
+    if (x > EXP_LIMIT_H)
+      return Double.POSITIVE_INFINITY;
+    if (x < EXP_LIMIT_L)
+      return 0;
+
+    // Argument reduction.
+    double hi;
+    double lo;
+    int k;
+    double t = abs(x);
+    if (t > 0.5 * LN2)
+      {
+        if (t < 1.5 * LN2)
+          {
+            hi = t - LN2_H;
+            lo = LN2_L;
+            k = 1;
+          }
+        else
+          {
+            k = (int) (INV_LN2 * t + 0.5);
+            hi = t - k * LN2_H;
+            lo = k * LN2_L;
+          }
+        if (x < 0)
+          {
+            hi = -hi;
+            lo = -lo;
+            k = -k;
+          }
+        x = hi - lo;
+      }
+    else if (t < 1 / TWO_28)
+      return 1;
+    else
+      lo = hi = k = 0;
+
+    // Now x is in primary range.
+    t = x * x;
+    double c = x - t * (P1 + t * (P2 + t * (P3 + t * (P4 + t * P5))));
+    if (k == 0)
+      return 1 - (x * c / (c - 2) - x);
+    double y = 1 - (lo - x * c / (2 - c) - hi);
+    return scale(y, k);
+  }
+
+  /**
+   * Take ln(a) (the natural log).  The opposite of <code>exp()</code>. If the
+   * argument is NaN or negative, the result is NaN; if the argument is
+   * positive infinity, the result is positive infinity; and if the argument
+   * is either zero, the result is negative infinity.
+   *
+   * <p>Note that the way to get log<sub>b</sub>(a) is to do this:
+   * <code>ln(a) / ln(b)</code>.
+   *
+   * @param x the number to take the natural log of
+   * @return the natural log of <code>a</code>
+   * @see #exp(double)
+   */
+  public static double log(double x)
+  {
+    if (x == 0)
+      return Double.NEGATIVE_INFINITY;
+    if (x < 0)
+      return Double.NaN;
+    if (! (x < Double.POSITIVE_INFINITY))
+      return x;
+
+    // Normalize x.
+    long bits = Double.doubleToLongBits(x);
+    int exp = (int) (bits >> 52);
+    if (exp == 0) // Subnormal x.
+      {
+        x *= TWO_54;
+        bits = Double.doubleToLongBits(x);
+        exp = (int) (bits >> 52) - 54;
+      }
+    exp -= 1023; // Unbias exponent.
+    bits = (bits & 0x000fffffffffffffL) | 0x3ff0000000000000L;
+    x = Double.longBitsToDouble(bits);
+    if (x >= SQRT_2)
+      {
+        x *= 0.5;
+        exp++;
+      }
+    x--;
+    if (abs(x) < 1 / TWO_20)
+      {
+        if (x == 0)
+          return exp * LN2_H + exp * LN2_L;
+        double r = x * x * (0.5 - 1 / 3.0 * x);
+        if (exp == 0)
+          return x - r;
+        return exp * LN2_H - ((r - exp * LN2_L) - x);
+      }
+    double s = x / (2 + x);
+    double z = s * s;
+    double w = z * z;
+    double t1 = w * (LG2 + w * (LG4 + w * LG6));
+    double t2 = z * (LG1 + w * (LG3 + w * (LG5 + w * LG7)));
+    double r = t2 + t1;
+    if (bits >= 0x3ff6174a00000000L && bits < 0x3ff6b85200000000L)
+      {
+        double h = 0.5 * x * x; // Need more accuracy for x near sqrt(2).
+        if (exp == 0)
+          return x - (h - s * (h + r));
+        return exp * LN2_H - ((h - (s * (h + r) + exp * LN2_L)) - x);
+      }
+    if (exp == 0)
+      return x - s * (x - r);
+    return exp * LN2_H - ((s * (x - r) - exp * LN2_L) - x);
+  }
+
+  /**
+   * Take a square root. If the argument is NaN or negative, the result is
+   * NaN; if the argument is positive infinity, the result is positive
+   * infinity; and if the result is either zero, the result is the same.
+   *
+   * <p>For other roots, use pow(x, 1/rootNumber).
+   *
+   * @param x the numeric argument
+   * @return the square root of the argument
+   * @see #pow(double, double)
+   */
+  public static double sqrt(double x)
+  {
+    if (x < 0)
+      return Double.NaN;
+    if (x == 0 || ! (x < Double.POSITIVE_INFINITY))
+      return x;
+
+    // Normalize x.
+    long bits = Double.doubleToLongBits(x);
+    int exp = (int) (bits >> 52);
+    if (exp == 0) // Subnormal x.
+      {
+        x *= TWO_54;
+        bits = Double.doubleToLongBits(x);
+        exp = (int) (bits >> 52) - 54;
+      }
+    exp -= 1023; // Unbias exponent.
+    bits = (bits & 0x000fffffffffffffL) | 0x0010000000000000L;
+    if ((exp & 1) == 1) // Odd exp, double x to make it even.
+      bits <<= 1;
+    exp >>= 1;
+
+    // Generate sqrt(x) bit by bit.
+    bits <<= 1;
+    long q = 0;
+    long s = 0;
+    long r = 0x0020000000000000L; // Move r right to left.
+    while (r != 0)
+      {
+        long t = s + r;
+        if (t <= bits)
+          {
+            s = t + r;
+            bits -= t;
+            q += r;
+          }
+        bits <<= 1;
+        r >>= 1;
+      }
+
+    // Use floating add to round correctly.
+    if (bits != 0)
+      q += q & 1;
+    return Double.longBitsToDouble((q >> 1) + ((exp + 1022L) << 52));
+  }
+
+  /**
+   * Raise a number to a power. Special cases:<ul>
+   * <li>If the second argument is positive or negative zero, then the result
+   * is 1.0.</li>
+   * <li>If the second argument is 1.0, then the result is the same as the
+   * first argument.</li>
+   * <li>If the second argument is NaN, then the result is NaN.</li>
+   * <li>If the first argument is NaN and the second argument is nonzero,
+   * then the result is NaN.</li>
+   * <li>If the absolute value of the first argument is greater than 1 and
+   * the second argument is positive infinity, or the absolute value of the
+   * first argument is less than 1 and the second argument is negative
+   * infinity, then the result is positive infinity.</li>
+   * <li>If the absolute value of the first argument is greater than 1 and
+   * the second argument is negative infinity, or the absolute value of the
+   * first argument is less than 1 and the second argument is positive
+   * infinity, then the result is positive zero.</li>
+   * <li>If the absolute value of the first argument equals 1 and the second
+   * argument is infinite, then the result is NaN.</li>
+   * <li>If the first argument is positive zero and the second argument is
+   * greater than zero, or the first argument is positive infinity and the
+   * second argument is less than zero, then the result is positive zero.</li>
+   * <li>If the first argument is positive zero and the second argument is
+   * less than zero, or the first argument is positive infinity and the
+   * second argument is greater than zero, then the result is positive
+   * infinity.</li>
+   * <li>If the first argument is negative zero and the second argument is
+   * greater than zero but not a finite odd integer, or the first argument is
+   * negative infinity and the second argument is less than zero but not a
+   * finite odd integer, then the result is positive zero.</li>
+   * <li>If the first argument is negative zero and the second argument is a
+   * positive finite odd integer, or the first argument is negative infinity
+   * and the second argument is a negative finite odd integer, then the result
+   * is negative zero.</li>
+   * <li>If the first argument is negative zero and the second argument is
+   * less than zero but not a finite odd integer, or the first argument is
+   * negative infinity and the second argument is greater than zero but not a
+   * finite odd integer, then the result is positive infinity.</li>
+   * <li>If the first argument is negative zero and the second argument is a
+   * negative finite odd integer, or the first argument is negative infinity
+   * and the second argument is a positive finite odd integer, then the result
+   * is negative infinity.</li>
+   * <li>If the first argument is less than zero and the second argument is a
+   * finite even integer, then the result is equal to the result of raising
+   * the absolute value of the first argument to the power of the second
+   * argument.</li>
+   * <li>If the first argument is less than zero and the second argument is a
+   * finite odd integer, then the result is equal to the negative of the
+   * result of raising the absolute value of the first argument to the power
+   * of the second argument.</li>
+   * <li>If the first argument is finite and less than zero and the second
+   * argument is finite and not an integer, then the result is NaN.</li>
+   * <li>If both arguments are integers, then the result is exactly equal to
+   * the mathematical result of raising the first argument to the power of
+   * the second argument if that result can in fact be represented exactly as
+   * a double value.</li>
+   *
+   * </ul><p>(In the foregoing descriptions, a floating-point value is
+   * considered to be an integer if and only if it is a fixed point of the
+   * method {@link #ceil(double)} or, equivalently, a fixed point of the
+   * method {@link #floor(double)}. A value is a fixed point of a one-argument
+   * method if and only if the result of applying the method to the value is
+   * equal to the value.)
+   *
+   * @param x the number to raise
+   * @param y the power to raise it to
+   * @return x<sup>y</sup>
+   */
+  public static double pow(double x, double y)
+  {
+    // Special cases first.
+    if (y == 0)
+      return 1;
+    if (y == 1)
+      return x;
+    if (y == -1)
+      return 1 / x;
+    if (x != x || y != y)
+      return Double.NaN;
+
+    // When x < 0, yisint tells if y is not an integer (0), even(1),
+    // or odd (2).
+    int yisint = 0;
+    if (x < 0 && floor(y) == y)
+      yisint = (y % 2 == 0) ? 2 : 1;
+    double ax = abs(x);
+    double ay = abs(y);
+
+    // More special cases, of y.
+    if (ay == Double.POSITIVE_INFINITY)
+      {
+        if (ax == 1)
+          return Double.NaN;
+        if (ax > 1)
+          return y > 0 ? y : 0;
+        return y < 0 ? -y : 0;
+      }
+    if (y == 2)
+      return x * x;
+    if (y == 0.5)
+      return sqrt(x);
+
+    // More special cases, of x.
+    if (x == 0 || ax == Double.POSITIVE_INFINITY || ax == 1)
+      {
+        if (y < 0)
+          ax = 1 / ax;
+        if (x < 0)
+          {
+            if (x == -1 && yisint == 0)
+              ax = Double.NaN;
+            else if (yisint == 1)
+              ax = -ax;
+          }
+        return ax;
+      }
+    if (x < 0 && yisint == 0)
+      return Double.NaN;
+
+    // Now we can start!
+    double t;
+    double t1;
+    double t2;
+    double u;
+    double v;
+    double w;
+    if (ay > TWO_31)
+      {
+        if (ay > TWO_64) // Automatic over/underflow.
+          return ((ax < 1) ? y < 0 : y > 0) ? Double.POSITIVE_INFINITY : 0;
+        // Over/underflow if x is not close to one.
+        if (ax < 0.9999995231628418)
+          return y < 0 ? Double.POSITIVE_INFINITY : 0;
+        if (ax >= 1.0000009536743164)
+          return y > 0 ? Double.POSITIVE_INFINITY : 0;
+        // Now |1-x| is <= 2**-20, sufficient to compute
+        // log(x) by x-x^2/2+x^3/3-x^4/4.
+        t = x - 1;
+        w = t * t * (0.5 - t * (1 / 3.0 - t * 0.25));
+        u = INV_LN2_H * t;
+        v = t * INV_LN2_L - w * INV_LN2;
+        t1 = (float) (u + v);
+        t2 = v - (t1 - u);
+      }
+    else
+    {
+      long bits = Double.doubleToLongBits(ax);
+      int exp = (int) (bits >> 52);
+      if (exp == 0) // Subnormal x.
+        {
+          ax *= TWO_54;
+          bits = Double.doubleToLongBits(ax);
+          exp = (int) (bits >> 52) - 54;
+        }
+      exp -= 1023; // Unbias exponent.
+      ax = Double.longBitsToDouble((bits & 0x000fffffffffffffL)
+                                   | 0x3ff0000000000000L);
+      boolean k;
+      if (ax < SQRT_1_5)  // |x|<sqrt(3/2).
+        k = false;
+      else if (ax < SQRT_3) // |x|<sqrt(3).
+        k = true;
+      else
+        {
+          k = false;
+          ax *= 0.5;
+          exp++;
+        }
+
+      // Compute s = s_h+s_l = (x-1)/(x+1) or (x-1.5)/(x+1.5).
+      u = ax - (k ? 1.5 : 1);
+      v = 1 / (ax + (k ? 1.5 : 1));
+      double s = u * v;
+      double s_h = (float) s;
+      double t_h = (float) (ax + (k ? 1.5 : 1));
+      double t_l = ax - (t_h - (k ? 1.5 : 1));
+      double s_l = v * ((u - s_h * t_h) - s_h * t_l);
+      // Compute log(ax).
+      double s2 = s * s;
+      double r = s_l * (s_h + s) + s2 * s2
+        * (L1 + s2 * (L2 + s2 * (L3 + s2 * (L4 + s2 * (L5 + s2 * L6)))));
+      s2 = s_h * s_h;
+      t_h = (float) (3.0 + s2 + r);
+      t_l = r - (t_h - 3.0 - s2);
+      // u+v = s*(1+...).
+      u = s_h * t_h;
+      v = s_l * t_h + t_l * s;
+      // 2/(3log2)*(s+...).
+      double p_h = (float) (u + v);
+      double p_l = v - (p_h - u);
+      double z_h = CP_H * p_h;
+      double z_l = CP_L * p_h + p_l * CP + (k ? DP_L : 0);
+      // log2(ax) = (s+..)*2/(3*log2) = exp + dp_h + z_h + z_l.
+      t = exp;
+      t1 = (float) (z_h + z_l + (k ? DP_H : 0) + t);
+      t2 = z_l - (t1 - t - (k ? DP_H : 0) - z_h);
+    }
+
+    // Split up y into y1+y2 and compute (y1+y2)*(t1+t2).
+    boolean negative = x < 0 && yisint == 1;
+    double y1 = (float) y;
+    double p_l = (y - y1) * t1 + y * t2;
+    double p_h = y1 * t1;
+    double z = p_l + p_h;
+    if (z >= 1024) // Detect overflow.
+      {
+        if (z > 1024 || p_l + OVT > z - p_h)
+          return negative ? Double.NEGATIVE_INFINITY
+            : Double.POSITIVE_INFINITY;
+      }
+    else if (z <= -1075) // Detect underflow.
+      {
+        if (z < -1075 || p_l <= z - p_h)
+          return negative ? -0.0 : 0;
+      }
+
+    // Compute 2**(p_h+p_l).
+    int n = round((float) z);
+    p_h -= n;
+    t = (float) (p_l + p_h);
+    u = t * LN2_H;
+    v = (p_l - (t - p_h)) * LN2 + t * LN2_L;
+    z = u + v;
+    w = v - (z - u);
+    t = z * z;
+    t1 = z - t * (P1 + t * (P2 + t * (P3 + t * (P4 + t * P5))));
+    double r = (z * t1) / (t1 - 2) - (w + z * w);
+    z = scale(1 - (r - z), n);
+    return negative ? -z : z;
+  }
+
+  /**
+   * Get the IEEE 754 floating point remainder on two numbers. This is the
+   * value of <code>x - y * <em>n</em></code>, where <em>n</em> is the closest
+   * double to <code>x / y</code> (ties go to the even n); for a zero
+   * remainder, the sign is that of <code>x</code>. If either argument is NaN,
+   * the first argument is infinite, or the second argument is zero, the result
+   * is NaN; if x is finite but y is infinte, the result is x.
+   *
+   * @param x the dividend (the top half)
+   * @param y the divisor (the bottom half)
+   * @return the IEEE 754-defined floating point remainder of x/y
+   * @see #rint(double)
+   */
+  public static double IEEEremainder(double x, double y)
+  {
+    // Purge off exception values.
+    if (x == Double.NEGATIVE_INFINITY || ! (x < Double.POSITIVE_INFINITY)
+        || y == 0 || y != y)
+      return Double.NaN;
+
+    boolean negative = x < 0;
+    x = abs(x);
+    y = abs(y);
+    if (x == y || x == 0)
+      return 0 * x; // Get correct sign.
+
+    // Achieve x < 2y, then take first shot at remainder.
+    if (y < TWO_1023)
+      x %= y + y;
+
+    // Now adjust x to get correct precision.
+    if (y < 4 / TWO_1023)
+      {
+        if (x + x > y)
+          {
+            x -= y;
+            if (x + x >= y)
+              x -= y;
+          }
+      }
+    else
+      {
+        y *= 0.5;
+        if (x > y)
+          {
+            x -= y;
+            if (x >= y)
+              x -= y;
+          }
+      }
+    return negative ? -x : x;
+  }
+
+  /**
+   * Take the nearest integer that is that is greater than or equal to the
+   * argument. If the argument is NaN, infinite, or zero, the result is the
+   * same; if the argument is between -1 and 0, the result is negative zero.
+   * Note that <code>Math.ceil(x) == -Math.floor(-x)</code>.
+   *
+   * @param a the value to act upon
+   * @return the nearest integer &gt;= <code>a</code>
+   */
+  public static double ceil(double a)
+  {
+    return -floor(-a);
+  }
+
+  /**
+   * Take the nearest integer that is that is less than or equal to the
+   * argument. If the argument is NaN, infinite, or zero, the result is the
+   * same. Note that <code>Math.ceil(x) == -Math.floor(-x)</code>.
+   *
+   * @param a the value to act upon
+   * @return the nearest integer &lt;= <code>a</code>
+   */
+  public static double floor(double a)
+  {
+    double x = abs(a);
+    if (! (x < TWO_52) || (long) a == a)
+      return a; // No fraction bits; includes NaN and infinity.
+    if (x < 1)
+      return a >= 0 ? 0 * a : -1; // Worry about signed zero.
+    return a < 0 ? (long) a - 1.0 : (long) a; // Cast to long truncates.
+  }
+
+  /**
+   * Take the nearest integer to the argument.  If it is exactly between
+   * two integers, the even integer is taken. If the argument is NaN,
+   * infinite, or zero, the result is the same.
+   *
+   * @param a the value to act upon
+   * @return the nearest integer to <code>a</code>
+   */
+  public static double rint(double a)
+  {
+    double x = abs(a);
+    if (! (x < TWO_52))
+      return a; // No fraction bits; includes NaN and infinity.
+    if (x <= 0.5)
+      return 0 * a; // Worry about signed zero.
+    if (x % 2 <= 0.5)
+      return (long) a; // Catch round down to even.
+    return (long) (a + (a < 0 ? -0.5 : 0.5)); // Cast to long truncates.
+  }
+
+  /**
+   * Take the nearest integer to the argument.  This is equivalent to
+   * <code>(int) Math.floor(f + 0.5f)</code>. If the argument is NaN, the
+   * result is 0; otherwise if the argument is outside the range of int, the
+   * result will be Integer.MIN_VALUE or Integer.MAX_VALUE, as appropriate.
+   *
+   * @param f the argument to round
+   * @return the nearest integer to the argument
+   * @see Integer#MIN_VALUE
+   * @see Integer#MAX_VALUE
+   */
+  public static int round(float f)
+  {
+    return (int) floor(f + 0.5f);
+  }
+
+  /**
+   * Take the nearest long to the argument.  This is equivalent to
+   * <code>(long) Math.floor(d + 0.5)</code>. If the argument is NaN, the
+   * result is 0; otherwise if the argument is outside the range of long, the
+   * result will be Long.MIN_VALUE or Long.MAX_VALUE, as appropriate.
+   *
+   * @param d the argument to round
+   * @return the nearest long to the argument
+   * @see Long#MIN_VALUE
+   * @see Long#MAX_VALUE
+   */
+  public static long round(double d)
+  {
+    return (long) floor(d + 0.5);
+  }
+
+  /**
+   * Get a random number.  This behaves like Random.nextDouble(), seeded by
+   * System.currentTimeMillis() when first called. In other words, the number
+   * is from a pseudorandom sequence, and lies in the range [+0.0, 1.0).
+   * This random sequence is only used by this method, and is threadsafe,
+   * although you may want your own random number generator if it is shared
+   * among threads.
+   *
+   * @return a random number
+   * @see Random#nextDouble()
+   * @see System#currentTimeMillis()
+   */
+  public static synchronized double random()
+  {
+    if (rand == null)
+      rand = new Random();
+    return rand.nextDouble();
+  }
+
+  /**
+   * Convert from degrees to radians. The formula for this is
+   * radians = degrees * (pi/180); however it is not always exact given the
+   * limitations of floating point numbers.
+   *
+   * @param degrees an angle in degrees
+   * @return the angle in radians
+   */
+  public static double toRadians(double degrees)
+  {
+    return degrees * (PI / 180);
+  }
+
+  /**
+   * Convert from radians to degrees. The formula for this is
+   * degrees = radians * (180/pi); however it is not always exact given the
+   * limitations of floating point numbers.
+   *
+   * @param rads an angle in radians
+   * @return the angle in degrees
+   */
+  public static double toDegrees(double rads)
+  {
+    return rads * (180 / PI);
+  }
+
+  /**
+   * Constants for scaling and comparing doubles by powers of 2. The compiler
+   * must automatically inline constructs like (1/TWO_54), so we don't list
+   * negative powers of two here.
+   */
+  private static final double
+    TWO_16 = 0x10000, // Long bits 0x40f0000000000000L.
+    TWO_20 = 0x100000, // Long bits 0x4130000000000000L.
+    TWO_24 = 0x1000000, // Long bits 0x4170000000000000L.
+    TWO_27 = 0x8000000, // Long bits 0x41a0000000000000L.
+    TWO_28 = 0x10000000, // Long bits 0x41b0000000000000L.
+    TWO_29 = 0x20000000, // Long bits 0x41c0000000000000L.
+    TWO_31 = 0x80000000L, // Long bits 0x41e0000000000000L.
+    TWO_49 = 0x2000000000000L, // Long bits 0x4300000000000000L.
+    TWO_52 = 0x10000000000000L, // Long bits 0x4330000000000000L.
+    TWO_54 = 0x40000000000000L, // Long bits 0x4350000000000000L.
+    TWO_57 = 0x200000000000000L, // Long bits 0x4380000000000000L.
+    TWO_60 = 0x1000000000000000L, // Long bits 0x43b0000000000000L.
+    TWO_64 = 1.8446744073709552e19, // Long bits 0x43f0000000000000L.
+    TWO_66 = 7.378697629483821e19, // Long bits 0x4410000000000000L.
+    TWO_1023 = 8.98846567431158e307; // Long bits 0x7fe0000000000000L.
+
+  /**
+   * Super precision for 2/pi in 24-bit chunks, for use in
+   * {@link #remPiOver2()}.
+   */
+  private static final int TWO_OVER_PI[] = {
+    0xa2f983, 0x6e4e44, 0x1529fc, 0x2757d1, 0xf534dd, 0xc0db62,
+    0x95993c, 0x439041, 0xfe5163, 0xabdebb, 0xc561b7, 0x246e3a,
+    0x424dd2, 0xe00649, 0x2eea09, 0xd1921c, 0xfe1deb, 0x1cb129,
+    0xa73ee8, 0x8235f5, 0x2ebb44, 0x84e99c, 0x7026b4, 0x5f7e41,
+    0x3991d6, 0x398353, 0x39f49c, 0x845f8b, 0xbdf928, 0x3b1ff8,
+    0x97ffde, 0x05980f, 0xef2f11, 0x8b5a0a, 0x6d1f6d, 0x367ecf,
+    0x27cb09, 0xb74f46, 0x3f669e, 0x5fea2d, 0x7527ba, 0xc7ebe5,
+    0xf17b3d, 0x0739f7, 0x8a5292, 0xea6bfb, 0x5fb11f, 0x8d5d08,
+    0x560330, 0x46fc7b, 0x6babf0, 0xcfbc20, 0x9af436, 0x1da9e3,
+    0x91615e, 0xe61b08, 0x659985, 0x5f14a0, 0x68408d, 0xffd880,
+    0x4d7327, 0x310606, 0x1556ca, 0x73a8c9, 0x60e27b, 0xc08c6b,
+  };
+
+  /**
+   * Super precision for pi/2 in 24-bit chunks, for use in
+   * {@link #remPiOver2()}.
+   */
+  private static final double PI_OVER_TWO[] = {
+    1.570796251296997, // Long bits 0x3ff921fb40000000L.
+    7.549789415861596e-8, // Long bits 0x3e74442d00000000L.
+    5.390302529957765e-15, // Long bits 0x3cf8469880000000L.
+    3.282003415807913e-22, // Long bits 0x3b78cc5160000000L.
+    1.270655753080676e-29, // Long bits 0x39f01b8380000000L.
+    1.2293330898111133e-36, // Long bits 0x387a252040000000L.
+    2.7337005381646456e-44, // Long bits 0x36e3822280000000L.
+    2.1674168387780482e-51, // Long bits 0x3569f31d00000000L.
+  };
+
+  /**
+   * More constants related to pi, used in {@link #remPiOver2()} and
+   * elsewhere.
+   */
+  private static final double
+    PI_L = 1.2246467991473532e-16, // Long bits 0x3ca1a62633145c07L.
+    PIO2_1 = 1.5707963267341256, // Long bits 0x3ff921fb54400000L.
+    PIO2_1L = 6.077100506506192e-11, // Long bits 0x3dd0b4611a626331L.
+    PIO2_2 = 6.077100506303966e-11, // Long bits 0x3dd0b4611a600000L.
+    PIO2_2L = 2.0222662487959506e-21, // Long bits 0x3ba3198a2e037073L.
+    PIO2_3 = 2.0222662487111665e-21, // Long bits 0x3ba3198a2e000000L.
+    PIO2_3L = 8.4784276603689e-32; // Long bits 0x397b839a252049c1L.
+
+  /**
+   * Natural log and square root constants, for calculation of
+   * {@link #exp(double)}, {@link #log(double)} and
+   * {@link #power(double, double)}. CP is 2/(3*ln(2)).
+   */
+  private static final double
+    SQRT_1_5 = 1.224744871391589, // Long bits 0x3ff3988e1409212eL.
+    SQRT_2 = 1.4142135623730951, // Long bits 0x3ff6a09e667f3bcdL.
+    SQRT_3 = 1.7320508075688772, // Long bits 0x3ffbb67ae8584caaL.
+    EXP_LIMIT_H = 709.782712893384, // Long bits 0x40862e42fefa39efL.
+    EXP_LIMIT_L = -745.1332191019411, // Long bits 0xc0874910d52d3051L.
+    CP = 0.9617966939259756, // Long bits 0x3feec709dc3a03fdL.
+    CP_H = 0.9617967009544373, // Long bits 0x3feec709e0000000L.
+    CP_L = -7.028461650952758e-9, // Long bits 0xbe3e2fe0145b01f5L.
+    LN2 = 0.6931471805599453, // Long bits 0x3fe62e42fefa39efL.
+    LN2_H = 0.6931471803691238, // Long bits 0x3fe62e42fee00000L.
+    LN2_L = 1.9082149292705877e-10, // Long bits 0x3dea39ef35793c76L.
+    INV_LN2 = 1.4426950408889634, // Long bits 0x3ff71547652b82feL.
+    INV_LN2_H = 1.4426950216293335, // Long bits 0x3ff7154760000000L.
+    INV_LN2_L = 1.9259629911266175e-8; // Long bits 0x3e54ae0bf85ddf44L.
+
+  /**
+   * Constants for computing {@link #log(double)}.
+   */
+  private static final double
+    LG1 = 0.6666666666666735, // Long bits 0x3fe5555555555593L.
+    LG2 = 0.3999999999940942, // Long bits 0x3fd999999997fa04L.
+    LG3 = 0.2857142874366239, // Long bits 0x3fd2492494229359L.
+    LG4 = 0.22222198432149784, // Long bits 0x3fcc71c51d8e78afL.
+    LG5 = 0.1818357216161805, // Long bits 0x3fc7466496cb03deL.
+    LG6 = 0.15313837699209373, // Long bits 0x3fc39a09d078c69fL.
+    LG7 = 0.14798198605116586; // Long bits 0x3fc2f112df3e5244L.
+
+  /**
+   * Constants for computing {@link #pow(double, double)}. L and P are
+   * coefficients for series; OVT is -(1024-log2(ovfl+.5ulp)); and DP is ???.
+   * The P coefficients also calculate {@link #exp(double)}.
+   */
+  private static final double
+    L1 = 0.5999999999999946, // Long bits 0x3fe3333333333303L.
+    L2 = 0.4285714285785502, // Long bits 0x3fdb6db6db6fabffL.
+    L3 = 0.33333332981837743, // Long bits 0x3fd55555518f264dL.
+    L4 = 0.272728123808534, // Long bits 0x3fd17460a91d4101L.
+    L5 = 0.23066074577556175, // Long bits 0x3fcd864a93c9db65L.
+    L6 = 0.20697501780033842, // Long bits 0x3fca7e284a454eefL.
+    P1 = 0.16666666666666602, // Long bits 0x3fc555555555553eL.
+    P2 = -2.7777777777015593e-3, // Long bits 0xbf66c16c16bebd93L.
+    P3 = 6.613756321437934e-5, // Long bits 0x3f11566aaf25de2cL.
+    P4 = -1.6533902205465252e-6, // Long bits 0xbebbbd41c5d26bf1L.
+    P5 = 4.1381367970572385e-8, // Long bits 0x3e66376972bea4d0L.
+    DP_H = 0.5849624872207642, // Long bits 0x3fe2b80340000000L.
+    DP_L = 1.350039202129749e-8, // Long bits 0x3e4cfdeb43cfd006L.
+    OVT = 8.008566259537294e-17; // Long bits 0x3c971547652b82feL.
+
+  /**
+   * Coefficients for computing {@link #sin(double)}.
+   */
+  private static final double
+    S1 = -0.16666666666666632, // Long bits 0xbfc5555555555549L.
+    S2 = 8.33333333332249e-3, // Long bits 0x3f8111111110f8a6L.
+    S3 = -1.984126982985795e-4, // Long bits 0xbf2a01a019c161d5L.
+    S4 = 2.7557313707070068e-6, // Long bits 0x3ec71de357b1fe7dL.
+    S5 = -2.5050760253406863e-8, // Long bits 0xbe5ae5e68a2b9cebL.
+    S6 = 1.58969099521155e-10; // Long bits 0x3de5d93a5acfd57cL.
+
+  /**
+   * Coefficients for computing {@link #cos(double)}.
+   */
+  private static final double
+    C1 = 0.0416666666666666, // Long bits 0x3fa555555555554cL.
+    C2 = -1.388888888887411e-3, // Long bits 0xbf56c16c16c15177L.
+    C3 = 2.480158728947673e-5, // Long bits 0x3efa01a019cb1590L.
+    C4 = -2.7557314351390663e-7, // Long bits 0xbe927e4f809c52adL.
+    C5 = 2.087572321298175e-9, // Long bits 0x3e21ee9ebdb4b1c4L.
+    C6 = -1.1359647557788195e-11; // Long bits 0xbda8fae9be8838d4L.
+
+  /**
+   * Coefficients for computing {@link #tan(double)}.
+   */
+  private static final double
+    T0 = 0.3333333333333341, // Long bits 0x3fd5555555555563L.
+    T1 = 0.13333333333320124, // Long bits 0x3fc111111110fe7aL.
+    T2 = 0.05396825397622605, // Long bits 0x3faba1ba1bb341feL.
+    T3 = 0.021869488294859542, // Long bits 0x3f9664f48406d637L.
+    T4 = 8.8632398235993e-3, // Long bits 0x3f8226e3e96e8493L.
+    T5 = 3.5920791075913124e-3, // Long bits 0x3f6d6d22c9560328L.
+    T6 = 1.4562094543252903e-3, // Long bits 0x3f57dbc8fee08315L.
+    T7 = 5.880412408202641e-4, // Long bits 0x3f4344d8f2f26501L.
+    T8 = 2.464631348184699e-4, // Long bits 0x3f3026f71a8d1068L.
+    T9 = 7.817944429395571e-5, // Long bits 0x3f147e88a03792a6L.
+    T10 = 7.140724913826082e-5, // Long bits 0x3f12b80f32f0a7e9L.
+    T11 = -1.8558637485527546e-5, // Long bits 0xbef375cbdb605373L.
+    T12 = 2.590730518636337e-5; // Long bits 0x3efb2a7074bf7ad4L.
+
+  /**
+   * Coefficients for computing {@link #asin(double)} and
+   * {@link #acos(double)}.
+   */
+  private static final double
+    PS0 = 0.16666666666666666, // Long bits 0x3fc5555555555555L.
+    PS1 = -0.3255658186224009, // Long bits 0xbfd4d61203eb6f7dL.
+    PS2 = 0.20121253213486293, // Long bits 0x3fc9c1550e884455L.
+    PS3 = -0.04005553450067941, // Long bits 0xbfa48228b5688f3bL.
+    PS4 = 7.915349942898145e-4, // Long bits 0x3f49efe07501b288L.
+    PS5 = 3.479331075960212e-5, // Long bits 0x3f023de10dfdf709L.
+    QS1 = -2.403394911734414, // Long bits 0xc0033a271c8a2d4bL.
+    QS2 = 2.0209457602335057, // Long bits 0x40002ae59c598ac8L.
+    QS3 = -0.6882839716054533, // Long bits 0xbfe6066c1b8d0159L.
+    QS4 = 0.07703815055590194; // Long bits 0x3fb3b8c5b12e9282L.
+
+  /**
+   * Coefficients for computing {@link #atan(double)}.
+   */
+  private static final double
+    ATAN_0_5H = 0.4636476090008061, // Long bits 0x3fddac670561bb4fL.
+    ATAN_0_5L = 2.2698777452961687e-17, // Long bits 0x3c7a2b7f222f65e2L.
+    ATAN_1_5H = 0.982793723247329, // Long bits 0x3fef730bd281f69bL.
+    ATAN_1_5L = 1.3903311031230998e-17, // Long bits 0x3c7007887af0cbbdL.
+    AT0 = 0.3333333333333293, // Long bits 0x3fd555555555550dL.
+    AT1 = -0.19999999999876483, // Long bits 0xbfc999999998ebc4L.
+    AT2 = 0.14285714272503466, // Long bits 0x3fc24924920083ffL.
+    AT3 = -0.11111110405462356, // Long bits 0xbfbc71c6fe231671L.
+    AT4 = 0.09090887133436507, // Long bits 0x3fb745cdc54c206eL.
+    AT5 = -0.0769187620504483, // Long bits 0xbfb3b0f2af749a6dL.
+    AT6 = 0.06661073137387531, // Long bits 0x3fb10d66a0d03d51L.
+    AT7 = -0.058335701337905735, // Long bits 0xbfadde2d52defd9aL.
+    AT8 = 0.049768779946159324, // Long bits 0x3fa97b4b24760debL.
+    AT9 = -0.036531572744216916, // Long bits 0xbfa2b4442c6a6c2fL.
+    AT10 = 0.016285820115365782; // Long bits 0x3f90ad3ae322da11L.
+
+  /**
+   * Helper function for reducing an angle to a multiple of pi/2 within
+   * [-pi/4, pi/4].
+   *
+   * @param x the angle; not infinity or NaN, and outside pi/4
+   * @param y an array of 2 doubles modified to hold the remander x % pi/2
+   * @return the quadrant of the result, mod 4: 0: [-pi/4, pi/4],
+   *         1: [pi/4, 3*pi/4], 2: [3*pi/4, 5*pi/4], 3: [-3*pi/4, -pi/4]
+   */
+  private static int remPiOver2(double x, double[] y)
+  {
+    boolean negative = x < 0;
+    x = abs(x);
+    double z;
+    int n;
+    if (Configuration.DEBUG && (x <= PI / 4 || x != x
+                                || x == Double.POSITIVE_INFINITY))
+      throw new InternalError("Assertion failure");
+    if (x < 3 * PI / 4) // If |x| is small.
+      {
+        z = x - PIO2_1;
+        if ((float) x != (float) (PI / 2)) // 33+53 bit pi is good enough.
+          {
+            y[0] = z - PIO2_1L;
+            y[1] = z - y[0] - PIO2_1L;
+          }
+        else // Near pi/2, use 33+33+53 bit pi.
+          {
+            z -= PIO2_2;
+            y[0] = z - PIO2_2L;
+            y[1] = z - y[0] - PIO2_2L;
+          }
+        n = 1;
+      }
+    else if (x <= TWO_20 * PI / 2) // Medium size.
+      {
+        n = (int) (2 / PI * x + 0.5);
+        z = x - n * PIO2_1;
+        double w = n * PIO2_1L; // First round good to 85 bits.
+        y[0] = z - w;
+        if (n >= 32 || (float) x == (float) (w))
+          {
+            if (x / y[0] >= TWO_16) // Second iteration, good to 118 bits.
+              {
+                double t = z;
+                w = n * PIO2_2;
+                z = t - w;
+                w = n * PIO2_2L - (t - z - w);
+                y[0] = z - w;
+                if (x / y[0] >= TWO_49) // Third iteration, 151 bits accuracy.
+                  {
+                    t = z;
+                    w = n * PIO2_3;
+                    z = t - w;
+                    w = n * PIO2_3L - (t - z - w);
+                    y[0] = z - w;
+                  }
+              }
+          }
+        y[1] = z - y[0] - w;
+      }
+    else
+      {
+        // All other (large) arguments.
+        int e0 = (int) (Double.doubleToLongBits(x) >> 52) - 1046;
+        z = scale(x, -e0); // e0 = ilogb(z) - 23.
+        double[] tx = new double[3];
+        for (int i = 0; i < 2; i++)
+          {
+            tx[i] = (int) z;
+            z = (z - tx[i]) * TWO_24;
+          }
+        tx[2] = z;
+        int nx = 2;
+        while (tx[nx] == 0)
+          nx--;
+        n = remPiOver2(tx, y, e0, nx);
+      }
+    if (negative)
+      {
+        y[0] = -y[0];
+        y[1] = -y[1];
+        return -n;
+      }
+    return n;
+  }
+
+  /**
+   * Helper function for reducing an angle to a multiple of pi/2 within
+   * [-pi/4, pi/4].
+   *
+   * @param x the positive angle, broken into 24-bit chunks
+   * @param y an array of 2 doubles modified to hold the remander x % pi/2
+   * @param e0 the exponent of x[0]
+   * @param nx the last index used in x
+   * @return the quadrant of the result, mod 4: 0: [-pi/4, pi/4],
+   *         1: [pi/4, 3*pi/4], 2: [3*pi/4, 5*pi/4], 3: [-3*pi/4, -pi/4]
+   */
+  private static int remPiOver2(double[] x, double[] y, int e0, int nx)
+  {
+    int i;
+    int ih;
+    int n;
+    double fw;
+    double z;
+    int[] iq = new int[20];
+    double[] f = new double[20];
+    double[] q = new double[20];
+    boolean recompute = false;
+
+    // Initialize jk, jz, jv, q0; note that 3>q0.
+    int jk = 4;
+    int jz = jk;
+    int jv = max((e0 - 3) / 24, 0);
+    int q0 = e0 - 24 * (jv + 1);
+
+    // Set up f[0] to f[nx+jk] where f[nx+jk] = TWO_OVER_PI[jv+jk].
+    int j = jv - nx;
+    int m = nx + jk;
+    for (i = 0; i <= m; i++, j++)
+      f[i] = (j < 0) ? 0 : TWO_OVER_PI[j];
+
+    // Compute q[0],q[1],...q[jk].
+    for (i = 0; i <= jk; i++)
+      {
+        for (j = 0, fw = 0; j <= nx; j++)
+          fw += x[j] * f[nx + i - j];
+        q[i] = fw;
+      }
+
+    do
+      {
+        // Distill q[] into iq[] reversingly.
+        for (i = 0, j = jz, z = q[jz]; j > 0; i++, j--)
+          {
+            fw = (int) (1 / TWO_24 * z);
+            iq[i] = (int) (z - TWO_24 * fw);
+            z = q[j - 1] + fw;
+          }
+
+        // Compute n.
+        z = scale(z, q0);
+        z -= 8 * floor(z * 0.125); // Trim off integer >= 8.
+        n = (int) z;
+        z -= n;
+        ih = 0;
+        if (q0 > 0) // Need iq[jz-1] to determine n.
+          {
+            i = iq[jz - 1] >> (24 - q0);
+            n += i;
+            iq[jz - 1] -= i << (24 - q0);
+            ih = iq[jz - 1] >> (23 - q0);
+          }
+        else if (q0 == 0)
+          ih = iq[jz - 1] >> 23;
+        else if (z >= 0.5)
+          ih = 2;
+
+        if (ih > 0) // If q > 0.5.
+          {
+            n += 1;
+            int carry = 0;
+            for (i = 0; i < jz; i++) // Compute 1-q.
+              {
+                j = iq[i];
+                if (carry == 0)
+                  {
+                    if (j != 0)
+                      {
+                        carry = 1;
+                        iq[i] = 0x1000000 - j;
+                      }
+                  }
+                else
+                  iq[i] = 0xffffff - j;
+              }
+            switch (q0)
+              {
+              case 1: // Rare case: chance is 1 in 12 for non-default.
+                iq[jz - 1] &= 0x7fffff;
+                break;
+              case 2:
+                iq[jz - 1] &= 0x3fffff;
+              }
+            if (ih == 2)
+              {
+                z = 1 - z;
+                if (carry != 0)
+                  z -= scale(1, q0);
+              }
+          }
+
+        // Check if recomputation is needed.
+        if (z == 0)
+          {
+            j = 0;
+            for (i = jz - 1; i >= jk; i--)
+              j |= iq[i];
+            if (j == 0) // Need recomputation.
+              {
+                int k;
+                for (k = 1; iq[jk - k] == 0; k++); // k = no. of terms needed.
+
+                for (i = jz + 1; i <= jz + k; i++) // Add q[jz+1] to q[jz+k].
+                  {
+                    f[nx + i] = TWO_OVER_PI[jv + i];
+                    for (j = 0, fw = 0; j <= nx; j++)
+                      fw += x[j] * f[nx + i - j];
+                    q[i] = fw;
+                  }
+                jz += k;
+                recompute = true;
+              }
+          }
+      }
+    while (recompute);
+
+    // Chop off zero terms.
+    if (z == 0)
+      {
+        jz--;
+        q0 -= 24;
+        while (iq[jz] == 0)
+          {
+            jz--;
+            q0 -= 24;
+          }
+      }
+    else // Break z into 24-bit if necessary.
+      {
+        z = scale(z, -q0);
+        if (z >= TWO_24)
+          {
+            fw = (int) (1 / TWO_24 * z);
+            iq[jz] = (int) (z - TWO_24 * fw);
+            jz++;
+            q0 += 24;
+            iq[jz] = (int) fw;
+          }
+        else
+          iq[jz] = (int) z;
+      }
+
+    // Convert integer "bit" chunk to floating-point value.
+    fw = scale(1, q0);
+    for (i = jz; i >= 0; i--)
+      {
+        q[i] = fw * iq[i];
+        fw *= 1 / TWO_24;
+      }
+
+    // Compute PI_OVER_TWO[0,...,jk]*q[jz,...,0].
+    double[] fq = new double[20];
+    for (i = jz; i >= 0; i--)
+      {
+        fw = 0;
+        for (int k = 0; k <= jk && k <= jz - i; k++)
+          fw += PI_OVER_TWO[k] * q[i + k];
+        fq[jz - i] = fw;
+      }
+
+    // Compress fq[] into y[].
+    fw = 0;
+    for (i = jz; i >= 0; i--)
+      fw += fq[i];
+    y[0] = (ih == 0) ? fw : -fw;
+    fw = fq[0] - fw;
+    for (i = 1; i <= jz; i++)
+      fw += fq[i];
+    y[1] = (ih == 0) ? fw : -fw;
+    return n;
+  }
+
+  /**
+   * Helper method for scaling a double by a power of 2.
+   *
+   * @param x the double
+   * @param n the scale; |n| < 2048
+   * @return x * 2**n
+   */
+  private static double scale(double x, int n)
+  {
+    if (Configuration.DEBUG && abs(n) >= 2048)
+      throw new InternalError("Assertion failure");
+    if (x == 0 || x == Double.NEGATIVE_INFINITY
+        || ! (x < Double.POSITIVE_INFINITY) || n == 0)
+      return x;
+    long bits = Double.doubleToLongBits(x);
+    int exp = (int) (bits >> 52) & 0x7ff;
+    if (exp == 0) // Subnormal x.
+      {
+        x *= TWO_54;
+        exp = ((int) (Double.doubleToLongBits(x) >> 52) & 0x7ff) - 54;
+      }
+    exp += n;
+    if (exp > 0x7fe) // Overflow.
+      return Double.POSITIVE_INFINITY * x;
+    if (exp > 0) // Normal.
+      return Double.longBitsToDouble((bits & 0x800fffffffffffffL)
+                                     | ((long) exp << 52));
+    if (exp <= -54)
+      return 0 * x; // Underflow.
+    exp += 54; // Subnormal result.
+    x = Double.longBitsToDouble((bits & 0x800fffffffffffffL)
+                                | ((long) exp << 52));
+    return x * (1 / TWO_54);
+  }
+
+  /**
+   * Helper trig function; computes sin in range [-pi/4, pi/4].
+   *
+   * @param x angle within about pi/4
+   * @param y tail of x, created by remPiOver2
+   * @return sin(x+y)
+   */
+  private static double sin(double x, double y)
+  {
+    if (Configuration.DEBUG && abs(x + y) > 0.7854)
+      throw new InternalError("Assertion failure");
+    if (abs(x) < 1 / TWO_27)
+      return x;  // If |x| ~< 2**-27, already know answer.
+
+    double z = x * x;
+    double v = z * x;
+    double r = S2 + z * (S3 + z * (S4 + z * (S5 + z * S6)));
+    if (y == 0)
+      return x + v * (S1 + z * r);
+    return x - ((z * (0.5 * y - v * r) - y) - v * S1);
+  }
+
+  /**
+   * Helper trig function; computes cos in range [-pi/4, pi/4].
+   *
+   * @param x angle within about pi/4
+   * @param y tail of x, created by remPiOver2
+   * @return cos(x+y)
+   */
+  private static double cos(double x, double y)
+  {
+    if (Configuration.DEBUG && abs(x + y) > 0.7854)
+      throw new InternalError("Assertion failure");
+    x = abs(x);
+    if (x < 1 / TWO_27)
+      return 1;  // If |x| ~< 2**-27, already know answer.
+
+    double z = x * x;
+    double r = z * (C1 + z * (C2 + z * (C3 + z * (C4 + z * (C5 + z * C6)))));
+
+    if (x < 0.3)
+      return 1 - (0.5 * z - (z * r - x * y));
+
+    double qx = (x > 0.78125) ? 0.28125 : (x * 0.25);
+    return 1 - qx - ((0.5 * z - qx) - (z * r - x * y));
+  }
+
+  /**
+   * Helper trig function; computes tan in range [-pi/4, pi/4].
+   *
+   * @param x angle within about pi/4
+   * @param y tail of x, created by remPiOver2
+   * @param invert true iff -1/tan should be returned instead
+   * @return tan(x+y)
+   */
+  private static double tan(double x, double y, boolean invert)
+  {
+    // PI/2 is irrational, so no double is a perfect multiple of it.
+    if (Configuration.DEBUG && (abs(x + y) > 0.7854 || (x == 0 && invert)))
+      throw new InternalError("Assertion failure");
+    boolean negative = x < 0;
+    if (negative)
+      {
+        x = -x;
+        y = -y;
+      }
+    if (x < 1 / TWO_28) // If |x| ~< 2**-28, already know answer.
+      return (negative ? -1 : 1) * (invert ? -1 / x : x);
+
+    double z;
+    double w;
+    boolean large = x >= 0.6744;
+    if (large)
+      {
+        z = PI / 4 - x;
+        w = PI_L / 4 - y;
+        x = z + w;
+        y = 0;
+      }
+    z = x * x;
+    w = z * z;
+    // Break x**5*(T1+x**2*T2+...) into
+    //   x**5(T1+x**4*T3+...+x**20*T11)
+    // + x**5(x**2*(T2+x**4*T4+...+x**22*T12)).
+    double r = T1 + w * (T3 + w * (T5 + w * (T7 + w * (T9 + w * T11))));
+    double v = z * (T2 + w * (T4 + w * (T6 + w * (T8 + w * (T10 + w * T12)))));
+    double s = z * x;
+    r = y + z * (s * (r + v) + y);
+    r += T0 * s;
+    w = x + r;
+    if (large)
+      {
+        v = invert ? -1 : 1;
+        return (negative ? -1 : 1) * (v - 2 * (x - (w * w / (w + v) - r)));
+      }
+    if (! invert)
+      return w;
+
+    // Compute -1.0/(x+r) accurately.
+    z = (float) w;
+    v = r - (z - x);
+    double a = -1 / w;
+    double t = (float) a;
+    return t + a * (1 + t * z + t * v);
+  }
+}

--------------1D7045C4B216ECDF42498DDD--



From ebb9@email.byu.edu Thu Feb 14 21:34:09 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16bYCO-0008H6-00; Thu, 14 Feb 2002 21:34:08 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020215023358.NQZK2626.rwcrmhc51.attbi.com@email.byu.edu>;
          Fri, 15 Feb 2002 02:33:58 +0000
Message-ID: <3C6C7375.DC98215E@email.byu.edu>
Date: Thu, 14 Feb 2002 19:33:26 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
CC: Classpath list <classpath@gnu.org>
Subject: Re: java.lang.StrictMath
References: <3C6C23B2.44F2C7F6@email.byu.edu> <m3eljnmyku.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones wrote:
> 
> I think it is fine.  I noticed this odd little class in the 1.3
> javadocs a couple of months ago and it says explicitly that it uses
> fdlibm, of course it says that in contrast to what it used elsewhere
> (pure Java, whee...).

The javadocs state that the class StrictMath must have bit-identical
results to the fdlibm library, after translating the C algorithms to
Java types.  StrictMath is required to be implemented in pure Java, not
in native code; it is only Math which permits you to use native code
(and inline things like cos() and sin()).

At any rate, I went ahead and committed the new file.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From bryce@waitaki.otago.ac.nz Thu Feb 14 21:40:31 2002
Received: from waitaki.otago.ac.nz ([139.80.75.140])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bYIX-0000Qa-00
	for <classpath@gnu.org>; Thu, 14 Feb 2002 21:40:30 -0500
Received: from waitaki.otago.ac.nz (IDENT:bryce@reason.otago.ac.nz [139.80.119.17])
	by waitaki.otago.ac.nz (8.11.6/8.11.2) with ESMTP id g1F2eIO07611;
	Fri, 15 Feb 2002 15:40:18 +1300
Message-ID: <3C6C751A.60006@waitaki.otago.ac.nz>
Date: Fri, 15 Feb 2002 15:40:26 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: Eric Blake <ebb9@email.byu.edu>, classpath@gnu.org
Subject: Re: java.lang.StrictMath
References: <3C6C23B2.44F2C7F6@email.byu.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake wrote:

>OK to commit?  If it weren't for this little section of StrictMath.java,
>I would have committed without asking.  But since it involves copyright
>issues, I want to make sure.  I don't think I tainted myself, since the
>copyright notice of fdlibm (the source for my algorithms) does say it is
>freely usable.
>

This is very cool! Thanks for doing this. Please consider it 
pre-approved for libgcj as well.

regards

Bryce.




From per@bothner.com Thu Feb 14 23:06:39 2002
Received: from adsl-216-102-199-253.dsl.snfc21.pacbell.net ([216.102.199.253] helo=bothner.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bZdu-0006YS-00
	for <classpath@gnu.org>; Thu, 14 Feb 2002 23:06:38 -0500
Received: from bothner.com (eureka.bothner.com [192.168.1.9])
	by bothner.com (8.11.6/8.11.6) with ESMTP id g1F4AQp06218;
	Thu, 14 Feb 2002 20:10:27 -0800
Message-ID: <3C6C897A.2080005@bothner.com>
Date: Thu, 14 Feb 2002 20:07:22 -0800
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020208
X-Accept-Language: en-us
MIME-Version: 1.0
To: Eric Blake <ebb9@email.byu.edu>
CC: Classpath list <classpath@gnu.org>
Subject: Re: java.lang.StrictMath
References: <3C6C23B2.44F2C7F6@email.byu.edu> <m3eljnmyku.fsf@lyta.haphazard.org> <3C6C7375.DC98215E@email.byu.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake wrote:
> StrictMath is required to be implemented in pure Java, not
> in native code;

Where is this peculiar requirement stated?  No proper
specification would make any such requirement (not to
suggest that Java has a proper specification) - most
standards have an "as-if" rule:  The implementation must
behave *as if* it used the specified algorithm or code,
but as long as no valid program can tell the difference,
the implementation is free to use some other algorithm.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/



From tromey@creche.cygnus.com Fri Feb 15 01:25:21 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16bbo9-0000Z4-00; Fri, 15 Feb 2002 01:25:21 -0500
Received: from creche.cygnus.com (ta0199.peakpeak.com [204.144.244.199])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id XAA20385;
	Thu, 14 Feb 2002 23:25:18 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id XAA04706;
	Thu, 14 Feb 2002 23:48:49 -0700
To: Eric Blake <ebb9@email.byu.edu>
Cc: Brian Jones <cbj@gnu.org>, Classpath list <classpath@gnu.org>
Subject: Re: java.lang.StrictMath
References: <3C6C23B2.44F2C7F6@email.byu.edu> <m3eljnmyku.fsf@lyta.haphazard.org> <3C6C7375.DC98215E@email.byu.edu>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  I want another RE-WRITE on my CAESAR SALAD!!
Date: 14 Feb 2002 23:48:48 -0700
In-Reply-To: Eric Blake's message of "Thu, 14 Feb 2002 19:33:26 -0700"
Message-ID: <87y9hvutnz.fsf@creche.redhat.com>
Lines: 11
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Eric" == Eric Blake <ebb9@email.byu.edu> writes:

Eric> StrictMath is required to be implemented in pure Java

How curious.
BTW, fdlibm is fine to use.  We already use it in libgcj.

Thanks for doing this.  Now all we have to do is implement strictfp in
gcj :-)

Tom


From ebb9@email.byu.edu Fri Feb 15 01:40:13 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16bc2W-0002hC-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 01:40:13 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020215064011.TCXI2626.rwcrmhc51.attbi.com@email.byu.edu>;
          Fri, 15 Feb 2002 06:40:11 +0000
Message-ID: <3C6C94C7.3C953EBE@email.byu.edu>
Date: Thu, 14 Feb 2002 21:55:35 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Per Bothner <per@bothner.com>
CC: Classpath list <classpath@gnu.org>
Subject: Re: java.lang.StrictMath
References: <3C6C23B2.44F2C7F6@email.byu.edu>
	 <m3eljnmyku.fsf@lyta.haphazard.org> <3C6C7375.DC98215E@email.byu.edu> <3C6C897A.2080005@bothner.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hmm, maybe you are right.  On second reading, Sun specifies the
following in StrictMath:

"To help ensure portability of Java programs, the definitions of many of
the numeric functions in this package require that they produce the same
results as certain published algorithms.... These algorithms, which are
written in the C programming language, are then to be understood as
executed with all floating-point operations following the rules of Java
floating-point arithmetic."

Then, in Math, they state:

"By default many of the Math methods simply call the equivalent method
in StrictMath for their implementation. Code generators are encouraged
to use platform-specific native libraries or microprocessor
instructions, where available, to provide higher-performance
implementations of Math methods. Such higher-performance implementations
still must conform to the specification for Math."

I had interpreted it to mean that Math may be native, but StrictMath
should be pure.  Besides, the less native code there is, the less
maintainance problems and more portable Classpath becomes.  But maybe it
is worth it after all for StrictMath to have native implementations,
provided such implementations match the ones I just submitted in the
Java language.  Is the overhead of calling a native method offset by the
speed of doing this number crunching without going through bytecode?

Per Bothner wrote:
> 
> Eric Blake wrote:
> > StrictMath is required to be implemented in pure Java, not
> > in native code;
> 
> Where is this peculiar requirement stated?  No proper
> specification would make any such requirement (not to
> suggest that Java has a proper specification) - most
> standards have an "as-if" rule:  The implementation must
> behave *as if* it used the specified algorithm or code,
> but as long as no valid program can tell the difference,
> the implementation is free to use some other algorithm.
> --
>         --Per Bothner
> per@bothner.com   http://www.bothner.com/per/

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer



From per@bothner.com Fri Feb 15 01:54:24 2002
Received: from adsl-216-102-199-253.dsl.snfc21.pacbell.net ([216.102.199.253] helo=bothner.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bcGF-00041q-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 01:54:23 -0500
Received: from bothner.com (eureka.bothner.com [192.168.1.9])
	by bothner.com (8.11.6/8.11.6) with ESMTP id g1F6wAp07079;
	Thu, 14 Feb 2002 22:58:10 -0800
Message-ID: <3C6CB0CA.3060600@bothner.com>
Date: Thu, 14 Feb 2002 22:55:06 -0800
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020208
X-Accept-Language: en-us
MIME-Version: 1.0
To: Eric Blake <ebb9@email.byu.edu>
CC: Classpath list <classpath@gnu.org>
Subject: Re: java.lang.StrictMath
References: <3C6C23B2.44F2C7F6@email.byu.edu>	 <m3eljnmyku.fsf@lyta.haphazard.org> <3C6C7375.DC98215E@email.byu.edu> <3C6C897A.2080005@bothner.com> <3C6C94C7.3C953EBE@email.byu.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake wrote:
> But maybe it
> is worth it after all for StrictMath to have native implementations,

Note I am not saying that StrictMath should have native implementations,
only that it *may*, *if* the results are the same.

> Is the overhead of calling a native method offset by the
> speed of doing this number crunching without going through bytecode?

It depends.  For GCJ, there is no overhead for calling a native method,
beyond the normal method calling overhead, which is the same as in C++.
(For virtual calls.  Interface calls are a different matter.)  For JDK,
or other system with a good JIT, it is probably faster to use Java code.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/



From bryce@waitaki.otago.ac.nz Fri Feb 15 02:02:28 2002
Received: from 210-86-30-45.adsl.xtra.co.nz ([210.86.30.45] helo=localhost.localdomain)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bcO3-0004Sh-00; Fri, 15 Feb 2002 02:02:27 -0500
Received: from waitaki.otago.ac.nz ([192.168.2.2])
	by localhost.localdomain (8.11.2/8.11.2) with ESMTP id g1F6dnf04272;
	Fri, 15 Feb 2002 19:39:49 +1300
Message-ID: <3C6CB279.1080003@waitaki.otago.ac.nz>
Date: Fri, 15 Feb 2002 20:02:17 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: tromey@redhat.com
CC: Eric Blake <ebb9@email.byu.edu>, Brian Jones <cbj@gnu.org>,
   Classpath list <classpath@gnu.org>, java@gcc.gnu.org
Subject: Re: java.lang.StrictMath
References: <3C6C23B2.44F2C7F6@email.byu.edu> <m3eljnmyku.fsf@lyta.haphazard.org> <3C6C7375.DC98215E@email.byu.edu> <87y9hvutnz.fsf@creche.redhat.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Tom Tromey wrote:

>>>>>>"Eric" == Eric Blake <ebb9@email.byu.edu> writes:
>>>>>>
>
>Eric> StrictMath is required to be implemented in pure Java
>
>How curious.
>BTW, fdlibm is fine to use.  We already use it in libgcj.
>
>Thanks for doing this.  Now all we have to do is implement strictfp in
>gcj :-)
>

Do you have any examples of how GCC is *not* strictfp compliant (at 
least on common platforms)? My understanding is that, by default, it 
tries to be strictly IEEE 754. On x86 it will store values to memory and 
make a function call to do FP arithmetic, unless -ffast-math is given 
which allows it to do inline math using (the 80-bit x87) FP registers.

So, unless I misunderstand something and there is more to it, we should 
make -ffast-math the default for Java except where strictfp is encountered.

regards

Bryce




From tromey@creche.cygnus.com Fri Feb 15 02:08:36 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16bcTy-0004hO-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 02:08:35 -0500
Received: from creche.cygnus.com (ta0199.peakpeak.com [204.144.244.199])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id AAA26642;
	Fri, 15 Feb 2002 00:08:28 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id AAA25404;
	Fri, 15 Feb 2002 00:31:59 -0700
To: Per Bothner <per@bothner.com>
Cc: Eric Blake <ebb9@email.byu.edu>, Classpath list <classpath@gnu.org>
Subject: Re: java.lang.StrictMath
References: <3C6C23B2.44F2C7F6@email.byu.edu> <m3eljnmyku.fsf@lyta.haphazard.org> <3C6C7375.DC98215E@email.byu.edu> <3C6C897A.2080005@bothner.com> <3C6C94C7.3C953EBE@email.byu.edu> <3C6CB0CA.3060600@bothner.com>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Why are these athletic shoe salesmen following me??
Date: 15 Feb 2002 00:31:59 -0700
In-Reply-To: Per Bothner's message of "Thu, 14 Feb 2002 22:55:06 -0800"
Message-ID: <87vgcztd3k.fsf@creche.redhat.com>
Lines: 22
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Per" == Per Bothner <per@bothner.com> writes:

Per> For JDK, or other system with a good JIT, it is probably faster
Per> to use Java code.

If the Java code is restricted enough then I think gcj will be as good
as C.

For best performance I think the code would have to:

* Not make static or final ("nonvirtual") method calls
  (These induce overhead relative to C++)
* Not use arrays
  (C++ does check bounds)
* Not "look like" it might throw an exception (this prevents
  reordering code)

There may be other restrictions that I can't think of.  These are
pretty restrictive, but the Math code might satisfy them.  I haven't
looked.

Tom


From brawer@acm.org Fri Feb 15 05:22:44 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bfVq-0003UW-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 05:22:42 -0500
Received: from [0.0.0.0] (195.15.167.19) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C6086B7000B1950 for classpath@gnu.org; Fri, 15 Feb 2002 11:21:46 +0100
From: Sascha Brawer <brawer@acm.org>
To: <classpath@gnu.org>
Subject: java.util.Hashtable.size()/isEmpty()
Date: Fri, 15 Feb 2002 11:19:15 +0100
Message-Id: <20020215101915.16680@pop.schoedler.ch>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hello,

the implementations of java.util.Hashtable.size() and
java.util.Hashtable.isEmpty() merely access a single integer member
field.  Since accesses to integer variables are required to be atomic, I
think these two methods don't need to be synchronized. Do people agree?
(Yes, it's a micro-optimization).


% cvs diff -u java/util/Hashtable.java 
Index: java/util/Hashtable.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/Hashtable.java,v
retrieving revision 1.21
diff -u -r1.21 Hashtable.java
--- java/util/Hashtable.java    22 Jan 2002 22:27:01 -0000      1.21
+++ java/util/Hashtable.java    15 Feb 2002 10:18:28 -0000
@@ -274,8 +274,11 @@
    * Returns the number of key-value mappings currently in this hashtable.
    * @return the size
    */
-  public synchronized int size()
+  public int size()
   {
+    /* This method does not need to be synchronized
+     * because accessing an integer field is atomic.
+     */
     return size;
   }
 
@@ -283,8 +286,11 @@
    * Returns true if there are no key-value mappings currently in this table.
    * @return <code>size() == 0</code>
    */
-  public synchronized boolean isEmpty()
+  public boolean isEmpty()
   {
+    /* This method does not need to be synchronized
+     * because accessing an integer field is atomic.
+     */
     return size == 0;
   }




From robilad@yahoo.com Fri Feb 15 05:37:39 2002
Received: from web10004.mail.yahoo.com ([216.136.130.40])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16bfkI-0005c5-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 05:37:38 -0500
Message-ID: <20020215103737.93102.qmail@web10004.mail.yahoo.com>
Received: from [139.19.4.127] by web10004.mail.yahoo.com via HTTP; Fri, 15 Feb 2002 02:37:37 PST
Date: Fri, 15 Feb 2002 02:37:37 -0800 (PST)
From: Dalibor Topic <robilad@yahoo.com>
Subject: Re: java.util.Hashtable.size()/isEmpty()
To: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
In-Reply-To: <20020215101915.16680@pop.schoedler.ch>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--- Sascha Brawer <brawer@acm.org> wrote:
> Hello,
> 
> the implementations of java.util.Hashtable.size()
> and
> java.util.Hashtable.isEmpty() merely access a single
> integer member
> field.  Since accesses to integer variables are
> required to be atomic, I
> think these two methods don't need to be
> synchronized. Do people agree?

They have never [1] been marked as synchronized in
official Java APIs anyway. Some methods have changed
their synchronization status between relases, so you
might want to look into that as well.

Have fun,

Dalibor Topic

[1] Java 1.0 - Java 1.4

=====
"Success means never having to wear a suit"

__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail 
http://mail.yahoo.com


From abies@pg.gda.pl Fri Feb 15 05:42:01 2002
Received: from mail.engelsinfo.de ([212.6.209.241])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bfoW-0005t9-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 05:42:01 -0500
Received: from pg.gda.pl (dvalin [212.6.209.232])
	by mail.engelsinfo.de (8.9.3+Sun/8.9.1) with ESMTP id LAA10924
	for <classpath@gnu.org>; Fri, 15 Feb 2002 11:32:19 +0100 (MET)
Message-ID: <3C6CE5D2.5020709@pg.gda.pl>
Date: Fri, 15 Feb 2002 11:41:22 +0100
From: Artur Biesiadowski <abies@pg.gda.pl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020202
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath <classpath@gnu.org>
Subject: Re: java.util.Hashtable.size()/isEmpty()
References: <20020215101915.16680@pop.schoedler.ch>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Sascha Brawer wrote:

>     * Returns true if there are no key-value mappings currently in this table.
>     * @return <code>size() == 0</code>
>     */
> -  public synchronized boolean isEmpty()
> +  public boolean isEmpty()
>    {
> +    /* This method does not need to be synchronized
> +     * because accessing an integer field is atomic.
> +     */
>      return size == 0;
>    }

If we are on the subject, I think it should check for
size() == 0
, not
size == 0
as subclasses would rather think that overriding size() is enough, not 
caring about overriding isEmpty(). Either that, or change the javadoc, 
but I think that size() == 0 would be more in line with sun spec - and 
OO-progamming in general :)

Artur



From brawer@acm.org Fri Feb 15 06:56:55 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bgz0-0008V4-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 06:56:54 -0500
Received: from [0.0.0.0] (195.15.167.169) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C6086B7000B3BE3 for classpath@gnu.org; Fri, 15 Feb 2002 12:56:08 +0100
From: Sascha Brawer <brawer@acm.org>
To: <classpath@gnu.org>
Subject: java.util.Properties -- make it thread-safe?
Date: Fri, 15 Feb 2002 12:53:24 +0100
Message-Id: <20020215115324.5604@pop.schoedler.ch>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hello,

this proposed patch would make the following methods of
java.util.Properties thread-safe. Comments?

- load
- save
- store
- propertyNames
- list(java.io.PrintWriter)
- list(java.io.PrintStream)

Classpath's implementation of other methods, like getProperty and
setProperty, are already thread-safe because Properties is a subclass of
java.util.Hashtable.

Sun's current JavaDoc (J2SE 1.4) does not mention whether
java.util.Properties is supposed to be usable from multiple threads
without additional synchronization.  However, one might be able to infer
it from the fact that it is a subclass of java.util.Hashtable.

Sun's JavaDoc (JDK1.1) specified only load and save as synchronized.
(Newer javadoc versions do not emit "synchronized" anymore).

Actually, I am curious what people do in general for determining what the
Sun reference implementation does about synchronization. 
Nondeterministic behavior is not easy to observe, after all.  And I think
running javap to see which methods are synchronized is out of the
question, since this would count as decompilation.

Or should one file bug reports with Sun, saying that the spec is not clear?

-- Sascha



cvs diff -u java/util/Properties.java
Index: java/util/Properties.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/Properties.java,v
retrieving revision 1.13
diff -u -r1.13 Properties.java
--- java/util/Properties.java   22 Jan 2002 22:27:01 -0000      1.13
+++ java/util/Properties.java   15 Feb 2002 11:07:14 -0000
@@ -135,10 +135,16 @@
    * label   = Name:\<code></code>u0020
    * </pre>
    *
+   * <p>It is safe to call this method while other threads are trying
+   * to modify this Properties object; no external synchronization
+   * needs to be performed.
+   *
    * @param in the input stream
    * @exception IOException if an error occurred when reading
-   * from the input.  */
-  public void load(InputStream inStream) throws IOException
+   *            from the input.
+   */
+  public synchronized void load(InputStream inStream)
+    throws IOException
   {
     // The spec says that the file must be encoded using ISO-8859-1.
     BufferedReader reader =
@@ -278,11 +284,16 @@
   /**
    * Calls <code>store(OutputStream out, String header)</code> and
    * ignores the IOException that may be thrown.
+   *
+   * <p>It is safe to call this method while other threads are trying
+   * to modify this Properties object; no external synchronization
+   * needs to be performed.
+   *
    * @deprecated use store instead.
    * @exception ClassCastException if this property contains any key or
    * value that isn't a string.
    */
-  public void save(OutputStream out, String header)
+  public synchronized void save(OutputStream out, String header)
   {
     try
       {
@@ -310,12 +321,17 @@
    * that are not in the ascii range 33 to 127 are written in the
    * <code>\</code><code>u</code>xxxx Form.
    *
+   * <p>It is safe to call this method while other threads are trying
+   * to modify this Properties object; no external synchronization
+   * needs to be performed.
+   *
    * @param out the output stream
    * @param header the header written in the first line, may be null.
    * @exception ClassCastException if this property contains any key or
    * value that isn't a string.
    */
-  public void store(OutputStream out, String header) throws IOException
+  public synchronized void store(OutputStream out, String header)
+    throws IOException
   {
     // The spec says that the file must be encoded using ISO-8859-1.
     PrintWriter writer
@@ -381,7 +397,7 @@
     return defaultValue;
   }
 
-  private final void addHashEntries(Hashtable base)
+  private final synchronized void addHashEntries(Hashtable base)
   {
     if (defaults != null)
       defaults.addHashEntries(base);
@@ -393,6 +409,10 @@
   /**
    * Returns an enumeration of all keys in this property list, including
    * the keys in the default property list.
+   *
+   * <p>It is safe to call this method while other threads are trying
+   * to modify this Properties object; no external synchronization
+   * needs to be performed.
    */
   public Enumeration propertyNames()
   {
@@ -403,7 +423,10 @@
     // particularly better way to ensure that duplicates are
     // ignored.
     Hashtable t = new Hashtable();
+
+    /* addHashEntries is synchronized. */
     addHashEntries(t);
+
     return t.keys();
   }
 
@@ -512,12 +535,17 @@
   /**
    * Writes the key/value pairs to the given print stream.  They are
    * written in the way, described in the method store.
+   *
+   * <p>It is safe to call this method while other threads are trying
+   * to modify this Properties object; no external synchronization
+   * needs to be performed.
+   *
    * @param out the stream, where the key/value pairs are written to.
    * @exception ClassCastException if this property contains any key or
    * value that isn't a string.
    * @see #store
    */
-  public void list(PrintStream out)
+  public synchronized void list(PrintStream out)
   {
     Enumeration keys = keys();
     Enumeration elts = elements();
@@ -540,7 +568,7 @@
    * @see #list(java.io.PrintStream)
    * @since JDK1.1
    */
-  public void list(PrintWriter out)
+  public synchronized void list(PrintWriter out)
   {
     Enumeration keys = keys();
     Enumeration elts = elements();




From mark@wildebeest.org Fri Feb 15 07:09:25 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bhB6-0000cN-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 07:09:24 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bhAv-0000Be-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 13:09:14 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16bhB5-0005gD-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 13:09:23 +0100
Subject: String.[last]indexOf() patch
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/mixed; boundary="=-6TNAyCyMOFJH+6HirygB"
X-Mailer: Evolution/1.0.2 
Date: 15 Feb 2002 13:09:22 +0100
Message-Id: <1013774962.17858.11.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-6TNAyCyMOFJH+6HirygB
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

I made the following patch to fix a small problem pointed out by Patrick
Doyle in http://mail.gnu.org/pipermail/classpath/2001-August/001112.html
It only affects empty strings. It is based on the patch provided in
http://savannah.gnu.org/patch/?func=detailpatch&patch_id=23&group_id=85

2002-02-15  Mark Wielaard <mark@klomp.org>

    Thanks to Patrick Doyle
    * java/lang/String.java (indexOf(String,int)): account for empty
    string.
    (lastIndexOf(String): account for empty string, and small
    optimization.
    (lastIndexOf(String,int): small optimization.

I also made Mauve tests that will hopefully go into Mauve.

Cheers,

Mark

--=-6TNAyCyMOFJH+6HirygB
Content-Disposition: attachment; filename=String.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-15

? Makefile.diff
? String.diff
? announce.txt
? build
? classpath-0.03.tar.gz
? classpath.txt
? diff.patch
? eric-diff.patch
? japhar.announce
? java_files
? jikesvm.announce
? orp.announce
? updates
? gnu/java/rmi/Makefile
? gnu/java/rmi/dgc/Makefile
? gnu/java/rmi/registry/Makefile
? gnu/java/rmi/rmic/Makefile
? gnu/java/rmi/server/Makefile
? include/stamp-h1
? java/rmi/Makefile
? java/rmi/activation/Makefile
? java/rmi/dgc/Makefile
? java/rmi/registry/Makefile
? java/rmi/server/Makefile
? lib/classes.1
? lib/verify-jikes.libgcj
? lib/verifyclass
Index: java/lang/String.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/classpath/classpath/java/lang/String.java,v
retrieving revision 1.36
diff -u -r1.36 String.java
--- java/lang/String.java	22 Jan 2002 22:27:00 -0000	1.36
+++ java/lang/String.java	15 Feb 2002 11:55:44 -0000
@@ -799,7 +799,7 @@
    */
   public int indexOf(String str, int fromIndex) throws NullPointerExceptio=
n {
     if (fromIndex < 0) fromIndex =3D 0;
-    for (int i =3D fromIndex; i < count; i++)
+    for (int i =3D fromIndex; i <=3D count; i++)
       if (regionMatches(i, str, 0, str.count))
 	return i;
     return -1;
@@ -846,7 +846,7 @@
    * @exception NullPointerException if `str' is null
    */
   public int lastIndexOf(String str) throws NullPointerException {
-    return lastIndexOf(str, count-1);
+    return lastIndexOf(str, count-str.count);
   }
=20
   /**
@@ -864,8 +864,8 @@
    */
   public int lastIndexOf(String str, int fromIndex)
     throws NullPointerException {
-    if (fromIndex > count)
-      fromIndex =3D count;
+    if (fromIndex >=3D count)
+      fromIndex =3D count - str.count;
     for (int i =3D fromIndex; i >=3D 0; i--)
       if (regionMatches(i, str, 0, str.count))
 	return i;

--=-6TNAyCyMOFJH+6HirygB--


From mark@wildebeest.org Fri Feb 15 08:00:27 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bhyV-0005LR-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 08:00:27 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bhxm-0000De-00; Fri, 15 Feb 2002 13:59:42 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16bhxv-0005pr-00; Fri, 15 Feb 2002 13:59:51 +0100
Subject: Re: bedtime report (it's not what it sounds like)
From: Mark Wielaard <mark@klomp.org>
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
In-Reply-To: <87wuxiwgqy.fsf@tf1.tapsellferrier.co.uk>
References: <87n0yf5ret.fsf@tf1.tapsellferrier.co.uk>
	<1013544533.8586.15.camel@elsschot> 
	<87wuxiwgqy.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 15 Feb 2002 13:59:51 +0100
Message-Id: <1013777991.17858.21.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Tue, 2002-02-12 at 22:08, Nic Ferrier wrote:
> Mark Wielaard <mark@klomp.org> writes:
> 
> > > - build doesn't seem to work with the --prefix switch 
> > Are you using the classpath-0.03 tarbal? Any other configure flags 
> > given? It works for me: 
> 
> This isn't the problem. It seems to me that the problem is that the
> classes are not installed.

OK. I just thought of something that happened to me in the past.
Do you have an (old) lib/glibj.zip file? In that case currently
neither the zip file nor the classes are installed (it is a last minute
workaround for the 0.03 release). In that case remove the file and the
class files should be installed.

Cheers,

Mark


From etienne.gagnon@uqam.ca Fri Feb 15 08:12:24 2002
Received: from anis.telecom.uqam.ca ([132.208.250.6] helo=uqam.ca)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16biA4-0005ma-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 08:12:24 -0500
Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6])
	by sortant.uqam.ca (8.11.6/8.11.0) with SMTP id g1FD97q24466
	for <classpath@gnu.org>; Fri, 15 Feb 2002 08:09:07 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
 by anis.telecom.uqam.ca (NAVGW 2.5.1.12) with SMTP id M2002021508090618278
 for <classpath@gnu.org>; Fri, 15 Feb 2002 08:09:07 -0500
Received: from er.uqam.ca (nobel.si.uqam.ca [132.208.219.1])
	by intrant.uqam.ca (8.11.6/8.11.0) with ESMTP id g1FD8fc24416;
	Fri, 15 Feb 2002 08:08:41 -0500 (EST)
Received: from localhost (perseval.info.uqam.ca [132.208.137.96])
	by er.uqam.ca (8.10.0/8.10.0) with ESMTP id g1FD8fY05976;
	Fri, 15 Feb 2002 08:08:41 -0500 (EST)
Received: from egagnon by localhost with local (Exim 3.34 #1 (Debian))
	id 16bi6M-0006AP-00; Fri, 15 Feb 2002 08:08:34 -0500
Date: Fri, 15 Feb 2002 08:08:34 -0500
To: Sascha Brawer <brawer@acm.org>
Cc: classpath@gnu.org
Subject: Re: java.util.Hashtable.size()/isEmpty()
Message-ID: <20020215130834.GA23629@perseval.info.uqam.ca>
References: <20020215101915.16680@pop.schoedler.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020215101915.16680@pop.schoedler.ch>
User-Agent: Mutt/1.3.27i
From: "Etienne M. Gagnon" <etienne.gagnon@uqam.ca>
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Fri, Feb 15, 2002 at 11:19:15AM +0100, Sascha Brawer wrote:
> Hello,
> 
> the implementations of java.util.Hashtable.size() and
> java.util.Hashtable.isEmpty() merely access a single integer member
> field.  Since accesses to integer variables are required to be atomic, I
> think these two methods don't need to be synchronized. Do people agree?
> (Yes, it's a micro-optimization).
> 

I do not agree.  If I remeber correctly, this atomicity is only true
of "volatile" variables.  Otherwise, you have no garantee that the
integer value visible to one thread is the same as the one visible to
another on a multiprocessor system.

Be careful with such "micro-optimizations" which can be based on false
assumptions.  Let the compilers/VM do these optimizations.

Etienne

-- 
Etienne M. Gagnon                    http://www.info.uqam.ca/~egagnon/
SableVM:                                       http://www.sablevm.org/
SableCC:                                       http://www.sablecc.org/


From mark@wildebeest.org Fri Feb 15 08:31:47 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16biSo-0008UX-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 08:31:46 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16biRz-0000F6-00; Fri, 15 Feb 2002 14:30:55 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16biS8-0005w7-00; Fri, 15 Feb 2002 14:31:04 +0100
Subject: Re: java.util.Properties -- make it thread-safe?
From: Mark Wielaard <mark@klomp.org>
To: Sascha Brawer <brawer@acm.org>
Cc: classpath@gnu.org
In-Reply-To: <20020215115324.5604@pop.schoedler.ch>
References: <20020215115324.5604@pop.schoedler.ch>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 15 Feb 2002 14:31:04 +0100
Message-Id: <1013779864.17858.66.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Fri, 2002-02-15 at 12:53, Sascha Brawer wrote:
>
> Sun's current JavaDoc (J2SE 1.4) does not mention whether
> java.util.Properties is supposed to be usable from multiple threads
> without additional synchronization.  However, one might be able to infer
> it from the fact that it is a subclass of java.util.Hashtable.
> 
> Sun's JavaDoc (JDK1.1) specified only load and save as synchronized.

When you want to be compatible with the API spec then having the same
synchronization is important. A programmer can synchronize on any
object, when a method does declare that it is synchronized the
programmer knows that the calling thread will have to get the lock for
that object (or class when static). So changing the synchronization of a
method can lead to subtle deadlock problems.

> (Newer javadoc versions do not emit "synchronized" anymore).
>
> Actually, I am curious what people do in general for determining what the
> Sun reference implementation does about synchronization. 
> Nondeterministic behavior is not easy to observe, after all.  And I think
> running javap to see which methods are synchronized is out of the
> question, since this would count as decompilation.

Being thread-save and synchronizing are not completely the same thing.
Wether a object/method is thread-save should be in the specification.
Having some methods synchronized is a big hint that an object is thread
save (if all methods that change state on the object are synchronized,
thread-safety comes automatically).

Do newer versions of javadoc really no longer mention wether a method is
synchronized? That would be not good.

> Or should one file bug reports with Sun, saying that the spec is not clear?

Yes, filing a bug report is a good idea if the spec is unclear on this
point.

Cheers,

Mark


From abies@pg.gda.pl Fri Feb 15 08:40:36 2002
Received: from mail.engelsinfo.de ([212.6.209.241])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bibL-0001JS-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 08:40:36 -0500
Received: from pg.gda.pl (dvalin [212.6.209.232])
	by mail.engelsinfo.de (8.9.3+Sun/8.9.1) with ESMTP id OAA11684
	for <classpath@gnu.org>; Fri, 15 Feb 2002 14:31:01 +0100 (MET)
Message-ID: <3C6D0FB4.1010807@pg.gda.pl>
Date: Fri, 15 Feb 2002 14:40:04 +0100
From: Artur Biesiadowski <abies@pg.gda.pl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020202
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath <classpath@gnu.org>
Subject: Re: java.util.Hashtable.size()/isEmpty()
References: <20020215101915.16680@pop.schoedler.ch> <20020215130834.GA23629@perseval.info.uqam.ca>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Etienne M. Gagnon wrote:

> I do not agree.  If I remeber correctly, this atomicity is only true
> of "volatile" variables.  Otherwise, you have no garantee that the
> integer value visible to one thread is the same as the one visible to
> another on a multiprocessor system.
> 
> Be careful with such "micro-optimizations" which can be based on false
> assumptions.  Let the compilers/VM do these optimizations.

First - removing as much synchronization as possible, while staying 
compatible is certainly a good thing. Synchronizing is _really_ costly - 
I remember one of my small programs using java.util.Random to run 4 
times faster after removing 'synchronized' from few methods in this 
class. Of course this was uncompatible change, but if this could be done 
in compatible way, it is a clear win.

As for the Hashtable size(). Is there any point where it matters ?

a) all the rest of Hashtable is synchronized where needed and will 
access size correctly

b) code from outside has to synchronize on Hashtable externally anyway, 
if you want to make complex operations. It is perfectly ok to have

//A
if ( !map.isEmpty() )
{
    //B
    System.out.println(map.entrySet().iterator().next());
}

throwing no such element. Having isEmpty synchronized would allow us to 
catch changes made at point A, but not at point B. On the other hand, if 
you manually synchronized entire block (as it should be done), then at 
entry, A is propagated and at B no change can occur.

If you can show me an example, where having isEmpty()/size() 
synchronized _guarantees_ anything with fully preemptive threading, 
which is not guaranteed with unsynchronized version, then let it be your 
way. But I think that no such example can be given (but I would be happy 
to be proven wrong, as this would mean I do not understand some basic 
stuff with java threading).

Artur



From abies@pg.gda.pl Fri Feb 15 08:51:23 2002
Received: from mail.engelsinfo.de ([212.6.209.241])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bilm-0001m3-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 08:51:22 -0500
Received: from pg.gda.pl (dvalin [212.6.209.232])
	by mail.engelsinfo.de (8.9.3+Sun/8.9.1) with ESMTP id OAA11732
	for <classpath@gnu.org>; Fri, 15 Feb 2002 14:41:47 +0100 (MET)
Message-ID: <3C6D1239.4020604@pg.gda.pl>
Date: Fri, 15 Feb 2002 14:50:49 +0100
From: Artur Biesiadowski <abies@pg.gda.pl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020202
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath <classpath@gnu.org>
Subject: Re: java.util.Properties -- make it thread-safe?
References: <20020215115324.5604@pop.schoedler.ch> <1013779864.17858.66.camel@elsschot>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

> Do newer versions of javadoc really no longer mention wether a method is
> synchronized? That would be not good.

This seems obvious for me. In other case people would actually look at 
javadoc modifiers to see if method is synchronized, instead of checking 
the description (only place where it can be written).

Compare two methods

public synchronized int hashCode()
{
    int hash = 0;
    for ( int i =0; i < size; i++ )
	hash ^= array[i];
    return hash;
}


public int hashCode()
{
    int hash = 0;
    synchronized(this)
    {
       for ( int i =0; i < size; i++ )
	hash ^= array[i];
    }
    return hash;
}


Do they differ enough to make difference in javadoc ?


This example if of course trivial, but sometimes computations which can 
be done safely outside synchronization block can be quite expensive. Do 
you want to take away possibility to optimize it by enforcing people to 
stick to synchronizing entire method, because it is done such in spec ? 
Instead of synchronizing only parts which are really needed ?

I was surprised that they EVER documented it in javadoc - but it was 
probably thinko from early days and only when they wanted to modify 
something they started to think again.

Artur



From mark@wildebeest.org Fri Feb 15 09:26:22 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bjJd-0004bZ-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 09:26:22 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bjJT-0000IC-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 15:26:11 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16bjJc-00066v-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 15:26:20 +0100
Subject: Re: java.util.Properties -- make it thread-safe?
From: Mark Wielaard <mark@klomp.org>
To: classpath <classpath@gnu.org>
In-Reply-To: <3C6D1239.4020604@pg.gda.pl>
References: <20020215115324.5604@pop.schoedler.ch>
	<1013779864.17858.66.camel@elsschot>  <3C6D1239.4020604@pg.gda.pl>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 15 Feb 2002 15:26:20 +0100
Message-Id: <1013783180.17858.96.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Fri, 2002-02-15 at 14:50, Artur Biesiadowski wrote:
> Mark Wielaard wrote:
> 
> > Do newer versions of javadoc really no longer mention wether a method is
> > synchronized? That would be not good.
> 
> This seems obvious for me. In other case people would actually look at 
> javadoc modifiers to see if method is synchronized, instead of checking 
> the description (only place where it can be written).

When javadoc puts a synchronized in the javadoc you can be sure that the
thread will need to acquire the lock for that object. It is not strange
to expect the programmer to rely on that fact to document the locking
behaviour of the method. I rely on that when I write documentation, I do
not describe that this method will need to acquire a lock on 'this' when
I made the method synchronized.

> Compare two methods
> 
> public synchronized int hashCode()
> {
>     int hash = 0;
>     for ( int i =0; i < size; i++ )
> 	hash ^= array[i];
>     return hash;
> }
> 
> 
> public int hashCode()
> {
>     int hash = 0;
>     synchronized(this)
>     {
>        for ( int i =0; i < size; i++ )
> 	hash ^= array[i];
>     }
>     return hash;
> }
>
> Do they differ enough to make difference in javadoc ?

Both should document that a lock is acquired yes.
But in the first case the automatically generated documentation can add
this information. In the second case it cannot. (But maybe it would be
could to issue an warning.)

> This example if of course trivial, but sometimes computations which can 
> be done safely outside synchronization block can be quite expensive. Do 
> you want to take away possibility to optimize it by enforcing people to 
> stick to synchronizing entire method, because it is done such in spec ? 
> Instead of synchronizing only parts which are really needed ?

That is subtle. If they use the same lock the observable behaviour might
be the same. But if the method acquires the lock, drops it for a short
while and then reacquires it then you might get very subtle race
conditions when using that code with multiple threads.

> I was surprised that they EVER documented it in javadoc - but it was 
> probably thinko from early days and only when they wanted to modify 
> something they started to think again.

I do see your point, but I am afraid that with this change in behaviour
we will lose a lot of documented (implicit) locking behaviour since
people normally do not document that the method is synchronized.

Cheers,

Mark


From jsturm@one-point.com Fri Feb 15 09:45:04 2002
Received: from bgp01064063bgs.taylor01.mi.comcast.net ([68.40.18.72] helo=cc730106-b.taylor1.mi.home.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bjbk-0007tE-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 09:45:04 -0500
Received: from localhost (jsturm@localhost)
	by cc730106-b.taylor1.mi.home.com (8.9.3/8.9.3) with ESMTP id JAA16333;
	Fri, 15 Feb 2002 09:44:28 -0500
X-Authentication-Warning: mars.deadcafe.org: jsturm owned process doing -bs
Date: Fri, 15 Feb 2002 09:44:28 -0500 (EST)
From: Jeff Sturm <jsturm@one-point.com>
X-Sender: jsturm@mars.deadcafe.org
To: Mark Wielaard <mark@klomp.org>
cc: classpath <classpath@gnu.org>
Subject: Re: java.util.Properties -- make it thread-safe?
In-Reply-To: <1013783180.17858.96.camel@elsschot>
Message-ID: <Pine.LNX.4.10.10202150939440.16209-100000@mars.deadcafe.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On 15 Feb 2002, Mark Wielaard wrote:
> When javadoc puts a synchronized in the javadoc you can be sure that the
> thread will need to acquire the lock for that object.

Not so.  For instance, Java allows overriding a synchronized method with a
non-sychronized one.  Relying on the information from javadoc could be
misleading.

Also, the inverse doesn't apply:  a method not identified as synchronized
in javadoc may synchronize "this" anyway.

For these reasons, I believe "synchornized" is part of a method's
implementation but not its interface, and I am glad javadoc ignores it.

Jeff



From etienne.gagnon@uqam.ca Fri Feb 15 09:49:00 2002
Received: from anis.telecom.uqam.ca ([132.208.250.6] helo=uqam.ca)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bjfY-0008Nq-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 09:49:00 -0500
Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6])
	by sortant.uqam.ca (8.11.6/8.11.0) with SMTP id g1FEhBq07068
	for <classpath@gnu.org>; Fri, 15 Feb 2002 09:43:11 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
 by anis.telecom.uqam.ca (NAVGW 2.5.1.12) with SMTP id M2002021509431000125
 for <classpath@gnu.org>; Fri, 15 Feb 2002 09:43:10 -0500
Received: from er.uqam.ca (nobel.si.uqam.ca [132.208.219.1])
	by intrant.uqam.ca (8.11.6/8.11.0) with ESMTP id g1FEg4c06911;
	Fri, 15 Feb 2002 09:42:04 -0500 (EST)
Received: from localhost (perseval.info.uqam.ca [132.208.137.96])
	by er.uqam.ca (8.10.0/8.10.0) with ESMTP id g1FEg4Y14577;
	Fri, 15 Feb 2002 09:42:05 -0500 (EST)
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by localhost with esmtp (Exim 3.34 #1 (Debian))
	id 16bjYq-0006V3-00; Fri, 15 Feb 2002 09:42:04 -0500
Message-ID: <3C6D1E3C.6050602@uqam.ca>
Date: Fri, 15 Feb 2002 09:42:04 -0500
From: "Etienne M. Gagnon" <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020211
X-Accept-Language: en
MIME-Version: 1.0
To: Artur Biesiadowski <abies@pg.gda.pl>
CC: classpath <classpath@gnu.org>
Subject: Re: java.util.Hashtable.size()/isEmpty()
References: <20020215101915.16680@pop.schoedler.ch> <20020215130834.GA23629@perseval.info.uqam.ca> <3C6D0FB4.1010807@pg.gda.pl> <3C6D1C20.4050805@uqam.ca>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Etienne M. Gagnon wrote:
> Time 2
>   Processor 2:
>      uses locks to read var1.  This forces all "write" caches on all 
> processor to "flush" to memory, and the local "read" cache to be updated.

Small error.  No "write cache flush" required.  The write flush is done as part 
of synchronization "independently on each processor".

Only thing required: "read cache update".

My counter-example still works.

Etienne

-- 
Etienne M. Gagnon                    http://www.info.uqam.ca/~egagnon/
SableVM:                                       http://www.sablevm.org/
SableCC:                                       http://www.sablecc.org/



From etienne.gagnon@uqam.ca Fri Feb 15 09:49:28 2002
Received: from anis.telecom.uqam.ca ([132.208.250.6] helo=uqam.ca)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bjfv-000061-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 09:49:28 -0500
Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6])
	by sortant.uqam.ca (8.11.6/8.11.0) with SMTP id g1FEY7q05755
	for <classpath@gnu.org>; Fri, 15 Feb 2002 09:34:07 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
 by anis.telecom.uqam.ca (NAVGW 2.5.1.12) with SMTP id M2002021509340720098
 for <classpath@gnu.org>; Fri, 15 Feb 2002 09:34:07 -0500
Received: from er.uqam.ca (nobel.si.uqam.ca [132.208.219.1])
	by intrant.uqam.ca (8.11.6/8.11.0) with ESMTP id g1FEX4c05613;
	Fri, 15 Feb 2002 09:33:04 -0500 (EST)
Received: from localhost (perseval.info.uqam.ca [132.208.137.96])
	by er.uqam.ca (8.10.0/8.10.0) with ESMTP id g1FEX5Y13641;
	Fri, 15 Feb 2002 09:33:05 -0500 (EST)
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by localhost with esmtp (Exim 3.34 #1 (Debian))
	id 16bjQ8-0006Sz-00; Fri, 15 Feb 2002 09:33:04 -0500
Message-ID: <3C6D1C20.4050805@uqam.ca>
Date: Fri, 15 Feb 2002 09:33:04 -0500
From: "Etienne M. Gagnon" <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020211
X-Accept-Language: en
MIME-Version: 1.0
To: Artur Biesiadowski <abies@pg.gda.pl>
CC: classpath <classpath@gnu.org>
Subject: Re: java.util.Hashtable.size()/isEmpty()
References: <20020215101915.16680@pop.schoedler.ch> <20020215130834.GA23629@perseval.info.uqam.ca> <3C6D0FB4.1010807@pg.gda.pl>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Artur Biesiadowski wrote:
> First - removing as much synchronization as possible, while staying 
> compatible is certainly a good thing. Synchronizing is _really_ costly - 

Have you heard of "thin locks" and other VM level optimizations that reduces 
"significantly" the cost of locks?  Do not compute the cost of locks based on 
their implementation in Sun's old JDK, or based on an implementation that does 
not implement state-of-the-art techniques.

Yes, it is a good think not to "over synchronize" classes.  But, you have to 
make sure that your optimization is "sound".

> As for the Hashtable size(). Is there any point where it matters ?


Yes.  The "synchronize" will force the "current processor" to update its data 
cache.  Without the synchronize keyword, you processor could read an obsolete 
value from its local cache, even though all other methods are synchronized.  e.g:


Time 1
   Processor 1:
     reads "var1" which is also stored in the local "read" cache

Time 2
   Processor 2:
      uses locks to read var1.  This forces all "write" caches on all processor 
to "flush" to memory, and the local "read" cache to be updated.

Time 3
   Processor 2:
     uses locks to update var1.  This forces the local "write" cache to "flush" 
to memory.

Time 4
   Processor 1:
      reads var1 (no locks).  No "read cache" update required by the JLS => 
"Time 1" value returned.  =>  NOT WHAT YOU WANT.

Mutiprocessors + threads => difficult programming.
Rule of thumb => if you are unsure, use synchronization and let the system 
optimize the execution.

Systems like "HotSpot/Jalapeno" are getting to the point where the are able to 
identify things like "single threaded programs" and thus eliminate all lock 
operations when possible.

There are some C programmers that still use pointer arithmetic to "optimize" 
their program; what they do not realize is that "gcc -o2" generates better code 
when programs are written using array notation than when pointers navigate 
through arrays. => Some optimizations are better left for the system to do.

Now that Jalapeno has been "open-sourced", be patient a little, and you'll see 
Free Java implementation catch=up with these state of the art techniques.  I 
personally think that it would be a better time investment to write a "bug free" 
and "complete" Classpath instead of optimizing already (other than obvious 
optimizations like O(n) -> O(log n)).

Etienne
-- 
Etienne M. Gagnon                    http://www.info.uqam.ca/~egagnon/
SableVM:                                       http://www.sablevm.org/
SableCC:                                       http://www.sablecc.org/



From mark@wildebeest.org Fri Feb 15 09:59:09 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bjpN-0000j1-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 09:59:09 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bjp0-0000Jx-00; Fri, 15 Feb 2002 15:58:46 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16bjpA-0006Wd-00; Fri, 15 Feb 2002 15:58:56 +0100
Subject: Re: java.util.Properties -- make it thread-safe?
From: Mark Wielaard <mark@klomp.org>
To: Jeff Sturm <jsturm@one-point.com>
Cc: classpath <classpath@gnu.org>
In-Reply-To: <Pine.LNX.4.10.10202150939440.16209-100000@mars.deadcafe.org>
References: <Pine.LNX.4.10.10202150939440.16209-100000@mars.deadcafe.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 15 Feb 2002 15:58:55 +0100
Message-Id: <1013785135.17859.112.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Fri, 2002-02-15 at 15:44, Jeff Sturm wrote:
> On 15 Feb 2002, Mark Wielaard wrote:
> > When javadoc puts a synchronized in the javadoc you can be sure that the
> > thread will need to acquire the lock for that object.
> 
> Not so.  For instance, Java allows overriding a synchronized method with a
> non-sychronized one.  Relying on the information from javadoc could be
> misleading.
Jikes. You (and Artur) are right and I was wrong. I have been relying on
this information. Hmmmm. Time to review all my code again... :}

> Also, the inverse doesn't apply:  a method not identified as synchronized
> in javadoc may synchronize "this" anyway.
That is true, but as Artur pointed out this should be in the
documentation.

> For these reasons, I believe "synchornized" is part of a method's
> implementation but not its interface, and I am glad javadoc ignores it.

I have to agree now. Lets hope that the synchronization behaviour (and
thread safety) of methods is always described correctly in the
documentation...

Cheers,

Mark


From mark@wildebeest.org Fri Feb 15 10:00:27 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bjqc-0000oI-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 10:00:27 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bjqS-0000KB-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 16:00:16 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16bjqb-0006XS-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 16:00:25 +0100
Subject: StringBuffer patch (Was: String.[last]indexOf() patch)
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <1013774962.17858.11.camel@elsschot>
References: <1013774962.17858.11.camel@elsschot>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 15 Feb 2002 16:00:25 +0100
Message-Id: <1013785225.17859.118.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

I also checked in a StringBuffer patch based on the one in patch #24 for
from Isaac Jones.
http://savannah.gnu.org/patch/?func=detailpatch&patch_id=24&group_id=85

2002-02-15  Isaac Jones  <ijones@cis.ohio-state.edu>

    * java/lang/StringBuffer.java (subSequence): is new in 1.4,
    though it was already implemented in classpath.  I added the
    "@since 1.4" tag to make it compatable with the 1.4. I
    altered the exception thrown to be IndexOutOfBoundsException to
    make the documentation compatable with the 1.4.
    * java/lang/StringBuffer.java (indexOf, lastIndexOf): I copied the
    javadoc in the classpath String class.  The functions call through
    to those functions, so they behave exactly the same.

I altered the patch a little bit to remove the references to beta (the
1.4 spec is now final) and since it needed the same change as for
String.lastIndexOf() on which it was based.

Cheers,

Mark



From jsturm@one-point.com Fri Feb 15 10:06:25 2002
Received: from bgp01064063bgs.taylor01.mi.comcast.net ([68.40.18.72] helo=cc730106-b.taylor1.mi.home.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bjwO-00012O-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 10:06:24 -0500
Received: from localhost (jsturm@localhost)
	by cc730106-b.taylor1.mi.home.com (8.9.3/8.9.3) with ESMTP id KAA16395;
	Fri, 15 Feb 2002 10:06:12 -0500
X-Authentication-Warning: mars.deadcafe.org: jsturm owned process doing -bs
Date: Fri, 15 Feb 2002 10:06:12 -0500 (EST)
From: Jeff Sturm <jsturm@one-point.com>
X-Sender: jsturm@mars.deadcafe.org
To: Artur Biesiadowski <abies@pg.gda.pl>
cc: classpath <classpath@gnu.org>
Subject: Re: java.util.Hashtable.size()/isEmpty()
In-Reply-To: <3C6D0FB4.1010807@pg.gda.pl>
Message-ID: <Pine.LNX.4.10.10202150956180.16209-100000@mars.deadcafe.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Fri, 15 Feb 2002, Artur Biesiadowski wrote:
> If you can show me an example, where having isEmpty()/size() 
> synchronized _guarantees_ anything with fully preemptive threading, 
> which is not guaranteed with unsynchronized version, then let it be your 
> way. But I think that no such example can be given (but I would be happy 
> to be proven wrong, as this would mean I do not understand some basic 
> stuff with java threading).

Your points have merit... calling isEmpty() without synchronizing isn't
very useful.  But it still has side effects, like a memory barrier.

I'm wary of removing any occurrences of synchronization as an
optimization, including things like "synchronized (this) {}", because of
the implied barrier semantics.  Consider:

Hashtable ht;
a = 0;
b = 0;
...
a = 1;
ht.size();
b = 1;

and in another thread:

synchronized (this) {
  System.out.println(a + "," + b);
}

can this ever print 0,1?

Jeff



From ebb9@email.byu.edu Fri Feb 15 10:29:37 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16bkIr-0002fk-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 10:29:37 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020215152936.YLCP2626.rwcrmhc51.attbi.com@email.byu.edu>;
          Fri, 15 Feb 2002 15:29:36 +0000
Message-ID: <3C6D290D.BC9E534F@email.byu.edu>
Date: Fri, 15 Feb 2002 08:28:13 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Sascha Brawer <brawer@acm.org>
CC: classpath@gnu.org
Subject: Re: java.util.Hashtable.size()/isEmpty()
References: <20020215101915.16680@pop.schoedler.ch>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

No - even accessing a simple field must be synchronized, for this
reason:

Suppose thread A is in the middle of calling clear() when thread B calls
size().  Notice in clear() that the size is not changed until after all
entries have been set to null, meaning that B will read a larger size
than what is actually there.  For thread safety reasons, if you have a
synchronized object, EVERY public access point to information on that
object must be synchronized.

Sascha Brawer wrote:
> 
> Hello,
> 
> the implementations of java.util.Hashtable.size() and
> java.util.Hashtable.isEmpty() merely access a single integer member
> field.  Since accesses to integer variables are required to be atomic, I
> think these two methods don't need to be synchronized. Do people agree?
> (Yes, it's a micro-optimization).
> 

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From brawer@acm.org Fri Feb 15 10:51:27 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bkdz-0005Ra-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 10:51:27 -0500
Received: from [0.0.0.0] (195.15.166.10) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C6086B7000B9D25 for classpath@gnu.org; Fri, 15 Feb 2002 16:50:40 +0100
From: Sascha Brawer <brawer@acm.org>
To: <classpath@gnu.org>
Subject: Re: java.util.Hashtable.size()/isEmpty()
Date: Fri, 15 Feb 2002 16:47:09 +0100
Message-Id: <20020215154709.18541@pop.schoedler.ch>
In-Reply-To: <3C6D1C20.4050805@uqam.ca>
References: <3C6D1C20.4050805@uqam.ca>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Etienne M. Gagnon <etienne.gagnon@uqam.ca> wrote on Fri, 15 Feb
2002 09:33:04 -0500:

> The "synchronize" will force the "current processor" to update its data 
> cache.  Without the synchronize keyword, [another] processor could read
> an obsolete value from its local cache, even though all other methods are
> synchronized.

Thanks for the explanations -- I've learnt something. Also, chapter 8 of
the Java Virtual Machine Specification helped me understanding the issue.

So, please forget my patch suggestion for java.util.Hashtable.

-- Sascha




From brawer@acm.org Fri Feb 15 10:52:08 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bkee-0005SI-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 10:52:08 -0500
Received: from [0.0.0.0] (195.15.166.10) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C6086B7000B9D63; Fri, 15 Feb 2002 16:51:19 +0100
From: Sascha Brawer <brawer@acm.org>
To: <classpath@gnu.org>
Cc: <mark@klomp.org>
Subject: Re: java.util.Properties -- make it thread-safe?
Date: Fri, 15 Feb 2002 16:48:51 +0100
Message-Id: <20020215154851.2713@pop.schoedler.ch>
In-Reply-To: <1013779864.17858.66.camel@elsschot>
References: <1013779864.17858.66.camel@elsschot>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> wrote on Fri, 15 Feb 2002 14:31:04 +0100:

>Do newer versions of javadoc really no longer mention wether a method is
>synchronized? That would be not good.

See http://java.sun.com/j2se/1.4/docs/tooldocs/javadoc/whatsnew-1.2.html:

> [What's New in Javadoc 1.2]
>
> Remove "synchronized" and "native" from signatures. Javadoc generates an
> API specification. These two keywords do not belong in the signatures of
> a specification, because they are implementation-specific. The keyword
> "native" does not need to be documented. The keyword "synchronized"
> indicates thread-safe behavior that should instead be described in the
> method descriptions. A thread-safe method itself might not use the
> "synchronized" keyword but might call private methods that are.

FYI, I've now filed a bug report with Sun, asking for the documentation
of java.util.Properties to clarify thread safety.

-- Sascha




From jsturm@one-point.com Fri Feb 15 11:24:18 2002
Received: from bgp01064063bgs.taylor01.mi.comcast.net ([68.40.18.72] helo=cc730106-b.taylor1.mi.home.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bl9l-0006wE-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 11:24:17 -0500
Received: from localhost (jsturm@localhost)
	by cc730106-b.taylor1.mi.home.com (8.9.3/8.9.3) with ESMTP id LAA16506;
	Fri, 15 Feb 2002 11:24:02 -0500
X-Authentication-Warning: mars.deadcafe.org: jsturm owned process doing -bs
Date: Fri, 15 Feb 2002 11:24:02 -0500 (EST)
From: Jeff Sturm <jsturm@one-point.com>
X-Sender: jsturm@mars.deadcafe.org
To: "Etienne M. Gagnon" <etienne.gagnon@uqam.ca>
cc: Artur Biesiadowski <abies@pg.gda.pl>, classpath <classpath@gnu.org>
Subject: Re: java.util.Hashtable.size()/isEmpty()
In-Reply-To: <3C6D1C20.4050805@uqam.ca>
Message-ID: <Pine.LNX.4.10.10202151034310.16209-100000@mars.deadcafe.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Fri, 15 Feb 2002, Etienne M. Gagnon wrote:
> Have you heard of "thin locks" and other VM level optimizations that reduces 
> "significantly" the cost of locks?

Even the ideal lock still carries a large cost.  The CPU will probably
stall, flush its store buffer, reload values from memory, etc.
There's no escaping that.  (However I'm not sure if this is true when
reentering a lock already held by the current thread.)

> The "synchronize" will force the "current processor" to update its data 
> cache.

Most modern multiprocessors use hardware cache coherency (though the Java
memory model doesn't require this, and relying on it isn't a good idea).

More importantly, synchronization forces ordering of loads and stores.

My impression is that hardware cache coherency is a bad idea because it
gives programmers a false sense of security and may even limit the
scalability of SMP hardware due to the extra bus traffic required.  (I
wonder if anyone's tried Java on a NUMA architecture?)

> Mutiprocessors + threads => difficult programming.

Most definitely.

Jeff



From abies@pg.gda.pl Fri Feb 15 11:54:14 2002
Received: from mail.engelsinfo.de ([212.6.209.241])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16blcj-000235-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 11:54:13 -0500
Received: from pg.gda.pl (dvalin [212.6.209.232])
	by mail.engelsinfo.de (8.9.3+Sun/8.9.1) with ESMTP id RAA12415
	for <classpath@gnu.org>; Fri, 15 Feb 2002 17:44:38 +0100 (MET)
Message-ID: <3C6D3D14.4050405@pg.gda.pl>
Date: Fri, 15 Feb 2002 17:53:40 +0100
From: Artur Biesiadowski <abies@pg.gda.pl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020202
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath <classpath@gnu.org>
Subject: Re: java.util.Hashtable.size()/isEmpty()
References: <20020215101915.16680@pop.schoedler.ch> <3C6D290D.BC9E534F@email.byu.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake wrote:
> No - even accessing a simple field must be synchronized, for this
> reason:
> 
> Suppose thread A is in the middle of calling clear() when thread B calls
> size().  Notice in clear() that the size is not changed until after all
> entries have been set to null, meaning that B will read a larger size
> than what is actually there.  For thread safety reasons, if you have a
> synchronized object, EVERY public access point to information on that
> object must be synchronized.

No,no,no.

Thread B could as well read the value from before clear happens. If it 
does not synchronize, there is not such thing as 'while A is middle of 
clear'. This two things does not happen in sequence - you have to think 
about them as about quantum physics - all possible cases.

So if we have A thread calling synchronized clear and B thread calling 
unsychronized size, B can return either previous size or 0 or even some 
value from long,long time ago - _regardless_ of sequence of evens that 
happened physically in processor. This is allowed behaviour.

If clear would remove element after element, then indeed, size would 
have to be synchronized - because it could report map having for example 
half elements (whereas it never happened - first it has n elements and 
then 0, because clear is atomic). BUT as clear update size atomically 
(regardless of synchronization), there is not need to also synchronize 
getter.

Artur



From abies@pg.gda.pl Fri Feb 15 12:03:37 2002
Received: from mail.engelsinfo.de ([212.6.209.241])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16blln-0002S7-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 12:03:36 -0500
Received: from pg.gda.pl (dvalin [212.6.209.232])
	by mail.engelsinfo.de (8.9.3+Sun/8.9.1) with ESMTP id RAA12458
	for <classpath@gnu.org>; Fri, 15 Feb 2002 17:54:00 +0100 (MET)
Message-ID: <3C6D3F47.1030904@pg.gda.pl>
Date: Fri, 15 Feb 2002 18:03:03 +0100
From: Artur Biesiadowski <abies@pg.gda.pl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020202
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath <classpath@gnu.org>
Subject: Re: java.util.Hashtable.size()/isEmpty()
References: <20020215101915.16680@pop.schoedler.ch> <20020215130834.GA23629@perseval.info.uqam.ca> <3C6D0FB4.1010807@pg.gda.pl> <3C6D1C20.4050805@uqam.ca>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Etienne M. Gagnon wrote:
> Artur Biesiadowski wrote:
> 
>> First - removing as much synchronization as possible, while staying 
>> compatible is certainly a good thing. Synchronizing is _really_ costly - 
> 
> 
> Have you heard of "thin locks" and other VM level optimizations that 
> reduces "significantly" the cost of locks?  Do not compute the cost of 
> locks based on their implementation in Sun's old JDK, or based on an 
> implementation that does not implement state-of-the-art techniques.

By your definition, 1.3 hotspot is not a state-of-art implementation... 
Ok, I have tried also with ibm, and cost was smaller - something like 
2.5 times slower.

Do you know any state-of-art jvms ? Hotspot, ibm and orp have quite 
costly locks :)

>> As for the Hashtable size(). Is there any point where it matters ?

> Yes.  The "synchronize" will force the "current processor" to update its 
> data cache.  Without the synchronize keyword, you processor could read 
> an obsolete value from its local cache, even though all other methods 
> are synchronized.  e.g:

I DO understand why synchronization is needed in general case. I was 
asking about scenario in which _Hashtable.size()_ synchronization would 
make a difference. Except using it as different way of 
synchronized(anything) {} - but this is not in spec (I mean that 
Hashtable.size() javadoc does not require us to create a memory barrier 
as a side effect).

In other mail I've explained why it doesn't matter with clear() (and why 
it would matter if clear would decrease size one by one). I'm looking 
exactly for such example - some test which can possibly show that size() 
is unsynchronized. Remember that you cannot really use words 'later' and 
'before' comparing threads, because before synchronization happens, 
temporal relation between them is 'fuzzy'.


Artur

P.S.
Sorry for defending my ideas so strong, but this is quite important 
point - it can affect implementation of many other classes and it would 
be good to create some kind of consensus.



From tromey@creche.cygnus.com Fri Feb 15 14:43:50 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16boGq-00011P-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 14:43:48 -0500
Received: from creche.cygnus.com (ta0199.peakpeak.com [204.144.244.199])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id MAA18489;
	Fri, 15 Feb 2002 12:42:59 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id NAA29562;
	Fri, 15 Feb 2002 13:06:37 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: Jeff Sturm <jsturm@one-point.com>, classpath <classpath@gnu.org>
Subject: Re: java.util.Properties -- make it thread-safe?
References: <Pine.LNX.4.10.10202150939440.16209-100000@mars.deadcafe.org> <1013785135.17859.112.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Is it FUN to be a MIDGET?
Date: 15 Feb 2002 13:06:36 -0700
In-Reply-To: Mark Wielaard's message of "15 Feb 2002 15:58:55 +0100"
Message-ID: <87y9hupl0z.fsf@creche.redhat.com>
Lines: 13
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> I have to agree now. Lets hope that the synchronization
Mark> behaviour (and thread safety) of methods is always described
Mark> correctly in the documentation...

That would be nice, wouldn't it?  Unfortunately we already know that
the Sun class library documentation isn't very good, at least from an
implementor's point of view.  There are many cases where the docs are
insufficient to reimplement methods.  This is just another example of
that.

Tom


From tromey@creche.cygnus.com Fri Feb 15 14:43:58 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16boGy-00016O-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 14:43:57 -0500
Received: from creche.cygnus.com (ta0199.peakpeak.com [204.144.244.199])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id MAA18690;
	Fri, 15 Feb 2002 12:43:51 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id NAA29573;
	Fri, 15 Feb 2002 13:07:30 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: String.[last]indexOf() patch
References: <1013774962.17858.11.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  It's the land of DONNY AND MARIE as promised in TV GUIDE!
Date: 15 Feb 2002 13:07:30 -0700
In-Reply-To: Mark Wielaard's message of "15 Feb 2002 13:09:22 +0100"
Message-ID: <87vgcypkzh.fsf@creche.redhat.com>
Lines: 7
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> I also made Mauve tests that will hopefully go into Mauve.

Nice, thanks.

Tom


From tromey@creche.cygnus.com Fri Feb 15 15:16:17 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16bomG-0002cv-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 15:16:17 -0500
Received: from creche.cygnus.com (ta0199.peakpeak.com [204.144.244.199])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id NAA25052;
	Fri, 15 Feb 2002 13:15:32 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id NAA29740;
	Fri, 15 Feb 2002 13:39:03 -0700
To: "Cierniak, Michal" <michal.cierniak@intel.com>
Cc: "'Mark Wielaard'" <mark@klomp.org>, classpath@gnu.org
Subject: Re: Archiving email
References: <794826DE8867D411BAB8009027AE9EB90FE781D0@FMSMSX38>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  It's OBVIOUS..  The FURS never reached ISTANBUL..  You were
 an EXTRA in the REMAKE of ``TOPKAPI''..  Go home to your
 WIFE..  She's making FRENCH TOAST!
Date: 15 Feb 2002 13:39:02 -0700
In-Reply-To: "Cierniak, Michal"'s message of "Wed, 13 Feb 2002 11:21:40 -0800"
Message-ID: <878z9upjix.fsf@creche.redhat.com>
Lines: 20
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Michal" == Cierniak, Michal <michal.cierniak@intel.com> writes:

Michal> You may be right that Yahoo is not the best way to handle a
Michal> mailing list.  I don't like mail.gnu.org because as far as I
Michal> can see, it doesn't hide email addresses.  I'm a little
Michal> concerned that every email I send to the Classpath mailing
Michal> list increases a possibility that I will get spam because
Michal> someone will scan GNU's mail archives and add my email to
Michal> their lists.

It is a bit irritating.  I've just resigned myself to getting spam
though.  Some of the GNU lists seem to only deliver spam.

Michal> Does anyone on this mailing list have any suggestions?  My
Michal> experience in managing mailing lists is quite limited.

You could ask the GNU admins about obscuring email addresses in the
archives.  Maybe they would consider it.

Tom


From bryce@waitaki.otago.ac.nz Fri Feb 15 16:06:56 2002
Received: from 210-86-30-45.adsl.xtra.co.nz ([210.86.30.45] helo=localhost.localdomain)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bpZH-0007lY-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 16:06:55 -0500
Received: from waitaki.otago.ac.nz ([192.168.2.2])
	by localhost.localdomain (8.11.2/8.11.2) with ESMTP id g1FKhRf04757;
	Sat, 16 Feb 2002 09:43:29 +1300
Message-ID: <3C6D7833.5040102@waitaki.otago.ac.nz>
Date: Sat, 16 Feb 2002 10:05:55 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: "Etienne M. Gagnon" <etienne.gagnon@uqam.ca>
CC: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
Subject: Re: java.util.Hashtable.size()/isEmpty()
References: <20020215101915.16680@pop.schoedler.ch> <20020215130834.GA23629@perseval.info.uqam.ca>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Etienne M. Gagnon wrote:

>On Fri, Feb 15, 2002 at 11:19:15AM +0100, Sascha Brawer wrote:
>
>>Hello,
>>
>>the implementations of java.util.Hashtable.size() and
>>java.util.Hashtable.isEmpty() merely access a single integer member
>>field.  Since accesses to integer variables are required to be atomic, I
>>think these two methods don't need to be synchronized. Do people agree?
>>(Yes, it's a micro-optimization).
>>
>
>I do not agree.  If I remeber correctly, this atomicity is only true
>of "volatile" variables.  Otherwise, you have no garantee that the
>integer value visible to one thread is the same as the one visible to
>another on a multiprocessor system.
>

You are correct that, without synchronization, the value for size could 
be seen differently by different CPUs at the same time. However, 
synchronizing is itself no guarantee of "thread safety" here. Even if it 
were synchronized the value could have been changed by another thread 
before getSize() returns, so it makes no difference either way. 
Hashtable and Vector (and the "synchronized" method modifier for that 
matter) are so bogus!

regards

Bryce.




From bryce@waitaki.otago.ac.nz Fri Feb 15 16:24:14 2002
Received: from 210-86-30-45.adsl.xtra.co.nz ([210.86.30.45] helo=localhost.localdomain)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bpq1-00007r-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 16:24:13 -0500
Received: from waitaki.otago.ac.nz ([192.168.2.2])
	by localhost.localdomain (8.11.2/8.11.2) with ESMTP id g1FL15f04773;
	Sat, 16 Feb 2002 10:01:05 +1300
Message-ID: <3C6D7C56.3010100@waitaki.otago.ac.nz>
Date: Sat, 16 Feb 2002 10:23:34 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: Sascha Brawer <brawer@acm.org>
CC: classpath@gnu.org
Subject: Re: java.util.Properties -- make it thread-safe?
References: <20020215115324.5604@pop.schoedler.ch>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Sascha Brawer wrote:

>Sun's current JavaDoc (J2SE 1.4) does not mention whether
>java.util.Properties is supposed to be usable from multiple threads
>without additional synchronization.  However, one might be able to infer
>it from the fact that it is a subclass of java.util.Hashtable.
>

My approach is to assume that _nothing_ is synchronized unless the 
(current) specs explicitly say so, or it is obvious that it is not 
reasonable to implement something any other way. My reasoning is:

1. It is slow. In fact the overuse of synchronization is responsible for 
a great many of Java's performance problems.
2. A programmer has no reason to assume that something is synchronized 
if the specification does not say it is.
3. It could potentially cause deadlock issues if a progammer assumes 
something does not synchronize internally, but it does.

regards

Bryce.




From bryce@waitaki.otago.ac.nz Fri Feb 15 16:37:58 2002
Received: from 210-86-30-45.adsl.xtra.co.nz ([210.86.30.45] helo=localhost.localdomain)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bq3J-0002T8-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 16:37:57 -0500
Received: from waitaki.otago.ac.nz ([192.168.2.2])
	by localhost.localdomain (8.11.2/8.11.2) with ESMTP id g1FLF6f04781;
	Sat, 16 Feb 2002 10:15:07 +1300
Message-ID: <3C6D7F9F.1000108@waitaki.otago.ac.nz>
Date: Sat, 16 Feb 2002 10:37:35 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: "Etienne M. Gagnon" <etienne.gagnon@uqam.ca>
CC: Artur Biesiadowski <abies@pg.gda.pl>, classpath <classpath@gnu.org>
Subject: Re: java.util.Hashtable.size()/isEmpty()
References: <20020215101915.16680@pop.schoedler.ch> <20020215130834.GA23629@perseval.info.uqam.ca> <3C6D0FB4.1010807@pg.gda.pl> <3C6D1C20.4050805@uqam.ca>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Etienne M. Gagnon wrote:

> Artur Biesiadowski wrote:
>
>> First - removing as much synchronization as possible, while staying 
>> compatible is certainly a good thing. Synchronizing is _really_ costly - 
>
>
> Have you heard of "thin locks" and other VM level optimizations that 
> reduces "significantly" the cost of locks?  Do not compute the cost of 
> locks based on their implementation in Sun's old JDK, or based on an 
> implementation that does not implement state-of-the-art techniques. 


Synchronization techniques have improved, however it will always be slow 
(relative to other operations) in a multithreaded/multiprocessing 
environment, because it cannot be done without some form of spinlocking 
or memory bus synchronization. The only way to truely make it fast for a 
multiprocessor would be to come up with some magic bus architechture 
which is as fast as the cpu cores!

> Systems like "HotSpot/Jalapeno" are getting to the point where the are 
> able to identify things like "single threaded programs" and thus 
> eliminate all lock operations when possible. 


Yes. But remember that many of the applications that are hurt most by 
synchronization (AWT, Swing) are never single threaded.

regards

Bryce.




From bryce@waitaki.otago.ac.nz Fri Feb 15 16:44:02 2002
Received: from 210-86-30-45.adsl.xtra.co.nz ([210.86.30.45] helo=localhost.localdomain)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bq99-000321-00
	for <classpath@gnu.org>; Fri, 15 Feb 2002 16:44:00 -0500
Received: from waitaki.otago.ac.nz ([192.168.2.2])
	by localhost.localdomain (8.11.2/8.11.2) with ESMTP id g1FLKkf04788;
	Sat, 16 Feb 2002 10:20:46 +1300
Message-ID: <3C6D80F3.5070809@waitaki.otago.ac.nz>
Date: Sat, 16 Feb 2002 10:43:15 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: Eric Blake <ebb9@email.byu.edu>
CC: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
Subject: Re: java.util.Hashtable.size()/isEmpty()
References: <20020215101915.16680@pop.schoedler.ch> <3C6D290D.BC9E534F@email.byu.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake wrote:

>No - even accessing a simple field must be synchronized, for this
>reason:
>
>Suppose thread A is in the middle of calling clear() when thread B calls
>size().  Notice in clear() that the size is not changed until after all
>entries have been set to null, meaning that B will read a larger size
>than what is actually there.
>

So? Even if size() is synchronized there is nothing to stop another 
thread calling clear() after size()'s lock is released but before the 
first thread does anything with the value returned by size().

The only way to avoid issues like this is for the caller to put a big 
synchronized block around all its calls into the hashtable.

regards

Bryce.





From aoliva@redhat.com Fri Feb 15 11:09:33 2002
Received: from lacrosse.corp.redhat.com ([12.107.208.154])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16bkvU-0006Co-00; Fri, 15 Feb 2002 11:09:32 -0500
Received: from free.redhat.lsd.ic.unicamp.br (aoliva2.cipe.redhat.com [10.0.1.156])
	by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g1FG9Ld31037;
	Fri, 15 Feb 2002 11:09:21 -0500
Received: (from aoliva@localhost)
	by free.redhat.lsd.ic.unicamp.br (8.11.6/8.11.6) id g1FG99104685;
	Fri, 15 Feb 2002 14:09:09 -0200
To: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
Cc: tromey@redhat.com, Eric Blake <ebb9@email.byu.edu>,
   Brian Jones <cbj@gnu.org>, Classpath list <classpath@gnu.org>,
   java@gcc.gnu.org
Subject: Re: java.lang.StrictMath
References: <3C6C23B2.44F2C7F6@email.byu.edu>
	<m3eljnmyku.fsf@lyta.haphazard.org> <3C6C7375.DC98215E@email.byu.edu>
	<87y9hvutnz.fsf@creche.redhat.com>
	<3C6CB279.1080003@waitaki.otago.ac.nz>
From: Alexandre Oliva <aoliva@redhat.com>
Organization: GCC Team, Red Hat
Date: 15 Feb 2002 14:09:09 -0200
In-Reply-To: Bryce McKinlay's message of "Fri, 15 Feb 2002 20:02:17 +1300"
Message-ID: <orsn82enh6.fsf@free.redhat.lsd.ic.unicamp.br>
Lines: 25
User-Agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.7
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Feb 15, 2002, Bryce McKinlay <bryce@waitaki.otago.ac.nz> wrote:

> Do you have any examples of how GCC is *not* strictfp compliant

There are a few platforms, the most prominent of which is alpha, on
which GCC offers an option to enable or disable strict IEEE
compliance.  On alpha, it's -mieee.  Even x86 has -mieee-fp, to handle
unordered compares correctly in all cases.

Oh, wait.  You were talking specifically about Java.

> So, unless I misunderstand something and there is more to it, we
> should make -ffast-math the default for Java except where strictfp is
> encountered.

I'm not sure going all the way to -ffast-math would be appropriate,
but certainly disabling strict IEEE compliance by default, on
platforms on which it makes a difference, would be perfectly
reasonable.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


From aph@cambridge.redhat.com Fri Feb 15 11:23:48 2002
Received: from dell-paw-3.cambridge.redhat.com ([195.224.55.237] helo=executor.cambridge.redhat.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16bl9H-0006rF-00; Fri, 15 Feb 2002 11:23:47 -0500
Received: from cuddles.cambridge.redhat.com (cuddles.cambridge.redhat.com [172.16.18.86])
	by executor.cambridge.redhat.com (Postfix) with ESMTP
	id EBAE2ABAF8; Fri, 15 Feb 2002 16:23:41 +0000 (GMT)
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.11.6/8.11.0) id g1FGNeA08487;
	Fri, 15 Feb 2002 16:23:40 GMT
X-Authentication-Warning: cuddles.cambridge.redhat.com: aph set sender to aph@cambridge.redhat.com using -f
From: Andrew Haley <aph@cambridge.redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15469.13836.753417.666291@cuddles.cambridge.redhat.com>
Date: Fri, 15 Feb 2002 16:23:40 +0000 (GMT)
To: Alexandre Oliva <aoliva@redhat.com>
Cc: Bryce McKinlay <bryce@waitaki.otago.ac.nz>, tromey@redhat.com,
	Eric Blake <ebb9@email.byu.edu>, Brian Jones <cbj@gnu.org>,
	Classpath list <classpath@gnu.org>, java@gcc.gnu.org
Subject: Re: java.lang.StrictMath
In-Reply-To: <orsn82enh6.fsf@free.redhat.lsd.ic.unicamp.br>
References: <3C6C23B2.44F2C7F6@email.byu.edu>
	<m3eljnmyku.fsf@lyta.haphazard.org>
	<3C6C7375.DC98215E@email.byu.edu>
	<87y9hvutnz.fsf@creche.redhat.com>
	<3C6CB279.1080003@waitaki.otago.ac.nz>
	<orsn82enh6.fsf@free.redhat.lsd.ic.unicamp.br>
X-Mailer: VM 6.75 under Emacs 20.7.1
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Alexandre Oliva writes:
 > On Feb 15, 2002, Bryce McKinlay <bryce@waitaki.otago.ac.nz> wrote:
 > 
 > > So, unless I misunderstand something and there is more to it, we
 > > should make -ffast-math the default for Java except where strictfp is
 > > encountered.
 > 
 > I'm not sure going all the way to -ffast-math would be appropriate,

We have to distingush between Java strictfp compliance and IEEE
compliance.  strictfp doesn't allow temporaries to be of larger
precision than double, for example.  IEEE does.

I agree that -ffast-math as a default is probably a bad idea.

Andrew.


From ebb9@email.byu.edu Sat Feb 16 05:52:24 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16c2S7-0002iZ-00
	for <classpath@gnu.org>; Sat, 16 Feb 2002 05:52:23 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020216105222.BEZH1147.rwcrmhc52.attbi.com@email.byu.edu>
          for <classpath@gnu.org>; Sat, 16 Feb 2002 10:52:22 +0000
Message-ID: <3C6E39E2.57FD15C1@email.byu.edu>
Date: Sat, 16 Feb 2002 03:52:18 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath list <classpath@gnu.org>
Subject: generation of gnu/java/locale/*.uni
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I'm looking at updating java.lang.Character to JDK 1.4 specs (and
Unicode 3.0).  Does anyone know what programs generated
gnu/java/locale/*.uni?  I ask because I need to add more information to
each character to cover the new DIRECTIONALITY category designations.

If the generation program is not currently in the distribution, I'll
write up a quick Java program and add it to Classpath.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From cbj@gnu.org Sat Feb 16 10:37:20 2002
Received: from [24.93.67.52] (helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16c6ts-0007rO-00
	for <classpath@gnu.org>; Sat, 16 Feb 2002 10:37:20 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sat, 16 Feb 2002 10:36:55 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1GFasn31714;
	Sat, 16 Feb 2002 10:36:54 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: generation of gnu/java/locale/*.uni
References: <3C6E39E2.57FD15C1@email.byu.edu>
From: Brian Jones <cbj@gnu.org>
Date: 16 Feb 2002 10:36:53 -0500
In-Reply-To: <3C6E39E2.57FD15C1@email.byu.edu>
Message-ID: <m3664xmoa2.fsf@lyta.haphazard.org>
Lines: 15
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake <ebb9@email.byu.edu> writes:

> I'm looking at updating java.lang.Character to JDK 1.4 specs (and
> Unicode 3.0).  Does anyone know what programs generated
> gnu/java/locale/*.uni?  I ask because I need to add more information to
> each character to cover the new DIRECTIONALITY category designations.
> 
> If the generation program is not currently in the distribution, I'll
> write up a quick Java program and add it to Classpath.

doc/unicode/unicode-muncher.pl

Brian
-- 
Brian Jones <cbj@gnu.org>


From ebb9@email.byu.edu Sat Feb 16 12:40:26 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16c8p0-0000k2-00; Sat, 16 Feb 2002 12:40:26 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020216174024.GFBP1147.rwcrmhc52.attbi.com@email.byu.edu>;
          Sat, 16 Feb 2002 17:40:24 +0000
Message-ID: <3C6E9985.B300CB9B@email.byu.edu>
Date: Sat, 16 Feb 2002 10:40:21 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
CC: Classpath list <classpath@gnu.org>
Subject: Re: generation of gnu/java/locale/*.uni
References: <3C6E39E2.57FD15C1@email.byu.edu> <m3664xmoa2.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones wrote:
> 
> doc/unicode/unicode-muncher.pl

Thanks.  Should I try to update Classpath to Unicode 3.2.0 (currently in
beta, expected to be final next month), 3.1.1 (the current stable
state), or 3.0 (the version mentioned in the 1.4 javadoc of
java.lang.Character)?  

JLS 3.1 states "The Java platform will track the Unicode specification
as it evolves. The precise version of Unicode used by a given release is
specified in the documentation of the class Character."  I think the
choice is between documenting that we are using the latest definition
3.2.0, or else sticking with 3.0.0 to match the behavior of Sun, but
want to know what others think.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From cbj@gnu.org Sat Feb 16 14:29:40 2002
Received: from fe4.southeast.rr.com ([24.93.67.51] helo=mail4.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16cAWh-0007lP-00
	for <classpath@gnu.org>; Sat, 16 Feb 2002 14:29:39 -0500
Received: from lyta.haphazard.org ([66.26.243.202]) by mail4.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sat, 16 Feb 2002 14:29:30 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1GJTBD32731;
	Sat, 16 Feb 2002 14:29:11 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: generation of gnu/java/locale/*.uni
References: <3C6E39E2.57FD15C1@email.byu.edu>
	<m3664xmoa2.fsf@lyta.haphazard.org> <3C6E9985.B300CB9B@email.byu.edu>
From: Brian Jones <cbj@gnu.org>
Date: 16 Feb 2002 14:29:10 -0500
In-Reply-To: <3C6E9985.B300CB9B@email.byu.edu>
Message-ID: <m3vgcxkyyh.fsf@lyta.haphazard.org>
Lines: 26
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake <ebb9@email.byu.edu> writes:

> Brian Jones wrote:
> > 
> > doc/unicode/unicode-muncher.pl
> 
> Thanks.  Should I try to update Classpath to Unicode 3.2.0 (currently in
> beta, expected to be final next month), 3.1.1 (the current stable
> state), or 3.0 (the version mentioned in the 1.4 javadoc of
> java.lang.Character)?  
> 
> JLS 3.1 states "The Java platform will track the Unicode specification
> as it evolves. The precise version of Unicode used by a given release is
> specified in the documentation of the class Character."  I think the
> choice is between documenting that we are using the latest definition
> 3.2.0, or else sticking with 3.0.0 to match the behavior of Sun, but
> want to know what others think.

As I recall Unicode now requires more bits than a Java 'char' allows.
I don't know that helps at all?  I don't really know what Sun's
solution is.  It looks like we did update to unicode data 3.0, but I
know our implementation fails many Mauve tests related to Character.

Brian
-- 
Brian Jones <cbj@gnu.org>


From abies@pg.gda.pl Sun Feb 17 07:50:34 2002
Received: from mail.engelsinfo.de ([212.6.209.241])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16cQm2-0001mw-00
	for <classpath@gnu.org>; Sun, 17 Feb 2002 07:50:34 -0500
Received: from pg.gda.pl (dvalin [212.6.209.232])
	by mail.engelsinfo.de (8.9.3+Sun/8.9.1) with ESMTP id NAA15197
	for <classpath@gnu.org>; Sun, 17 Feb 2002 13:40:50 +0100 (MET)
Message-ID: <3C6FA6F1.4040705@pg.gda.pl>
Date: Sun, 17 Feb 2002 13:49:53 +0100
From: Artur Biesiadowski <abies@pg.gda.pl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020202
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath <classpath@gnu.org>
Subject: Re: generation of gnu/java/locale/*.uni
References: <3C6E39E2.57FD15C1@email.byu.edu> <3C6FA63E.6070204@pg.gda.pl>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake wrote:

> I'm looking at updating java.lang.Character to JDK 1.4 specs (and
> Unicode 3.0).  Does anyone know what programs generated
> gnu/java/locale/*.uni?  I ask because I need to add more information to
> each character to cover the new DIRECTIONALITY category designations.


I know that I tell it every time Character issue comes - but aren't we
going to use alternative Character posted here some time ago (2 years?).
It had a LOT better performance (no object creation during check and
check itself quite faster) , encoded all data in Strings (so there was
no need to play tricks with loaders and dependency on gnu/something
class). Only problem I had was, I was unable to compile it with old
jikes due to some funny unicode.

Even if it might be out-of-date and non-compilable today, it might be
nice to maybe work with it ? Or otherwise tell me that it WON'T be used
ever, so I can stop touching this subject every time Character is on
board :)

Just in case:
http://www.informatik.uni-oldenburg.de/~delwi/classpath/


Artur






From ebb9@email.byu.edu Sun Feb 17 10:07:03 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16cSu7-0002Cs-00; Sun, 17 Feb 2002 10:07:03 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020217150701.UIDE2626.rwcrmhc51.attbi.com@email.byu.edu>;
          Sun, 17 Feb 2002 15:07:01 +0000
Message-ID: <3C6F5FCB.314636D9@email.byu.edu>
Date: Sun, 17 Feb 2002 00:46:19 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
CC: Classpath list <classpath@gnu.org>
Subject: Re: generation of gnu/java/locale/*.uni
References: <3C6E39E2.57FD15C1@email.byu.edu>
	 <m3664xmoa2.fsf@lyta.haphazard.org> <3C6E9985.B300CB9B@email.byu.edu> <m3vgcxkyyh.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones wrote:
> 
> As I recall Unicode now requires more bits than a Java 'char' allows.
> I don't know that helps at all?  I don't really know what Sun's
> solution is.  It looks like we did update to unicode data 3.0, but I
> know our implementation fails many Mauve tests related to Character.

Unicode 3.1 introduced several code points in the surrogate space.  And
the upcoming 3.2 adds even more.  These characters require two 16-bit
fields to represent them (the first in \ud800 - \udb7f, the second in
\udc00 - \udfff).  And Java does ignore these - the 4-byte abbreviation
sequences of UTF-8 are illegal in class files (you have to use a 6-byte
sequence instead), and Java identifiers may not include surrogate
characters.  Sun would need to add more methods to the API to use them,
because the point of surrogates is that two characters together have
semantic meaning, while one alone is an error.  For example, it is
impossible to tell if \ud820 in isolation is part of a letter, number,
or punctuation.  So for now, Sun's "solution" is to stall.  I did verify
today that JDK 1.4 is still on Unicode 3.0.0.

The implementation of Character that I just checked in to Classpath is
identical in behavior to Sun's (fortunately, testing every method on all
64k chars is not terribly time-consuming).  However, I could not run it
through Mauve; as I still have been unable to compile a free VM on
cygwin, and Sun's VM doesn't like me replacing core classes like
Character.  But if Character fails any tests in Mauve now, then I would
suspect that Mauve has the bugs.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer



From cbj@gnu.org Sun Feb 17 10:18:19 2002
Received: from [24.93.67.52] (helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16cT51-0002Vz-00
	for <classpath@gnu.org>; Sun, 17 Feb 2002 10:18:19 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sun, 17 Feb 2002 10:16:49 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1HFGiD05531;
	Sun, 17 Feb 2002 10:16:44 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: generation of gnu/java/locale/*.uni
References: <3C6E39E2.57FD15C1@email.byu.edu>
	<m3664xmoa2.fsf@lyta.haphazard.org> <3C6E9985.B300CB9B@email.byu.edu>
	<m3vgcxkyyh.fsf@lyta.haphazard.org> <3C6F5FCB.314636D9@email.byu.edu>
From: Brian Jones <cbj@gnu.org>
Date: 17 Feb 2002 10:16:44 -0500
In-Reply-To: <3C6F5FCB.314636D9@email.byu.edu>
Message-ID: <m3pu34p28z.fsf@lyta.haphazard.org>
Lines: 39
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake <ebb9@email.byu.edu> writes:

> Brian Jones wrote:
> > 
> > As I recall Unicode now requires more bits than a Java 'char' allows.
> > I don't know that helps at all?  I don't really know what Sun's
> > solution is.  It looks like we did update to unicode data 3.0, but I
> > know our implementation fails many Mauve tests related to Character.
> 
> Unicode 3.1 introduced several code points in the surrogate space.  And
> the upcoming 3.2 adds even more.  These characters require two 16-bit
> fields to represent them (the first in \ud800 - \udb7f, the second in
> \udc00 - \udfff).  And Java does ignore these - the 4-byte abbreviation
> sequences of UTF-8 are illegal in class files (you have to use a 6-byte
> sequence instead), and Java identifiers may not include surrogate
> characters.  Sun would need to add more methods to the API to use them,
> because the point of surrogates is that two characters together have
> semantic meaning, while one alone is an error.  For example, it is
> impossible to tell if \ud820 in isolation is part of a letter, number,
> or punctuation.  So for now, Sun's "solution" is to stall.  I did verify
> today that JDK 1.4 is still on Unicode 3.0.0.
> 
> The implementation of Character that I just checked in to Classpath is
> identical in behavior to Sun's (fortunately, testing every method on all
> 64k chars is not terribly time-consuming).  However, I could not run it
> through Mauve; as I still have been unable to compile a free VM on
> cygwin, and Sun's VM doesn't like me replacing core classes like
> Character.  But if Character fails any tests in Mauve now, then I would
> suspect that Mauve has the bugs.

I'll run what you've checked in through Mauve here and see what
happens.  Do you have time to evaluate the Character implementation
Artur pointed to?  I'm mostly concerned with correctness, I think the
one he pointed to improved efficiency, if not speed.  I'd do this
myself but that would involve time learning how Character/Unicode work.

Brian
-- 
Brian Jones <cbj@gnu.org>


From ebb9@email.byu.edu Sun Feb 17 10:29:54 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16cTGE-00032s-00
	for <classpath@gnu.org>; Sun, 17 Feb 2002 10:29:54 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020217152953.YQFZ1147.rwcrmhc52.attbi.com@email.byu.edu>;
          Sun, 17 Feb 2002 15:29:53 +0000
Message-ID: <3C6FC736.160DD978@email.byu.edu>
Date: Sun, 17 Feb 2002 08:07:34 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Artur Biesiadowski <abies@pg.gda.pl>
CC: classpath <classpath@gnu.org>
Subject: Re: generation of gnu/java/locale/*.uni
References: <3C6E39E2.57FD15C1@email.byu.edu> <3C6FA63E.6070204@pg.gda.pl> <3C6FA6F1.4040705@pg.gda.pl>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Artur Biesiadowski wrote:
> 
> I know that I tell it every time Character issue comes - but aren't we
> going to use alternative Character posted here some time ago (2 years?).
> It had a LOT better performance (no object creation during check and
> check itself quite faster) , encoded all data in Strings (so there was
> no need to play tricks with loaders and dependency on gnu/something
> class). Only problem I had was, I was unable to compile it with old
> jikes due to some funny unicode.

Hmm, I did find it kind of fishy that the current implementation was
creating so many throwaway objects.  However, while the changes I made
further separate the two implementations, I'll look at incorporating the
benefits I see in the alternative:

1. loading from Strings instead of Java File IO is nicer, making the
static initialization slightly faster, but more importantly less
dependent on other classes (note that I would still be using file IO, as
the data must be in a separate file to be easily upgradeable; but
implicitly through the VM ClassLoader and not explicitly)

2. caching all attributes in arrays requires more runtime memory, but if
the arrays are compressed enough, this is a hands-down win over frequent
object creation

3. character class checks, such as isLetter(), are more efficient, using
a shift and single comparison to a constant instead of a series of
conditional comparisons

> 
> Even if it might be out-of-date and non-compilable today, it might be
> nice to maybe work with it ? Or otherwise tell me that it WON'T be used
> ever, so I can stop touching this subject every time Character is on
> board :)

Thanks for bringing up the issue.  I hope to make some of those
improvements in the near future.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From cbj@gnu.org Sun Feb 17 11:06:30 2002
Received: from fe5.southeast.rr.com ([24.93.67.52] helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16cTpd-0006Yt-00
	for <classpath@gnu.org>; Sun, 17 Feb 2002 11:06:29 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sun, 17 Feb 2002 11:06:26 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1HG6LY31466;
	Sun, 17 Feb 2002 11:06:21 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: GNU Classpath <classpath@gnu.org>
Subject: Mauve HOWTO
From: Brian Jones <cbj@gnu.org>
Date: 17 Feb 2002 11:06:21 -0500
Message-ID: <m3zo283xfm.fsf@lyta.haphazard.org>
Lines: 35
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

This document is in rough form, but I figured someone might find it
useful.

Mauve HOWTO

Set JAVAC, JAVA environment variables

	export JAVA=orp
	export JAVAC=jikes

(orp is a shell script that calls the real orp with some arguments)

	#!/bin/sh
	~/orp-1.0.9/mains/orp/Linux/dbg/orp -swapjit 0 1 -classpath \
		$CLASSPATH $*

Configure and create Makefile

./configure

Run All Tests

	make KEYS=classpath check

Or Run a Single Test

	echo "gnu.testlet.java.io.File.jdk11" | \
		orp gnu.testlet.SimpleTestHarness

To recompile, delete classes.stamp
To reconfigure classes based on KEYS input, delete choices and classes
To change JAVA or JAVAC, change environment and rerun configure

-- 
Brian Jones <cbj@gnu.org>


From tromey@creche.cygnus.com Sun Feb 17 13:32:13 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16cW6f-0001ht-00
	for <classpath@gnu.org>; Sun, 17 Feb 2002 13:32:13 -0500
Received: from creche.cygnus.com (ta0197.peakpeak.com [204.144.244.197] (may be forged))
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id LAA31949;
	Sun, 17 Feb 2002 11:18:55 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id LAA08737;
	Sun, 17 Feb 2002 11:43:04 -0700
To: ebb9@email.byu.edu
Cc: Classpath Project <classpath@gnu.org>
Subject: Re: classpath ./ChangeLog java/lang/Character.java ...
References: <E16cLls-0001yK-00@subversions.gnu.org>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Please come home with me...  I have Tylenol!!
Date: 17 Feb 2002 11:43:04 -0700
In-Reply-To: Eric Blake's message of "Sun, 17 Feb 2002 02:30:04 -0500"
Message-ID: <873d00kkzr.fsf@creche.redhat.com>
Lines: 14
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Eric" == Eric Blake <ebb9@email.byu.edu> writes:

Eric> Added files:
Eric> 	doc/unicode    : Blocks-3.txt ReadMe-3.0.0.txt 
Eric> 	                 UnicodeData-3.0.0.html UnicodeData-3.0.0.txt 
Eric> 	                 unicode-blocks.pl 

Last time I looked we were allowed to use the Unicode data tables, and
distribute files generated from them, but we couldn't distribute the
tables themselves.  These restrictions were set by the Unicode
Consortium, and I found them somewhere on the web site.  Has this
changed?

Tom


From ebb9@email.byu.edu Sun Feb 17 16:53:10 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16cZF8-0000FD-00
	for <classpath@gnu.org>; Sun, 17 Feb 2002 16:53:10 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020217215308.BXUX2626.rwcrmhc51.attbi.com@email.byu.edu>;
          Sun, 17 Feb 2002 21:53:08 +0000
Message-ID: <3C700A03.2F8A6FF7@email.byu.edu>
Date: Sun, 17 Feb 2002 12:52:35 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: tromey@redhat.com
CC: Classpath Project <classpath@gnu.org>
Subject: Re: classpath ./ChangeLog java/lang/Character.java ...
References: <E16cLls-0001yK-00@subversions.gnu.org> <873d00kkzr.fsf@creche.redhat.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Tom Tromey wrote:
> 
> Last time I looked we were allowed to use the Unicode data tables, and
> distribute files generated from them, but we couldn't distribute the
> tables themselves.  These restrictions were set by the Unicode
> Consortium, and I found them somewhere on the web site.  Has this
> changed?

Hmm, I'll look into that.  I just committed the 3.0.0 files since the
2.1.2 files were already in CVS, but if I need to, I'll remove the
documents and replace them with a HOWTO on obtaining them from the
source.  I'll be checking the Unicode site for their license policies.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer



From ebb9@email.byu.edu Sun Feb 17 17:12:10 2002
Received: from rwcrmhc53.attbi.com ([204.127.198.39])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16cZXV-00017j-00
	for <classpath@gnu.org>; Sun, 17 Feb 2002 17:12:09 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc53.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020217221208.GYRN2951.rwcrmhc53.attbi.com@email.byu.edu>;
          Sun, 17 Feb 2002 22:12:08 +0000
Message-ID: <3C702AB3.4AA081C9@email.byu.edu>
Date: Sun, 17 Feb 2002 15:12:03 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: tromey@redhat.com, Classpath Project <classpath@gnu.org>
Subject: Re: classpath ./ChangeLog java/lang/Character.java ...
References: <E16cLls-0001yK-00@subversions.gnu.org>
	 <873d00kkzr.fsf@creche.redhat.com> <3C700A03.2F8A6FF7@email.byu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I found the license, and am committing that file to CVS as well.  As I
read it, we are perfectly justified in including the UnicodeData files
in CVS and our distributions.

"Recipient is granted the right to make copies in any form for internal
distribution and to freely use the information supplied in the creation
of products supporting the UnicodeTM Standard. The files in the Unicode
Character Database can be redistributed to third parties or other
organizations (whether for profit or not) as long as this notice and the
disclaimer notice are retained. Information can be extracted from these
files and used in documentation or programs, as long as there is an
accompanying notice indicating the source."

Tom Tromey wrote:
>
> Last time I looked we were allowed to use the Unicode data tables, and
> distribute files generated from them, but we couldn't distribute the
> tables themselves.  These restrictions were set by the Unicode
> Consortium, and I found them somewhere on the web site.  Has this
> changed?

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From tromey@creche.cygnus.com Sun Feb 17 17:37:54 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16cZwP-0004AC-00
	for <classpath@gnu.org>; Sun, 17 Feb 2002 17:37:53 -0500
Received: from creche.cygnus.com (ta0205.peakpeak.com [204.144.244.205])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id PAA26349;
	Sun, 17 Feb 2002 15:37:40 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id QAA14197;
	Sun, 17 Feb 2002 16:01:55 -0700
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath Project <classpath@gnu.org>
Subject: Re: classpath ./ChangeLog java/lang/Character.java ...
References: <E16cLls-0001yK-00@subversions.gnu.org> <873d00kkzr.fsf@creche.redhat.com> <3C700A03.2F8A6FF7@email.byu.edu> <3C702AB3.4AA081C9@email.byu.edu>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Psychoanalysis??  I thought this was a nude rap session!!!
Date: 17 Feb 2002 16:01:55 -0700
In-Reply-To: Eric Blake's message of "Sun, 17 Feb 2002 15:12:03 -0700"
Message-ID: <87n0y7iufw.fsf@creche.redhat.com>
Lines: 9
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Eric" == Eric Blake <ebb9@email.byu.edu> writes:

Eric> I found the license, and am committing that file to CVS as well.
Eric> As I read it, we are perfectly justified in including the
Eric> UnicodeData files in CVS and our distributions.

Thanks for following up on this.

Tom


From mark@wildebeest.org Mon Feb 18 11:20:47 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16cqX0-0002qP-00
	for <classpath@gnu.org>; Mon, 18 Feb 2002 11:20:47 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16cqWo-0002yx-00
	for <classpath@gnu.org>; Mon, 18 Feb 2002 17:20:34 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16cqWz-0002ky-00
	for <classpath@gnu.org>; Mon, 18 Feb 2002 17:20:45 +0100
Subject: Changes to vm/reference Thread
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 18 Feb 2002 17:20:44 +0100
Message-Id: <1014049244.5310.31.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

I made a couple of changes to Thread partly based on the patches that
the Orp developers submitted. They shouldn't impact VM writers but you
might want to update your Thread implementation based on the reference
in vm/reference/java/lang/Thread.java.

2002-02-18  Mark Wielaard  <mark@klomp.org>

  * vm/reference/java/lang/Thread.java (contextClassLoader): new field.
  (Thread): set contextClassLoader field.
  (stop): deprecated.
  (suspend): likewise.
  (resume): likewise.
  (checkAccess): final.
  (getContextClassLoader): implement.
  (setContextClassLoader): new method.

Cheers,

Mark




From ebb9@email.byu.edu Mon Feb 18 15:07:34 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16cu4U-0005yX-00; Mon, 18 Feb 2002 15:07:34 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020218200732.EQWF1147.rwcrmhc52.attbi.com@email.byu.edu>;
          Mon, 18 Feb 2002 20:07:32 +0000
Message-ID: <3C715E9F.247A5E23@email.byu.edu>
Date: Mon, 18 Feb 2002 13:05:51 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
CC: Classpath list <classpath@gnu.org>
Subject: Re: generation of gnu/java/locale/*.uni
References: <3C6E39E2.57FD15C1@email.byu.edu>
	 <m3664xmoa2.fsf@lyta.haphazard.org> <3C6E9985.B300CB9B@email.byu.edu>
	 <m3vgcxkyyh.fsf@lyta.haphazard.org> <3C6F5FCB.314636D9@email.byu.edu> <m3pu34p28z.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones wrote:
> 
> I'll run what you've checked in through Mauve here and see what
> happens.  Do you have time to evaluate the Character implementation
> Artur pointed to?  I'm mostly concerned with correctness, I think the
> one he pointed to improved efficiency, if not speed.  I'd do this
> myself but that would involve time learning how Character/Unicode work.

I just committed an update based on Artur's code.  And since the
database is no longer a binary file, you should have no problems using
it straight out of CVS for another run through Mauve.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From abies@pg.gda.pl Mon Feb 18 15:34:50 2002
Received: from mail.engelsinfo.de ([212.6.209.241])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16cuUr-0000NQ-00
	for <classpath@gnu.org>; Mon, 18 Feb 2002 15:34:50 -0500
Received: from pg.gda.pl (dvalin [212.6.209.232])
	by mail.engelsinfo.de (8.9.3+Sun/8.9.1) with ESMTP id VAA20400;
	Mon, 18 Feb 2002 21:25:09 +0100 (MET)
Message-ID: <3C716544.1030302@pg.gda.pl>
Date: Mon, 18 Feb 2002 21:34:12 +0100
From: Artur Biesiadowski <abies@pg.gda.pl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020202
X-Accept-Language: en-us
MIME-Version: 1.0
To: Eric Blake <ebb9@email.byu.edu>, classpath <classpath@gnu.org>
Subject: Re: generation of gnu/java/locale/*.uni
References: <3C6E39E2.57FD15C1@email.byu.edu>	 <m3664xmoa2.fsf@lyta.haphazard.org> <3C6E9985.B300CB9B@email.byu.edu>	 <m3vgcxkyyh.fsf@lyta.haphazard.org> <3C6F5FCB.314636D9@email.byu.edu> <m3pu34p28z.fsf@lyta.haphazard.org> <3C715E9F.247A5E23@email.byu.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake wrote:
> Brian Jones wrote:
> 
>>I'll run what you've checked in through Mauve here and see what
>>happens.  Do you have time to evaluate the Character implementation
>>Artur pointed to?  I'm mostly concerned with correctness, I think the
>>one he pointed to improved efficiency, if not speed.  I'd do this
>>myself but that would involve time learning how Character/Unicode work.
>>
> 
> I just committed an update based on Artur's code.  And since the
> database is no longer a binary file, you should have no problems using
> it straight out of CVS for another run through Mauve.


Please note that this is not my code - it was written by Jochen Hoenicke.

I think that you might also find it useful:

http://www.mail-archive.com/classpath@gnu.org/msg02024.html

I don't know how much the implementation differs now and unfortunately I 
cannot make a check right now, but I suppose that playing with block 
sizes should not be hard.

Thanks for commiting this stuff - it should make a lot of stuff working 
a lot faster...


Artur



From mark@wildebeest.org Mon Feb 18 15:48:28 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16cui4-00010g-00
	for <classpath@gnu.org>; Mon, 18 Feb 2002 15:48:28 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16cuhr-00038M-00
	for <classpath@gnu.org>; Mon, 18 Feb 2002 21:48:15 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16cui2-0006sV-00
	for <classpath@gnu.org>; Mon, 18 Feb 2002 21:48:26 +0100
Subject: glibj.zip can be build again (Was: generation of
	gnu/java/locale/*.uni)
From: Mark Wielaard <mark@klomp.org>
To: Classpath list <classpath@gnu.org>
In-Reply-To: <3C715E9F.247A5E23@email.byu.edu>
References: <3C6E39E2.57FD15C1@email.byu.edu>
	<m3664xmoa2.fsf@lyta.haphazard.org> <3C6E9985.B300CB9B@email.byu.edu>
	<m3vgcxkyyh.fsf@lyta.haphazard.org> <3C6F5FCB.314636D9@email.byu.edu>
	<m3pu34p28z.fsf@lyta.haphazard.org>  <3C715E9F.247A5E23@email.byu.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 18 Feb 2002 21:48:26 +0100
Message-Id: <1014065306.16501.56.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-02-18 at 21:05, Eric Blake wrote:
> 
> I just committed an update based on Artur's code.  And since the
> database is no longer a binary file, you should have no problems using
> it straight out of CVS for another run through Mauve.

Yeah! No more Character depends on java.io bootstrap issues. This makes
it possible to generate the zip file again. I will enable it in the
build stuff again. Remember to run aclocal; autoheader; automake;
autoconf and ./configure next time you CVS update to enable it.

When using orp this means that your orp script can be changed to
something like:

CLP=/usr/local/classpath/share/classpath/glibj.zip:.
(LD_LIBRARY_PATH=/usr/local/classpath/lib/classpath
/home/elsschot/mark/src/orp-1.0.9/mains/orp/Linux/dbg/orp -swapjit 0 1
-classpath $CLP $*)

Cheers,

Mark


From ebb9@email.byu.edu Mon Feb 18 17:20:50 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16cw9S-0008Jk-00
	for <classpath@gnu.org>; Mon, 18 Feb 2002 17:20:50 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020218222049.IHOL1147.rwcrmhc52.attbi.com@email.byu.edu>;
          Mon, 18 Feb 2002 22:20:49 +0000
Message-ID: <3C717E38.8D82167C@email.byu.edu>
Date: Mon, 18 Feb 2002 15:20:40 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Artur Biesiadowski <abies@pg.gda.pl>
CC: classpath <classpath@gnu.org>
Subject: Re: generation of gnu/java/locale/*.uni
References: <3C6E39E2.57FD15C1@email.byu.edu>
	 <m3664xmoa2.fsf@lyta.haphazard.org> <3C6E9985.B300CB9B@email.byu.edu>
	 <m3vgcxkyyh.fsf@lyta.haphazard.org> <3C6F5FCB.314636D9@email.byu.edu>
	 <m3pu34p28z.fsf@lyta.haphazard.org> <3C715E9F.247A5E23@email.byu.edu> <3C716544.1030302@pg.gda.pl>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Artur Biesiadowski wrote:
> >
> > I just committed an update based on Artur's code.  And since the
> > database is no longer a binary file, you should have no problems using
> > it straight out of CVS for another run through Mauve.
> 
> Please note that this is not my code - it was written by Jochen Hoenicke.

Sorry. I'll correct those references in CVS to give credit where it is
due.

> 
> I think that you might also find it useful:
> 
> http://www.mail-archive.com/classpath@gnu.org/msg02024.html

Hmm, more fun reading for me to do...

> 
> I don't know how much the implementation differs now and unfortunately I
> cannot make a check right now, but I suppose that playing with block
> sizes should not be hard.

The unicode-muncher.pl script checks all block sizes from 3-8 in
selecting the best size.  The best block size for Unicode 3.0.0 turns
out to be 5; for Unicode 3.2.0 it is 4.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From mark@wildebeest.org Mon Feb 18 18:15:08 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16cx00-0007GV-00; Mon, 18 Feb 2002 18:15:08 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16cwzm-0003DL-00; Tue, 19 Feb 2002 00:14:54 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16cwzw-0007NH-00; Tue, 19 Feb 2002 00:15:04 +0100
Subject: Re: generation of gnu/java/locale/*.uni
From: Mark Wielaard <mark@klomp.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: Brian Jones <cbj@gnu.org>, Classpath list <classpath@gnu.org>
In-Reply-To: <3C715E9F.247A5E23@email.byu.edu>
References: <3C6E39E2.57FD15C1@email.byu.edu>
	<m3664xmoa2.fsf@lyta.haphazard.org> <3C6E9985.B300CB9B@email.byu.edu>
	<m3vgcxkyyh.fsf@lyta.haphazard.org> <3C6F5FCB.314636D9@email.byu.edu>
	<m3pu34p28z.fsf@lyta.haphazard.org>  <3C715E9F.247A5E23@email.byu.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 19 Feb 2002 00:15:04 +0100
Message-Id: <1014074104.27755.21.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-02-18 at 21:05, Eric Blake wrote:
> 
> I just committed an update based on Artur's code.  And since the
> database is no longer a binary file, you should have no problems using
> it straight out of CVS for another run through Mauve.

Running it through mauve (jikes 1.15 + orp 1.0.9) still gives lots of
failures for the Character tests: 168221 of 3603824 tests failed.
Here are a couple of failures that are repeated often:

FAIL: gnu.testlet.java.lang.Character.unicode: Character 0:UNDEFINED has
wrong numeric value of -1 instead of 35 (number 1) (24209 times)

FAIL: gnu.testlet.java.lang.Character.unicode: Character 0:UNDEFINED
incorectly reported as javaidentifierpart (number 1) (14007 times)

FAIL: gnu.testlet.java.lang.Character.unicode: Character 0:UNDEFINED
incorectly reported as unicodeidentifierpart (number 1) (13976 times)

FAIL: gnu.testlet.java.lang.Character.unicode: Character 24:UNDEFINED
incorectly reported as javaindetifierstart (number 1) (13164 times)

FAIL: gnu.testlet.java.lang.Character.unicode: Character 41:UNDEFINED
incorectly reported as unicodeidentifierstart (number 1) (13122 times)

FAIL: gnu.testlet.java.lang.Character.unicode: Character 1bb:UNDEFINED
is reported to be type Lo instead of Cn (number 1) (11506 times)

These could easily be bugs in Mauve though. Mauve uses its own
UnicodeData.txt file.

Cheers,

Mark


From mark@wildebeest.org Tue Feb 19 17:28:17 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16dIkC-0000Q5-00
	for <classpath@gnu.org>; Tue, 19 Feb 2002 17:28:17 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16dIjy-00040m-00; Tue, 19 Feb 2002 23:28:02 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16dIkA-0006g2-00; Tue, 19 Feb 2002 23:28:14 +0100
Subject: Method.equals()
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Cc: gansha.wu@intel.com
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 19 Feb 2002 23:28:14 +0100
Message-Id: <1014157694.24428.21.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

I am going through the patches that the Orp developers submitted to
Classpath. The following patch to Method puzzles me:

2001-12-17  Wu Gansha <gansha.wu@intel.com>
 
        * vm/reference/java/lang/reflect/Method.java: Reimplemented
equals(), refined toString().

Index: vm/reference/java/lang/reflect/Method.java
===================================================================
RCS file:
/home/gwu2/cvs/classpath/classpath/vm/reference/java/lang/reflect/Method.java,v
retrieving revision 1.4
diff -w -r1.4 Method.java
145c145,161
<     return this == o;
---
>     if (o == null)
>         return false;
>     if (!(o instanceof Method))
>               return false;
>       Method m = (Method)o;
>       if(!name.equals(m.getName()))
>           return false;
>       if(!declaringClass.equals(m.getDeclaringClass()))
>           return false;
>       Class[] params1 = getParameterTypes();
>       Class[] params2 = m.getParameterTypes();
>       if(params1.length != params2.length)
>           return false;
>       for(int i = 0; i < params1.length; i++)
>           if(params1[i] != params2[i])
>               return false;
>       return true;

Why/When is this neccessary? The comment to equals says:

 Two Methods are semantically equivalent if they have the same declaring
 class, name, and parameter list.  This ignores different exception
 clauses, but since you can't create a Method except through the VM,
 this is just the == relation.

So this comment is wrong for Orp, but when does this happen?

Maybe we should just mark this method "native" in Classpath and
leave it to the VM implementor.

Cheers,

Mark


From bryce@waitaki.otago.ac.nz Tue Feb 19 17:47:40 2002
Received: from waitaki.otago.ac.nz ([139.80.75.140])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16dJ2y-0003RK-00
	for <classpath@gnu.org>; Tue, 19 Feb 2002 17:47:40 -0500
Received: from waitaki.otago.ac.nz (IDENT:bryce@reason.otago.ac.nz [139.80.119.17])
	by waitaki.otago.ac.nz (8.11.6/8.11.2) with ESMTP id g1JMlOO22413;
	Wed, 20 Feb 2002 11:47:24 +1300
Message-ID: <3C72D600.4060001@waitaki.otago.ac.nz>
Date: Wed, 20 Feb 2002 11:47:28 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org, gansha.wu@intel.com
Subject: Re: Method.equals()
References: <1014157694.24428.21.camel@elsschot>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:

>I am going through the patches that the Orp developers submitted to
>Classpath. The following patch to Method puzzles me:
>
>2001-12-17  Wu Gansha <gansha.wu@intel.com>
> 
>        * vm/reference/java/lang/reflect/Method.java: Reimplemented
>equals(), refined toString().
>
>
>Why/When is this neccessary? The comment to equals says:
>
> Two Methods are semantically equivalent if they have the same declaring
> class, name, and parameter list.  This ignores different exception
> clauses, but since you can't create a Method except through the VM,
> this is just the == relation.
>
>So this comment is wrong for Orp, but when does this happen?
>

This comment is also wrong for GCJ, where a new Method object is always 
created by a getMethod call, since Method is really just a wrapper 
around an internal reflection data structure. Some VMs may use the 
Method class as their native/internal representation, and in that case 
using == would be an optimization.

>Maybe we should just mark this method "native" in Classpath and
>leave it to the VM implementor.
>

I don't think it is neccessary to make it native. Method is already part 
of the VM interface, so VMs can modify it or make it native as they 
wish. I think the more conservative approach should be taken by the 
default implementation.

regards

Bryce.




From cbj@gnu.org Tue Feb 19 19:45:51 2002
Received: from [24.93.67.51] (helo=mail4.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16dKtL-0005oh-00
	for <classpath@gnu.org>; Tue, 19 Feb 2002 19:45:51 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail4.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 19 Feb 2002 19:45:50 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1K0ifk30042;
	Tue, 19 Feb 2002 19:44:41 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
Cc: Mark Wielaard <mark@klomp.org>, classpath@gnu.org, gansha.wu@intel.com
Subject: Re: Method.equals()
References: <1014157694.24428.21.camel@elsschot>
	<3C72D600.4060001@waitaki.otago.ac.nz>
From: Brian Jones <cbj@gnu.org>
Date: 19 Feb 2002 19:44:35 -0500
In-Reply-To: <3C72D600.4060001@waitaki.otago.ac.nz>
Message-ID: <m3it8t3rt8.fsf@lyta.haphazard.org>
Lines: 14
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:

> I don't think it is neccessary to make it native. Method is already
> part of the VM interface, so VMs can modify it or make it native as
> they wish. I think the more conservative approach should be taken by
> the default implementation.

It may be necessary to consider including an ORP vm directory or ask
that the ORP team distribute these particular classes specific to ORP
with ORP.

Brian
-- 
Brian Jones <cbj@gnu.org>


From cbj@gnu.org Tue Feb 19 20:52:58 2002
Received: from fe4.southeast.rr.com ([24.93.67.51] helo=mail4.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16dLwI-0002n5-00
	for <classpath@gnu.org>; Tue, 19 Feb 2002 20:52:58 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail4.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 19 Feb 2002 20:53:18 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1K1qHu30436;
	Tue, 19 Feb 2002 20:52:17 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: GNU Classpath <classpath@gnu.org>
Subject: java.beans.Introspector
From: Brian Jones <cbj@gnu.org>
Date: 19 Feb 2002 20:52:17 -0500
Message-ID: <m3eljg538u.fsf@lyta.haphazard.org>
Lines: 7
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Is there a particular reason to include sun.beans.infos in the default
array returned by getBeanInfoSearchPath?  Currently this returns
gnu.java.beans.info and sun.beans.infos.

Brian
-- 
Brian Jones <cbj@gnu.org>


From michal.cierniak@intel.com Tue Feb 19 21:11:03 2002
Received: from fmfdns01.fm.intel.com ([132.233.247.10] helo=calliope1.fm.intel.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16dMDm-0003wG-00; Tue, 19 Feb 2002 21:11:02 -0500
Received: from fmsmsxvs041.fm.intel.com (fmsmsxv041-1.fm.intel.com [132.233.48.109])
	by calliope1.fm.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.51 2002/02/19 21:12:32 root Exp $) with SMTP id CAA01689;
	Wed, 20 Feb 2002 02:10:59 GMT
Received: from FMSMSX016.fm.intel.com ([132.233.42.195])
 by fmsmsxvs041.fm.intel.com (NAVGW 2.5.1.16) with SMTP id M2002021918114526814
 ; Tue, 19 Feb 2002 18:11:45 -0800
Received: by fmsmsx016.fm.intel.com with Internet Mail Service (5.5.2653.19)
	id <FH965BAP>; Tue, 19 Feb 2002 18:10:59 -0800
Message-ID: <794826DE8867D411BAB8009027AE9EB90FE78250@FMSMSX38>
From: "Cierniak, Michal" <michal.cierniak@intel.com>
To: "'Brian Jones'" <cbj@gnu.org>, Bryce McKinlay <bryce@waitaki.otago.ac.nz>
Cc: Mark Wielaard <mark@klomp.org>, classpath@gnu.org,
        "Wu, Gansha" <gansha.wu@intel.com>
Subject: RE: Method.equals()
Date: Tue, 19 Feb 2002 18:10:55 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones writes:
> Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> 
> > I don't think it is neccessary to make it native. Method is already
> > part of the VM interface, so VMs can modify it or make it native as
> > they wish. I think the more conservative approach should be taken by
> > the default implementation.
> 
> It may be necessary to consider including an ORP vm directory
> or ask that the ORP team distribute these particular classes
> specific to ORP with ORP.

But I thought that Bryce indicated in his message that he also liked the
patch submitted by Gansha.  It sounds like this modification is useful for
both ORP and GCJ since they both have their own internal data structures to
represent a method.

Michal


From bryce@waitaki.otago.ac.nz Tue Feb 19 21:19:30 2002
Received: from waitaki.otago.ac.nz ([139.80.75.140])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16dMLx-0004Pj-00; Tue, 19 Feb 2002 21:19:29 -0500
Received: from waitaki.otago.ac.nz (IDENT:bryce@reason.otago.ac.nz [139.80.119.17])
	by waitaki.otago.ac.nz (8.11.6/8.11.2) with ESMTP id g1K2JJO23167;
	Wed, 20 Feb 2002 15:19:19 +1300
Message-ID: <3C7307AA.8010809@waitaki.otago.ac.nz>
Date: Wed, 20 Feb 2002 15:19:22 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: "Cierniak, Michal" <michal.cierniak@intel.com>
CC: "'Brian Jones'" <cbj@gnu.org>, Mark Wielaard <mark@klomp.org>,
   classpath@gnu.org, "Wu, Gansha" <gansha.wu@intel.com>
Subject: Re: Method.equals()
References: <794826DE8867D411BAB8009027AE9EB90FE78250@FMSMSX38>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Cierniak, Michal wrote:

>Brian Jones writes:
>
>>Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
>>
>>>I don't think it is neccessary to make it native. Method is already
>>>part of the VM interface, so VMs can modify it or make it native as
>>>they wish. I think the more conservative approach should be taken by
>>>the default implementation.
>>>
>>It may be necessary to consider including an ORP vm directory
>>or ask that the ORP team distribute these particular classes
>>specific to ORP with ORP.
>>
>
>But I thought that Bryce indicated in his message that he also liked the
>patch submitted by Gansha.  It sounds like this modification is useful for
>both ORP and GCJ since they both have their own internal data structures to
>represent a method.
>

Right. Gansha's implementation should be the one that goes in 
vm/reference. It may not be optimal for all VMs, but it is always 
correct and most accurately matches the JDK spec, and it is the 
implementation required for both ORP and GCJ.

regards

Bryce.




From cbj@gnu.org Tue Feb 19 23:16:40 2002
Received: from [24.93.67.53] (helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16dOBM-0005u9-00
	for <classpath@gnu.org>; Tue, 19 Feb 2002 23:16:40 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 19 Feb 2002 23:16:19 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1K4Fbp30961;
	Tue, 19 Feb 2002 23:15:37 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
Cc: "Cierniak, Michal" <michal.cierniak@intel.com>,
   Mark Wielaard <mark@klomp.org>, classpath@gnu.org,
   "Wu, Gansha" <gansha.wu@intel.com>
Subject: Re: Method.equals()
References: <794826DE8867D411BAB8009027AE9EB90FE78250@FMSMSX38>
	<3C7307AA.8010809@waitaki.otago.ac.nz>
From: Brian Jones <cbj@gnu.org>
Date: 19 Feb 2002 23:15:37 -0500
In-Reply-To: <3C7307AA.8010809@waitaki.otago.ac.nz>
Message-ID: <m33czw4wly.fsf@lyta.haphazard.org>
Lines: 34
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:

> Cierniak, Michal wrote:
> 
> >Brian Jones writes:
> >
> >>Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> >>
> >>>I don't think it is neccessary to make it native. Method is already
> >>>part of the VM interface, so VMs can modify it or make it native as
> >>>they wish. I think the more conservative approach should be taken by
> >>>the default implementation.
> >>>
> >>It may be necessary to consider including an ORP vm directory
> >>or ask that the ORP team distribute these particular classes
> >>specific to ORP with ORP.
> >>
> >
> >But I thought that Bryce indicated in his message that he also liked the
> >patch submitted by Gansha.  It sounds like this modification is useful for
> >both ORP and GCJ since they both have their own internal data structures to
> >represent a method.
> >
> 
> Right. Gansha's implementation should be the one that goes in
> vm/reference. It may not be optimal for all VMs, but it is always
> correct and most accurately matches the JDK spec, and it is the
> implementation required for both ORP and GCJ.

Sorry, I mis-read that; I think this answers Mark's question.

Brian
-- 
Brian Jones <cbj@gnu.org>


From mark@wildebeest.org Fri Feb 22 16:07:50 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16eMuz-00081h-00
	for <classpath@gnu.org>; Fri, 22 Feb 2002 16:07:50 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.33 #1 (Debian))
	id 16eMuf-0006YL-00; Fri, 22 Feb 2002 22:07:29 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16eMus-0005Nn-00; Fri, 22 Feb 2002 22:07:42 +0100
Subject: 1.4 Throwable (Was: classpath ./ChangeLog
	gnu/java/lang/ClassHelper...)
From: Mark Wielaard <mark@klomp.org>
To: ebb9@email.byu.edu
Cc: classpath@gnu.org
In-Reply-To: <E16eLym-0006Fr-00@subversions.gnu.org>
References: <E16eLym-0006Fr-00@subversions.gnu.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 22 Feb 2002 22:07:42 +0100
Message-Id: <1014412062.19146.2.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Fri, 2002-02-22 at 21:07, Eric Blake wrote:
> 	* vm/reference/java/lang/Throwable.java: Ditto.

I saw you added some 1.4 support. I never finished the Exception
chaining and StackTraceElement support but I have the Java part.
If anyone wants to work on it please take a look at:
http://mail.gnu.org/pipermail/classpath/2001-July/000747.html

Cheers,

Mark


From ebb9@email.byu.edu Mon Feb 25 01:46:16 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16fEts-00041o-00
	for <classpath@gnu.org>; Mon, 25 Feb 2002 01:46:16 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020225064615.JKFB2626.rwcrmhc51.attbi.com@email.byu.edu>
          for <classpath@gnu.org>; Mon, 25 Feb 2002 06:46:15 +0000
Message-ID: <3C79DC96.6C36575D@email.byu.edu>
Date: Sun, 24 Feb 2002 23:41:26 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath list <classpath@gnu.org>
Subject: style question
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I'm looking at fixing a bug in Long.decode(), and came across a style
question.

Which is prefered, performing array bound checks throughout a method, or
enclosing the algorithm in a try-catch block which converts an
IndexOutOfBoundsException into a NumberFormatException?  Using a
try-catch block emits less bytecode, and if decode() is used on valid
strings as the common case, it reduces overhead to not check the
bounds.  In the exceptional case, my proposal must create and discard an
IndexOutOfBoundsException, while bounds checking avoids that, but the
method fails in either case.

Here's a diff, (not quite to GNU coding standards, to preserve
indentation), that illustrates my question:

Index: java/lang/Long.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Long.java,v
retrieving revision 1.14
diff -u -r1.14 Long.java
--- java/lang/Long.java	25 Feb 2002 01:36:03 -0000	1.14
+++ java/lang/Long.java	25 Feb 2002 06:38:54 -0000
@@ -355,27 +355,25 @@
[...]
   public static Long decode(String str)
   {
+try
+  {
     boolean isNeg = false;
     int index = 0;
     int radix = 10;
-    final int len;
-
-    if ((len = str.length()) == 0)
-      throw new NumberFormatException();
+    final int len = str.length();
 
     // Negative numbers are always radix 10.
     if (str.charAt(0) == '-')
@@ -405,10 +403,13 @@
           radix = 8;
       }
 
-    if (index >= len)
-      throw new NumberFormatException();
-
+    // Change parseLong to throw IndexOutOfBoundsException...
     return new Long(parseLong(str, index, len, isNeg, radix));
+  }
+catch (IndexOutOfBoundsException e)
+  {
+    throw new NumberFormatException();
+  }
   }
 
   /**
-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From cananian@lesser-magoo.lcs.mit.edu Mon Feb 25 01:55:08 2002
Received: from catfish.lcs.mit.edu ([18.111.0.152])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16fF2S-0004Q5-00
	for <classpath@gnu.org>; Mon, 25 Feb 2002 01:55:08 -0500
Received: from localhost (localhost [127.0.0.1])
	by catfish.lcs.mit.edu (8.11.4/8.11.4) with ESMTP id g1P6t5315476;
	Mon, 25 Feb 2002 01:55:05 -0500 (EST)
Date: Mon, 25 Feb 2002 01:55:05 -0500 (EST)
From: "C. Scott Ananian" <cananian@lesser-magoo.lcs.mit.edu>
X-Sender: cananian@catfish.lcs.mit.edu
To: Eric Blake <ebb9@email.byu.edu>
cc: Classpath list <classpath@gnu.org>
Subject: Re: [Classpath] style question
In-Reply-To: <3C79DC96.6C36575D@email.byu.edu>
Message-ID: <Pine.GSO.4.10.10202250149570.5707-100000@catfish.lcs.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Sun, 24 Feb 2002, Eric Blake wrote:

> Which is prefered, performing array bound checks throughout a method, or
> enclosing the algorithm in a try-catch block which converts an
> IndexOutOfBoundsException into a NumberFormatException?

For what it's worth: often adding explicit bounds checks will enable the
compiler to create faster code (by hoisting these checks, and others which
are implicit in the java semantics, out of the loop).  I'm not sure
which/any of the existing Java compilers are smart enough to do this, but
they all will be, eventually.

The try-catch block technique is sometimes faster for NullPointer
exceptions (because the exception handling is wrapped around the native
hardware memory protection mechanisms, and thus no hardware instructions
are required to do the checks in the common case), but I can't imagine any
case where the try-catch would be faster for array-bounds (okay, there are
some w/in *imagination*, but...).  In most cases, you'd be doing the same
array-bounds tests in hardware as in the explicit case, but then you'd
have to create the exception object and throw it, only to be caught,
rebuilt as another exception object, and rethrown.

Style needn't have anything to do w/ efficiency, though.  YMMV.
 --scott

Legion of Doom AK-47 DNC Rijndael Qaddafi payment Bush explosives 
Kennedy Indonesia biowarfare AES plastique Attache Saddam Hussein 
              ( http://lesser-magoo.lcs.mit.edu/~cananian )



From ebb9@email.byu.edu Mon Feb 25 02:34:30 2002
Received: from rwcrmhc54.attbi.com ([216.148.227.87])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16fFeY-0007pA-00
	for <classpath@gnu.org>; Mon, 25 Feb 2002 02:34:30 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc54.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020225073428.QZLY1214.rwcrmhc54.attbi.com@email.byu.edu>;
          Mon, 25 Feb 2002 07:34:28 +0000
Message-ID: <3C79E7B7.6A8EA0DB@email.byu.edu>
Date: Mon, 25 Feb 2002 00:28:55 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "C. Scott Ananian" <cananian@lesser-magoo.lcs.mit.edu>
CC: Classpath list <classpath@gnu.org>
Subject: Re: [Classpath] style question
References: <Pine.GSO.4.10.10202250149570.5707-100000@catfish.lcs.mit.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

"C. Scott Ananian" wrote:
> 
> For what it's worth: often adding explicit bounds checks will enable the
> compiler to create faster code (by hoisting these checks, and others which
> are implicit in the java semantics, out of the loop).  I'm not sure
> which/any of the existing Java compilers are smart enough to do this, but
> they all will be, eventually.

Notice that in my case, though, there is no loop, and the bounds check
is still in software.  I'm simply proposing to remove two independent
checks of the length in decode(), (before parsing, and after parsing
"0x"), because they duplicated the bounds check already explicit in
String.charAt().

I am not proposing to use VM hardware array bounds checking to reduce
the amount of bytecode.  And I do agree that this:
try
  {
    int i = 0;
    while (i++)
      // process array[i]
  }
catch (IndexOutOfBoundsException e)
  {
    // ignore - we used a try-catch as flow control
  }

is much worse than this:
for (int i = 0; i < array.length; i++)
  // process array[i]

> I can't imagine any
> case where the try-catch would be faster for array-bounds (okay, there are
> some w/in *imagination*, but...).  In most cases, you'd be doing the same
> array-bounds tests in hardware as in the explicit case, but then you'd
> have to create the exception object and throw it, only to be caught,
> rebuilt as another exception object, and rethrown.

That's what I was asking - if anyone else thinks that my proposed change
in decode() is one of those situations.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


From cananian@lesser-magoo.lcs.mit.edu Mon Feb 25 03:00:47 2002
Received: from catfish.lcs.mit.edu ([18.111.0.152])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16fG3z-0000kA-00
	for <classpath@gnu.org>; Mon, 25 Feb 2002 03:00:47 -0500
Received: from localhost (localhost [127.0.0.1])
	by catfish.lcs.mit.edu (8.11.4/8.11.4) with ESMTP id g1P80j324321;
	Mon, 25 Feb 2002 03:00:45 -0500 (EST)
Date: Mon, 25 Feb 2002 03:00:45 -0500 (EST)
From: "C. Scott Ananian" <cananian@lesser-magoo.lcs.mit.edu>
X-Sender: cananian@catfish.lcs.mit.edu
To: Eric Blake <ebb9@email.byu.edu>
cc: Classpath list <classpath@gnu.org>
Subject: Re: [Classpath] style question
In-Reply-To: <3C79E7B7.6A8EA0DB@email.byu.edu>
Message-ID: <Pine.GSO.4.10.10202250257320.5707-100000@catfish.lcs.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Mon, 25 Feb 2002, Eric Blake wrote:

> "C. Scott Ananian" wrote:
> > 
> > For what it's worth: often adding explicit bounds checks will enable the
> > compiler to create faster code (by hoisting these checks, and others which
> > are implicit in the java semantics, out of the loop).  I'm not sure
> > which/any of the existing Java compilers are smart enough to do this, but
> > they all will be, eventually.
> 
> Notice that in my case, though, there is no loop, and the bounds check
> is still in software.  I'm simply proposing to remove two independent
> checks of the length in decode(), (before parsing, and after parsing
> "0x"), because they duplicated the bounds check already explicit in
> String.charAt().

What I was saying, in effect, was that duplicate array bounds checks
should be optimized away, *if the compiler can determine that they are, in
fact, duplicate*.  Using the try-catch construct obscures this fact, so it
makes it harder for the compiler to Do The Right Thing.  Ideally, a
compiler would a) inline String.charAt(), b) remove the check from the
inlined String.charAt() since it was dominated by a similar check, and c)
then remove the second bounds check in decode, for the same reason as b).

I'm pretty sure the MIT FLEX compiler can do this, for example.
There are so many duplicate checks implicit in the java semantics that
most compilers would/should optimize them away.
  --scott

PLO AP Cocaine Boston Hussein Albanian assassination politics RNC 
munitions Kojarena plastique Serbian Rule Psix President planning 
              ( http://lesser-magoo.lcs.mit.edu/~cananian )



From julian@sektor37.de Mon Feb 25 00:02:05 2002
Received: from p5081305c.dip.t-dialin.net ([80.129.48.92] helo=gate.local.zo)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16fDH2-0003jh-00
	for <classpath@gnu.org>; Mon, 25 Feb 2002 00:02:05 -0500
Received: from sektor37.de (block.local.zo [10.0.0.7])
	by gate.local.zo (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id FAA06958
	for <classpath@gnu.org>; Mon, 25 Feb 2002 05:58:36 +0100
Message-ID: <3C79B6AF.3030601@sektor37.de>
Date: Mon, 25 Feb 2002 04:59:43 +0100
From: Julian Scheid <julian@sektor37.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath@gnu.org
Subject: [Fwd: XML doclet name]
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Context:

Some days ago, and several months after my initial announcement, I
finally resumed work on the Javadoc drop-in we decided to name
'gjdoc' back then - perhaps you remember.

There are still a number of bugs and unresolved issues, but I hope
we at cp-tools can provide a useful alpha version during the next
two or three weeks, last not least.

One thing was missing all the time: a replacement for Suns "Standard
Doclet" which allows you to produce documentation in HTML format.
In order to fill this gap, I recently wrote a doclet which outputs
XML code, and a corresponding XSLT sheet which transforms this into a
set of HTML pages.

The following refers to this intermediate doclet, which basically
does nothing but dump Doclet API information to stdout in XML format.

I'm forwarding this to the Classpath list because of the XML issues
involved. Perhaps someone can tell me what the current GNU policy is
on XML unique URLs and such?

Julian

-------- Original Message --------
Subject: XML doclet name
Date: Mon, 25 Feb 2002 03:54:11 +0100
From: Julian Scheid <julian@sektor37.de>
To: cp-tools-discuss@gnu.org

Not only Sun and Apache efforts for writing Javadoc as XML
are named XMLDoclet. See http://www.google.com/search?q=xmldoclet

So we should come up with a different name I suppose.
What about "gjdocxml" or "gjxmldoclet"? Any suggestion?

We need names for the following too:
(my suggestion in brackets)

- xml namespace prefix ("gjdoc:")
- xml namespace url ("http://www.gnu.org/software/cp-tools/gjdoc")
- xml dtd file name ("gjdoc.dtd")
- xml dtd url ("http://www.gnu.org/software/cp-tools/gjdoc.dtd")
- xsl sheet ("gjdoc2html.xsl")

Let me know what you think of these, I'm especially unsure about
the URLs... is there anything like a GNU XML standard?




From tromey@creche.cygnus.com Mon Feb 25 13:54:32 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16fQGd-0006IA-00
	for <classpath@gnu.org>; Mon, 25 Feb 2002 13:54:31 -0500
Received: from creche.cygnus.com (ta0206.peakpeak.com [204.144.244.206])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id LAA13093;
	Mon, 25 Feb 2002 11:54:26 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id MAA03673;
	Mon, 25 Feb 2002 12:20:47 -0700
To: "C. Scott Ananian" <cananian@lesser-magoo.lcs.mit.edu>
Cc: Eric Blake <ebb9@email.byu.edu>, Classpath list <classpath@gnu.org>
Subject: Re: [Classpath] style question
References: <Pine.GSO.4.10.10202250257320.5707-100000@catfish.lcs.mit.edu>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Where's the Coke machine?  Tell me a joke!!
Date: 25 Feb 2002 12:20:47 -0700
In-Reply-To: "C. Scott Ananian"'s message of "Mon, 25 Feb 2002 03:00:45 -0500 (EST)"
Message-ID: <87664ls700.fsf@creche.redhat.com>
Lines: 29
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> ">" == C Scott Ananian <cananian@lesser-magoo.lcs.mit.edu> writes:

>> What I was saying, in effect, was that duplicate array bounds
>> checks should be optimized away, *if the compiler can determine
>> that they are, in fact, duplicate*.

Yes.  In this case I don't think it is too far-fetched that a compiler
could discover this.  Strings are used often enough that teaching a
Java compiler about String.length wouldn't be unreasonable.  (gcj
can't do these optimizations now, but we plan to do them in the
future.)

>>  Using the try-catch construct obscures this fact, so it makes it
>> harder for the compiler to Do The Right Thing.

I agree with this too.  Also, since exceptions are presumably
exceptional, compiler writers probably won't spend as much time
optimizing them as they will on unexceptional code paths.

I think we have to ask, though, what the goal is.  If it is
performance, then there is no single answer, since different
implementations have different tradeoffs.  For instance with gcj I
think exceptions are a bit more expensive than they are with, say,
Sun's JDK.  OTOH other things are cheaper (and ultimately a redundant
bounds check will be free).

If the goal is clarity, then it is a little harder to judge.

Tom


From nferrier@tapsellferrier.co.uk Tue Feb 26 12:37:52 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16flY0-0001op-00
	for <classpath@gnu.org>; Tue, 26 Feb 2002 12:37:52 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16flsE-0001rt-00; Tue, 26 Feb 2002 17:58:46 +0000
To: classpath@gnu.org
Subject: FileURLConnection
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 26 Feb 2002 17:58:46 +0000
Message-ID: <87y9hggm5l.fsf@tf1.tapsellferrier.co.uk>
Lines: 40
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Classpath has a FileURLConnection which does the minimal amount of
work necessary to present the filing system through the URL interface.

GNU-Paperclips needs a new resource handling implementation (because
of various JDK bugs and Paperclips enhancements).

Would anyone consider it evil if I were to add methods to Classpath's
FileURLConnection and then re-use that with Paperclips?

The idea being that I would have a configure time option which told
Paperclips to use it's own handler for the File space... user's
running Paperclips on Classpath could use the native Classpath
version.


The methods I would want to add would be:

  /** Does the specified path exist?
   */
  public static boolean exists(String path);

  /** Does the object pointed at exist?
   */
  public boolean exists();

  /** Is this URLConnection a directory?
   */
  public boolean isDirectory();

  /** If a directory return a set of the directory content.
   */
  public Set getListing();


If it is considered evil I will just have supply a completly fresh
FileURLConnection with Paperclips.


Nic


From arenn@enteract.com Tue Feb 26 12:57:50 2002
Received: from smtp-2.enteract.com ([207.229.143.4])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16flrK-0002oO-00
	for <classpath@gnu.org>; Tue, 26 Feb 2002 12:57:50 -0500
Received: from shell-3.enteract.com (shell-3.enteract.com [207.229.143.42])
	by smtp-2.enteract.com (Postfix) with ESMTP
	id 4ADBE652A; Tue, 26 Feb 2002 11:57:48 -0600 (CST)
Received: (from arenn@localhost)
	by shell-3.enteract.com (8.11.6/8.11.2) id g1QHvln22969;
	Tue, 26 Feb 2002 11:57:47 -0600 (CST)
	(envelope-from arenn)
Date: Tue, 26 Feb 2002 11:57:47 -0600
From: "Aaron M. Renn" <arenn@urbanophile.com>
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
Subject: Re: FileURLConnection
Message-ID: <20020226115747.A22954@urbanophile.com>
Mail-Followup-To: "Aaron M. Renn" <arenn@urbanophile.com>,
	Nic Ferrier <nferrier@tapsellferrier.co.uk>, classpath@gnu.org
References: <87y9hggm5l.fsf@tf1.tapsellferrier.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <87y9hggm5l.fsf@tf1.tapsellferrier.co.uk>; from nferrier@tapsellferrier.co.uk on Tue, Feb 26, 2002 at 05:58:46PM +0000
Organization: GNU's Not Unix!
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Nic Ferrier (nferrier@tapsellferrier.co.uk) wrote:
> Classpath has a FileURLConnection which does the minimal amount of
> work necessary to present the filing system through the URL interface.
> 
> GNU-Paperclips needs a new resource handling implementation (because
> of various JDK bugs and Paperclips enhancements).
> 
> Would anyone consider it evil if I were to add methods to Classpath's
> FileURLConnection and then re-use that with Paperclips?

I don't think that would be a problem.

-- 
Aaron M. Renn (arenn@urbanophile.com) http://www.urbanophile.com/arenn/

"We have a choice, either to change the way we live, which is unacceptable, 
or to change the way that they live, and we chose the latter."
  - Sec. of Defense Donald Rumsfeld, News briefing, 2001-09-18



From nferrier@tapsellferrier.co.uk Tue Feb 26 19:21:49 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16frqu-00021M-00
	for <classpath@gnu.org>; Tue, 26 Feb 2002 19:21:48 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16fsAl-0002GG-00; Wed, 27 Feb 2002 00:42:19 +0000
To: Erwin Bolwidt <ejb@klomp.org>
CC: classpath@gnu.org
Subject: Re: FileURLConnection
References: <87y9hggm5l.fsf@tf1.tapsellferrier.co.uk>
	<3C7C21D1.6050509@klomp.org>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 27 Feb 2002 00:42:19 +0000
In-Reply-To: <3C7C21D1.6050509@klomp.org>
Message-ID: <87g03ng3h0.fsf@tf1.tapsellferrier.co.uk>
Lines: 62
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Erwin Bolwidt <ejb@klomp.org> writes:

> Why don't you use the javax.naming abstractions? I know Tomcat uses it  
> with success. It is very extensible  

Using JNDI is not an option.

The Servlet API forces containers to provide the view of the
container's resource base (where the documents as well as the classes
and jars are stored) through URLs.

The simplest way to do that is through file URLs.

In point of fact, Paperclips currently has a URLStreamHandler for
every context, but this is now broken with 1.3 and it also causes
problems with mutliple hosts.


The servlet spec team (of which I'm a member) are currently
considering the use of JNDI as a replacement for URL described
resource bases.

I suspect that when it does arrive (JNDI) it will not be a complete
replacement but will run alongside the existing system. For at least
a couple of versions.



> and it seems better than changing the API of a standard API
> class... 

I didn't propose that, see the next point.


> you couldn't compile the code (without pre-processing) on
> any other implementation of Java's standard APIs; that doesn't feel
> quite right.

I could compile the code.

What I said I wanted to do was change the FileURLConnection
class. This is an implementation class in package:

   gnu.java.net.protocol.file

It is Classpath's equivalent to Sun's standard file protocol handler.

What I am proposing to do is have Paperclips set the GNU class as the
default handler for the "file" protocol (thus overriding Sun's
default) on platforms where the Classpath handler is not already
available.

Where Classpath's handler is already available it will be picked up
automatically.


The only drawback is that Paperlclips will no longer work without the
class. But since I will deliver the class in the Paperclips CVS I
don't see that as a big issue.


Nic


From brawer@acm.org Wed Feb 27 04:09:59 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16g063-0001aB-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 04:09:59 -0500
Received: from [195.15.167.34] (195.15.167.34) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C7B758400013BD4 for classpath@gnu.org; Wed, 27 Feb 2002 10:08:57 +0100
From: Sascha Brawer <brawer@acm.org>
To: <classpath@gnu.org>
Subject: java.util.logging
Date: Wed, 27 Feb 2002 10:06:31 +0100
Message-Id: <20020227090631.20901@pop.schoedler.ch>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hello,

I'd like to announce that a Free implementation of java.util.logging, the
logging framework of J2SE 1.4, is nearing completion.  In case anyone
else has worked on this package, please send me a message so we can merge
the code.  Otherwise, I'll do some final clean-up and submit the
additions to Classpath and Mauve in two to three weeks.

Best regards,

-- Sascha




From wes@cacas.org Wed Feb 27 12:53:27 2002
Received: from smtprelay2.dc3.adelphia.net ([24.50.78.5])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16g8Gc-0000Vd-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 12:53:27 -0500
Received: from cacas.org ([68.65.194.43]) by
          smtprelay2.dc3.adelphia.net (Netscape Messaging Server 4.15)
          with ESMTP id GS7DP200.S2Y for <classpath@gnu.org>; Wed, 27 Feb
          2002 12:53:26 -0500 
Message-ID: <3C7D1E21.5020303@cacas.org>
Date: Wed, 27 Feb 2002 09:57:53 -0800
From: Wes Biggs <wes@cacas.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath@gnu.org
Subject: java.util.regex
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi all,

It's been a while since I've popped my head in, it's good to see some 
familiar names.  Congratulations on the latest release!

With a little gentle prodding by Nic Ferrier, I've implemented the 
java.util.regex package as a facade of gnu.regexp.  Currently it's only 
a Java syntax facade -- the underlying engine assumes Perl-style, not 
JDK 1.4-style, regular expressions.  But for many (most?) cases it's 
drop-in compatible already, and I've tested it with a number of examples.

My goal is to implement the JDK 1.4 regular expression syntax in 
gnu.regexp (gnu.regexp has a concept of predefined RESyntax objects), so 
additional changes to the java.util.regex classes will be minimal.

Any thoughts on getting this into classpath, logistics-wise?  I would 
like to continue to maintain gnu.regexp as a separately releasable 
project; I see the java.util.regex.* classes as bridge classes to its 
API from Classpath.  However, I have no problem relicensing gnu.regexp 
with the exception clause if that would make things easier.

Cheers,

Wes




From nferrier@tapsellferrier.co.uk Wed Feb 27 13:05:32 2002
Received: from tf1.tapsellferrier.co.uk ([195.7.242.226])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16g8SK-0001aE-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 13:05:32 -0500
Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian))
	id 16g8mI-0004ZZ-00; Wed, 27 Feb 2002 18:26:10 +0000
To: Wes Biggs <wes@cacas.org>
Cc: classpath@gnu.org
Subject: Re: java.util.regex
References: <3C7D1E21.5020303@cacas.org>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 27 Feb 2002 18:26:10 +0000
In-Reply-To: <3C7D1E21.5020303@cacas.org>
Message-ID: <87sn7mbx31.fsf@tf1.tapsellferrier.co.uk>
Lines: 33
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Wes Biggs <wes@cacas.org> writes:
  
> Any thoughts on getting this into classpath, logistics-wise?  I would  
> like to continue to maintain gnu.regexp as a separately releasable  
> project; I see the java.util.regex.* classes as bridge classes to its  
> API from Classpath.  However, I have no problem relicensing gnu.regexp  
> with the exception clause if that would make things easier. 

Well done for doing this Wes!

Brian or Aaron will have some thoughts on how to integrate (if they
want to!) but I think it's a pretty good idea.. 

Is there any reason why Classpath couldn't include your source code
in the CVS?

If you hosted the CVS for gnu regexp on subversions (via the savannah
system) we would be able to create a link from the Classpath CVS to
your source code directories to make it seem as if Classpath included
your source code (but it would still be maintained separately).


I think to do that you'd need to hand over (c) to the GNU project.


Alternately Classpath could start to deliver jar files with the
distribution. I personally think we should make Aaron's getopt stuff
available with Classpath.

Embrace and extend.


Nic


From wes@cacas.org Wed Feb 27 15:20:29 2002
Received: from gmocorp.com ([64.232.88.110] helo=www.gmocorp.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16gAYv-0005eg-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 15:20:29 -0500
Received: from cacas.org ([64.232.88.230]) by www.gmocorp.com ; Wed, 27 Feb 2002 12:19:34 -0800
Message-ID: <3C7D3F08.6010806@cacas.org>
Date: Wed, 27 Feb 2002 12:18:16 -0800
From: Wes Biggs <wes@cacas.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204
X-Accept-Language: en-us
MIME-Version: 1.0
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
CC: classpath@gnu.org
Subject: Re: java.util.regex
References: <3C7D1E21.5020303@cacas.org> <87sn7mbx31.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Nic Ferrier wrote:
> Is there any reason why Classpath couldn't include your source code
> in the CVS?
> 
> If you hosted the CVS for gnu regexp on subversions (via the savannah
> system) we would be able to create a link from the Classpath CVS to
> your source code directories to make it seem as if Classpath included
> your source code (but it would still be maintained separately).

That would work.  I've been making slow progress on getting set up on 
Savannah (there's a project created, but I don't yet have CVS access 
working).

> I think to do that you'd need to hand over (c) to the GNU project.

As well as getting all past contributors to do so, I would presume, 
which might take some time.

> Alternately Classpath could start to deliver jar files with the
> distribution. I personally think we should make Aaron's getopt stuff
> available with Classpath.

I see gnu.regexp as something analogous to a RPM dependency, so that 
might be appropriate in the near term.

> Embrace and extend.

Now where have I heard that before..? :-)

Wes

P.S. Nic, did you ever find the javax.servlet.jsp.tagext classes?  I 
received confirmation from FSF last week that they have my (c) 
assignment on file, so you should be able to add them to classpathx.



From cbj@gnu.org Wed Feb 27 16:36:36 2002
Received: from [24.93.67.53] (helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16gBka-0004LL-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 16:36:36 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Wed, 27 Feb 2002 16:35:48 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1RLXHq16010;
	Wed, 27 Feb 2002 16:33:17 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Wes Biggs <wes@cacas.org>
Cc: classpath@gnu.org
Subject: Re: java.util.regex
References: <3C7D1E21.5020303@cacas.org>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2002 16:33:16 -0500
In-Reply-To: <3C7D1E21.5020303@cacas.org>
Message-ID: <m3vgciy5ib.fsf@lyta.haphazard.org>
Lines: 25
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Wes Biggs <wes@cacas.org> writes:

> With a little gentle prodding by Nic Ferrier, I've implemented the
> java.util.regex package as a facade of gnu.regexp.  

That's great!

> Any thoughts on getting this into classpath, logistics-wise?  I would
> like to continue to maintain gnu.regexp as a separately releasable
> project; I see the java.util.regex.* classes as bridge classes to its
> API from Classpath.  However, I have no problem relicensing gnu.regexp
> with the exception clause if that would make things easier.

At least one license of gnu.regexp would need to be the same as
Classpath.  Copyright assignment of gnu.regexp would be helpful
although if you have a number of large contributors that you don't
have good records for it might not be possible.  

The package can be treated as 3rd party, and we can track it in CVS as
such or we can do as Nic suggested and perhaps try to include it
symbolically.

Brian
-- 
Brian Jones <cbj@gnu.org>


From green@redhat.com Wed Feb 27 11:11:33 2002
Received: from runyon.sfbay.redhat.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16g6g0-0007rV-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 11:11:32 -0500
Received: from dhcppc2 (taarna.cygnus.com [205.180.230.102])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id IAA18355;
	Wed, 27 Feb 2002 08:11:22 -0800 (PST)
Subject: Re: java.util.logging
From: Anthony Green <green@redhat.com>
To: Sascha Brawer <brawer@acm.org>
Cc: classpath@gnu.org, brian@gilstrap.com
In-Reply-To: <20020227090631.20901@pop.schoedler.ch>
References: <20020227090631.20901@pop.schoedler.ch>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 (1.0.2-0.7x) 
Date: 27 Feb 2002 08:11:58 -0800
Message-Id: <1014826323.2298.31.camel@dhcppc2>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Wed, 2002-02-27 at 01:06, Sascha Brawer wrote:
> I'd like to announce that a Free implementation of java.util.logging, the
> logging framework of J2SE 1.4, is nearing completion.  In case anyone
> else has worked on this package, please send me a message so we can merge
> the code.  Otherwise, I'll do some final clean-up and submit the
> additions to Classpath and Mauve in two to three weeks.

That's great.  There is an LGPL implementation here...

	http://javalogging.sourceforge.net

It would be great to get one of these into GNU Classpath (or the best of
both).  I've copied Brian Gilstrap, the author of LGPL version for
comment...

AG




From ejb@klomp.org Wed Feb 27 14:41:37 2002
Received: from node-c-47f6.a2000.nl ([62.194.71.246] helo=einstein.klomp.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16g9xJ-0003OG-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 14:41:37 -0500
Received: from einstein
	([127.0.0.1] helo=klomp.org ident=ejb)
	by einstein.klomp.org with esmtp (Exim 3.34 #1 (Debian))
	id 16g9sA-0006Iz-00; Wed, 27 Feb 2002 20:36:18 +0100
Message-ID: <3C7D3532.2080006@klomp.org>
Date: Wed, 27 Feb 2002 20:36:18 +0100
From: Erwin Bolwidt <ejb@klomp.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020214
MIME-Version: 1.0
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
CC: classpath@gnu.org
Subject: Re: FileURLConnection
References: <87y9hggm5l.fsf@tf1.tapsellferrier.co.uk>	<3C7C21D1.6050509@klomp.org> <87g03ng3h0.fsf@tf1.tapsellferrier.co.uk>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Nic Ferrier wrote:

>Erwin Bolwidt <ejb@klomp.org> writes:
>
>>Why don't you use the javax.naming abstractions? I know Tomcat uses it  
>>with success. It is very extensible  
>>
>
>Using JNDI is not an option.
>
[...]


>>and it seems better than changing the API of a standard API
>>class... 
>>
>I didn't propose that, see the next point.
>

>>you couldn't compile the code (without pre-processing) on
>>any other implementation of Java's standard APIs; that doesn't feel
>>quite right.
>>
>I could compile the code.
>
>What I said I wanted to do was change the FileURLConnection
>class. This is an implementation class in package:
>
>   gnu.java.net.protocol.file
>

Alright, my mistake.
But note that I sent this e-mail to you personally, and not to classpath.
 I don't follow classpath as closely as I would like, one reason being 
that probably clicked on too many Sun licenses to contribute much. And 
since I e-mailed you privately in the past, I thought it would be 
alright to just mail you my comment. I didn't intend for the reply to be 
Cc:-ed to classpath...

Best,
  Erwin




From green@redhat.com Wed Feb 27 16:32:24 2002
Received: from runyon.sfbay.redhat.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16gBgW-0003nm-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 16:32:24 -0500
Received: from dhcppc2 (taarna.cygnus.com [205.180.230.102])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id NAA20186;
	Wed, 27 Feb 2002 13:32:11 -0800 (PST)
Subject: Re: java.util.logging
From: Anthony Green <green@redhat.com>
To: Brian Gilstrap <brian@gilstrap.com>
Cc: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
In-Reply-To: <3C7D0F52.20605@gilstrap.com>
References: <20020227090631.20901@pop.schoedler.ch>
	<1014826323.2298.31.camel@dhcppc2>  <3C7D0F52.20605@gilstrap.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 (1.0.2-0.7x) 
Date: 27 Feb 2002 13:32:48 -0800
Message-Id: <1014845570.1558.27.camel@dhcppc2>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Wed, 2002-02-27 at 08:54, Brian Gilstrap wrote:
> Since Lumberjack is LGPL, is there anything special that would need to 
> be done to incorporate it into GNU Classpath?

The license would have to change slightly.  We use the GPL with the
following exception (blessed by the FSF):

"Linking this library statically or dynamically with other modules is
making a combined work based on this library.  Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.

As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module.  An independent module is a module which is not derived from
or based on this library.  If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so.  If you do not wish to do so, delete this
exception statement from your version."

AG




From brian@gilstrap.com Wed Feb 27 11:54:48 2002
Received: from c000-h000.c000.snv.cp.net ([209.228.32.64] helo=c000.snv.cp.net)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16g7Ls-0003cu-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 11:54:48 -0500
Received: (cpmta 16036 invoked from network); 27 Feb 2002 08:54:45 -0800
Received: from 208.134.198.251 (HELO gilstrap.com)
  by smtp.gilstrap.com (209.228.32.64) with SMTP; 27 Feb 2002 08:54:45 -0800
X-Sent: 27 Feb 2002 16:54:45 GMT
Message-ID: <3C7D0F52.20605@gilstrap.com>
Date: Wed, 27 Feb 2002 10:54:42 -0600
From: Brian Gilstrap <brian@gilstrap.com>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Anthony Green <green@redhat.com>
CC: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
Subject: Re: java.util.logging
References: <20020227090631.20901@pop.schoedler.ch> <1014826323.2298.31.camel@dhcppc2>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Anthony Green wrote:

> On Wed, 2002-02-27 at 01:06, Sascha Brawer wrote:
> 
>>I'd like to announce that a Free implementation of java.util.logging, the
>>logging framework of J2SE 1.4, is nearing completion.  In case anyone
>>else has worked on this package, please send me a message so we can merge
>>the code.  Otherwise, I'll do some final clean-up and submit the
>>additions to Classpath and Mauve in two to three weeks.
>>
> 
> That's great.  There is an LGPL implementation here...
> 
> 	http://javalogging.sourceforge.net
> 
> It would be great to get one of these into GNU Classpath (or the best of
> both).  I've copied Brian Gilstrap, the author of LGPL version for
> comment...

I'd be interested in having Lumberjack incorporated into GNU Classpath. 
Lumberjack has been around since May of 2001. It is being used by quite 
a variety of developers, including some corporate developers.

Since Lumberjack is LGPL, is there anything special that would need to 
be done to incorporate it into GNU Classpath?

Brian

-- 
Brian R. Gilstrap
brian@gilstrap.com
Husband and father, Tai Chi practitioner, Software architect
Java developer, Macintosh User

"Doubtless, like all of us, he was many men, turned on one or another of 
his selves as occasion required, and kept his real self a frightened 
secret from the world."  --Will Durant



From jleuner@elandtech.com Wed Feb 27 16:55:20 2002
Received: from [212.17.37.130] (helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16gC2g-0005UX-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 16:55:19 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16gBx1-00028Y-00; Wed, 27 Feb 2002 21:49:27 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16gBzB-000510-00; Wed, 27 Feb 2002 21:51:41 +0000
Date: Wed, 27 Feb 2002 21:51:41 +0000
From: John Leuner <jewel@pixie.co.za>
To: Wes Biggs <wes@cacas.org>
Cc: classpath@gnu.org
Subject: Re: java.util.regex
Message-ID: <20020227215141.GA19243@bapli>
References: <3C7D1E21.5020303@cacas.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3C7D1E21.5020303@cacas.org>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> It's been a while since I've popped my head in, it's good to see some 
> familiar names.  Congratulations on the latest release!
> 
> With a little gentle prodding by Nic Ferrier, I've implemented the 
> java.util.regex package as a facade of gnu.regexp.  Currently it's only 
> a Java syntax facade -- the underlying engine assumes Perl-style, not 
> JDK 1.4-style, regular expressions.  But for many (most?) cases it's 
> drop-in compatible already, and I've tested it with a number of examples.
> 
> My goal is to implement the JDK 1.4 regular expression syntax in 
> gnu.regexp (gnu.regexp has a concept of predefined RESyntax objects), so 
> additional changes to the java.util.regex classes will be minimal.

Cool!

I used gnu.regexp in a proprietary project recently, it's really cool!
 
> Any thoughts on getting this into classpath, logistics-wise?  I would 
> like to continue to maintain gnu.regexp as a separately releasable 
> project; I see the java.util.regex.* classes as bridge classes to its 
> API from Classpath.  However, I have no problem relicensing gnu.regexp 
> with the exception clause if that would make things easier.

I like the bridge classes approach. That way we provide the 1.4 API while still being modular and not forcing the bloat on users. If people want to, they can still use gnu.regexp in a restricted environment.

John Leuner


From cbj@gnu.org Wed Feb 27 18:13:47 2002
Received: from fe8.southeast.rr.com ([24.93.67.55] helo=mail8.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16gDGd-0003JX-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 18:13:47 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail8.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Wed, 27 Feb 2002 18:13:35 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1RNB3Q16460;
	Wed, 27 Feb 2002 18:11:03 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Anthony Green <green@redhat.com>
Cc: Sascha Brawer <brawer@acm.org>, classpath@gnu.org, brian@gilstrap.com
Subject: Re: java.util.logging
References: <20020227090631.20901@pop.schoedler.ch>
	<1014826323.2298.31.camel@dhcppc2>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2002 18:11:03 -0500
In-Reply-To: <1014826323.2298.31.camel@dhcppc2>
Message-ID: <m3wuwyy0zc.fsf@lyta.haphazard.org>
Lines: 25
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Anthony Green <green@redhat.com> writes:

> On Wed, 2002-02-27 at 01:06, Sascha Brawer wrote:
> > I'd like to announce that a Free implementation of java.util.logging, the
> > logging framework of J2SE 1.4, is nearing completion.  In case anyone
> > else has worked on this package, please send me a message so we can merge
> > the code.  Otherwise, I'll do some final clean-up and submit the
> > additions to Classpath and Mauve in two to three weeks.
> 
> That's great.  There is an LGPL implementation here...
> 
> 	http://javalogging.sourceforge.net
> 
> It would be great to get one of these into GNU Classpath (or the best of
> both).  I've copied Brian Gilstrap, the author of LGPL version for
> comment...

Sascha's paperwork should be arriving at the FSF any time now, so his
contribution can be included as soon as he is ready and assign says
they've received the paperwork.  If there are improvements to be made
to both efforts then that can only be a good thing.

Brian
-- 
Brian Jones <cbj@gnu.org>


From brian@gilstrap.com Wed Feb 27 16:55:21 2002
Received: from c000-h008.c000.snv.cp.net ([209.228.32.72] helo=c000.snv.cp.net)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16gC2j-0005Ux-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 16:55:21 -0500
Received: (cpmta 6084 invoked from network); 27 Feb 2002 13:54:52 -0800
Received: from 208.134.198.251 (HELO gilstrap.com)
  by smtp.gilstrap.com (209.228.32.72) with SMTP; 27 Feb 2002 13:54:52 -0800
X-Sent: 27 Feb 2002 21:54:52 GMT
Message-ID: <3C7D55AA.10100@gilstrap.com>
Date: Wed, 27 Feb 2002 15:54:50 -0600
From: Brian Gilstrap <brian@gilstrap.com>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Anthony Green <green@redhat.com>
CC: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
Subject: Re: java.util.logging
References: <20020227090631.20901@pop.schoedler.ch>	<1014826323.2298.31.camel@dhcppc2>  <3C7D0F52.20605@gilstrap.com> <1014845570.1558.27.camel@dhcppc2>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I wrote:

>>Since Lumberjack is LGPL, is there anything special that would need to 
>>be done to incorporate it into GNU Classpath?


Anthony Green responded:


> The license would have to change slightly.  We use the GPL with the
> following exception (blessed by the FSF):
> 
> "Linking this library statically or dynamically with other modules is
> making a combined work based on this library.  Thus, the terms and
> conditions of the GNU General Public License cover the whole
> combination.
> 
> As a special exception, the copyright holders of this library give you
> permission to link this library with independent modules to produce an
> executable, regardless of the license terms of these independent
> modules, and to copy and distribute the resulting executable under
> terms of your choice, provided that you also meet, for each linked
> independent module, the terms and conditions of the license of that
> module.  An independent module is a module which is not derived from
> or based on this library.  If you modify this library, you may extend
> this exception to your version of the library, but you are not
> obligated to do so.  If you do not wish to do so, delete this
> exception statement from your version."


I don't want to rehash something that is covered in a FAQ, so just point 
me to the FAQ if there is one. But:

How does the above differ from the LGPL? Concrete examples are 
especially helpful.

Brian

-- 
Brian R. Gilstrap
brian@gilstrap.com
Husband and father, Tai Chi practitioner, Software architect
Java developer, Macintosh User

"Doubtless, like all of us, he was many men, turned on one or another of 
his selves as occasion required, and kept his real self a frightened 
secret from the world."  --Will Durant



From cbj@gnu.org Wed Feb 27 19:48:41 2002
Received: from [24.93.67.51] (helo=mail4.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16gEkS-0002XN-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 19:48:40 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail4.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Wed, 27 Feb 2002 19:47:56 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1S0iwd16841;
	Wed, 27 Feb 2002 19:44:58 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Brian Gilstrap <brian@gilstrap.com>
Cc: Anthony Green <green@redhat.com>, Sascha Brawer <brawer@acm.org>,
   classpath@gnu.org
Subject: Re: java.util.logging
References: <20020227090631.20901@pop.schoedler.ch>
	<1014826323.2298.31.camel@dhcppc2> <3C7D0F52.20605@gilstrap.com>
	<1014845570.1558.27.camel@dhcppc2> <3C7D55AA.10100@gilstrap.com>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2002 19:44:57 -0500
In-Reply-To: <3C7D55AA.10100@gilstrap.com>
Message-ID: <m3r8n6xwmu.fsf@lyta.haphazard.org>
Lines: 16
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Gilstrap <brian@gilstrap.com> writes:

> I don't want to rehash something that is covered in a FAQ, so just
> point me to the FAQ if there is one. But:
> 
> How does the above differ from the LGPL? Concrete examples are
> especially helpful.

You can create executables that include some portion of the library
without the GPL from Classpath causing the other source to also be
free.  Mostly useful in situations where providing source is
difficult, for example the source to your fancy new toaster.

Brian
-- 
Brian Jones <cbj@gnu.org>


From green@redhat.com Wed Feb 27 23:02:33 2002
Received: from runyon.sfbay.redhat.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16gHm4-0007fm-00
	for <classpath@gnu.org>; Wed, 27 Feb 2002 23:02:33 -0500
Received: from dhcppc2 (taarna.cygnus.com [205.180.230.102])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id UAA21283;
	Wed, 27 Feb 2002 20:02:17 -0800 (PST)
Subject: Re: java.util.logging
From: Anthony Green <green@redhat.com>
To: Anthony Green <green@redhat.com>
Cc: Brian Gilstrap <brian@gilstrap.com>, Sascha Brawer <brawer@acm.org>,
        classpath@gnu.org
In-Reply-To: <1014845570.1558.27.camel@dhcppc2>
References: <20020227090631.20901@pop.schoedler.ch>
	<1014826323.2298.31.camel@dhcppc2>  <3C7D0F52.20605@gilstrap.com> 
	<1014845570.1558.27.camel@dhcppc2>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 (1.0.2-0.7x) 
Date: 27 Feb 2002 20:02:54 -0800
Message-Id: <1014868979.4921.12.camel@dhcppc2>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Wed, 2002-02-27 at 13:32, Anthony Green wrote:
> On Wed, 2002-02-27 at 08:54, Brian Gilstrap wrote:
> > Since Lumberjack is LGPL, is there anything special that would need to 
> > be done to incorporate it into GNU Classpath?
> 
> The license would have to change slightly.  We use the GPL with the
> following exception (blessed by the FSF):

Actually, I was slightly wrong in my response.  What really needs to
happen is that copyright needs to be assigned to the Free Software
Foundation, and then they'll change the license.

Copyright assignment is a relatively painless procedure, and you retain
many rights as the original author.  You might want to read this:

http://www.gnu.org/copyleft/why-assign.html

If/when you feel comfortable with this, send a note to
assignments@gnu.org explaining that you'd like to assign your code to
the GNU Classpath project.  They'll send you the appropriate paperwork
to fill out and return.

Thanks!

AG




From brawer@acm.org Thu Feb 28 04:33:17 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16gMw8-00055v-00
	for <classpath@gnu.org>; Thu, 28 Feb 2002 04:33:17 -0500
Received: from [195.15.167.252] (195.15.167.252) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C7B75840002C205; Thu, 28 Feb 2002 10:32:07 +0100
From: Sascha Brawer <brawer@acm.org>
To: <classpath@gnu.org>
Cc: <brian@gilstrap.com>
Subject: Re: java.util.logging
Date: Thu, 28 Feb 2002 10:29:31 +0100
Message-Id: <20020228092931.25413@pop.schoedler.ch>
In-Reply-To: <1014826323.2298.31.camel@dhcppc2>
References: <1014826323.2298.31.camel@dhcppc2>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> java.util.logging:
> - Lumberjack <http://javalogging.sourceforge.net>
> - my implementation, planned for Classpath

Thanks for the pointer! I've browsed a bit in the Lumberjack code and
would like to share my impressions.  Please be aware, though, that my
assessment might be biased.


Code Quality
------------
My impression was that there are places in each implementation where it
is cleaner, more elegant or more efficient than the other. In general,
they seem quite comparable in quality.


Documentation
-------------
Lumberjack was not intended as replacement for Sun's package, but as a
drop-in for JRE versions before 1.4.  Therefore, it is practically not
documented (especially no Javadocs) -- and does not need to be, since its
users can always look at Sun's Javadoc.  On the other hand, my code was
planned to become part of Classpath. Therefore, it is quite extensively
documented, trying to explain in detail what is going on.  The goal is to
be clearer than Sun's Javadoc (though I'm not sure whether I succeed in
this...)


Code Size
---------
My *source* code is twice as large as Lumberjack:  5 kLines/20 kWords for
my implementation, 2.6 kLines/11 kWords for Lumberjack [1].  The reason
is, again, documentation.  The *object* code size is currently 45 kB for
my implementation, 61 kB for Lumberjack [2].

[1] Measured with:
      wc java/util/logging/*.java
    so neither testsuites nor Lumberjack's installer are included in
these numbers.
 
[2] Measured with:
      javac java/util/logging/*.java -d /tmp/l ; \
      wc -c /tmp/l/java/util/logging/*.class
    where javac is from Sun JDK 1.3.1 (on MacOS X, but this should not
matter);
    again, this includes just the actual logging framework, without test/
installer.


Testing
-------
Lumberjack: 0.1 kLines/0.4 kWords (in net/sourceforge/javalogging/test).
My implementation: 4 kLines/11 kWords (Mauve, gnu/testlet/java/util/logging).

Lumberjack: Actively being used. Probably no obvious bugs.
My implementation: Barely finished, never has been used by anyone.
Obvious bugs likely (unless they are covered by Mauve testlets).


Completion
----------
Both implementations seem complete. Both were developed with the Sun JDK,
so both might require some effort for integration into Classpath.

However, I did not touch a JDK 1.4 so far, so running my Mauve additions
against the Sun reference implementation might reveal bugs in my
testlets, which in turn would require fixes to my implementation.  Also,
there's an occasional FIXME left in my code, and reviewing the
documentation wouldn't hurt either. These are the "final touches" for
which I did not want to release the code for 2-3 more weeks.


Copyright
---------
Lumberjack: LGPL, (C) Brian Gilstrap.
My implementation: GPL with exception, (C) FSF. The copyright assignment
letter
is on its way back to the FSF, but should arrive any day.



So, how do we proceed?

(a) Scrap my implementation, just use Lumberjack: In any case, Brian
could easily run my Mauve testlets against his implementation and fix a
couple of apparent bugs. He might want to do this in any case, totally
independent of an eventual integration into Classpath. I am not sure
whether there is a license conflict if he copies the Javadoc, but I
assume the only reason for doing this would be to use Lumberjack in
Classpath, in which case the license would have to change anyway.

(b) Merging: I definitely think it would be worth merging the two
implementations class by class, method by method.  Code quality will
improve from reviewing and comparing two independent implementations. So,
I am actually quite glad that this duplication of efforts has happened,
although it means more work in the short term. I see only one drawback,
namely that reviewing and discussing will take some more time.

Whatever the decision will be, I could check the testlets into Mauve
(assuming I'll be allowed to commit changes).  For some time, however,
bugs will be present -- the Sun reference implementation is unlikely to
pass all tests initially.  Do people know whether it is ok for Mauve to
check in broken tests?

For my implementation, I tried to create some temporary project on
subversions.gnu.org, but project creation in Savannah does not seem to
work currently.  My initial plan was to commit it directly into Classpath
(in java/util/logging) when I'm done with the "final touches", but I do
not know whether this is appropriate before a decision is made about
merging with Lumberjack.  Maybe it would be easiest if I could add it
into some special directory in the Classpath tree, e.g. projects/logging?
In that case, it would be very useful if I could be given permission to
commit changes to Classpath.

Thanks for reading all this. It's lengthy, but on the other hand, we are
talking about a substantial amount of code here.

Greetings,

-- Sascha




From cbj@gnu.org Thu Feb 28 08:27:49 2002
Received: from fe6.southeast.rr.com ([24.93.67.53] helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16gQb7-0002E8-00
	for <classpath@gnu.org>; Thu, 28 Feb 2002 08:27:49 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Thu, 28 Feb 2002 08:27:37 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1SDOsQ19742;
	Thu, 28 Feb 2002 08:24:54 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Sascha Brawer <brawer@acm.org>
Cc: <classpath@gnu.org>, <brian@gilstrap.com>
Subject: Re: java.util.logging
References: <1014826323.2298.31.camel@dhcppc2>
	<20020228092931.25413@pop.schoedler.ch>
From: Brian Jones <cbj@gnu.org>
Date: 28 Feb 2002 08:24:52 -0500
In-Reply-To: <20020228092931.25413@pop.schoedler.ch>
Message-ID: <m3it8hyc0r.fsf@lyta.haphazard.org>
Lines: 33
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Sascha Brawer <brawer@acm.org> writes:

> So, how do we proceed?
> 
> (a) Scrap my implementation, 

We won't be scrapping your work.

> (b) Merging: 

This is possible in due time, assuming Lumberjack authors agree on
license changes, copyright, etc.

> For my implementation, I tried to create some temporary project on
> subversions.gnu.org, but project creation in Savannah does not seem to
> work currently.  My initial plan was to commit it directly into Classpath
> (in java/util/logging) when I'm done with the "final touches", but I do
> not know whether this is appropriate before a decision is made about
> merging with Lumberjack.  Maybe it would be easiest if I could add it
> into some special directory in the Classpath tree, e.g. projects/logging?
> In that case, it would be very useful if I could be given permission to
> commit changes to Classpath.

When the paperwork is accepted by the FSF (basically when it gets
there via the mail), and I am informed of this, then I can grant your
Savannah user access to Classpath, actually I can grant access now in
good faith (as was done in the project's beginning) if you urgently
want to get it stored somewhere.  How long ago did you send the
paperwork back to Boston?

Brian
-- 
Brian Jones <cbj@gnu.org>


From brawer@acm.org Thu Feb 28 11:12:35 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16gTAY-0007DR-00
	for <classpath@gnu.org>; Thu, 28 Feb 2002 11:12:34 -0500
Received: from [195.15.166.196] (195.15.166.196) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C7B7584000378E8; Thu, 28 Feb 2002 17:11:42 +0100
From: Sascha Brawer <brawer@acm.org>
To: <classpath@gnu.org>
Cc: <brian@gilstrap.com>
Subject: Re: java.util.logging
Date: Thu, 28 Feb 2002 17:08:08 +0100
Message-Id: <20020228160808.18622@pop.schoedler.ch>
In-Reply-To: <m3it8hyc0r.fsf@lyta.haphazard.org>
References: <m3it8hyc0r.fsf@lyta.haphazard.org>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones <cbj@gnu.org> wrote on Thu, 28 Feb 2002 08:24:52 -0500:

>> So, how do we proceed?
>> (b) Merging: 
>
>This is possible in due time, assuming Lumberjack authors agree on
>license changes, copyright, etc.

But -- it *is* possible to look at (L)GPLed sources whose copyright have
not been assigned to the FSF, isn't it?

(I really like some things in Lumberjack which I'd like to adapt, of
course giving due credit. But the question basically applies to a lot of
code, not only to Lumberjack).

>[administrative stuff: CVS access, date of submitting copyright assignment]
[reply off-list]

-- Sascha




From brawer@acm.org Thu Feb 28 12:06:46 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16gU10-00041M-00
	for <classpath@gnu.org>; Thu, 28 Feb 2002 12:06:46 -0500
Received: from [195.15.167.127] (195.15.167.127) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C7B758400038D06; Thu, 28 Feb 2002 18:05:49 +0100
From: Sascha Brawer <brawer@acm.org>
To: Brian Gilstrap <brian@gilstrap.com>
Cc: <classpath@gnu.org>
Subject: Re: java.util.logging
Date: Thu, 28 Feb 2002 18:03:26 +0100
Message-Id: <20020228170326.6321@pop.schoedler.ch>
In-Reply-To: <3C7E50D5.2030906@gilstrap.com>
References: <3C7E50D5.2030906@gilstrap.com>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian,

I am extremely glad that you are interested in discussing the API and our
respective implementations.  Also, I totally agree with what you wrote
about the advantages of working together.  So, I am very much looking
forward to doing this.

An administrative question: Do people really want copies of our
discussion on the classpath@gnu.org mailing list? I am not sure it will
be of interest to everyone involved with GNU Classpath.  What about
taking the discussion somewhere else, e.g. to your javalogging-
users@sourceforge.net list (which is archived as well)?


>[differences in object code size: because of identifier names?]

Nope, we use the same naming style. One big difference is MemoryHandler
(6589 bytes [including MemoryHandler.RingBuffer] vs. 1899 bytes).  This
is a place where my implementation is simpler (and it will be interesting
to discuss the respective advantages and disadvantages).  Another example
is LogManager -- I don't have something like your
LogManager.OrderedProperties (966 bytes).  Probably, my code is buggy
here -- and I would not have thought about this bug without having seen
your (presumably correct) implementation. So, my code will have to grow
in order to do the right thing.

-- Sascha

PS: I won't be able to do much for the next week or so, so please don't
think I've lost interest if you don't hear from me immediately. I'll be back.




From cbj@gnu.org Thu Feb 28 13:25:19 2002
Received: from [24.93.67.54] (helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16gVF1-0001oM-00
	for <classpath@gnu.org>; Thu, 28 Feb 2002 13:25:19 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Thu, 28 Feb 2002 13:24:13 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g1SILUC21191;
	Thu, 28 Feb 2002 13:21:30 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Sascha Brawer <brawer@acm.org>
Cc: <classpath@gnu.org>, <brian@gilstrap.com>
Subject: Re: java.util.logging
References: <m3it8hyc0r.fsf@lyta.haphazard.org>
	<20020228160808.18622@pop.schoedler.ch>
From: Brian Jones <cbj@gnu.org>
Date: 28 Feb 2002 13:21:30 -0500
In-Reply-To: <20020228160808.18622@pop.schoedler.ch>
Message-ID: <m3lmddxyad.fsf@lyta.haphazard.org>
Lines: 26
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Sascha Brawer <brawer@acm.org> writes:

> Brian Jones <cbj@gnu.org> wrote on Thu, 28 Feb 2002 08:24:52 -0500:
> 
> >> So, how do we proceed?
> >> (b) Merging: 
> >
> >This is possible in due time, assuming Lumberjack authors agree on
> >license changes, copyright, etc.
> 
> But -- it *is* possible to look at (L)GPLed sources whose copyright have
> not been assigned to the FSF, isn't it?
> 
> (I really like some things in Lumberjack which I'd like to adapt, of
> course giving due credit. But the question basically applies to a lot of
> code, not only to Lumberjack).

I really don't know, credit must be given always.  If it is more than
10 lines (total) of patch content then it probably falls under
the copyright assignment desired bit, or maybe can be handled like
gnu.java.math.MPN though I'm not sure when.  If you mean ideas that you
reimplement then it probably doesn't matter.  

Brian
-- 
Brian Jones <cbj@gnu.org>


From brian@gilstrap.com Thu Feb 28 10:46:32 2002
Received: from c000-h007.c000.snv.cp.net ([209.228.32.71] helo=c000.snv.cp.net)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16gSlM-0005ni-00
	for <classpath@gnu.org>; Thu, 28 Feb 2002 10:46:32 -0500
Received: (cpmta 24004 invoked from network); 28 Feb 2002 07:46:30 -0800
Received: from 208.134.198.251 (HELO gilstrap.com)
  by smtp.gilstrap.com (209.228.32.71) with SMTP; 28 Feb 2002 07:46:30 -0800
X-Sent: 28 Feb 2002 15:46:30 GMT
Message-ID: <3C7E50D5.2030906@gilstrap.com>
Date: Thu, 28 Feb 2002 09:46:29 -0600
From: Brian Gilstrap <brian@gilstrap.com>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
CC: Anthony Green <green@redhat.com>
Subject: Re: java.util.logging
References: <1014826323.2298.31.camel@dhcppc2> <20020228092931.25413@pop.schoedler.ch>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Sascha,

Thanks for the long assessment. In general, it seems like it is quite 
even handed.

I had already responded to Anthony Green letting him know I'm not 
interested in assigning copyright to the FSF at this time.

I would definitely be interested in exchanging thoughts on the API, and 
appreciate the offer to try your test suite on Lumberjack. Regression 
testing is definitely a weak area of Lumberjack. Also, in my opinion 
there are areas of the spec which are quite ambiguous. I think it would 
be enlightening (hopefully for both of us :-) to talk about some of 
these issues.


> [...] The *object* code size is currently 45 kB for
> my implementation, 61 kB for Lumberjack [2].
[...]
> [2] Measured with:
>       javac java/util/logging/*.java -d /tmp/l ; \
>       wc -c /tmp/l/java/util/logging/*.class


This is interesting. While neither size is terribly huge, it does make 
me wonder why there is such a large percentage difference. The first 
thing that pops into my mind is this: how long are your variable/field 
names typically? :-)


> Brian
> could easily run my Mauve testlets against his implementation and fix a
> couple of apparent bugs. He might want to do this in any case, totally
> independent of an eventual integration into Classpath.


I'd like to do this. It could also help facilitate a discussion about 
ambiguities in the spec, since the test framework might touch on some of 
those ambiguities.

 
> (b) Merging: I definitely think it would be worth merging the two
> implementations class by class, method by method.  Code quality will
> improve from reviewing and comparing two independent implementations. So,
> I am actually quite glad that this duplication of efforts has happened,
> although it means more work in the short term. I see only one drawback,
> namely that reviewing and discussing will take some more time.


I would be interested in pursuing a comparison of the implementations, 
even without a true merging of the code. I see this as having several 
benefits:

1) Peer review - we both get peer review of our code
2) Compatibility - we both achieve greater (complete?) compatibility 
with each other. This will make it easier for users of the libraries to 
work with either.
3) Spec clarification - we may be able to convince Sun to clarify fuzzy 
parts of the specification. Even if that doesn't happen, we could 
produce our own document detailing the areas we feel are ambiguous and 
our interpretations of those sections.

There are probably other good consequences I haven't thought about... :-)

Please let me know if you're interested in pursuing a mutual code/design 
review.

Thanks,
Brian

-- 
Brian R. Gilstrap
brian@gilstrap.com
Husband and father, Tai Chi practitioner, Software architect
Java developer, Macintosh User

"Doubtless, like all of us, he was many men, turned on one or another of 
his selves as occasion required, and kept his real self a frightened 
secret from the world."  --Will Durant



From brian@gilstrap.com Thu Feb 28 12:58:58 2002
Received: from c000-h001.c000.snv.cp.net ([209.228.32.65] helo=c000.snv.cp.net)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16gUpV-0008RA-00
	for <classpath@gnu.org>; Thu, 28 Feb 2002 12:58:57 -0500
Received: (cpmta 4887 invoked from network); 28 Feb 2002 09:58:47 -0800
Received: from 208.134.198.251 (HELO gilstrap.com)
  by smtp.gilstrap.com (209.228.32.65) with SMTP; 28 Feb 2002 09:58:47 -0800
X-Sent: 28 Feb 2002 17:58:47 GMT
Message-ID: <3C7E6FD6.3060406@gilstrap.com>
Date: Thu, 28 Feb 2002 11:58:46 -0600
From: Brian Gilstrap <brian@gilstrap.com>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Sascha Brawer <brawer@acm.org>
CC: classpath@gnu.org
Subject: Re: java.util.logging
References: <3C7E50D5.2030906@gilstrap.com> <20020228170326.6321@pop.schoedler.ch>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Sascha,

 > I am extremely glad that you are interested in discussing the API
 > and our respective implementations.  Also, I totally agree with
 > what you wrote about the advantages of working together.  So, I am
 > very much looking forward to doing this.

Great!

 > An administrative question: Do people really want copies of our 
discussion
 >  on the classpath@gnu.org mailing list? I am not sure it will be of
 >  interest to everyone involved with GNU Classpath.  What about taking
 >  the discussion somewhere else, e.g. to your javalogging- 
users@sourceforge.net
 >  list (which is archived as well)?

I agree that this is probably not of interest to the entire GNU
Classpath list (also, I'm not currently a member of the list and have
plenty of other list emails to wade through... :-).

Using a discussion list at SourceForge seems like a great idea. There is 
a javalogging-developer mailing list that I had not previously made 
public (because there wasn't anyone else to talk to :-). I've also 
arranged for every posting to the developer forum on SourceForge to be 
forwarded to javalogging-developer@lists.sourceforge.net. It is archived at:

	http://www.geocrawler.com/lists/3/SourceForge/12859/0/

Why don't we use javalogging-developer@lists.sourceforge.net for our 
discussion?

 > Nope, we use the same naming style. One big difference is
 > MemoryHandler (6589 bytes [including MemoryHandler.RingBuffer] vs.
 > 1899 bytes).  This is a place where my implementation is simpler
 > (and it will be interesting to discuss the respective advantages
 > and disadvantages).

Just this one comment is already getting me revved up for a great 
discussion. It will be nice to discuss things with someone who has also 
taken a serious look at the spec.

 > PS: I won't be able to do much for the next week or so, so please
 > don't think I've lost interest if you don't hear from me
 > immediately. I'll be back.

I'm in the same boat. I won't be able to much of anything until about 
March 10th or so. I'll look forward to hooking back up to get things 
started when our schedules loosen up a bit.

Brian

-- 
Brian R. Gilstrap
brian@gilstrap.com
Husband and father, Tai Chi practitioner, Software architect
Java developer, Macintosh User

"Doubtless, like all of us, he was many men, turned on one or another of
his selves as occasion required, and kept his real self a frightened
secret from the world."  --Will Durant



From brian@gilstrap.com Thu Feb 28 14:05:19 2002
Received: from c000-h007.c000.snv.cp.net ([209.228.32.71] helo=c000.snv.cp.net)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16gVri-0005gZ-00
	for <classpath@gnu.org>; Thu, 28 Feb 2002 14:05:19 -0500
Received: (cpmta 10801 invoked from network); 28 Feb 2002 11:05:17 -0800
Received: from 208.134.198.251 (HELO gilstrap.com)
  by smtp.gilstrap.com (209.228.32.71) with SMTP; 28 Feb 2002 11:05:17 -0800
X-Sent: 28 Feb 2002 19:05:17 GMT
Message-ID: <3C7E7F6B.3010109@gilstrap.com>
Date: Thu, 28 Feb 2002 13:05:15 -0600
From: Brian Gilstrap <brian@gilstrap.com>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
CC: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
Subject: Re: java.util.logging
References: <m3it8hyc0r.fsf@lyta.haphazard.org>	<20020228160808.18622@pop.schoedler.ch> <m3lmddxyad.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Sascha wrote:
 >> (I really like some things in Lumberjack which I'd like to adapt,
 >> of course giving due credit. But the question basically applies
 >> to a lot of code, not only to Lumberjack).

Brian Jones wrote:

 > I really don't know, credit must be given always.  If it is more than
 > 10 lines (total) of patch content then it probably falls under
 > the copyright assignment desired bit, or maybe can be handled like
 > gnu.java.math.MPN though I'm not sure when.  If you mean ideas that
 > you reimplement then it probably doesn't matter.

Sascha and I are expecting to discuss our designs extensively. Since 
both are open source, and since ideas that aren't patented can't be 
owned (and I don't think any patentable ideas are lurking in either code 
base :-), it seems to me that taking ideas from each other's code is 
clearly okay.

Sascha,

Were you expecting to take code, or were you planning (like I am) to 
learn from both sets of code and make changes to your code that you 
conclude are appropriate?

Brian

-- 
Brian R. Gilstrap
brian@gilstrap.com
Husband and father, Tai Chi practitioner, Software architect
Java developer, Macintosh User

"Doubtless, like all of us, he was many men, turned on one or another of
his selves as occasion required, and kept his real self a frightened
secret from the world."  --Will Durant



From brawer@acm.org Thu Feb 28 16:06:45 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16gXlF-0006EP-00; Thu, 28 Feb 2002 16:06:45 -0500
Received: from [195.15.167.210] (195.15.167.210) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C7B75840003C58E; Thu, 28 Feb 2002 22:05:45 +0100
From: Sascha Brawer <brawer@acm.org>
To: Brian Gilstrap <brian@gilstrap.com>, Brian Jones <cbj@gnu.org>
Cc: <classpath@gnu.org>
Subject: Re: java.util.logging
Date: Thu, 28 Feb 2002 21:56:20 +0100
Message-Id: <20020228205620.21391@pop.schoedler.ch>
In-Reply-To: <3C7E7F6B.3010109@gilstrap.com>
References: <3C7E7F6B.3010109@gilstrap.com>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Gilstrap <brian@gilstrap.com> wrote on Thu, 28 Feb 2002 13:05:15 -0600:

>Were you expecting to take code, or were you planning (like I am) to 
>learn from both sets of code and make changes to your code that you 
>conclude are appropriate?

Only the latter.

-- Sascha




From tromey@creche.cygnus.com Thu Feb 28 23:08:12 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16geL6-0002Gx-00
	for <classpath@gnu.org>; Thu, 28 Feb 2002 23:08:12 -0500
Received: from creche.cygnus.com (ta0203.peakpeak.com [204.144.244.203])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id VAA26132;
	Thu, 28 Feb 2002 21:08:09 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id VAA18933;
	Thu, 28 Feb 2002 21:35:26 -0700
To: Sascha Brawer <brawer@acm.org>
Cc: <classpath@gnu.org>, <brian@gilstrap.com>
Subject: Re: java.util.logging
References: <1014826323.2298.31.camel@dhcppc2> <20020228092931.25413@pop.schoedler.ch>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Yow!  Am I JOGGING yet??
Date: 28 Feb 2002 21:35:25 -0700
In-Reply-To: Sascha Brawer's message of "Thu, 28 Feb 2002 10:29:31 +0100"
Message-ID: <87n0xsrjle.fsf@creche.redhat.com>
Lines: 21
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Sascha" == Sascha Brawer <brawer@acm.org> writes:

Sascha> Whatever the decision will be, I could check the testlets into
Sascha> Mauve (assuming I'll be allowed to commit changes).

You'll definitely be allowed to.  Mauve is very welcoming.
I can tell you how to get an account if you don't already know, just
let me know.

Sascha> My initial plan was to commit it directly into Classpath (in
Sascha> java/util/logging) when I'm done with the "final touches", but
Sascha> I do not know whether this is appropriate before a decision is
Sascha> made about merging with Lumberjack.  Maybe it would be easiest
Sascha> if I could add it into some special directory in the Classpath
Sascha> tree, e.g. projects/logging?

Renaming files in CVS is a pain.  I don't see a problem with just
writing the code in java/util/logging, and simply waiting to enable
the build until you feel the code is ready.

Tom


