From MAILER-DAEMON Sat Feb 01 17:05:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18f5ju-0008FP-00
	for mharc-classpath@gnu.org; Sat, 01 Feb 2003 17:03:54 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18f5jc-0007NA-00
	for classpath@gnu.org; Sat, 01 Feb 2003 17:03:36 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18f5jA-0005sx-00
	for classpath@gnu.org; Sat, 01 Feb 2003 17:03:16 -0500
Received: from e3.ny.us.ibm.com ([32.97.182.103])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18f5j9-0005ou-00
	for classpath@gnu.org; Sat, 01 Feb 2003 17:03:07 -0500
Received: from northrelay04.pok.ibm.com (northrelay04.pok.ibm.com
	[9.56.224.206])
	by e3.ny.us.ibm.com (8.12.2/8.12.2) with ESMTP id h11M36vr065298
	for <classpath@gnu.org>; Sat, 1 Feb 2003 17:03:06 -0500
Received: from d01ml243.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216])
	h11M33cs199902
	for <classpath@gnu.org>; Sat, 1 Feb 2003 17:03:03 -0500
In-Reply-To: <1044056094.752.35.camel@elsschot>
To: classpath@gnu.org
X-Mailer: Lotus Notes Release 6.0 September 26, 2002
Message-ID: <OF75699A99.898B24B2-ON85256CC0.006C64AE-85256CC0.0078FEBF@us.ibm.com>
From: David P Grove <groved@us.ibm.com>
Date: Sat, 1 Feb 2003 17:01:35 -0500
X-MIMETrack: Serialize by Router on D01ML243/01/M/IBM(Build
	V601_01232003|January 23, 2003) at 02/01/2003 17:03:03
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Subject: Re: Jikes RVM & mauve tests
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 01 Feb 2003 22:03:50 -0000





Thanks for the information. It's useful to know that the test and libraries
are out of synch.    It only takes about 20 seconds to run all of the
java.lang.Character.unicode tests on Jikes RVM, so we'll probably just
xfail the ones that are currently failing but go ahead and run the rest of
the test anyways.

I'll probably set something up next week to run the mauve tests as part of
our daily Jikes RVM regression tests.  The whole thing only takes a few
minutes to run.  Seems like nightly checks of classpath and Jikes RVM CVS
heads are a worthwhile thing to be doing.

--dave





From MAILER-DAEMON Sun Feb 02 10:44:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18fMIC-000446-00
	for mharc-classpath@gnu.org; Sun, 02 Feb 2003 10:44:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18fMI8-0003vG-00
	for classpath@gnu.org; Sun, 02 Feb 2003 10:44:20 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18fMI5-0003ms-00
	for classpath@gnu.org; Sun, 02 Feb 2003 10:44:18 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18fMI5-0003kJ-00
	for classpath@gnu.org; Sun, 02 Feb 2003 10:44:17 -0500
Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h12Fh7o5021419
	for <classpath@gnu.org>; Sun, 2 Feb 2003 10:43:07 -0500 (EST)
Received: from lyta.haphazard.org ([24.74.164.113]) by mail4.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Sun, 2 Feb 2003 10:45:23 -0500
Received: from lyta.haphazard.org (localhost.localdomain [127.0.0.1])
	by lyta.haphazard.org (8.12.5/8.12.5) with ESMTP id h12FiGGM027140
	for <classpath@gnu.org>; Sun, 2 Feb 2003 10:44:16 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.12.5/8.12.5/Submit) id h12FiGNb027136;
	Sun, 2 Feb 2003 10:44:16 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org
	using -f
Sender: cbj@gnu.org
To: GNU Classpath <classpath@gnu.org>
From: Brian Jones <cbj@gnu.org>
Date: 02 Feb 2003 10:44:15 -0500
Message-ID: <m3hebmelgw.fsf@lyta.haphazard.org>
Lines: 20
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: AutoMauve 1.0 Released
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 02 Feb 2003 15:44:22 -0000

All,

I've released AutoMauve 1.0 at the URL below.  Due to the specific
nature of the software I probably won't announce it anywhere else.
AutoMauve is a simple means of HTML-izing Mauve results and
historically graphing those results.  There is a README file in the
distribution that explains briefly how everything works.

http://www.haphazard.org/~cbj/classpath/automauve-1.0.tar.gz

I plan to incorporate the script in Japhar that turns Mauve results
into a nice color table of packages that are okay and those that are
not since that is easier to scan than raw Mauve logs.

I also think I will be adding Jikes RVM to the list of projects I'll
be collecting results for and graphing.

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



From MAILER-DAEMON Thu Feb 06 00:42:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18geoF-0005bR-00
	for mharc-classpath@gnu.org; Thu, 06 Feb 2003 00:42:51 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18geoD-0005aw-00
	for classpath@gnu.org; Thu, 06 Feb 2003 00:42:49 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18geoB-0005Zk-00
	for classpath@gnu.org; Thu, 06 Feb 2003 00:42:48 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18geoA-0005YW-00
	for classpath@gnu.org; Thu, 06 Feb 2003 00:42:46 -0500
Received: from mail3.nc.rr.com (fe3 [24.93.67.50])h165fUo5020241
	for <classpath@gnu.org>; Thu, 6 Feb 2003 00:41:30 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail3.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Thu, 6 Feb 2003 00:41:02 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id A53E9830FB; Thu,  6 Feb 2003 00:42:41 -0500 (EST)
Sender: cbj@haphazard.org
To: GNU Classpath <classpath@gnu.org>
From: Brian Jones <cbj@gnu.org>
Date: 06 Feb 2003 00:42:41 -0500
Message-ID: <m3znparmlq.fsf@lyta.haphazard.org>
Lines: 6
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: email
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 06 Feb 2003 05:42:49 -0000

Any email sent to me in the last 24 hours went into the bit bucket.
If you sent me something directly then please resend it, thanks.

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



From MAILER-DAEMON Thu Feb 06 08:01:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18glaC-00042F-00
	for mharc-classpath@gnu.org; Thu, 06 Feb 2003 07:56:48 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18glXF-0002nk-00
	for classpath@gnu.org; Thu, 06 Feb 2003 07:53:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18glW8-0002Ky-00
	for classpath@gnu.org; Thu, 06 Feb 2003 07:52:36 -0500
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18glUv-00022g-00
	for classpath@gnu.org; Thu, 06 Feb 2003 07:51:21 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 18glUf-00041F-00
	for <classpath@gnu.org>; Thu, 06 Feb 2003 13:51:05 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/mixed; boundary="=-GO0wqvhQd3428D+UXmZW"
Organization: 
Message-Id: <1044535879.14742.66.camel@elsschot>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.1 
Date: 06 Feb 2003 13:51:19 +0100
Subject: FOSDEM this weekend (Brussels 8-9 February)
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 06 Feb 2003 12:56:45 -0000


--=-GO0wqvhQd3428D+UXmZW
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

I am going to Brussels this weekend for FOSDEM. If other GNU Classpath
developers are going please let me know. I would love to shake your
hand.

Chris Cray will give a presentation about Wonka
(http://wonka.acunia.com/).
See the attached email from the wonka-developers mailinglist.

Cheers,

Mark

--=-GO0wqvhQd3428D+UXmZW
Content-Disposition: inline
Content-Description: Forwarded message - Wonka at FOSDEM 2003
Content-Type: message/rfc822

>From owner-wonka-developers@acunia.com Mon Feb 03 13: 51:36 2003
Received: from localhost ([127.0.0.1]) by nescio.wildebeest.org with esmtp
	(Exim 3.35 #1 (Debian)) id 18fg4V-0005yQ-00 for <mark@localhost>;
	Mon, 03	Feb 2003 13:51:35 +0100
Delivered-To: klomp.org-mark@klomp.org
Received: from mail.qwknetllc.com [64.21.168.2] by localhost with IMAP
	(fetchmail-5.9.11) for mark@localhost (single-drop); Mon, 03 Feb 2003
	13:51:35 +0100 (CET)
Received: (qmail 8913 invoked from network); 3 Feb 2003 12:48:20 -0000
Received: from unknown (HELO mail.acunia.com) (194.7.211.211) by
	arthur.qwknetllc.com with SMTP; 3 Feb 2003 12:48:20 -0000
Received: (from majordomo@localhost) by mail.acunia.com (8.11.6/8.11.6) id
	h13ChoD18544 for wonka-developers-list; Mon, 3 Feb 2003 13:43:50 +0100
X-Authentication-Warning: depost.leuven.intern.acunia.com: majordomo set
	sender to owner-wonka-developers@acunia.com using -f
Received: from sophocles.leuven.intern.acunia.com
	(sophocles.leuven.intern.acunia.com [10.0.1.34]) by mail.acunia.com
	(8.11.6/8.11.6) with ESMTP id h13Chjt18536 for
	<wonka-developers@acunia.com>; Mon, 3 Feb 2003 13:43:45 +0100
Date: Mon, 3 Feb 2003 13:08:58 +0100 (CET)
From: Chris Gray <chris.gray@acunia.com>
X-X-Sender: gray@sophocles.leuven.intern.acunia.com
To: wonka-developers@acunia.com
Subject: Wonka at FOSDEM 2003
Message-ID: <Pine.LNX.4.44.0302031248200.1454-100000@sophocles.leuven.intern.acunia.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-wonka-developers@acunia.com
Precedence: bulk
X-Mailinglist: wonka-developers
Content-Transfer-Encoding: 7bit


Apologies for not mentioning this earlier, but: for those of you who are 
still making up your minds whether to go to FODSEM 2003, there will be a 
session devoted to Wonka in the "Embedded Softwares Room" 
(http://www.fosdem.org/index/dev_room/dev_room_embedded). We have the last 
slot on Saturday (15:45, IIRC - but check timings on the day itself). I'll 
aim to be around for most of Saturday, if anyone wants to meet me. And if 
there are issues which you would find more interesting than what I've put 
in my Abstract, let us know.

Best wishes

-- 

Chris Gray

VM Architect, ACUNIA




--=-GO0wqvhQd3428D+UXmZW--




From MAILER-DAEMON Sun Feb 09 13:39:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18hwMM-00017j-00
	for mharc-classpath@gnu.org; Sun, 09 Feb 2003 13:39:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18hwMK-00017U-00
	for classpath@gnu.org; Sun, 09 Feb 2003 13:39:20 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18hwMI-00017G-00
	for classpath@gnu.org; Sun, 09 Feb 2003 13:39:19 -0500
Received: from ms-smtp-03.southeast.rr.com ([24.93.67.84])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18hwMI-00017A-00
	for classpath@gnu.org; Sun, 09 Feb 2003 13:39:18 -0500
Received: from mail5.nc.rr.com (fe5 [24.93.67.52])h19Ib3i8026019
	for <classpath@gnu.org>; Sun, 9 Feb 2003 13:38:24 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail5.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Sun, 9 Feb 2003 13:36:08 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id C84CE830FC; Sun,  9 Feb 2003 13:37:59 -0500 (EST)
Sender: cbj@haphazard.org
To: GNU Classpath <classpath@gnu.org>
From: Brian Jones <cbj@gnu.org>
Date: 09 Feb 2003 13:37:59 -0500
Message-ID: <m3u1fdxptk.fsf@lyta.haphazard.org>
Lines: 24
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: IPJV uses GNU Classpath
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 09 Feb 2003 18:39:20 -0000

Forwarding a message I received.  This and others I know of have been
added to the web page.  

Brian

> Dear sirs,
> 
> We introduce new virtual machine for Java on the Internet Processor
> IP2022, manufactured by Ubicom, Inc. This machine use modified version
> of the GNU Classpath and intented for embedded applications. More
> details available at http://www.svtehs.com/ipjv.htm
> 
> All GNU licensing terms and copyrights included.
> 
> Could you please list this VM at
> http://www.gnu.org/software/classpath/classpath.html
> 
> Best regards
> 
> Alexey Vladimirov
> avlad@svtehs.com

-- 
Brian Jones <cbj@gnu.org>



From MAILER-DAEMON Sun Feb 09 19:16:05 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18i1c9-0003fx-00
	for mharc-classpath@gnu.org; Sun, 09 Feb 2003 19:16:01 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18i1b7-0003DQ-00
	for classpath@gnu.org; Sun, 09 Feb 2003 19:14:57 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18i1an-0002nf-00
	for classpath@gnu.org; Sun, 09 Feb 2003 19:14:38 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18i1ag-0002c0-00
	for classpath@gnu.org; Sun, 09 Feb 2003 19:14:35 -0500
Received: from mail3.nc.rr.com (fe3 [24.93.67.50])h1A0DBo7004725
	for <classpath@gnu.org>; Sun, 9 Feb 2003 19:13:11 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail3.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Sun, 9 Feb 2003 19:12:39 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id E1ACC830FC; Sun,  9 Feb 2003 19:14:21 -0500 (EST)
Sender: cbj@haphazard.org
To: GNU Classpath <classpath@gnu.org>
From: Brian Jones <cbj@gnu.org>
Date: 09 Feb 2003 19:14:21 -0500
Message-ID: <m31y2hxa8y.fsf@lyta.haphazard.org>
Lines: 20
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Classpath 0.05 beta1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 00:16:00 -0000

All,

I've posted the first beta of Classpath 0.05 to the FSF alpha release
FTP host.  It contains generated documentation and pre-compiled Java
bytecode which beefs up this release to nearly 7 MB.

What should you do?  Check to see if it works for you.  Hopefully if
CVS currently works for you then this will too.  If there are no
complaints during this week then I'll make a release come next weekend.
If someone would like to help create a proper announcement or announce
it to the various locations appropriately let me know.

If you need to make major changes in the coming week then we'll need
to create a label and branch for this release to prevent
contamination.

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



From MAILER-DAEMON Sun Feb 09 21:00:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18i3FY-0004gG-00
	for mharc-classpath@gnu.org; Sun, 09 Feb 2003 21:00:48 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18i3FV-0004bq-00
	for classpath@gnu.org; Sun, 09 Feb 2003 21:00:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18i3FU-0004Z8-00
	for classpath@gnu.org; Sun, 09 Feb 2003 21:00:45 -0500
Received: from mx2.redhat.com ([12.150.115.133])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18i3FU-0004Wa-00; Sun, 09 Feb 2003 21:00:44 -0500
Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com
	[172.16.27.26])
	by mx2.redhat.com (8.11.6/8.11.6) with ESMTP id h1A1sW132688;
	Sun, 9 Feb 2003 20:54:32 -0500
Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com
	[172.16.27.15])h1A20bn02064;	Sun, 9 Feb 2003 21:00:37 -0500
Received: from [192.168.64.12] (vpn50-47.rdu.redhat.com [172.16.50.47])
	by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h1A20ZQ17347;
	Sun, 9 Feb 2003 18:00:36 -0800
From: Anthony Green <green@redhat.com>
To: Brian Jones <cbj@gnu.org>
In-Reply-To: <m3u1fdxptk.fsf@lyta.haphazard.org>
References: <m3u1fdxptk.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) 
Date: 09 Feb 2003 18:02:40 -0800
Message-Id: <1044842562.4437.33.camel@escape>
Mime-Version: 1.0
cc: GNU Classpath <classpath@gnu.org>
Subject: Re: IPJV uses GNU Classpath
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 02:00:46 -0000

On Sun, 2003-02-09 at 10:37, Brian Jones wrote:
> > We introduce new virtual machine for Java on the Internet Processor
> > IP2022, manufactured by Ubicom, Inc. 

This is cool.  The IP2022 is a funky little part found in products from
Linksys, D-Link and others.  I was involved in the original GNU tools
port.  Perhaps future home wlan/router products will be using GNU
Classpath....

AG





From MAILER-DAEMON Sun Feb 09 21:49:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18i40K-0004DS-00
	for mharc-classpath@gnu.org; Sun, 09 Feb 2003 21:49:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18i40I-00049d-00
	for classpath@gnu.org; Sun, 09 Feb 2003 21:49:06 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18i40G-000467-00
	for classpath@gnu.org; Sun, 09 Feb 2003 21:49:05 -0500
Received: from ms-smtp-03.southeast.rr.com ([24.93.67.84])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18i40G-00044S-00
	for classpath@gnu.org; Sun, 09 Feb 2003 21:49:04 -0500
Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h1A2m1iI016499
	for <classpath@gnu.org>; Sun, 9 Feb 2003 21:48:08 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail4.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Sun, 9 Feb 2003 21:50:12 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id C7823830FC; Sun,  9 Feb 2003 21:49:00 -0500 (EST)
Sender: cbj@haphazard.org
To: GNU Classpath <classpath@gnu.org>
References: <m31y2hxa8y.fsf@lyta.haphazard.org>
From: Brian Jones <cbj@gnu.org>
Date: 09 Feb 2003 21:49:00 -0500
In-Reply-To: <m31y2hxa8y.fsf@lyta.haphazard.org>
Message-ID: <m3vfzsx337.fsf@lyta.haphazard.org>
Lines: 15
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Re: Classpath 0.05 beta1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 02:49:06 -0000

Brian Jones <cbj@gnu.org> writes:

> All,
> 
> I've posted the first beta of Classpath 0.05 to the FSF alpha release
> FTP host.  It contains generated documentation and pre-compiled Java
> bytecode which beefs up this release to nearly 7 MB.

This is ftp://alpha.gnu.org/gnu/classpath/, sorry for not including
that earlier.  Also seems I put the file in the wrong place at first,
but it is there now.

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



From MAILER-DAEMON Mon Feb 10 03:12:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18i93G-0000xH-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 03:12:30 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18i93E-0000ws-00
	for classpath@gnu.org; Mon, 10 Feb 2003 03:12:28 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18i92z-0000l5-00
	for classpath@gnu.org; Mon, 10 Feb 2003 03:12:15 -0500
Received: from int-mail.syd.fl.net.au ([202.181.0.28] helo=delenn.fl.net.au)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18i91l-0000Ft-00; Mon, 10 Feb 2003 03:10:57 -0500
Received: from solomon (a3-p04.syd.fl.net.au [202.181.1.68])
	by delenn.fl.net.au (Postfix) with ESMTP
	id 9774817FE4B; Mon, 10 Feb 2003 19:18:00 +1100 (EST)
Content-Type: text/plain;
  charset="iso-8859-1"
From: "Raif S. Naffah" <raif@fl.net.au>
To: Brian Jones <cbj@gnu.org>, GNU Classpath <classpath@gnu.org>
Date: Mon, 10 Feb 2003 19:13:05 +1100
User-Agent: KMail/1.4.3
References: <m31y2hxa8y.fsf@lyta.haphazard.org>
In-Reply-To: <m31y2hxa8y.fsf@lyta.haphazard.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200302101913.13694.raif@fl.net.au>
Subject: Re: Classpath 0.05 beta1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: raif@fl.net.au
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 08:12:28 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hello Brian,

On Monday 10 February 2003 11:14, Brian Jones wrote:
> All,
>
> I've posted the first beta of Classpath 0.05...

the patch for the BigInteger i posted sometime ago has not been applied=20
yet.  this i assume is going to happen soon, since it has been=20
approved.  the delay is because i dont have write access to the gcc=20
CVS, but only to Classpath.

still, it would be nice to have that patch included in the final release=20
of Classpath, since it improves the performance of BigInteger.


cheers;
rsn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Que du magnifique

iD8DBQE+R18X+e1AKnsTRiERA/LZAKDbk2R2Xpoyzo0XfnMho2seNqyCXgCgjFgo
JXn9A2VNFRnfOKw+ueYxjN8=3D
=3Dhrj6
-----END PGP SIGNATURE-----




From MAILER-DAEMON Mon Feb 10 09:20:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iEnT-0006oD-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 09:20:35 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iEnR-0006iv-00
	for classpath@gnu.org; Mon, 10 Feb 2003 09:20:33 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iEnQ-0006hh-00
	for classpath@gnu.org; Mon, 10 Feb 2003 09:20:32 -0500
Received: from ms-smtp-03.southeast.rr.com ([24.93.67.84])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iEnL-0006cx-00
	for classpath@gnu.org; Mon, 10 Feb 2003 09:20:31 -0500
Received: from mail3.nc.rr.com (fe3 [24.93.67.50])h1AEJKiR018655;
	Mon, 10 Feb 2003 09:19:30 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail3.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Mon, 10 Feb 2003 08:26:52 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id F3473830FC; Mon, 10 Feb 2003 08:28:34 -0500 (EST)
Sender: cbj@haphazard.org
To: raif@fl.net.au
References: <m31y2hxa8y.fsf@lyta.haphazard.org>
	<200302101913.13694.raif@fl.net.au>
From: Brian Jones <cbj@gnu.org>
Date: 10 Feb 2003 08:28:34 -0500
In-Reply-To: <200302101913.13694.raif@fl.net.au>
Message-ID: <m3smuwb6yl.fsf@lyta.haphazard.org>
Lines: 22
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: GNU Classpath <classpath@gnu.org>
Subject: Re: Classpath 0.05 beta1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 14:20:34 -0000

"Raif S. Naffah" <raif@fl.net.au> writes:

> hello Brian,
> 
> On Monday 10 February 2003 11:14, Brian Jones wrote:
> > All,
> >
> > I've posted the first beta of Classpath 0.05...
> 
> the patch for the BigInteger i posted sometime ago has not been applied 
> yet.  this i assume is going to happen soon, since it has been 
> approved.  the delay is because i dont have write access to the gcc 
> CVS, but only to Classpath.
> 
> still, it would be nice to have that patch included in the final release 
> of Classpath, since it improves the performance of BigInteger.

It may have been lost; I don't see the patch on Savannah.

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



From MAILER-DAEMON Mon Feb 10 10:34:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iFx0-0001az-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 10:34:30 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iFww-0001YW-00
	for classpath@gnu.org; Mon, 10 Feb 2003 10:34:26 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iFwu-0001VL-00
	for classpath@gnu.org; Mon, 10 Feb 2003 10:34:25 -0500
Received: from ns.uoc.gr ([147.52.80.1] helo=mail.uoc.gr)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iFw7-0001J8-00
	for classpath@gnu.org; Mon, 10 Feb 2003 10:33:36 -0500
Received: (qmail 674 invoked from network); 10 Feb 2003 15:33:28 -0000
Received: from orion.ucnet.uoc.gr ([147.52.3.166])
          (envelope-sender <jgeorgal@uoc.gr>)
          by ns.uoc.gr (qmail-ldap-1.03) with SMTP
          for <classpath@gnu.org>; 10 Feb 2003 15:33:28 -0000
Sender: jgeorgal@orion.ucnet.uoc.gr
To: classpath@gnu.org
From: Giannis Georgalis <jgeorgal@uoc.gr>
Organization: University of Crete
Date: 10 Feb 2003 17:34:28 +0200
Message-ID: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
Lines: 102
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: jgeorgal@uoc.gr
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 15:34:28 -0000

Hello,

After a discussion I had with Michael Koch, I decided to implement
the java.net.URI class. I found in the classpath mail archives a
patch submited by Mr. Topic (I think) in which he implemented part of
the URI class using:
  /**
   * Regular expression for parsing URIs.
   *
   * Taken from RFC 2396, Appendix B.
   * This expression doesn't parse IPv6 addresses.
   */
  private static final String URI_REGEXP =
    "^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?";

Appart from the fact that this expression cannot parse IPv6
addresses, it cannot be considered as a substitute of an URI parser,
as it can only break up the parts of a *valid* URI. For example the
uri : "http://1333.2123.232323.0.9.9~84.1" is not valid, but can be
parsed from this regexp.

After some digging in various RFCs I have written a (complete)
grammar (in BNF) for parsing URIs (I'll append the grammar at the end
of this message).

So the URI parser can be implemented in either native (c code) or
java. Implementing it in java, will be quite hard and difficult to
maintain and keep up with potential URI changes. On the other hand,
if it is implemented in c, it will be *very* easy to implement and
maintain as I'll use flex and maximum parsing speed will be
achieved. Additionally, provided that the URI grammar is very simple,
bison (yacc) is not needed. It would be easy to implement the URI
parser in java if jlex is used (that's another option I'm
considering).

Please, tell me your thoughts and suggestions about this matter.

Thank you,
Giannis

/*
 * <b><i>BNF GRAMMAR for URI parsing</i></b>&nbsp;<br>
 * <i>As described in {@link http://www.ietf.org/rfc/rfc2396.txt RFC-2396} and
 * in {@link http://www.ietf.org/rfc/rfc2732.txt RFC-2732}. IPv6 address scheme
 * is described in {@link http://www.ietf.org/rfc/rfc2373.txt RFC-2373}</i>
 *
 * <b>digit</b>           [0-9]
 * <b>alpha</b>           [a-zA-Z]
 * <b>alphanum</b>        alpha | digit
 * <b>hex</b>             digit | [a-fA-F]
 * <b>escaped</b>         "%"hex{2}
 * <b>mark</b>            "-" | "_" | "." | "!" | "~" |
 *                        "*" | "'" | "(" | ")"
 * <b>unreserved</b>      alphanum | mark
 * <b>reserved</b>        ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
 *                        "$" | "," | "[" | "]"
 * <b>uric</b>            reserved | unreserved | escaped
 * <b>fragment</b>        uric*
 * <b>query</b>           uric*
 * <b>pchar</b>           unreserved | escaped |
 *                        ":" | "@" | "&" | "=" | "+" | "$" | ","
 * <b>param</b>           pchar*
 * <b>segment</b>         pchar*(";"param)*
 * <b>path_segments</b>   segment("/"segment)*
 * <b>abs_path</b>        "/"path_segments
 * <b>uric_no_slash</b>   unreserved | escaped | ";" | "?" | ":" | "@" |
 *                        "&" | "=" | "+" | "$" | ","
 * <b>opaque_part</b>     {uric_no_slash}uric*
 * <b>path</b>            abs_path | opaque_part
 * <b>port</b>            digit*
 * <b>IPv4address</b>     digit{1,3}"."digit{1,3}"."digit{1,3}"."digit{1,3}
 * <b>hexseq</b>          hex{4}(":"hex{4})*
 * <b>hexpart</b>         hexseq | hexseq"::"(hexseq)? | "::"(hexseq)?
 * <b>IPv6prefix</b>      hexpart"/"digit{2} <i>It is not needed. Added for completeness</i>
 * <b>IPv6address</b>     hexpart(":"IPv4address)?
 * <b>ipv6reference</b>   "["IPv6address"]"
 * <b>toplabel</b>        alpha | alpha(alphanum | "-")*alphanum
 * <b>domainlabel</b>     alphanum | alphanum(alphanum | "-" )*alphanum
 * <b>hostname</b>        (domainlabel".")*toplabel(".")?
 * <b>host</b>            hostname | IPv4address | IPv6reference
 * <b>hostport</b>        host(":"port)?
 * <b>userinfo</b>        (unreserved | escaped |
 *                        ";" | ":" | "&" | "=" | "+" | "$" | ",")*
 * <b>server</b>          ((userinfo"@")?hostport)?
 * <b>reg_name</b>        (unreserved | escaped | "$" | "," |
 *                        ";" | ":" | "@" | "&" | "=" | "+")+
 * <b>authority</b>       server | reg_name
 * <b>scheme</b>          alpha( alpha | digit | "+" | "-" | ".")*
 * <b>rel_segment</b>     (unreserved | escaped |
 *                        ";" | "@" | "&" | "=" | "+" | "$" | ",")+
 * <b>rel_path</b>        rel_segment(abs_path)?
 * <b>net_path</b>        "//"authority(abs_path)?
 * <b>hier_part</b>       (net_path | abs_path)("?"query)?
 * <b>relativeURI</b>     (net_path | abs_path | rel_path)("?"query)?
 * <b>absoluteURI</b>     scheme":"(hier_part | opaque_part)
 * <b>URI-reference</b>   (absoluteURI | relativeURI)?("#"fragment)?
 */

-- 
 Object-oriented programming is an exceptionally bad 
idea which could only have originated in California.
    - Edsger Dijkstra (attributed)




From MAILER-DAEMON Mon Feb 10 11:29:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iGoJ-0008El-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 11:29:35 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iGoD-000866-00
	for classpath@gnu.org; Mon, 10 Feb 2003 11:29:29 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iGo9-00081p-00
	for classpath@gnu.org; Mon, 10 Feb 2003 11:29:25 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iGnD-0007cg-00
	for classpath@gnu.org; Mon, 10 Feb 2003 11:28:31 -0500
Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h1AGR8o5010793;
	Mon, 10 Feb 2003 11:27:08 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail4.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Mon, 10 Feb 2003 11:29:35 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 5008F830FC; Mon, 10 Feb 2003 11:28:21 -0500 (EST)
Sender: cbj@haphazard.org
To: jgeorgal@uoc.gr
References: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
From: Brian Jones <cbj@gnu.org>
Date: 10 Feb 2003 11:28:21 -0500
In-Reply-To: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
Message-ID: <m3ptq0uml6.fsf@lyta.haphazard.org>
Lines: 12
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 16:29:33 -0000

Giannis Georgalis <jgeorgal@uoc.gr> writes:

> Please, tell me your thoughts and suggestions about this matter.

ANTLR is usually the better choice for parsing as far as I know, but
I'm not really that knowledgable on grammars and parsing anyway.  It's
fine to do this btw, since we can checkin the parser generated classes
to avoid a build dependency here.

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



From MAILER-DAEMON Mon Feb 10 11:49:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iH7P-0006e1-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 11:49:19 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iH6j-0006Li-00
	for classpath@gnu.org; Mon, 10 Feb 2003 11:48:37 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iH5W-00064e-00
	for classpath@gnu.org; Mon, 10 Feb 2003 11:47:22 -0500
Received: from ns.uoc.gr ([147.52.80.1] helo=mail.uoc.gr)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iH59-0005vc-00
	for classpath@gnu.org; Mon, 10 Feb 2003 11:46:59 -0500
Received: (qmail 1146 invoked from network); 10 Feb 2003 16:46:56 -0000
Received: from orion.ucnet.uoc.gr ([147.52.3.166])
          (envelope-sender <jgeorgal@uoc.gr>)
          by ns.uoc.gr (qmail-ldap-1.03) with SMTP
          for <classpath@gnu.org>; 10 Feb 2003 16:46:56 -0000
Sender: jgeorgal@orion.ucnet.uoc.gr
To: Brian Jones <cbj@gnu.org>
References: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
	<m3ptq0uml6.fsf@lyta.haphazard.org>
From: Giannis Georgalis <jgeorgal@uoc.gr>
Organization: University of Crete
Date: 10 Feb 2003 18:47:57 +0200
In-Reply-To: <m3ptq0uml6.fsf@lyta.haphazard.org>
Message-ID: <80ptq0rsjm.fsf@orion.ucnet.uoc.gr>
Lines: 34
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: jgeorgal@uoc.gr
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 16:49:17 -0000

Brian Jones <cbj@gnu.org> writes:

> Giannis Georgalis <jgeorgal@uoc.gr> writes:
> 
> > Please, tell me your thoughts and suggestions about this matter.
> 
> ANTLR is usually the better choice for parsing as far as I know, but
> I'm not really that knowledgable on grammars and parsing anyway.  It's
> fine to do this btw, since we can checkin the parser generated classes
> to avoid a build dependency here.

I agree with you. I found JFlex <http://www.jflex.de>, that is *much*
faster than a hand-written scanner, as the benchmarks below
show. JFlex is under the GPL, so there's no problem in using it for
classpath.

If there's no objection I'll implement the parser using JFlex.

lines 	KB 	JVM 	handwritten scanner 	JFlex generated scanner

19050 	496 	hotspot 	824 ms                  248 ms  235 % faster
6350 	165 	hotspot 	272 ms                 	84 ms 	232 % faster
1270 	33 	hotspot 	53 ms                   18 ms 	194 % faster
19050 	496 	interpreted 	5.83 s                  3.85 s 	51 % faster
6350 	165 	interpreted 	1.95 s                  1.29 s 	51 % faster
1270 	33 	interpreted 	0.38 s                  0.25 s 	52 % faster




-- 
 Object-oriented programming is an exceptionally bad 
idea which could only have originated in California.
    - Edsger Dijkstra (attributed)




From MAILER-DAEMON Mon Feb 10 12:33:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iHjo-0000C2-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 12:29:00 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iHiV-0007sJ-00
	for classpath@gnu.org; Mon, 10 Feb 2003 12:27:39 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iHiM-0007mG-00
	for classpath@gnu.org; Mon, 10 Feb 2003 12:27:31 -0500
Received: from anis.telecom.uqam.ca ([132.208.250.6] helo=uqam.ca)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iHhn-0007SJ-00; Mon, 10 Feb 2003 12:26:55 -0500
Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6])
	by sortant.uqam.ca (8.12.2/8.12.1) with SMTP id h1AHF6sL012306;
	Mon, 10 Feb 2003 12:15:45 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
 by anis.telecom.uqam.ca (NAVGW 2.5.1.12) with SMTP id M2003021012154400158
 ; Mon, 10 Feb 2003 12:15:44 -0500
Received: from localhost (perseval.info.uqam.ca [132.208.137.96])
	h1AHC6sS011716;	Mon, 10 Feb 2003 12:12:06 -0500 (EST)
X-Spam-Filter: Filtre-Uqam re:  abuse@uqam.ca
Received: from egagnon by localhost with local (Exim 3.36 #1 (Debian))
	id 18iHTQ-0000kb-00; Mon, 10 Feb 2003 12:12:04 -0500
Date: Mon, 10 Feb 2003 12:12:04 -0500
To: Giannis Georgalis <jgeorgal@uoc.gr>
Message-ID: <20030210171204.GA2883@perseval.info.uqam.ca>
References: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
	<m3ptq0uml6.fsf@lyta.haphazard.org> <80ptq0rsjm.fsf@orion.ucnet.uoc.gr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <80ptq0rsjm.fsf@orion.ucnet.uoc.gr>
User-Agent: Mutt/1.5.3i
From: "Etienne M. Gagnon" <etienne.gagnon@uqam.ca>
cc: classpath@gnu.org
cc: Brian Jones <cbj@gnu.org>
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 17:28:58 -0000

On Mon, Feb 10, 2003 at 06:47:57PM +0200, Giannis Georgalis wrote:
> I agree with you. I found JFlex <http://www.jflex.de>, that is *much*
> faster than a hand-written scanner, as the benchmarks below
> show. JFlex is under the GPL, so there's no problem in using it for
> classpath.

GPL scares me...  (Classpath == GPL+Excecption != GPL)

Can't you use SableCC or ANTLR? (Or any other Free Software that would
not impose the "pure" GPL on Classpath).

Etienne

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



From MAILER-DAEMON Mon Feb 10 12:45:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iHz1-00054l-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 12:44:43 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iHtS-0002mS-00
	for classpath@gnu.org; Mon, 10 Feb 2003 12:38:58 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iHsr-0002VJ-00
	for classpath@gnu.org; Mon, 10 Feb 2003 12:38:22 -0500
Received: from piglet.dstc.edu.au ([130.102.176.1])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iHmz-0000yX-00
	for classpath@gnu.org; Mon, 10 Feb 2003 12:32:17 -0500
Received: from dstc.edu.au (soluble.dstc.edu.au [130.102.176.43])
	by piglet.dstc.edu.au (8.12.3/8.12.3) with ESMTP id h1AHWAjf010363;
	Tue, 11 Feb 2003 03:32:10 +1000 (EST)
Message-Id: <200302101732.h1AHWAjf010363@piglet.dstc.edu.au>
X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4
To: jgeorgal@uoc.gr
In-Reply-To: Message from Giannis Georgalis <jgeorgal@uoc.gr> 
   of "10 Feb 2003 17:34:28 +0200." <80vfzsrvy3.fsf@orion.ucnet.uoc.gr> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 11 Feb 2003 03:32:10 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Virus-Scanned: Message: ok
X-Scanned-By: MIMEDefang 2.9 (www dot roaringpenguin dot com slash mimedefang)
cc: crawley@piglet.dstc.edu.au
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 17:44:42 -0000


> After some digging in various RFCs I have written a (complete)
> grammar (in BNF) for parsing URIs (I'll append the grammar at the end
> of this message).

While the complete URI grammar looks a complex, a URI string typically
doesn't need to be fully parsed.  You only need to fully parse the
components that are requested. 

Note that the JDK 1.4 spec for the URI(String) constructor states
that its parsing more relaxed than the BNF in RFC 2396.  How relaxed
it is can only be determined by black box testing against the JDK 1.4
implementation.  If I was doing this, my first step would be to build
some extensive Mauve test cases ...

> So the URI parser can be implemented in either native (c code) or
> java. Implementing it in java, will be quite hard and difficult to
> maintain and keep up with potential URI changes. On the other hand,
> if it is implemented in c, it will be *very* easy to implement and
> maintain as I'll use flex and maximum parsing speed will be
> achieved. Additionally, provided that the URI grammar is very simple,
> bison (yacc) is not needed. It would be easy to implement the URI
> parser in java if jlex is used (that's another option I'm
> considering).

I'd recommend hand building a pure Java parser. That way, the Classpath
build process doesn't depend on an external parser or lexer generator,
and the source code will be easier to understand.

A hand-built parser for grammar as simple as this should be easy to
implement / maintain.  Especially considering Sun's documented deviations
from the RFC grammar, and possible undocumented deviations.

Finally, the chance that the RFC URI syntax will change radically is pretty
small, IMO.

-- Steve




From MAILER-DAEMON Mon Feb 10 12:47:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iHuV-0003Ox-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 12:40:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iHqQ-0001o8-00
	for classpath@gnu.org; Mon, 10 Feb 2003 12:35:50 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iHqM-0001mD-00
	for classpath@gnu.org; Mon, 10 Feb 2003 12:35:46 -0500
Received: from adsl-216-102-199-253.dsl.snfc21.pacbell.net ([216.102.199.253]
	helo=bothner.com)	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iHlL-0000fE-00; Mon, 10 Feb 2003 12:30:35 -0500
Received: from bothner.com (eureka.bothner.com [192.168.1.9])
	by bothner.com (8.12.5/8.12.5) with ESMTP id h1AHXmnw028725;
	Mon, 10 Feb 2003 09:33:48 -0800
Message-ID: <3E47DE2F.5020901@bothner.com>
Date: Mon, 10 Feb 2003 09:15:27 -0800
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: jgeorgal@uoc.gr
References: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
	<m3ptq0uml6.fsf@lyta.haphazard.org> <80ptq0rsjm.fsf@orion.ucnet.uoc.gr>
In-Reply-To: <80ptq0rsjm.fsf@orion.ucnet.uoc.gr>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
cc: classpath@gnu.org
cc: Brian Jones <cbj@gnu.org>
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 17:40:01 -0000

Giannis Georgalis wrote:
> I agree with you. I found JFlex <http://www.jflex.de>, that is *much*
> faster than a hand-written scanner, as the benchmarks below
> show.

I think space is *much* more important than speed when it comes
to parsing URIs.  How big is the generated scanner?

I'm also skeptical as to how JFlex is faster.  The only thing I
can think of is that a generated parser might use fewer method
calls that most hard-written parsers.  But unless you show
a hand-written parser next to the JFlex parser, I can't tell
whether the hand-written parser is just poorly written.

Of course a complicated Perl-style regular expression with
backtracking will be very difficult to implement by hand,
but parsing URIs shouldn't need that.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/




From MAILER-DAEMON Mon Feb 10 13:13:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iIR9-0001KM-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 13:13:47 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iIR6-0001Gs-00
	for classpath@gnu.org; Mon, 10 Feb 2003 13:13:44 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iIR5-0001GR-00
	for classpath@gnu.org; Mon, 10 Feb 2003 13:13:43 -0500
Received: from anis.telecom.uqam.ca ([132.208.250.6] helo=uqam.ca)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iIPj-00012o-00; Mon, 10 Feb 2003 13:12:19 -0500
Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6])
	by sortant.uqam.ca (8.12.2/8.12.1) with SMTP id h1AI58sH004202;
	Mon, 10 Feb 2003 13:05:40 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
 by anis.telecom.uqam.ca (NAVGW 2.5.1.12) with SMTP id M2003021013054015922
 ; Mon, 10 Feb 2003 13:05:40 -0500
Received: from localhost (perseval.info.uqam.ca [132.208.137.96])
	h1AI3qsS003730;	Mon, 10 Feb 2003 13:03:52 -0500 (EST)
X-Spam-Filter: Filtre-Uqam re:  abuse@uqam.ca
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by localhost with esmtp (Exim 3.36 #1 (Debian))
	id 18iIHY-0000n7-00; Mon, 10 Feb 2003 13:03:52 -0500
Message-ID: <3E47E988.1030605@uqam.ca>
Date: Mon, 10 Feb 2003 13:03:52 -0500
From: "Prof. Etienne M. Gagnon" <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.2.1) Gecko/20021226 Debian/1.2.1-9
MIME-Version: 1.0
To: Giannis Georgalis <jgeorgal@uoc.gr>
References: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
	<80ptq0rsjm.fsf@orion.ucnet.uoc.gr>
	<20030210171204.GA2883@perseval.info.uqam.ca>
In-Reply-To: <20030210171204.GA2883@perseval.info.uqam.ca>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
cc: "Etienne M. Gagnon" <etienne.gagnon@uqam.ca>
cc: classpath@gnu.org
cc: Brian Jones <cbj@gnu.org>
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 18:13:45 -0000

Etienne M. Gagnon wrote:
> GPL scares me...  (Classpath == GPL+Excecption != GPL)

I was wrong.  From the JFlex license page:

-------
The code generated by JFlex inherits the copyright of the specification it was 
produced from. If it was your specification, you may use the generated code 
without restriction.
-------

So, forget about my message. :-)

Etienne


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




From MAILER-DAEMON Mon Feb 10 13:57:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iJ7M-0003eu-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 13:57:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iJ53-0002w8-00
	for classpath@gnu.org; Mon, 10 Feb 2003 13:55:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iJ50-0002uK-00
	for classpath@gnu.org; Mon, 10 Feb 2003 13:55:00 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iJ4z-0002q6-00; Mon, 10 Feb 2003 13:54:57 -0500
Received: from fleche.redhat.com (tq0103.peakpeak.com [207.174.177.103])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id LAA27086;
	Mon, 10 Feb 2003 11:54:47 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 4EF934F8072; Mon, 10 Feb 2003 11:44:11 -0700 (MST)
To: raif@fl.net.au
References: <m31y2hxa8y.fsf@lyta.haphazard.org>
	<200302101913.13694.raif@fl.net.au>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: ..Wait 'til those  ITALIAN TEENAGERS get back to their HONDAS &
 discover them to be FILLED to the BRIM with MAZOLA!!
Date: 10 Feb 2003 11:44:11 -0700
In-Reply-To: <200302101913.13694.raif@fl.net.au>
Message-ID: <87adh4562s.fsf@fleche.redhat.com>
Lines: 10
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: GNU Classpath <classpath@gnu.org>
cc: Brian Jones <cbj@gnu.org>
Subject: Re: Classpath 0.05 beta1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 18:57:22 -0000

>>>>> "Raif" == Raif S Naffah <raif@fl.net.au> writes:

Raif> the patch for the BigInteger i posted sometime ago has not been
Raif> applied yet.

If you mean the patch you submitted for gcj, I'll put it in this week.
Sorry for the delay on that; I've been avoiding patch review for a
while :-(

Tom



From MAILER-DAEMON Mon Feb 10 14:17:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iJQB-0007ya-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 14:16:51 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iJPU-0007RL-00
	for classpath@gnu.org; Mon, 10 Feb 2003 14:16:08 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iJOE-0006kF-00
	for classpath@gnu.org; Mon, 10 Feb 2003 14:14:51 -0500
Received: from e2.ny.us.ibm.com ([32.97.182.102])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iJOB-0006fK-00
	for classpath@gnu.org; Mon, 10 Feb 2003 14:14:48 -0500
Received: from northrelay04.pok.ibm.com (northrelay04.pok.ibm.com
	[9.56.224.206])
	by e2.ny.us.ibm.com (8.12.7/8.12.2) with ESMTP id h1AJEkl3028934
	for <classpath@gnu.org>; Mon, 10 Feb 2003 14:14:46 -0500
Received: from d01ml243.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216])
	h1AJEhPE081480
	for <classpath@gnu.org>; Mon, 10 Feb 2003 14:14:43 -0500
To: classpath@gnu.org
X-Mailer: Lotus Notes Release 5.0.11   July 24, 2002
Message-ID: <OFD32234FD.F43A5FB4-ON85256CC9.00684349-85256CC9.00699D74@us.ibm.com>
From: Julian Dolby <dolby@us.ibm.com>
Date: Mon, 10 Feb 2003 14:14:43 -0500
X-MIMETrack: Serialize by Router on D01ML243/01/M/IBM(Build
	V601_02022003|February 02, 2003) at 02/10/2003 14:14:43
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Subject: GNU Classpath AWT sort-of runs on Jikes RVM
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 19:16:49 -0000





  I have been playing with running AWT programs on Jikes RVM using GNU
Classpath, and I have have made some simple applications run.  The major
issue was the threading model, and the assumption that Java threads look
like pthreads, which they do not on Jikes RVM (we use our own user-level
threading).  I found the gthread-jni files, and I basically filled in all
the functions in gthread-jni.c to use JNI to talk to Java-level
synchronization mechanisms.  I also passed the magic structure of those
function pointers to g_thread_init in GtkMainThread.gtkInit.  This code
should work for any VM; nonethelessI put the changes to use this stuff
under a --enable-portable-native-sync option to configure, so that VMs that
do not support all the JNI I used will not be bitten by it.

  I have got my manager's permission to submit this as a contribution to
GNU Classpath, and I shall do that in the next few days.

      -- Julian




From MAILER-DAEMON Mon Feb 10 14:19:38 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iJRH-0000dw-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 14:17:59 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iJQz-0000IW-00
	for classpath@gnu.org; Mon, 10 Feb 2003 14:17:41 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iJQW-0008JS-00
	for classpath@gnu.org; Mon, 10 Feb 2003 14:17:13 -0500
Received: from int-mail.syd.fl.net.au ([202.181.0.28] helo=delenn.fl.net.au)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iJQJ-00086A-00
	for classpath@gnu.org; Mon, 10 Feb 2003 14:16:59 -0500
Received: from solomon (a5-p19.syd.fl.net.au [202.181.2.19])
	by delenn.fl.net.au (Postfix) with ESMTP
	id CE7511803F5; Tue, 11 Feb 2003 06:24:16 +1100 (EST)
Content-Type: text/plain;
  charset="iso-8859-1"
From: "Raif S. Naffah" <raif@fl.net.au>
To: tromey@redhat.com
Date: Tue, 11 Feb 2003 06:19:25 +1100
User-Agent: KMail/1.4.3
References: <m31y2hxa8y.fsf@lyta.haphazard.org>
	<200302101913.13694.raif@fl.net.au> <87adh4562s.fsf@fleche.redhat.com>
In-Reply-To: <87adh4562s.fsf@fleche.redhat.com>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200302110619.26601.raif@fl.net.au>
cc: GNU Classpath <classpath@gnu.org>
Subject: Re: Classpath 0.05 beta1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: raif@fl.net.au
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 19:17:57 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hello Tom,

On Tuesday 11 February 2003 05:44, Tom Tromey wrote:
> >>>>> "Raif" =3D=3D Raif S Naffah <raif@fl.net.au> writes:
>
> Raif> the patch for the BigInteger i posted sometime ago has not been
> Raif> applied yet.
>
> If you mean the patch you submitted for gcj, I'll put it in this
> week. Sorry for the delay on that; I've been avoiding patch review
> for a while :-(

i did.  but i did not mean it as a blame.  i know you're busy doing a=20
million other things and your TODO list is probably a mile long.  hence=20
my reference to the patch being applied soon :-)


cheers;
rsn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Que du magnifique

iD8DBQE+R/s9+e1AKnsTRiERA4zTAKDB5a4G+GG0wpWLYNMhBTMVaW7MnQCgiZPe
XXbha80EzYo3uTQmSj7a4UY=3D
=3DTFgi
-----END PGP SIGNATURE-----




From MAILER-DAEMON Mon Feb 10 16:38:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iLcv-0002E0-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 16:38:09 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iLct-0002Da-00
	for classpath@gnu.org; Mon, 10 Feb 2003 16:38:07 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iLcp-00028v-00
	for classpath@gnu.org; Mon, 10 Feb 2003 16:38:06 -0500
Received: from ns.uoc.gr ([147.52.80.1] helo=mail.uoc.gr)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iLcp-00028r-00
	for classpath@gnu.org; Mon, 10 Feb 2003 16:38:03 -0500
Received: (qmail 2756 invoked from network); 10 Feb 2003 21:38:00 -0000
Received: from orion.ucnet.uoc.gr ([147.52.3.166])
          (envelope-sender <jgeorgal@uoc.gr>)
          by ns.uoc.gr (qmail-ldap-1.03) with SMTP
          for <classpath@gnu.org>; 10 Feb 2003 21:38:00 -0000
Sender: jgeorgal@orion.ucnet.uoc.gr
To: Stephen Crawley <crawley@dstc.edu.au>
References: <200302101732.h1AHWAjf010363@piglet.dstc.edu.au>
From: Giannis Georgalis <jgeorgal@uoc.gr>
Organization: University of Crete
Date: 10 Feb 2003 23:39:01 +0200
In-Reply-To: <200302101732.h1AHWAjf010363@piglet.dstc.edu.au>
Message-ID: <80fzqvstmy.fsf@orion.ucnet.uoc.gr>
Lines: 52
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
cc: crawley@piglet.dstc.edu.au
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: jgeorgal@uoc.gr
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 21:38:07 -0000

Stephen Crawley <crawley@dstc.edu.au> writes:

> While the complete URI grammar looks a complex, a URI string typically
> doesn't need to be fully parsed.  You only need to fully parse the
> components that are requested. 

I think you are wrong in this, the URI parser should accept *only*
valid URIs and not valid components within an URI. But I cannot be
sure untill I run some tests against sun's sdk. If what you said was
the case, then the regex-based, already submitted patch would be fine.

> Note that the JDK 1.4 spec for the URI(String) constructor states
> that its parsing more relaxed than the BNF in RFC 2396.  How relaxed
> it is can only be determined by black box testing against the JDK 1.4
> implementation.  If I was doing this, my first step would be to build
> some extensive Mauve test cases ...

I'm consulting JDK 1.4.1 API documentation, which does not state that
URI parser's grammar is more relaxed. On the contrary the assertions
made in URI(String) cover some implications within the RFC in
question which are not depicted in the BNF grammar.

> I'd recommend hand building a pure Java parser. That way, the Classpath
> build process doesn't depend on an external parser or lexer generator,
> and the source code will be easier to understand.

We could include the generated files (as Brian also noted) and avoid
the exotic dependencies. However, I was dissapointed to find out,
that jlex and jflex did not support parsing from a string (flex
supports it). That changed radically my plans... and on a second
thought native code with flex goes too much.

> A hand-built parser for grammar as simple as this should be easy to
> implement / maintain.  Especially considering Sun's documented deviations
> from the RFC grammar, and possible undocumented deviations.

Yes, after the above facts, I'm now thinking of implementing a
hand-written parser (if I don't get a better suggestion). As for the
"posible undocumented deviations", they would be bugs (or features
;-)). I think we shouldn't rely on these at all.

> Finally, the chance that the RFC URI syntax will change radically is pretty
> small, IMO.

You are probably right ... but don't forget M$, they'll want to make
their very own extensions to URI, sun will have to follow them
etc. ;-)

-- 
 Object-oriented programming is an exceptionally bad 
idea which could only have originated in California.
    - Edsger Dijkstra (attributed)




From MAILER-DAEMON Mon Feb 10 16:52:37 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iLoJ-0000KM-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 16:49:55 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iLoE-000089-00
	for classpath@gnu.org; Mon, 10 Feb 2003 16:49:50 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iLo7-0008Ld-00
	for classpath@gnu.org; Mon, 10 Feb 2003 16:49:46 -0500
Received: from ns.uoc.gr ([147.52.80.1] helo=mail.uoc.gr)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iLnx-00086A-00
	for classpath@gnu.org; Mon, 10 Feb 2003 16:49:33 -0500
Received: (qmail 2826 invoked from network); 10 Feb 2003 21:49:31 -0000
Received: from orion.ucnet.uoc.gr ([147.52.3.166])
          (envelope-sender <jgeorgal@uoc.gr>)
          by ns.uoc.gr (qmail-ldap-1.03) with SMTP
          for <cbj@gnu.org>; 10 Feb 2003 21:49:31 -0000
Sender: jgeorgal@orion.ucnet.uoc.gr
To: Per Bothner <per@bothner.com>
References: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
	<80ptq0rsjm.fsf@orion.ucnet.uoc.gr> <3E47DE2F.5020901@bothner.com>
From: Giannis Georgalis <jgeorgal@uoc.gr>
Organization: University of Crete
Date: 10 Feb 2003 23:50:31 +0200
In-Reply-To: <3E47DE2F.5020901@bothner.com>
Message-ID: <80bs1jst3s.fsf@orion.ucnet.uoc.gr>
Lines: 24
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Brian Jones <cbj@gnu.org>
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: jgeorgal@uoc.gr
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 21:49:53 -0000

Per Bothner <per@bothner.com> writes:
> I think space is *much* more important than speed when it comes
> to parsing URIs.  How big is the generated scanner?

The generated scanner is not big (about 300 loc).

> I'm also skeptical as to how JFlex is faster.  The only thing I
> can think of is that a generated parser might use fewer method
> calls that most hard-written parsers.  But unless you show
> a hand-written parser next to the JFlex parser, I can't tell
> whether the hand-written parser is just poorly written.

As you note, generated scanners are faster because they save a lot of
function calls, have lookup tables, and as far as I remember they
work like FSMs (finite state machines). Additionally don't forget
that the URI objects are immutable. That means that as soon as the
parsing is complete, the parser object is *dead*. However as I wrote
as an answer to Stephen, I'm also thinking for a hand-written parser,
for the reasons described there.

-- 
 Object-oriented programming is an exceptionally bad 
idea which could only have originated in California.
    - Edsger Dijkstra (attributed)




From MAILER-DAEMON Mon Feb 10 17:03:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iM11-0004x0-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 17:03:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iM0v-0004nL-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:02:57 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iM0n-0004ZT-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:02:49 -0500
Received: from mail-out1.apple.com ([17.254.0.52])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iM0m-0004Ig-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:02:48 -0500
Received: from mailgate2.apple.com (A17-129-100-225.apple.com
	[17.129.100.225])
	by mail-out1.apple.com (8.11.3/8.11.3) with ESMTP id h1AM2hI05961
	for <classpath@gnu.org>; Mon, 10 Feb 2003 14:02:43 -0800 (PST)
Received: from scv2.apple.com (scv2.apple.com) by mailgate2.apple.com
	<T6054742292118164e13cc@mailgate2.apple.com>;
	Mon, 10 Feb 2003 14:02:37 -0800
Received: from bothner.com (il0102b-dhcp93.apple.com [17.201.26.143])
	by scv2.apple.com (8.11.3/8.11.3) with ESMTP id h1AM2YQ24948;
	Mon, 10 Feb 2003 14:02:37 -0800 (PST)
Message-ID: <3E481DED.2040502@bothner.com>
Date: Mon, 10 Feb 2003 13:47:25 -0800
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: jgeorgal@uoc.gr
References: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
	<80ptq0rsjm.fsf@orion.ucnet.uoc.gr> <3E47DE2F.5020901@bothner.com>
	<80bs1jst3s.fsf@orion.ucnet.uoc.gr>
In-Reply-To: <80bs1jst3s.fsf@orion.ucnet.uoc.gr>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 22:03:02 -0000

Giannis Georgalis wrote:
> The generated scanner is not big (about 300 loc).

A more interesting measure is .class file size.

> As you note, generated scanners are faster because they save a lot of
> function calls, have lookup tables,

Lookup tables are difficult when using Unicode - a simple
one-element-per-character table is too wasteful, at least
for a non-critical helper class like URI.

> and as far as I remember they
> work like FSMs (finite state machines).

That does not say anything about the implementation.
A hand-written scanner is also a FSM.

> Additionally don't forget
> that the URI objects are immutable. That means that as soon as the
> parsing is complete, the parser object is *dead*.

But you still have to allocate the parser object(s), which a
hand-written parser doesn't have to.  And object allocation
is relatively expensive, in the context of parsing a URI.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/




From MAILER-DAEMON Mon Feb 10 17:28:06 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iMOa-0007WM-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 17:27:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iMOF-0007Mz-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:27:03 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iMMN-0006mP-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:25:10 -0500
Received: from ns.uoc.gr ([147.52.80.1] helo=mail.uoc.gr)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iMKX-0006Ae-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:23:14 -0500
Received: (qmail 3119 invoked from network); 10 Feb 2003 22:23:11 -0000
Received: from orion.ucnet.uoc.gr ([147.52.3.166])
          (envelope-sender <jgeorgal@uoc.gr>)
          by ns.uoc.gr (qmail-ldap-1.03) with SMTP
          for <classpath@gnu.org>; 10 Feb 2003 22:23:11 -0000
Sender: jgeorgal@orion.ucnet.uoc.gr
To: Per Bothner <per@bothner.com>
References: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
	<80ptq0rsjm.fsf@orion.ucnet.uoc.gr> <3E47DE2F.5020901@bothner.com>
	<80bs1jst3s.fsf@orion.ucnet.uoc.gr> <3E481DED.2040502@bothner.com>
From: Giannis Georgalis <jgeorgal@uoc.gr>
Organization: University of Crete
Date: 11 Feb 2003 00:24:12 +0200
In-Reply-To: <3E481DED.2040502@bothner.com>
Message-ID: <8065rrsrjn.fsf@orion.ucnet.uoc.gr>
Lines: 19
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: jgeorgal@uoc.gr
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 22:27:22 -0000

Per Bothner <per@bothner.com> writes:

> But you still have to allocate the parser object(s), which a
> hand-written parser doesn't have to.  And object allocation
> is relatively expensive, in the context of parsing a URI.

Yes, you are right. So what you are suggesting is a hand-written
parser, don't you ?

btw: don't underestimate URIs

http://www.google.com/search?q=%22what+do+you+%22+want+to+eat+today&sourceid=mozilla-search&start=0&start=0#END

;-)

-- 
 Object-oriented programming is an exceptionally bad 
idea which could only have originated in California.
    - Edsger Dijkstra (attributed)




From MAILER-DAEMON Mon Feb 10 17:43:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iMcX-000391-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 17:41:49 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iMbh-0002t5-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:40:57 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iMam-0002jF-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:40:01 -0500
Received: from mail-out1.apple.com ([17.254.0.52])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iMaf-0002gU-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:39:53 -0500
Received: from mailgate2.apple.com (A17-129-100-225.apple.com
	[17.129.100.225])
	by mail-out1.apple.com (8.11.3/8.11.3) with ESMTP id h1AMdqI21961
	for <classpath@gnu.org>; Mon, 10 Feb 2003 14:39:52 -0800 (PST)
Received: from scv2.apple.com (scv2.apple.com) by mailgate2.apple.com
	<T6054963828118164e13cc@mailgate2.apple.com>;
	Mon, 10 Feb 2003 14:39:51 -0800
Received: from bothner.com (il0102b-dhcp93.apple.com [17.201.26.143])
	by scv2.apple.com (8.11.3/8.11.3) with ESMTP id h1AMdoQ22326;
	Mon, 10 Feb 2003 14:39:50 -0800 (PST)
Message-ID: <3E4826A9.6070309@bothner.com>
Date: Mon, 10 Feb 2003 14:24:41 -0800
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: jgeorgal@uoc.gr
References: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
	<80ptq0rsjm.fsf@orion.ucnet.uoc.gr> <3E47DE2F.5020901@bothner.com>
	<80bs1jst3s.fsf@orion.ucnet.uoc.gr> <3E481DED.2040502@bothner.com>
	<8065rrsrjn.fsf@orion.ucnet.uoc.gr>
In-Reply-To: <8065rrsrjn.fsf@orion.ucnet.uoc.gr>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 22:41:46 -0000

Giannis Georgalis wrote:
> Yes, you are right. So what you are suggesting is a hand-written
> parser, don't you ?

Yes.  I generally prefer hard-written parsers and scanners
anyway, and in the case I certainly think a generated
would be inappropriate.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/




From MAILER-DAEMON Mon Feb 10 17:49:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iMkA-0005MU-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 17:49:42 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iMjw-0005Dk-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:49:28 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iMit-0004nf-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:48:24 -0500
Received: from web10007.mail.yahoo.com ([216.136.130.43])
	by monty-python.gnu.org with smtp (Exim 4.10.13)
	id 18iMhX-0004RH-00
	for classpath@gnu.org; Mon, 10 Feb 2003 17:46:59 -0500
Message-ID: <20030210224658.92205.qmail@web10007.mail.yahoo.com>
Received: from [62.104.211.68] by web10007.mail.yahoo.com via HTTP;
	Mon, 10 Feb 2003 14:46:58 PST
Date: Mon, 10 Feb 2003 14:46:58 -0800 (PST)
From: Dalibor Topic <robilad@yahoo.com>
To: jgeorgal@uoc.gr, classpath@gnu.org
In-Reply-To: <80vfzsrvy3.fsf@orion.ucnet.uoc.gr>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 22:49:40 -0000

Hi Giannis,

--- Giannis Georgalis <jgeorgal@uoc.gr> wrote:
> Hello,
> 
> After a discussion I had with Michael Koch, I
> decided to implement
> the java.net.URI class. I found in the classpath
> mail archives a
> patch submited by Mr. Topic (I think) in which he

yes that was me.

> implemented part of
> the URI class using:
>   /**
>    * Regular expression for parsing URIs.
>    *
>    * Taken from RFC 2396, Appendix B.
>    * This expression doesn't parse IPv6 addresses.
>    */
>   private static final String URI_REGEXP =
>    
>
"^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?";
> 
> Appart from the fact that this expression cannot
> parse IPv6
> addresses, it cannot be considered as a substitute
> of an URI parser,
> as it can only break up the parts of a *valid* URI.

I doubt adding basic IPv6 parsing to the regexp used
should pose significant problems.

> For example the
> uri : "http://1333.2123.232323.0.9.9~84.1" is not
> valid, but can be
> parsed from this regexp.

You are mixing things up here. That's a valid URI.
Sun's JDK 1.4.1_01 on linux prints for a trivial test
program:

/usr/lib/j2sdk1.4.1_01/bin/java test
"http://1333.2123.232323.0.9.9~84.1"
http://1333.2123.232323.0.9.9~84.1
Authority: 1333.2123.232323.0.9.9~84.1
Fragment: null
Host: null
Path: 
Port: -1
Query: null
Scheme: http
SchemeSpecificPart: //1333.2123.232323.0.9.9~84.1
UserInfo: null

this is the test program I used:
topic@clerks:~> cat test.java 
import java.net.*;

public class test {
        public static void main (String [] args) {
                try {
                        URI u = new URI(args[0]);
                        printURI(u);
                }
                catch(Exception e) {
                        e.printStackTrace();
                }
        }

        public static void printURI(URI u) {
                        System.out.println(u);
                        System.out.println("Authority:
" + u.getRawAuthority());
                        System.out.println("Fragment:
" + u.getRawFragment());
                        System.out.println("Host: " +
u.getHost());
                        System.out.println("Path: " +
u.getRawPath());
                        System.out.println("Port: " +
u.getPort());
                        System.out.println("Query: " +
u.getRawQuery());
                        System.out.println("Scheme: "
+ u.getScheme());
                       
System.out.println("SchemeSpecificPart: " +
u.getRawSchemeSpecificPart());
                        System.out.println("UserInfo:
" + u.getRawUserInfo());
        }
}

Here's my question for you, as you've said you've read
the URI RFCs: which section of the URI RFC does the
URI you considered not valid violate?

> After some digging in various RFCs I have written a
> (complete)
> grammar (in BNF) for parsing URIs (I'll append the
> grammar at the end
> of this message).

That's nice. But it's overkill. 

You can achieve the same effect by using the regexp to
separate URI components and doing some post-processing
(preferably using simple regexps) on the generated
Strings to ensure they contain only allowed
characters, to get the port number of hierarchical
URIs etc.

I could have implemented URI parsing using a parser
generator, but it seemed to me like the wrong solution
to the problem: instead of simple regexp and 20 lines,
you get a compile time dependency on a parser
generator, x lines for the grammar + y lines for the
generated code. I think your grammar alone is bigger
than my parsing code.

> So the URI parser can be implemented in either
> native (c code) or
> java. Implementing it in java, will be quite hard
> and difficult to
> maintain and keep up with potential URI changes. On
> the other hand,
> if it is implemented in c, it will be *very* easy to
> implement and
> maintain as I'll use flex and maximum parsing speed
> will be
> achieved. Additionally, provided that the URI
> grammar is very simple,
> bison (yacc) is not needed. It would be easy to
> implement the URI
> parser in java if jlex is used (that's another
> option I'm
> considering).

I don't understand how implementing the URI parser in
C would somehow magically make it easier to maintain
than if its implemented in java. There are parser
generators for java, too, as you already know. Sounds
like you're comparing oranges and apples to me.

That being said, feel free to reimplement URI parsing
from scratch. I can understand your enthusiasm.
Programming parsers can be fun, writing grammars is a
nice passtime as well. 

I would humbly propose using my code and fixing its
shortcomings, but I can't force anyone to use it ;) I
know fully well that it is not a full implementation
of java.net.URI (and I think I've stated that in the
mail accompanying the patch), but it is a good
starting point, in my opinion. It's certainly good
enough to run Saxon 7.3 on kaffe ;)

best regards,
dalibor topic

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



From MAILER-DAEMON Mon Feb 10 18:02:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iMwZ-0005vN-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 18:02:31 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iMwW-0005nM-00
	for classpath@gnu.org; Mon, 10 Feb 2003 18:02:28 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iMwJ-0005Z1-00
	for classpath@gnu.org; Mon, 10 Feb 2003 18:02:15 -0500
Received: from web10008.mail.yahoo.com ([216.136.130.44])
	by monty-python.gnu.org with smtp (Exim 4.10.13)
	id 18iMwH-0005Um-00
	for classpath@gnu.org; Mon, 10 Feb 2003 18:02:13 -0500
Message-ID: <20030210230212.43385.qmail@web10008.mail.yahoo.com>
Received: from [62.104.211.68] by web10008.mail.yahoo.com via HTTP;
	Mon, 10 Feb 2003 15:02:12 PST
Date: Mon, 10 Feb 2003 15:02:12 -0800 (PST)
From: Dalibor Topic <robilad@yahoo.com>
To: jgeorgal@uoc.gr, Stephen Crawley <crawley@dstc.edu.au>
In-Reply-To: <80fzqvstmy.fsf@orion.ucnet.uoc.gr>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: crawley@piglet.dstc.edu.au
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 10 Feb 2003 23:02:30 -0000

Hi Giannis,

--- Giannis Georgalis <jgeorgal@uoc.gr> wrote:
> Stephen Crawley <crawley@dstc.edu.au> writes:
> 
> > I'd recommend hand building a pure Java parser.
> That way, the Classpath
> > build process doesn't depend on an external parser
> or lexer generator,
> > and the source code will be easier to understand.
> 
> We could include the generated files (as Brian also
> noted) and avoid
> the exotic dependencies. However, I was dissapointed
> to find out,
> that jlex and jflex did not support parsing from a
> string (flex
> supports it). That changed radically my plans... and
> on a second
> thought native code with flex goes too much.

No need to get radical. ;) As long as the parser
generator of your choice accepts input form some kind
of InputStream or Reader, you could wrap the String in
the appropriate java.io class and use that.
 
> > Finally, the chance that the RFC URI syntax will
> change radically is pretty
> > small, IMO.
> 
> You are probably right ... but don't forget M$,
> they'll want to make
> their very own extensions to URI, sun will have to
> follow them
> etc. ;-)

that's purely hypothetical. There is already a simple
mechanism for domain specific URIs and it's called a
scheme.

cheers,
dalibor topic

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



From MAILER-DAEMON Mon Feb 10 19:27:00 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iOGG-0004n2-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 19:26:56 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iOFo-0004L3-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:26:29 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iOFL-0003xy-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:26:04 -0500
Received: from piglet.dstc.edu.au ([130.102.176.1])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iODn-0003RC-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:24:24 -0500
Received: from dstc.edu.au (soluble.dstc.edu.au [130.102.176.43])
	by piglet.dstc.edu.au (8.12.3/8.12.3) with ESMTP id h1B0OJjf003606;
	Tue, 11 Feb 2003 10:24:19 +1000 (EST)
Message-Id: <200302110024.h1B0OJjf003606@piglet.dstc.edu.au>
X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4
To: jgeorgal@uoc.gr
In-Reply-To: Message from Giannis Georgalis <jgeorgal@uoc.gr> 
   of "10 Feb 2003 23:39:01 +0200." <80fzqvstmy.fsf@orion.ucnet.uoc.gr> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 11 Feb 2003 10:24:19 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Virus-Scanned: Message: ok
X-Scanned-By: MIMEDefang 2.9 (www dot roaringpenguin dot com slash mimedefang)
cc: crawley@piglet.dstc.edu.au
cc: classpath@gnu.org
cc: Stephen Crawley <crawley@dstc.edu.au>
Subject: Re: java.net.URI implementation 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 11 Feb 2003 00:26:54 -0000

> Stephen Crawley <crawley@dstc.edu.au> writes:
> 
> > While the complete URI grammar looks a complex, a URI string typically
> > doesn't need to be fully parsed.  You only need to fully parse the
> > components that are requested. 
> 
> I think you are wrong in this, the URI parser should accept *only*
> valid URIs and not valid components within an URI. But I cannot be
> sure untill I run some tests against sun's sdk. If what you said was
> the case, then the regex-based, already submitted patch would be fine.

Here's an example.  The getRawPath() method returns the path part of
the URI with escaping in place.  The getPath() method decodes the
path and returns that, throwing an exception if the encoding is wrong.
This suggests to me that URI(String) should not attempt to parse the
escape sequences.

> > Note that the JDK 1.4 spec for the URI(String) constructor states
> > that its parsing more relaxed than the BNF in RFC 2396.  How relaxed
> > it is can only be determined by black box testing against the JDK 1.4
> > implementation.  If I was doing this, my first step would be to build
> > some extensive Mauve test cases ...
> 
> I'm consulting JDK 1.4.1 API documentation, which does not state that
> URI parser's grammar is more relaxed. On the contrary the assertions
> made in URI(String) cover some implications within the RFC in
> question which are not depicted in the BNF grammar.

I think we are mostly saying the same thing; i.e. the BNF in RFC 2396 is
not complete.  However, the Sun people who wrote the javadoc seem to be
implying that the RFC 2396 spec is (at least) ambiguous on the points in
which URI(String) "deviates".  Also doesn't the last deviation allow
URI(String) to handle URIs that contain unescaped Unicode in some
components?  Isn't this a substantive extension (relaxation) of RFC
2396?

> > I'd recommend hand building a pure Java parser. That way, the Classpath
> > build process doesn't depend on an external parser or lexer generator,
> > and the source code will be easier to understand.
> 
> We could include the generated files (as Brian also noted) and avoid
> the exotic dependencies.

For the record, including generated code in Classpath without
integrating the tools that generate would present maintenance problems.
You DO need the tools if you are going to change the parser ... unless
you are mad enough to try hand patch the parser tables.  Obviously, if
the grammar you are trying to implement is sufficiently complex, these
issues would be minor compared with the difficulty of implementing an
efficient parser by hand.
  
> As for the "posible undocumented deviations", they would be bugs (or 
> features ;-)). I think we shouldn't rely on these at all.

I disagree.  According to Sun, in cases where the implementation and
javadoc disagree, the former represents the conformance point.  Each
place where Classpath doesn't conform to the JDK behaviour represents a 
potential problem for someone trying to port Java applications between
the Sun and Classpath implementations of the JRE.

-- Steve





From MAILER-DAEMON Mon Feb 10 19:38:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iORP-00041A-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 19:38:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iORJ-0003l5-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:38:21 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iOQp-0003F1-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:37:53 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iONl-0001u0-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:34:41 -0500
Received: from fleche.redhat.com (tq0103.peakpeak.com [207.174.177.103])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id RAA21464;
	Mon, 10 Feb 2003 17:34:38 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 4EF784F8072; Mon, 10 Feb 2003 17:24:06 -0700 (MST)
To: Julian Dolby <dolby@us.ibm.com>
References: <OFD32234FD.F43A5FB4-ON85256CC9.00684349-85256CC9.00699D74@us.ibm.com>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: OMNIVERSAL AWARENESS??  Oh, YEH!!  First you need 4 GALLONS of JELL-O
 and a BIG WRENCH!!...  I think you drop th'WRENCH in the JELL-O as if
 it was a FLAVOR, or an INGREDIENT...  ...or...I...um...  WHERE'S the
 WASHING MACHINES?
Date: 10 Feb 2003 17:24:06 -0700
In-Reply-To: <OFD32234FD.F43A5FB4-ON85256CC9.00684349-85256CC9.00699D74@us.ibm.com>
Message-ID: <87wuk7wtp5.fsf@fleche.redhat.com>
Lines: 18
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: GNU Classpath AWT sort-of runs on Jikes RVM
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 11 Feb 2003 00:38:26 -0000

>>>>> "Julian" == Julian Dolby <dolby@us.ibm.com> writes:

Julian> I found the gthread-jni files, and I basically filled in all
Julian> the functions in gthread-jni.c to use JNI to talk to
Julian> Java-level synchronization mechanisms.  I also passed the
Julian> magic structure of those function pointers to g_thread_init in
Julian> GtkMainThread.gtkInit.  This code should work for any VM;
Julian> nonethelessI put the changes to use this stuff under a
Julian> --enable-portable-native-sync option to configure, so that VMs
Julian> that do not support all the JNI I used will not be bitten by
Julian> it.

I think it would make sense for us to simply require that a JVM
implement these JNI methods correctly.  Is there really a JVM that
Classpath can run on that doesn't?  (I assume they are monitor
enter/exit calls...)

Tom



From MAILER-DAEMON Mon Feb 10 19:42:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iOT7-0005r0-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 19:40:13 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iOSk-0005Sh-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:39:50 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iOSL-0004l1-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:39:28 -0500
Received: from ns.uoc.gr ([147.52.80.1] helo=mail.uoc.gr)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iORs-0004LP-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:38:56 -0500
Received: (qmail 3838 invoked from network); 11 Feb 2003 00:38:54 -0000
Received: from orion.ucnet.uoc.gr ([147.52.3.166])
          (envelope-sender <jgeorgal@uoc.gr>)
          by ns.uoc.gr (qmail-ldap-1.03) with SMTP
          for <classpath@gnu.org>; 11 Feb 2003 00:38:54 -0000
Sender: jgeorgal@orion.ucnet.uoc.gr
To: Dalibor Topic <robilad@yahoo.com>
References: <20030210224658.92205.qmail@web10007.mail.yahoo.com>
From: Giannis Georgalis <jgeorgal@uoc.gr>
Organization: University of Crete
Date: 11 Feb 2003 02:39:54 +0200
In-Reply-To: <20030210224658.92205.qmail@web10007.mail.yahoo.com>
Message-ID: <80znp3r6p1.fsf@orion.ucnet.uoc.gr>
Lines: 71
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: jgeorgal@uoc.gr
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 11 Feb 2003 00:40:11 -0000

Dalibor Topic <robilad@yahoo.com> writes:

> I doubt adding basic IPv6 parsing to the regexp used
> should pose significant problems.
> 
> > For example the
> > uri : "http://1333.2123.232323.0.9.9~84.1" is not
> > valid, but can be
> > parsed from this regexp.
> 
> You are mixing things up here. That's a valid URI.
> Sun's JDK 1.4.1_01 on linux prints for a trivial test
> program:
 
> Here's my question for you, as you've said you've read
> the URI RFCs: which section of the URI RFC does the
> URI you considered not valid violate?

I'm sorry, I was thinking of the "host" part of the rule (i missed the
"reg_name"). However any URI that contains spaces where it shouldn't
is considered valid for this regex. To be honest, I only had a quick
look to your implementation and with the above example I thought
that you assigned the host to that 1333.21... number.

> That's nice. But it's overkill. 
> 
> You can achieve the same effect by using the regexp to
> separate URI components and doing some post-processing
> (preferably using simple regexps) on the generated
> Strings to ensure they contain only allowed
> characters, to get the port number of hierarchical
> URIs etc.

This regexp only breaks down the problem in smaller parts. And the
post-processing you are talking about, is parsing that small parts to
ensure that the uri is valid (and to fill the host, userinfo,
etc. Strings).

> I could have implemented URI parsing using a parser
> generator, but it seemed to me like the wrong solution
> to the problem: instead of simple regexp and 20 lines,
> you get a compile time dependency on a parser
> generator, x lines for the grammar + y lines for the
> generated code. I think your grammar alone is bigger
> than my parsing code.

Yes I decided to make the parser hand-written. I agree that my
initial thought was not wise. But as you state, your implementation
was not full, so do not compare it with a proper parser because it is
not.

> I would humbly propose using my code and fixing its
> shortcomings, but I can't force anyone to use it ;) I
> know fully well that it is not a full implementation
> of java.net.URI (and I think I've stated that in the
> mail accompanying the patch), but it is a good
> starting point, in my opinion. It's certainly good
> enough to run Saxon 7.3 on kaffe ;)

Provided that classpath's java.util.regex.Matcher,
java.util.regex.Pattern classes are not implemented, I wouldn't want
to use regexps. Though I can follow the same philosophy and break the
initial problem in the smaller parts you are suggesting and then go
on from there, so it would be easy, when the regex classes are
implemented and proved more efficient, to switch.
No hard feelings ;-)

-- 
 Object-oriented programming is an exceptionally bad 
idea which could only have originated in California.
    - Edsger Dijkstra (attributed)




From MAILER-DAEMON Mon Feb 10 19:59:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iOlb-0007iR-00
	for mharc-classpath@gnu.org; Mon, 10 Feb 2003 19:59:19 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iOl3-0007Ob-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:58:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iOk9-0006yU-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:57:50 -0500
Received: from web10005.mail.yahoo.com ([216.136.130.41])
	by monty-python.gnu.org with smtp (Exim 4.10.13)
	id 18iOjO-0006sd-00
	for classpath@gnu.org; Mon, 10 Feb 2003 19:57:02 -0500
Message-ID: <20030211005701.14091.qmail@web10005.mail.yahoo.com>
Received: from [62.104.211.68] by web10005.mail.yahoo.com via HTTP;
	Mon, 10 Feb 2003 16:57:01 PST
Date: Mon, 10 Feb 2003 16:57:01 -0800 (PST)
From: Dalibor Topic <robilad@yahoo.com>
To: jgeorgal@uoc.gr
In-Reply-To: <80znp3r6p1.fsf@orion.ucnet.uoc.gr>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 11 Feb 2003 00:59:08 -0000

hi Giannis,

--- Giannis Georgalis <jgeorgal@uoc.gr> wrote:
> Dalibor Topic <robilad@yahoo.com> writes:
> 

> "reg_name"). However any URI that contains spaces
> where it shouldn't
> is considered valid for this regex. To be honest, I

You're right. That is supposed to be caught in the
post-processing of matched tokens which I have not
written ;)
 
> > That's nice. But it's overkill. 
> > 
> > You can achieve the same effect by using the
> regexp to
> > separate URI components and doing some
> post-processing
> > (preferably using simple regexps) on the generated
> > Strings to ensure they contain only allowed
> > characters, to get the port number of hierarchical
> > URIs etc.
> 
> This regexp only breaks down the problem in smaller
> parts. And the
> post-processing you are talking about, is parsing
> that small parts to
> ensure that the uri is valid (and to fill the host,
> userinfo,
> etc. Strings).

Exactly. A straightforward, 'by-the-rfc' approach, I'd
assume. I didn't have a need to write a full parser,
so I didn't, as I only needed to have basic URI
parsing for Saxon.

> > I could have implemented URI parsing using a
> parser
> > generator, but it seemed to me like the wrong
> solution
> > to the problem: instead of simple regexp and 20
> lines,
> > you get a compile time dependency on a parser
> > generator, x lines for the grammar + y lines for
> the
> > generated code. I think your grammar alone is
> bigger
> > than my parsing code.
> 
> Yes I decided to make the parser hand-written. I
> agree that my
> initial thought was not wise. But as you state, your
> implementation
> was not full, so do not compare it with a proper
> parser because it is
> not.

I'm sorry for using a straw man argument here. I
didn't really notice it.
 
> Provided that classpath's java.util.regex.Matcher,
> java.util.regex.Pattern classes are not implemented,
> I wouldn't want
> to use regexps. Though I can follow the same
> philosophy and break the
> initial problem in the smaller parts you are
> suggesting and then go
> on from there, so it would be easy, when the regex
> classes are
> implemented and proved more efficient, to switch.
> No hard feelings ;-)

I'm using the gnu.regex package in Kaffe with their
java.util.regex wrapper which is supposed to be merged
into GNU Classpath, as far as I know. The discussion
seems to flare up every few months, but nothing has
came out of it so far, I think, except that everybody
agrees it would be a good thing. ;)

best of luck with the code, I'll be happy to merge it
into kaffe when it arrives into Classpath.

cheers,
dalibor topic

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



From MAILER-DAEMON Tue Feb 11 00:52:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18iTLc-0007qr-00
	for mharc-classpath@gnu.org; Tue, 11 Feb 2003 00:52:48 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iTLa-0007qR-00
	for classpath@gnu.org; Tue, 11 Feb 2003 00:52:46 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iTLX-0007g2-00
	for classpath@gnu.org; Tue, 11 Feb 2003 00:52:45 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18iTLR-0007cl-00
	for classpath@gnu.org; Tue, 11 Feb 2003 00:52:42 -0500
Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h1B5pKo7012498;
	Tue, 11 Feb 2003 00:51:20 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail4.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Tue, 11 Feb 2003 00:53:48 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 69EA3830FC; Tue, 11 Feb 2003 00:52:36 -0500 (EST)
Sender: cbj@haphazard.org
To: Dalibor Topic <robilad@yahoo.com>
References: <20030211005701.14091.qmail@web10005.mail.yahoo.com>
From: Brian Jones <cbj@gnu.org>
Date: 11 Feb 2003 00:52:36 -0500
In-Reply-To: <20030211005701.14091.qmail@web10005.mail.yahoo.com>
Message-ID: <m3isvrbbyz.fsf@lyta.haphazard.org>
Lines: 19
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: jgeorgal@uoc.gr
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 11 Feb 2003 05:52:47 -0000

Dalibor Topic <robilad@yahoo.com> writes:

> I'm using the gnu.regex package in Kaffe with their
> java.util.regex wrapper which is supposed to be merged
> into GNU Classpath, as far as I know. The discussion
> seems to flare up every few months, but nothing has
> came out of it so far, I think, except that everybody
> agrees it would be a good thing. ;)
> 
> best of luck with the code, I'll be happy to merge it
> into kaffe when it arrives into Classpath.

It's basically an issue of seeing if the gnu.regexp copyright holders
can get together and make the license the same, etc.  It's being
worked but this is always a slow process.

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



From MAILER-DAEMON Wed Feb 12 07:08:32 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ivXg-0001Bv-00
	for mharc-classpath@gnu.org; Wed, 12 Feb 2003 06:59:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ivWp-0000zu-00
	for classpath@gnu.org; Wed, 12 Feb 2003 06:58:15 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18ivLe-0000Gm-00
	for classpath@gnu.org; Wed, 12 Feb 2003 06:46:43 -0500
Received: from 62-177-154-234.bbeyond.nl ([62.177.154.234]
	helo=LEMBU.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18ivKh-0000Ei-00
	for classpath@gnu.org; Wed, 12 Feb 2003 06:45:43 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.5.6803.0
Content-class: urn:content-classes:message
Date: Wed, 12 Feb 2003 12:45:41 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Message-ID: <5C38B761F205B54BA59FF611A65C624801184F@lembu.sumatrasoftware.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: java.io.File patch
Thread-Index: AcLSjDRei7/+iuE6T5qtOYnhC9+M4Q==
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: <classpath@gnu.org>
Subject: java.io.File patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 12 Feb 2003 11:59:07 -0000

Hi,

On Windows new File("c://") hangs (infinite loop), please apply the
following patch:

RCS file: /cvsroot/classpath/classpath/java/io/File.java,v
retrieving revision 1.21
diff -r1.21 File.java
334,335c334
<   if (!PlatformHelper.isRootDirectory(path))
<     while (PlatformHelper.endWithSeparator(path))
---
>     while (!PlatformHelper.isRootDirectory(path) &&
PlatformHelper.endWithSeparator(path))


Thanks.

Regards,
Jeroen



From MAILER-DAEMON Wed Feb 12 09:32:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ixvZ-0007ac-00
	for mharc-classpath@gnu.org; Wed, 12 Feb 2003 09:31:58 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ixvW-0007TQ-00
	for classpath@gnu.org; Wed, 12 Feb 2003 09:31:54 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18ixvU-0007Sh-00
	for classpath@gnu.org; Wed, 12 Feb 2003 09:31:53 -0500
Received: from ns.uoc.gr ([147.52.80.1] helo=mail.uoc.gr)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18ixvU-0007L8-00
	for classpath@gnu.org; Wed, 12 Feb 2003 09:31:52 -0500
Received: (qmail 19923 invoked from network); 12 Feb 2003 14:31:46 -0000
Received: from orion.ucnet.uoc.gr ([147.52.3.166])
          (envelope-sender <jgeorgal@uoc.gr>)
          by ns.uoc.gr (qmail-ldap-1.03) with SMTP
          for <classpath@gnu.org>; 12 Feb 2003 14:31:46 -0000
Sender: jgeorgal@orion.ucnet.uoc.gr
To: Dalibor Topic <robilad@yahoo.com>
References: <20030211005701.14091.qmail@web10005.mail.yahoo.com>
From: Giannis Georgalis <jgeorgal@uoc.gr>
Organization: University of Crete
Date: 12 Feb 2003 16:32:47 +0200
In-Reply-To: <20030211005701.14091.qmail@web10005.mail.yahoo.com>
Message-ID: <80n0l1r2ls.fsf@orion.ucnet.uoc.gr>
Lines: 21
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: java.net.URI implementation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: jgeorgal@uoc.gr
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 12 Feb 2003 14:31:56 -0000

Dalibor Topic <robilad@yahoo.com> writes:

Hello Dalibor,
 
> I'm sorry for using a straw man argument here. I
> didn't really notice it.

No problem ;-).
 
> best of luck with the code, I'll be happy to merge it
> into kaffe when it arrives into Classpath.

Thank you Dalibor.

btw: I started working on it.


-- 
 Object-oriented programming is an exceptionally bad 
idea which could only have originated in California.
    - Edsger Dijkstra (attributed)




From MAILER-DAEMON Wed Feb 12 16:39:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18j4bj-0004mB-00
	for mharc-classpath@gnu.org; Wed, 12 Feb 2003 16:39:55 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18j4bg-0004jL-00
	for classpath@gnu.org; Wed, 12 Feb 2003 16:39:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18j4Y6-0003J9-00
	for classpath@gnu.org; Wed, 12 Feb 2003 16:36:11 -0500
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18j4XA-0003Hk-00
	for classpath@gnu.org; Wed, 12 Feb 2003 16:35:12 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 18j4Wm-0002Co-00; Wed, 12 Feb 2003 22:34:48 +0100
From: Mark Wielaard <mark@klomp.org>
To: Jeroen Frijters <jeroen@sumatra.nl>
In-Reply-To: <5C38B761F205B54BA59FF611A65C624801184F@lembu.sumatrasoftware.com>
References: 
	 <5C38B761F205B54BA59FF611A65C624801184F@lembu.sumatrasoftware.com>
Content-Type: multipart/mixed; boundary="=-8EU9QGNnWJwx91HD91tf"
Organization: 
Message-Id: <1045085705.30201.29.camel@elsschot>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.2 
Date: 12 Feb 2003 22:35:05 +0100
cc: classpath@gnu.org
Subject: Re: java.io.File patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 12 Feb 2003 21:39:52 -0000


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

Hi,

On Wed, 2003-02-12 at 12:45, Jeroen Frijters wrote:
> On Windows new File("c://") hangs (infinite loop), please apply the
> following patch:

Thanks. Applied as follows:

2003-02-12  Jeroen Frijters  <jeroen@sumatra.nl>
                                                                                
        * java/io/File.java (File(String)): Only remove tail separators while
        path isn't the root directory.

Could you submit patches as cvs diff -u in the future and make sure that
your mailer doesn't line-wrap? Preferrable with a ChangeLog entry. Also
adding the patch to the savannah patch manager makes sure that it will
not get lost.

Cheers,

Mark

--=-8EU9QGNnWJwx91HD91tf
Content-Disposition: attachment; filename=File.patch
Content-Type: text/x-patch; name=File.patch; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Index: java/io/File.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/io/File.java,v
retrieving revision 1.21
diff -u -r1.21 File.java
--- java/io/File.java	29 Nov 2002 18:41:04 -0000	1.21
+++ java/io/File.java	12 Feb 2003 21:24:53 -0000
@@ -331,8 +331,8 @@
   if (path == null)
     throw new NullPointerException("File name is null");
 
-  if (!PlatformHelper.isRootDirectory(path))
-    while (PlatformHelper.endWithSeparator(path))
+  while (!PlatformHelper.isRootDirectory(path)
+	 && PlatformHelper.endWithSeparator(path))
       path = PlatformHelper.removeTailSeparator(path);
 }
 

--=-8EU9QGNnWJwx91HD91tf--




From MAILER-DAEMON Thu Feb 13 13:17:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18jNuJ-0006nP-00
	for mharc-classpath@gnu.org; Thu, 13 Feb 2003 13:16:23 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18jNuE-0006dW-00
	for classpath@gnu.org; Thu, 13 Feb 2003 13:16:18 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18jNu5-0006U6-00
	for classpath@gnu.org; Thu, 13 Feb 2003 13:16:11 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18jNu2-0006Kk-00; Thu, 13 Feb 2003 13:16:07 -0500
Received: from fleche.redhat.com (tf0027.peakpeak.com [204.144.239.27])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id LAA13681;
	Thu, 13 Feb 2003 11:16:02 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 58FCF4F8072; Thu, 13 Feb 2003 11:06:07 -0700 (MST)
To: Eric Blake <ebb9@email.byu.edu>
References: <OF4A0B4406.F4CAD0FF-ON85256CBF.007CD1DC-85256CBF.007E1CF0@us.ibm.com>
	<m3ptqcevyu.fsf@lyta.haphazard.org> <3E3B24B0.4020309@email.byu.edu>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: Look into my eyes and try to forget that you have a Macy's charge
	card!
Date: 13 Feb 2003 11:06:07 -0700
In-Reply-To: <3E3B24B0.4020309@email.byu.edu>
Message-ID: <87wuk4ukc0.fsf@fleche.redhat.com>
Lines: 22
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
cc: David P Grove <groved@us.ibm.com>
cc: Brian Jones <cbj@gnu.org>
Subject: Re: Jikes RVM & mauve tests
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 13 Feb 2003 18:16:22 -0000

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

Eric> I stand by the Classpath version of Character.  I updated it to
Eric> correctly obey the same Unicode version as JDK 1.4, and verified
Eric> everything against the JDK.  However, I never found the time to go and
Eric> fix Mauve to do the same.  So the Mauve tests for Character are
Eric> currently broken.

Yeah.  They were always a little bogus, I'm afraid.  Back when they
were written the Character documentation was notably less clear...

Eric> Back in Feb 02 or so, I posted a patch to gcj to "merge" as much of
Eric> Character and String as possible between Classpath and libgcj, but it
Eric> was never applied (back in the 3.1 days), so I would practically have
Eric> to start the merge again to catch everything that has happened in both
Eric> trees in the meantime.

First, I'm completely responsible for the String merge not going
forward.  I'm really sorry about that.  Second, I thought the
Character changes did go in?

Tom



From MAILER-DAEMON Fri Feb 14 15:12:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18jmBW-0003t4-00
	for mharc-classpath@gnu.org; Fri, 14 Feb 2003 15:11:46 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18jmBT-0003nl-00
	for classpath@gnu.org; Fri, 14 Feb 2003 15:11:43 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18jmAy-0003RR-00
	for classpath@gnu.org; Fri, 14 Feb 2003 15:11:12 -0500
Received: from e3.ny.us.ibm.com ([32.97.182.103])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18jmAP-0003GC-00
	for classpath@gnu.org; Fri, 14 Feb 2003 15:10:37 -0500
Received: from northrelay04.pok.ibm.com (northrelay04.pok.ibm.com
	[9.56.224.206])
	by e3.ny.us.ibm.com (8.12.7/8.12.2) with ESMTP id h1EKAa5X060474
	for <classpath@gnu.org>; Fri, 14 Feb 2003 15:10:36 -0500
Received: from d01ml243.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216])
	h1EKAXsG211404
	for <classpath@gnu.org>; Fri, 14 Feb 2003 15:10:33 -0500
To: classpath@gnu.org
X-Mailer: Lotus Notes Release 5.0.11   July 24, 2002
Message-ID: <OFEF32EF1B.9F9917F2-ON85256CCD.006E8997-85256CCD.006EB85E@us.ibm.com>
From: Julian Dolby <dolby@us.ibm.com>
Date: Fri, 14 Feb 2003 15:10:31 -0500
X-MIMETrack: Serialize by Router on D01ML243/01/M/IBM(Build
	V601_02022003|February 02, 2003) at 02/14/2003 15:10:33
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Subject: Patches 1059 and 1094
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 14 Feb 2003 20:11:44 -0000





  Those of us at IBM at planning to cut a new release of Jikes RVM fairly
soon, and we would like to make some claims about what the combination of
it and the GNU Classpath libraries can run.  Is there any chance that my
recent patches (1059 and 1094) will be merged soon?  If they are merged we
can make some nice statements about running both Eclipse and some AWT code.

      -- Julian




From MAILER-DAEMON Fri Feb 14 18:10:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18jowz-0006Oz-00
	for mharc-classpath@gnu.org; Fri, 14 Feb 2003 18:08:57 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18jows-0006Cd-00
	for classpath@gnu.org; Fri, 14 Feb 2003 18:08:50 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18jowq-00068u-00
	for classpath@gnu.org; Fri, 14 Feb 2003 18:08:49 -0500
Received: from ms-smtp-03.southeast.rr.com ([24.93.67.84])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18jowl-0005vj-00
	for classpath@gnu.org; Fri, 14 Feb 2003 18:08:43 -0500
Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h1EN7bii027179;
	Fri, 14 Feb 2003 18:07:46 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail4.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Fri, 14 Feb 2003 18:09:53 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 6EAE6830FC; Fri, 14 Feb 2003 18:08:39 -0500 (EST)
Sender: cbj@haphazard.org
To: Julian Dolby <dolby@us.ibm.com>
References: <OFEF32EF1B.9F9917F2-ON85256CCD.006E8997-85256CCD.006EB85E@us.ibm.com>
From: Brian Jones <cbj@gnu.org>
Date: 14 Feb 2003 18:08:39 -0500
In-Reply-To: <OFEF32EF1B.9F9917F2-ON85256CCD.006E8997-85256CCD.006EB85E@us.ibm.com>
Message-ID: <m3y94ia2a0.fsf@lyta.haphazard.org>
Lines: 35
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Patches 1059 and 1094
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 14 Feb 2003 23:08:56 -0000

Julian Dolby <dolby@us.ibm.com> writes:

>   Those of us at IBM at planning to cut a new release of Jikes RVM fairly
> soon, and we would like to make some claims about what the combination of
> it and the GNU Classpath libraries can run.  Is there any chance that my
> recent patches (1059 and 1094) will be merged soon?  If they are merged we
> can make some nice statements about running both Eclipse and some AWT code.


Patch 1059 can probably be applied since it does nothing.

I saw Tom make a post/reply regarding 1094, did you respond to that?

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

>>>>> "Julian" == Julian Dolby <dolby@us.ibm.com> writes:

Julian> I found the gthread-jni files, and I basically filled in all
Julian> the functions in gthread-jni.c to use JNI to talk to
Julian> Java-level synchronization mechanisms.  I also passed the
Julian> magic structure of those function pointers to g_thread_init in
Julian> GtkMainThread.gtkInit.  This code should work for any VM;
Julian> nonethelessI put the changes to use this stuff under a
Julian> --enable-portable-native-sync option to configure, so that VMs
Julian> that do not support all the JNI I used will not be bitten by
Julian> it.

I think it would make sense for us to simply require that a JVM
implement these JNI methods correctly.  Is there really a JVM that
Classpath can run on that doesn't?  (I assume they are monitor
enter/exit calls...)

Tom



From MAILER-DAEMON Sat Feb 15 04:06:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18jyHL-0006xC-00
	for mharc-classpath@gnu.org; Sat, 15 Feb 2003 04:06:35 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18jyHI-0006r4-00
	for classpath@gnu.org; Sat, 15 Feb 2003 04:06:32 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18jyH8-0006ef-00
	for classpath@gnu.org; Sat, 15 Feb 2003 04:06:23 -0500
Received: from 62-177-154-234.bbeyond.nl ([62.177.154.234]
	helo=LEMBU.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18jyH0-0006MB-00
	for classpath@gnu.org; Sat, 15 Feb 2003 04:06:14 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.5.6803.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----_=_NextPart_001_01C2D4D1.7A1FF204"
Date: Sat, 15 Feb 2003 10:06:08 +0100
Message-ID: <5C38B761F205B54BA59FF611A65C624801185D@lembu.sumatrasoftware.com>
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Thread-Topic: java.io.File patch
Thread-Index: AcLS3p8LPEmeY8G/TTS6HJa1kkLipAAcKHoAAGAev5A=
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: <classpath@gnu.org>
Subject: java.io.File patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 15 Feb 2003 09:06:33 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01C2D4D1.7A1FF204
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

Attached is a patch for object serialization, to use the proper classes
when getting and setting fields in the object (and when calling
readObject/writeObject). Also some minor changes to make caching the
Field and Method objects possible in the future.

I submitted the patch to Savannah as 1107.

Thanks to Mark Wielaard for his assistance.

Change log:
2003-02-13  Jeroen Frijters  <jeroen@sumatra.nl>

        * java/io/ObjectInputStream.java
        (readObject): cleaned up the class hierarchy loop
        (readFields(Object,ObjectStreamField[],boolean)):
        changed argument list to Object,ObjectStreamClass,
        moved callReadMethod code up into readObject and
        added Class argument to all setXxxField calls
        (callReadMethod): changed Class argument to
        ObjectStreamClass to be consistent with
        ObjectOutputStream and to facilitate caching
        the Method in the future
        (setBooleanField): added Class argument
        (setByteField): added Class argument
        (setCharField): added Class argument
        (setDoubleField): added Class argument
        (setFloatField): added Class argument
        (setIntField): added Class argument
        (setLongField): added Class argument
        (setShortField): added Class argument
        (setObjectField): added Class argument
        * java/io/ObjectOutputStream.java
        (writeObject): cleaned up the class hierarchy loop
        (defaultWriteObject): call writeFields with new
        argument list
        (writeFields(Object,ObjectStreamField[],boolean):
        changed argument list to Object,ObjectStreamClass,
        moved callWriteMethod up into writeObject and
        added Class argument to all getXxxField calls
        (callWriteMethod): added ObjectStreamClass argument
        to be able to get the proper class to call getMethod
        on (each class can have (or not have) its own writeObject
        method)
        (getBooleanField): added Class argument
        (getByteField): added Class argument
        (getCharField): added Class argument
        (getDoubleField): added Class argument
        (getFloatField): added Class argument
        (getIntField): added Class argument
        (getLongField): added Class argument
        (getShortField): added Class argument
        (getObjectField): added Class argument
        * java/io/ObjectStreamClass.java
        (hasReadMethod): added method to facilitate caching
        the Method object in the future

Regards,
Jeroen

------_=_NextPart_001_01C2D4D1.7A1FF204
Content-Type: application/octet-stream;
	name="objio.patch"
Content-Transfer-Encoding: base64
Content-Description: objio.patch
Content-Disposition: attachment;
	filename="objio.patch"

SW5kZXg6IE9iamVjdElucHV0U3RyZWFtLmphdmENCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvY3Zz
cm9vdC9jbGFzc3BhdGgvY2xhc3NwYXRoL2phdmEvaW8vT2JqZWN0SW5wdXRTdHJlYW0uamF2YSx2
DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMjYNCmRpZmYgLXUgLXIxLjI2IE9iamVjdElucHV0U3Ry
ZWFtLmphdmENCi0tLSBPYmplY3RJbnB1dFN0cmVhbS5qYXZhCTE5IEphbiAyMDAzIDE4OjM4OjM5
IC0wMDAwCTEuMjYNCisrKyBPYmplY3RJbnB1dFN0cmVhbS5qYXZhCTEzIEZlYiAyMDAzIDEwOjUw
OjAxIC0wMDAwDQpAQCAtMzc0LDcgKzM3NCw2IEBADQogCSAgICAgIA0KIAkgICAgICAvLyAgICAg
REVCVUdsbiAoIkdvdCBjbGFzcyBoaWVyYXJjaHkgb2YgZGVwdGggIiArIGhpZXJhcmNoeS5sZW5n
dGgpOw0KIAkgICAgICANCi0JICAgICAgYm9vbGVhbiBoYXNfcmVhZDsNCiAJICAgICAgZm9yIChp
bnQgaT0wOyBpIDwgaGllcmFyY2h5Lmxlbmd0aDsgaSsrKQ0KIAkJew0KIAkJICB0aGlzLmN1cnJl
bnRPYmplY3RTdHJlYW1DbGFzcyA9IGhpZXJhcmNoeVtpXTsNCkBAIC0zODIsMjcgKzM4MSwxNyBA
QA0KIAkJICBkdW1wRWxlbWVudGxuICgiUmVhZGluZyBmaWVsZHMgb2YgIg0KIAkJCQkgKyB0aGlz
LmN1cnJlbnRPYmplY3RTdHJlYW1DbGFzcy5nZXROYW1lICgpKTsNCiAJCSAgDQotCQkgIGhhc19y
ZWFkID0gdHJ1ZTsNCi0JCSAgDQotCQkgIHRyeQ0KLQkJICAgIHsNCi0JCSAgICAgIHRoaXMuY3Vy
cmVudE9iamVjdFN0cmVhbUNsYXNzLmZvckNsYXNzICgpLg0KLQkJCWdldERlY2xhcmVkTWV0aG9k
ICgicmVhZE9iamVjdCIsIHJlYWRPYmplY3RQYXJhbXMpOw0KLQkJICAgIH0NCi0JCSAgY2F0Y2gg
KE5vU3VjaE1ldGhvZEV4Y2VwdGlvbiBlKQ0KLQkJICAgIHsNCi0JCSAgICAgIGhhc19yZWFkID0g
ZmFsc2U7DQotCQkgICAgfQ0KLQkJICANCiAJCSAgLy8gWFhYOiBzaG91bGQgaW5pdGlhbGl6ZSBm
aWVsZHMgaW4gY2xhc3NlcyBpbiB0aGUgaGllcmFyY2h5DQogCQkgIC8vIHRoYXQgYXJlbid0IGlu
IHRoZSBzdHJlYW0NCiAJCSAgLy8gc2hvdWxkIHNraXAgb3ZlciBjbGFzc2VzIGluIHRoZSBzdHJl
YW0gdGhhdCBhcmVuJ3QgaW4gdGhlDQogCQkgIC8vIHJlYWwgY2xhc3NlcyBoaWVyYXJjaHkNCi0J
CSAgcmVhZEZpZWxkcyAob2JqLCB0aGlzLmN1cnJlbnRPYmplY3RTdHJlYW1DbGFzcy5maWVsZHMs
DQotCQkJICAgICAgaGFzX3JlYWQsIHRoaXMuY3VycmVudE9iamVjdFN0cmVhbUNsYXNzKTsNCiAJ
CSAgDQotCQkgIGlmIChoYXNfcmVhZCkNCisJCSAgaWYgKHRoaXMuY3VycmVudE9iamVjdFN0cmVh
bUNsYXNzLmhhc1JlYWRNZXRob2QoKSkNCiAJCSAgICB7DQorCQkgICAgICBmaWVsZHNBbHJlYWR5
UmVhZCA9IGZhbHNlOw0KKwkJICAgICAgYm9vbGVhbiBvbGRtb2RlID0gc2V0QmxvY2tEYXRhTW9k
ZSAodHJ1ZSk7DQorCQkgICAgICBjYWxsUmVhZE1ldGhvZCAob2JqLCB0aGlzLmN1cnJlbnRPYmpl
Y3RTdHJlYW1DbGFzcyk7DQorCQkgICAgICBzZXRCbG9ja0RhdGFNb2RlIChvbGRtb2RlKTsNCiAJ
CSAgICAgIGR1bXBFbGVtZW50ICgiRU5EQkxPQ0tEQVRBPyAiKTsNCiAJCSAgICAgIHRyeQ0KIAkJ
CXsNCkBAIC00MjEsNiArNDEwLDEwIEBADQogCQkJICBkdW1wRWxlbWVudGxuICgibm8sIGdvdCBJ
T0V4Y2VwdGlvbiIpOw0KIAkJCX0NCiAJCSAgICB9DQorCQkgIGVsc2UNCisJCSAgICB7DQorCQkg
ICAgICByZWFkRmllbGRzIChvYmosIGN1cnJlbnRPYmplY3RTdHJlYW1DbGFzcyk7DQorCQkgICAg
fQ0KIAkJfQ0KIAkgICAgICANCiAJICAgICAgdGhpcy5jdXJyZW50T2JqZWN0ID0gbnVsbDsNCkBA
IC01MDEsOSArNDk0LDcgQEANCiAgICAgICB0aHJvdyBuZXcgTm90QWN0aXZlRXhjZXB0aW9uICgi
ZGVmYXVsdFJlYWRPYmplY3QgY2FsbGVkIGJ1dCBmaWVsZHMgYWxyZWFkeSByZWFkIGZyb20gc3Ry
ZWFtIChieSBkZWZhdWx0UmVhZE9iamVjdCBvciByZWFkRmllbGRzKSIpOw0KIA0KICAgICBib29s
ZWFuIG9sZG1vZGUgPSBzZXRCbG9ja0RhdGFNb2RlKGZhbHNlKTsNCi0gICAgcmVhZEZpZWxkcyAo
dGhpcy5jdXJyZW50T2JqZWN0LA0KLQkJdGhpcy5jdXJyZW50T2JqZWN0U3RyZWFtQ2xhc3MuZmll
bGRzLA0KLQkJZmFsc2UsIHRoaXMuY3VycmVudE9iamVjdFN0cmVhbUNsYXNzKTsNCisgICAgcmVh
ZEZpZWxkcyAodGhpcy5jdXJyZW50T2JqZWN0LCB0aGlzLmN1cnJlbnRPYmplY3RTdHJlYW1DbGFz
cyk7DQogICAgIHNldEJsb2NrRGF0YU1vZGUob2xkbW9kZSk7DQogDQogICAgIGZpZWxkc0FscmVh
ZHlSZWFkID0gdHJ1ZTsNCkBAIC0xMzQwLDIyICsxMzMxLDExIEBADQogICB9DQogDQogDQotICBw
cml2YXRlIHZvaWQgcmVhZEZpZWxkcyAoT2JqZWN0IG9iaiwgT2JqZWN0U3RyZWFtRmllbGRbXSBz
dHJlYW1fZmllbGRzLA0KLQkJCSAgIGJvb2xlYW4gY2FsbF9yZWFkX21ldGhvZCwNCi0JCQkgICBP
YmplY3RTdHJlYW1DbGFzcyBzdHJlYW1fb3NjKQ0KKyAgcHJpdmF0ZSB2b2lkIHJlYWRGaWVsZHMg
KE9iamVjdCBvYmosIE9iamVjdFN0cmVhbUNsYXNzIHN0cmVhbV9vc2MpDQogICAgIHRocm93cyBD
bGFzc05vdEZvdW5kRXhjZXB0aW9uLCBJT0V4Y2VwdGlvbg0KICAgew0KICAgICAvLyAgREVCVUds
biAoIkluIHJlYWRGaWVsZHMiKTsNCi0gICAgaWYgKGNhbGxfcmVhZF9tZXRob2QpDQotICAgICAg
ew0KLQkvLyAgICBERUJVR2xuICgiICBjYWxsX3JlYWRfbWV0aG9kIGlzIHRydWUiKTsNCi0JZmll
bGRzQWxyZWFkeVJlYWQgPSBmYWxzZTsNCi0JYm9vbGVhbiBvbGRtb2RlID0gc2V0QmxvY2tEYXRh
TW9kZSAodHJ1ZSk7DQotCWNhbGxSZWFkTWV0aG9kIChvYmosIHN0cmVhbV9vc2MuZm9yQ2xhc3Mg
KCkpOw0KLQlzZXRCbG9ja0RhdGFNb2RlIChvbGRtb2RlKTsNCi0JcmV0dXJuOw0KLSAgICAgIH0N
Ci0gICAgDQorICAgIE9iamVjdFN0cmVhbUZpZWxkW10gc3RyZWFtX2ZpZWxkcyA9IHN0cmVhbV9v
c2MuZmllbGRzOw0KICAgICBPYmplY3RTdHJlYW1GaWVsZFtdIHJlYWxfZmllbGRzID0NCiAgICAg
ICBPYmplY3RTdHJlYW1DbGFzcy5sb29rdXAgKHN0cmVhbV9vc2MuZm9yQ2xhc3MgKCkpLmZpZWxk
czsNCiAgICAgDQpAQCAtMTQyMSw3ICsxNDAxLDcgQEANCiAJCWlmICghZGVmYXVsdF9pbml0aWFs
aXplICYmIHNldF92YWx1ZSkNCiAJCSAgZHVtcEVsZW1lbnRsbiAoIiAgIiArIGZpZWxkX25hbWUg
KyAiOiAiICsgdmFsdWUpOw0KIAkJaWYgKHNldF92YWx1ZSkNCi0JCSAgc2V0Qm9vbGVhbkZpZWxk
IChvYmosIGZpZWxkX25hbWUsIHZhbHVlKTsNCisJCSAgc2V0Qm9vbGVhbkZpZWxkIChvYmosIHN0
cmVhbV9vc2MuZm9yQ2xhc3MgKCksIGZpZWxkX25hbWUsIHZhbHVlKTsNCiAJICAgICAgfQ0KIAkg
ICAgZWxzZSBpZiAodHlwZSA9PSBCeXRlLlRZUEUpDQogCSAgICAgIHsNCkBAIC0xNDMwLDcgKzE0
MTAsNyBAQA0KIAkJaWYgKCFkZWZhdWx0X2luaXRpYWxpemUgJiYgc2V0X3ZhbHVlKQ0KIAkJICBk
dW1wRWxlbWVudGxuICgiICAiICsgZmllbGRfbmFtZSArICI6ICIgKyB2YWx1ZSk7DQogCQlpZiAo
c2V0X3ZhbHVlKQ0KLQkJICBzZXRCeXRlRmllbGQgKG9iaiwgZmllbGRfbmFtZSwgdmFsdWUpOw0K
KwkJICBzZXRCeXRlRmllbGQgKG9iaiwgc3RyZWFtX29zYy5mb3JDbGFzcyAoKSwgZmllbGRfbmFt
ZSwgdmFsdWUpOw0KIAkgICAgICB9DQogCSAgICBlbHNlIGlmICh0eXBlID09IENoYXJhY3Rlci5U
WVBFKQ0KIAkgICAgICB7DQpAQCAtMTQzOSw3ICsxNDE5LDcgQEANCiAJCWlmICghZGVmYXVsdF9p
bml0aWFsaXplICYmIHNldF92YWx1ZSkNCiAJCSAgZHVtcEVsZW1lbnRsbiAoIiAgIiArIGZpZWxk
X25hbWUgKyAiOiAiICsgdmFsdWUpOw0KIAkJaWYgKHNldF92YWx1ZSkNCi0JCSAgc2V0Q2hhckZp
ZWxkIChvYmosIGZpZWxkX25hbWUsIHZhbHVlKTsNCisJCSAgc2V0Q2hhckZpZWxkIChvYmosIHN0
cmVhbV9vc2MuZm9yQ2xhc3MgKCksIGZpZWxkX25hbWUsIHZhbHVlKTsNCiAJICAgICAgfQ0KIAkg
ICAgZWxzZSBpZiAodHlwZSA9PSBEb3VibGUuVFlQRSkNCiAJICAgICAgew0KQEAgLTE0NDgsNyAr
MTQyOCw3IEBADQogCQlpZiAoIWRlZmF1bHRfaW5pdGlhbGl6ZSAmJiBzZXRfdmFsdWUpDQogCQkg
IGR1bXBFbGVtZW50bG4gKCIgICIgKyBmaWVsZF9uYW1lICsgIjogIiArIHZhbHVlKTsNCiAJCWlm
IChzZXRfdmFsdWUpDQotCQkgIHNldERvdWJsZUZpZWxkIChvYmosIGZpZWxkX25hbWUsIHZhbHVl
KTsNCisJCSAgc2V0RG91YmxlRmllbGQgKG9iaiwgc3RyZWFtX29zYy5mb3JDbGFzcyAoKSwgZmll
bGRfbmFtZSwgdmFsdWUpOw0KIAkgICAgICB9DQogCSAgICBlbHNlIGlmICh0eXBlID09IEZsb2F0
LlRZUEUpDQogCSAgICAgIHsNCkBAIC0xNDU3LDcgKzE0MzcsNyBAQA0KIAkJaWYgKCFkZWZhdWx0
X2luaXRpYWxpemUgJiYgc2V0X3ZhbHVlKQ0KIAkJICBkdW1wRWxlbWVudGxuICgiICAiICsgZmll
bGRfbmFtZSArICI6ICIgKyB2YWx1ZSk7DQogCQlpZiAoc2V0X3ZhbHVlKQ0KLQkJICBzZXRGbG9h
dEZpZWxkIChvYmosIGZpZWxkX25hbWUsIHZhbHVlKTsNCisJCSAgc2V0RmxvYXRGaWVsZCAob2Jq
LCBzdHJlYW1fb3NjLmZvckNsYXNzICgpLCBmaWVsZF9uYW1lLCB2YWx1ZSk7DQogCSAgICAgIH0N
CiAJICAgIGVsc2UgaWYgKHR5cGUgPT0gSW50ZWdlci5UWVBFKQ0KIAkgICAgICB7DQpAQCAtMTQ2
Niw3ICsxNDQ2LDcgQEANCiAJCWlmICghZGVmYXVsdF9pbml0aWFsaXplICYmIHNldF92YWx1ZSkN
CiAJCSAgZHVtcEVsZW1lbnRsbiAoIiAgIiArIGZpZWxkX25hbWUgKyAiOiAiICsgdmFsdWUpOw0K
IAkJaWYgKHNldF92YWx1ZSkNCi0JCSAgc2V0SW50RmllbGQgKG9iaiwgZmllbGRfbmFtZSwgdmFs
dWUpOw0KKwkJICBzZXRJbnRGaWVsZCAob2JqLCBzdHJlYW1fb3NjLmZvckNsYXNzICgpLCBmaWVs
ZF9uYW1lLCB2YWx1ZSk7DQogCSAgICAgIH0NCiAJICAgIGVsc2UgaWYgKHR5cGUgPT0gTG9uZy5U
WVBFKQ0KIAkgICAgICB7DQpAQCAtMTQ3NSw3ICsxNDU1LDcgQEANCiAJCWlmICghZGVmYXVsdF9p
bml0aWFsaXplICYmIHNldF92YWx1ZSkNCiAJCSAgZHVtcEVsZW1lbnRsbiAoIiAgIiArIGZpZWxk
X25hbWUgKyAiOiAiICsgdmFsdWUpOw0KIAkJaWYgKHNldF92YWx1ZSkNCi0JCSAgc2V0TG9uZ0Zp
ZWxkIChvYmosIGZpZWxkX25hbWUsIHZhbHVlKTsNCisJCSAgc2V0TG9uZ0ZpZWxkIChvYmosIHN0
cmVhbV9vc2MuZm9yQ2xhc3MgKCksIGZpZWxkX25hbWUsIHZhbHVlKTsNCiAJICAgICAgfQ0KIAkg
ICAgZWxzZSBpZiAodHlwZSA9PSBTaG9ydC5UWVBFKQ0KIAkgICAgICB7DQpAQCAtMTQ4NCwxNCAr
MTQ2NCwxNCBAQA0KIAkJaWYgKCFkZWZhdWx0X2luaXRpYWxpemUgJiYgc2V0X3ZhbHVlKQ0KIAkJ
ICBkdW1wRWxlbWVudGxuICgiICAiICsgZmllbGRfbmFtZSArICI6ICIgKyB2YWx1ZSk7DQogCQlp
ZiAoc2V0X3ZhbHVlKQ0KLQkJICBzZXRTaG9ydEZpZWxkIChvYmosIGZpZWxkX25hbWUsIHZhbHVl
KTsNCisJCSAgc2V0U2hvcnRGaWVsZCAob2JqLCBzdHJlYW1fb3NjLmZvckNsYXNzICgpLCBmaWVs
ZF9uYW1lLCB2YWx1ZSk7DQogCSAgICAgIH0NCiAJICAgIGVsc2UNCiAJICAgICAgew0KIAkJT2Jq
ZWN0IHZhbHVlID0NCiAJCSAgZGVmYXVsdF9pbml0aWFsaXplID8gbnVsbCA6IHJlYWRPYmplY3Qg
KCk7DQogCQlpZiAoc2V0X3ZhbHVlKQ0KLQkJICBzZXRPYmplY3RGaWVsZCAob2JqLCBmaWVsZF9u
YW1lLA0KKwkJICBzZXRPYmplY3RGaWVsZCAob2JqLCBzdHJlYW1fb3NjLmZvckNsYXNzICgpLCBm
aWVsZF9uYW1lLA0KIAkJCQkgIHJlYWxfZmllbGQuZ2V0VHlwZVN0cmluZyAoKSwgdmFsdWUpOw0K
IAkgICAgICB9DQogCSAgfQ0KQEAgLTE1NzAsOCArMTU1MCw5IEBADQogICAgIHJldHVybiBrbGFz
cy5nZXREZWNsYXJlZE1ldGhvZChuYW1lLCBhcmdzKTsNCiAgIH0NCiANCi0gIHByaXZhdGUgdm9p
ZCBjYWxsUmVhZE1ldGhvZCAoT2JqZWN0IG9iaiwgQ2xhc3Mga2xhc3MpIHRocm93cyBJT0V4Y2Vw
dGlvbg0KKyAgcHJpdmF0ZSB2b2lkIGNhbGxSZWFkTWV0aG9kIChPYmplY3Qgb2JqLCBPYmplY3RT
dHJlYW1DbGFzcyBvc2MpIHRocm93cyBJT0V4Y2VwdGlvbg0KICAgew0KKyAgICBDbGFzcyBrbGFz
cyA9IG9zYy5mb3JDbGFzcygpOw0KICAgICB0cnkNCiAgICAgICB7DQogCUNsYXNzIGNsYXNzQXJn
c1tdID0ge09iamVjdElucHV0U3RyZWFtLmNsYXNzfTsNCkBAIC0xNjA1LDEyICsxNTg2LDExIEBA
DQogDQogICBwcml2YXRlIG5hdGl2ZSB2b2lkIGNhbGxDb25zdHJ1Y3RvciAoQ2xhc3MgY2xhenos
IE9iamVjdCBvYmopOw0KIA0KLSAgcHJpdmF0ZSB2b2lkIHNldEJvb2xlYW5GaWVsZCAoT2JqZWN0
IG9iaiwgU3RyaW5nIGZpZWxkX25hbWUsDQorICBwcml2YXRlIHZvaWQgc2V0Qm9vbGVhbkZpZWxk
IChPYmplY3Qgb2JqLCBDbGFzcyBrbGFzcywgU3RyaW5nIGZpZWxkX25hbWUsDQogCQkJCWJvb2xl
YW4gdmFsKQ0KICAgew0KICAgICB0cnkNCiAgICAgICB7DQotCUNsYXNzIGtsYXNzID0gb2JqLmdl
dENsYXNzICgpOw0KIAlGaWVsZCBmID0gZ2V0RmllbGQgKGtsYXNzLCBmaWVsZF9uYW1lKTsNCiAJ
Zi5zZXRBY2Nlc3NpYmxlKHRydWUpOw0KIAlmLnNldEJvb2xlYW4gKG9iaiwgdmFsKTsNCkBAIC0x
NjIwLDEyICsxNjAwLDExIEBADQogICAgICAgfSAgICANCiAgIH0NCiANCi0gIHByaXZhdGUgdm9p
ZCBzZXRCeXRlRmllbGQgKE9iamVjdCBvYmosIFN0cmluZyBmaWVsZF9uYW1lLA0KKyAgcHJpdmF0
ZSB2b2lkIHNldEJ5dGVGaWVsZCAoT2JqZWN0IG9iaiwgQ2xhc3Mga2xhc3MsIFN0cmluZyBmaWVs
ZF9uYW1lLA0KIAkJCQlieXRlIHZhbCkNCiAgIHsNCiAgICAgdHJ5DQogICAgICAgew0KLQlDbGFz
cyBrbGFzcyA9IG9iai5nZXRDbGFzcyAoKTsNCiAJRmllbGQgZiA9IGdldEZpZWxkIChrbGFzcywg
ZmllbGRfbmFtZSk7DQogCWYuc2V0QWNjZXNzaWJsZSh0cnVlKTsNCiAJZi5zZXRCeXRlIChvYmos
IHZhbCk7DQpAQCAtMTYzNSwxMiArMTYxNCwxMSBAQA0KICAgICAgIH0gICAgDQogICB9DQogDQot
ICBwcml2YXRlIHZvaWQgc2V0Q2hhckZpZWxkIChPYmplY3Qgb2JqLCBTdHJpbmcgZmllbGRfbmFt
ZSwNCisgIHByaXZhdGUgdm9pZCBzZXRDaGFyRmllbGQgKE9iamVjdCBvYmosIENsYXNzIGtsYXNz
LCBTdHJpbmcgZmllbGRfbmFtZSwNCiAJCQkgICAgIGNoYXIgdmFsKQ0KICAgew0KICAgICB0cnkN
CiAgICAgICB7DQotCUNsYXNzIGtsYXNzID0gb2JqLmdldENsYXNzICgpOw0KIAlGaWVsZCBmID0g
Z2V0RmllbGQgKGtsYXNzLCBmaWVsZF9uYW1lKTsNCiAJZi5zZXRBY2Nlc3NpYmxlKHRydWUpOw0K
IAlmLnNldENoYXIgKG9iaiwgdmFsKTsNCkBAIC0xNjUwLDEyICsxNjI4LDExIEBADQogICAgICAg
fSAgICANCiAgIH0NCiANCi0gIHByaXZhdGUgdm9pZCBzZXREb3VibGVGaWVsZCAoT2JqZWN0IG9i
aiwgU3RyaW5nIGZpZWxkX25hbWUsDQorICBwcml2YXRlIHZvaWQgc2V0RG91YmxlRmllbGQgKE9i
amVjdCBvYmosIENsYXNzIGtsYXNzLCBTdHJpbmcgZmllbGRfbmFtZSwNCiAJCQkgICAgICAgZG91
YmxlIHZhbCkNCiAgIHsNCiAgICAgdHJ5DQogICAgICAgew0KLQlDbGFzcyBrbGFzcyA9IG9iai5n
ZXRDbGFzcyAoKTsNCiAJRmllbGQgZiA9IGdldEZpZWxkIChrbGFzcywgZmllbGRfbmFtZSk7DQog
CWYuc2V0QWNjZXNzaWJsZSh0cnVlKTsNCiAJZi5zZXREb3VibGUgKG9iaiwgdmFsKTsNCkBAIC0x
NjY1LDEyICsxNjQyLDExIEBADQogICAgICAgfSAgICANCiAgIH0NCiANCi0gIHByaXZhdGUgdm9p
ZCBzZXRGbG9hdEZpZWxkIChPYmplY3Qgb2JqLCBTdHJpbmcgZmllbGRfbmFtZSwNCisgIHByaXZh
dGUgdm9pZCBzZXRGbG9hdEZpZWxkIChPYmplY3Qgb2JqLCBDbGFzcyBrbGFzcywgU3RyaW5nIGZp
ZWxkX25hbWUsDQogCQkJICAgICAgZmxvYXQgdmFsKQ0KICAgew0KICAgICB0cnkNCiAgICAgICB7
DQotCUNsYXNzIGtsYXNzID0gb2JqLmdldENsYXNzICgpOw0KIAlGaWVsZCBmID0gZ2V0RmllbGQg
KGtsYXNzLCBmaWVsZF9uYW1lKTsNCiAJZi5zZXRBY2Nlc3NpYmxlKHRydWUpOw0KIAlmLnNldEZs
b2F0IChvYmosIHZhbCk7DQpAQCAtMTY4MCwxMiArMTY1NiwxMSBAQA0KICAgICAgIH0gICAgDQog
ICB9DQogDQotICBwcml2YXRlIHZvaWQgc2V0SW50RmllbGQgKE9iamVjdCBvYmosIFN0cmluZyBm
aWVsZF9uYW1lLA0KKyAgcHJpdmF0ZSB2b2lkIHNldEludEZpZWxkIChPYmplY3Qgb2JqLCBDbGFz
cyBrbGFzcywgU3RyaW5nIGZpZWxkX25hbWUsDQogCQkJICAgICAgaW50IHZhbCkNCiAgIHsNCiAg
ICAgdHJ5DQogICAgICAgew0KLQlDbGFzcyBrbGFzcyA9IG9iai5nZXRDbGFzcyAoKTsNCiAJRmll
bGQgZiA9IGdldEZpZWxkIChrbGFzcywgZmllbGRfbmFtZSk7DQogCWYuc2V0QWNjZXNzaWJsZSh0
cnVlKTsNCiAJZi5zZXRJbnQgKG9iaiwgdmFsKTsNCkBAIC0xNjk2LDEyICsxNjcxLDExIEBADQog
ICB9DQogDQogDQotICBwcml2YXRlIHZvaWQgc2V0TG9uZ0ZpZWxkIChPYmplY3Qgb2JqLCBTdHJp
bmcgZmllbGRfbmFtZSwNCisgIHByaXZhdGUgdm9pZCBzZXRMb25nRmllbGQgKE9iamVjdCBvYmos
IENsYXNzIGtsYXNzLCBTdHJpbmcgZmllbGRfbmFtZSwNCiAJCQkgICAgICBsb25nIHZhbCkNCiAg
IHsNCiAgICAgdHJ5DQogICAgICAgew0KLQlDbGFzcyBrbGFzcyA9IG9iai5nZXRDbGFzcyAoKTsN
CiAJRmllbGQgZiA9IGdldEZpZWxkIChrbGFzcywgZmllbGRfbmFtZSk7DQogCWYuc2V0QWNjZXNz
aWJsZSh0cnVlKTsNCiAJZi5zZXRMb25nIChvYmosIHZhbCk7DQpAQCAtMTcxMiwxMiArMTY4Niwx
MSBAQA0KICAgfQ0KIA0KIA0KLSAgcHJpdmF0ZSB2b2lkIHNldFNob3J0RmllbGQgKE9iamVjdCBv
YmosIFN0cmluZyBmaWVsZF9uYW1lLA0KKyAgcHJpdmF0ZSB2b2lkIHNldFNob3J0RmllbGQgKE9i
amVjdCBvYmosIENsYXNzIGtsYXNzLCBTdHJpbmcgZmllbGRfbmFtZSwNCiAJCQkgICAgICBzaG9y
dCB2YWwpDQogICB7DQogICAgIHRyeQ0KICAgICAgIHsNCi0JQ2xhc3Mga2xhc3MgPSBvYmouZ2V0
Q2xhc3MgKCk7DQogCUZpZWxkIGYgPSBnZXRGaWVsZCAoa2xhc3MsIGZpZWxkX25hbWUpOw0KIAlm
LnNldEFjY2Vzc2libGUodHJ1ZSk7DQogCWYuc2V0U2hvcnQgKG9iaiwgdmFsKTsNCkBAIC0xNzI4
LDEyICsxNzAxLDExIEBADQogICB9DQogDQogDQotICBwcml2YXRlIHZvaWQgc2V0T2JqZWN0Rmll
bGQgKE9iamVjdCBvYmosIFN0cmluZyBmaWVsZF9uYW1lLCBTdHJpbmcgdHlwZV9jb2RlLA0KKyAg
cHJpdmF0ZSB2b2lkIHNldE9iamVjdEZpZWxkIChPYmplY3Qgb2JqLCBDbGFzcyBrbGFzcywgU3Ry
aW5nIGZpZWxkX25hbWUsIFN0cmluZyB0eXBlX2NvZGUsDQogCQkJICAgICAgIE9iamVjdCB2YWwp
DQogICB7DQogICAgIHRyeQ0KICAgICAgIHsNCi0JQ2xhc3Mga2xhc3MgPSBvYmouZ2V0Q2xhc3Mg
KCk7DQogCUZpZWxkIGYgPSBnZXRGaWVsZCAoa2xhc3MsIGZpZWxkX25hbWUpOw0KIAlmLnNldEFj
Y2Vzc2libGUodHJ1ZSk7DQogCS8vIEZJWE1FOiBXZSBzaG91bGQgY2hlY2sgdGhlIHR5cGVfY29k
ZSBoZXJlDQpJbmRleDogT2JqZWN0T3V0cHV0U3RyZWFtLmphdmENCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBm
aWxlOiAvY3Zzcm9vdC9jbGFzc3BhdGgvY2xhc3NwYXRoL2phdmEvaW8vT2JqZWN0T3V0cHV0U3Ry
ZWFtLmphdmEsdg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjI2DQpkaWZmIC11IC1yMS4yNiBPYmpl
Y3RPdXRwdXRTdHJlYW0uamF2YQ0KLS0tIE9iamVjdE91dHB1dFN0cmVhbS5qYXZhCTYgRmViIDIw
MDMgMTc6MzA6NTQgLTAwMDAJMS4yNg0KKysrIE9iamVjdE91dHB1dFN0cmVhbS5qYXZhCTEzIEZl
YiAyMDAzIDEwOjQ4OjA1IC0wMDAwDQpAQCAtMzU1LDIyICszNTUsMjMgQEANCiAgICAgICAgICAg
ICAgICAgT2JqZWN0U3RyZWFtQ2xhc3NbXSBoaWVyYXJjaHkgPQ0KICAgICAgICAgICAgICAgICAg
IE9iamVjdFN0cmVhbUNsYXNzLmdldE9iamVjdFN0cmVhbUNsYXNzZXMgKGNsYXp6KTsNCiANCi0g
ICAgICAgICAgICAgICAgYm9vbGVhbiBoYXNfd3JpdGU7DQogICAgICAgICAgICAgICAgIGZvciAo
aW50IGk9MDsgaSA8IGhpZXJhcmNoeS5sZW5ndGg7IGkrKykNCiAgICAgICAgICAgICAgICAgICB7
DQogICAgICAgICAgICAgICAgICAgICBjdXJyZW50T2JqZWN0U3RyZWFtQ2xhc3MgPSBoaWVyYXJj
aHlbaV07DQogDQogICAgICAgICAgICAgICAgICAgICBmaWVsZHNBbHJlYWR5V3JpdHRlbiA9IGZh
bHNlOw0KLSAgICAgICAgICAgICAgICAgICAgaGFzX3dyaXRlID0gY3VycmVudE9iamVjdFN0cmVh
bUNsYXNzLmhhc1dyaXRlTWV0aG9kICgpOw0KIA0KLSAgICAgICAgICAgICAgICAgICAgd3JpdGVG
aWVsZHMgKG9iaiwgY3VycmVudE9iamVjdFN0cmVhbUNsYXNzLmZpZWxkcywNCi0gICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICBoYXNfd3JpdGUpOw0KLQ0KLSAgICAgICAgICAgICAgICAg
ICAgLy8gCQkgICAgaWYgKGhhc193cml0ZSkNCi0gICAgICAgICAgICAgICAgICAgIC8vIAkJICAg
ICAgew0KLSAgICAgICAgICAgICAgICAgICAgLy8gCQkJZHJhaW4gKCk7DQotICAgICAgICAgICAg
ICAgICAgICAvLyAJCQlyZWFsT3V0cHV0LndyaXRlQnl0ZSAoVENfRU5EQkxPQ0tEQVRBKTsNCi0g
ICAgICAgICAgICAgICAgICAgIC8vIAkJICAgICAgfQ0KKwkJICAgIGlmIChjdXJyZW50T2JqZWN0
U3RyZWFtQ2xhc3MuaGFzV3JpdGVNZXRob2QgKCkpDQorCQkgICAgew0KKwkJCXNldEJsb2NrRGF0
YU1vZGUgKHRydWUpOw0KKwkJCWNhbGxXcml0ZU1ldGhvZCAob2JqLCBjdXJyZW50T2JqZWN0U3Ry
ZWFtQ2xhc3MpOw0KKwkJCXNldEJsb2NrRGF0YU1vZGUgKGZhbHNlKTsNCisJCQlyZWFsT3V0cHV0
LndyaXRlQnl0ZSAoVENfRU5EQkxPQ0tEQVRBKTsNCisJCSAgICB9DQorCQkgICAgZWxzZQ0KKwkJ
ICAgIHsNCisJCQl3cml0ZUZpZWxkcyAob2JqLCBjdXJyZW50T2JqZWN0U3RyZWFtQ2xhc3MpOw0K
KwkJICAgIH0NCiAgICAgICAgICAgICAgICAgICB9DQogDQogICAgICAgICAgICAgICAgIGN1cnJl
bnRPYmplY3QgPSBudWxsOw0KQEAgLTQzMyw3ICs0MzQsNyBAQA0KICAgICB0aHJvd3MgSU9FeGNl
cHRpb24sIE5vdEFjdGl2ZUV4Y2VwdGlvbg0KICAgew0KICAgICBtYXJrRmllbGRzV3JpdHRlbiAo
KTsNCi0gICAgd3JpdGVGaWVsZHMgKGN1cnJlbnRPYmplY3QsIGN1cnJlbnRPYmplY3RTdHJlYW1D
bGFzcy5maWVsZHMsIGZhbHNlKTsNCisgICAgd3JpdGVGaWVsZHMgKGN1cnJlbnRPYmplY3QsIGN1
cnJlbnRPYmplY3RTdHJlYW1DbGFzcyk7DQogICB9DQogDQogDQpAQCAtMTE1NCwyMiArMTE1NSwx
MiBAQA0KICAgfQ0KIA0KIA0KLSAgLy8gd3JpdGVzIG91dCBGSUVMRFMgb2YgT0JKRUNULiAgSWYg
Q0FMTF9XUklURV9NRVRIT0QgaXMgdHJ1ZSwgdXNlDQotICAvLyBvYmplY3QncyB3cml0ZU9iamVj
dCAoT2JqZWN0T3V0cHV0U3RyZWFtKSwgb3RoZXJ3aXNlIHVzZSBkZWZhdWx0DQotICAvLyBzZXJp
YWxpemF0aW9uLiAgRklFTERTIGFyZSBhbHJlYWR5IGluIGNhbm9uaWNhbCBvcmRlci4NCi0gIHBy
aXZhdGUgdm9pZCB3cml0ZUZpZWxkcyAoT2JqZWN0IG9iaiwNCi0JCQkgICAgT2JqZWN0U3RyZWFt
RmllbGRbXSBmaWVsZHMsDQotCQkJICAgIGJvb2xlYW4gY2FsbF93cml0ZV9tZXRob2QpIHRocm93
cyBJT0V4Y2VwdGlvbg0KKyAgLy8gd3JpdGVzIG91dCBGSUVMRFMgb2YgT0JKRUNUIGZvciB0aGUg
c3BlY2lmaWVkIE9iamVjdFN0cmVhbUNsYXNzLg0KKyAgLy8gRklFTERTIGFyZSBhbHJlYWR5IGlu
IGNhbm9uaWNhbCBvcmRlci4NCisgIHByaXZhdGUgdm9pZCB3cml0ZUZpZWxkcyAoT2JqZWN0IG9i
aiwgT2JqZWN0U3RyZWFtQ2xhc3Mgb3NjKQ0KKyAgICB0aHJvd3MgSU9FeGNlcHRpb24NCiAgIHsN
Ci0gICAgaWYgKGNhbGxfd3JpdGVfbWV0aG9kKQ0KLSAgICB7DQotICAgICAgc2V0QmxvY2tEYXRh
TW9kZSAodHJ1ZSk7DQotICAgICAgY2FsbFdyaXRlTWV0aG9kIChvYmopOw0KLSAgICAgIHNldEJs
b2NrRGF0YU1vZGUgKGZhbHNlKTsNCi0gICAgICByZWFsT3V0cHV0LndyaXRlQnl0ZSAoVENfRU5E
QkxPQ0tEQVRBKTsNCi0gICAgICByZXR1cm47DQotICAgIH0NCi0NCisgICAgT2JqZWN0U3RyZWFt
RmllbGRbXSBmaWVsZHMgPSBvc2MuZmllbGRzOw0KICAgICBib29sZWFuIG9sZG1vZGUgPSBzZXRC
bG9ja0RhdGFNb2RlIChmYWxzZSk7IC8vPz8NCiAgICAgU3RyaW5nIGZpZWxkX25hbWU7DQogICAg
IENsYXNzIHR5cGU7DQpAQCAtMTE3OSwyMyArMTE3MCwyMyBAQA0KICAgICAgIHR5cGUgPSBmaWVs
ZHNbaV0uZ2V0VHlwZSAoKTsNCiANCiAgICAgICBpZiAodHlwZSA9PSBCb29sZWFuLlRZUEUpDQot
CXJlYWxPdXRwdXQud3JpdGVCb29sZWFuIChnZXRCb29sZWFuRmllbGQgKG9iaiwgZmllbGRfbmFt
ZSkpOw0KKwlyZWFsT3V0cHV0LndyaXRlQm9vbGVhbiAoZ2V0Qm9vbGVhbkZpZWxkIChvYmosIG9z
Yy5mb3JDbGFzcygpLCBmaWVsZF9uYW1lKSk7DQogICAgICAgZWxzZSBpZiAodHlwZSA9PSBCeXRl
LlRZUEUpDQotCXJlYWxPdXRwdXQud3JpdGVCeXRlIChnZXRCeXRlRmllbGQgKG9iaiwgZmllbGRf
bmFtZSkpOw0KKwlyZWFsT3V0cHV0LndyaXRlQnl0ZSAoZ2V0Qnl0ZUZpZWxkIChvYmosIG9zYy5m
b3JDbGFzcygpLCBmaWVsZF9uYW1lKSk7DQogICAgICAgZWxzZSBpZiAodHlwZSA9PSBDaGFyYWN0
ZXIuVFlQRSkNCi0JcmVhbE91dHB1dC53cml0ZUNoYXIgKGdldENoYXJGaWVsZCAob2JqLCBmaWVs
ZF9uYW1lKSk7DQorCXJlYWxPdXRwdXQud3JpdGVDaGFyIChnZXRDaGFyRmllbGQgKG9iaiwgb3Nj
LmZvckNsYXNzKCksIGZpZWxkX25hbWUpKTsNCiAgICAgICBlbHNlIGlmICh0eXBlID09IERvdWJs
ZS5UWVBFKQ0KLQlyZWFsT3V0cHV0LndyaXRlRG91YmxlIChnZXREb3VibGVGaWVsZCAob2JqLCBm
aWVsZF9uYW1lKSk7DQorCXJlYWxPdXRwdXQud3JpdGVEb3VibGUgKGdldERvdWJsZUZpZWxkIChv
YmosIG9zYy5mb3JDbGFzcygpLCBmaWVsZF9uYW1lKSk7DQogICAgICAgZWxzZSBpZiAodHlwZSA9
PSBGbG9hdC5UWVBFKQ0KLQlyZWFsT3V0cHV0LndyaXRlRmxvYXQgKGdldEZsb2F0RmllbGQgKG9i
aiwgZmllbGRfbmFtZSkpOw0KKwlyZWFsT3V0cHV0LndyaXRlRmxvYXQgKGdldEZsb2F0RmllbGQg
KG9iaiwgb3NjLmZvckNsYXNzKCksIGZpZWxkX25hbWUpKTsNCiAgICAgICBlbHNlIGlmICh0eXBl
ID09IEludGVnZXIuVFlQRSkNCi0JcmVhbE91dHB1dC53cml0ZUludCAoZ2V0SW50RmllbGQgKG9i
aiwgZmllbGRfbmFtZSkpOw0KKwlyZWFsT3V0cHV0LndyaXRlSW50IChnZXRJbnRGaWVsZCAob2Jq
LCBvc2MuZm9yQ2xhc3MoKSwgZmllbGRfbmFtZSkpOw0KICAgICAgIGVsc2UgaWYgKHR5cGUgPT0g
TG9uZy5UWVBFKQ0KLQlyZWFsT3V0cHV0LndyaXRlTG9uZyAoZ2V0TG9uZ0ZpZWxkIChvYmosIGZp
ZWxkX25hbWUpKTsNCisJcmVhbE91dHB1dC53cml0ZUxvbmcgKGdldExvbmdGaWVsZCAob2JqLCBv
c2MuZm9yQ2xhc3MoKSwgZmllbGRfbmFtZSkpOw0KICAgICAgIGVsc2UgaWYgKHR5cGUgPT0gU2hv
cnQuVFlQRSkNCi0JcmVhbE91dHB1dC53cml0ZVNob3J0IChnZXRTaG9ydEZpZWxkIChvYmosIGZp
ZWxkX25hbWUpKTsNCisJcmVhbE91dHB1dC53cml0ZVNob3J0IChnZXRTaG9ydEZpZWxkIChvYmos
IG9zYy5mb3JDbGFzcygpLCBmaWVsZF9uYW1lKSk7DQogICAgICAgZWxzZQ0KLQl3cml0ZU9iamVj
dCAoZ2V0T2JqZWN0RmllbGQgKG9iaiwgZmllbGRfbmFtZSwNCisJd3JpdGVPYmplY3QgKGdldE9i
amVjdEZpZWxkIChvYmosIG9zYy5mb3JDbGFzcygpLCBmaWVsZF9uYW1lLA0KIAkJCQkgICAgIGZp
ZWxkc1tpXS5nZXRUeXBlU3RyaW5nICgpKSk7DQogICAgIH0NCiAgICAgc2V0QmxvY2tEYXRhTW9k
ZSAob2xkbW9kZSk7IC8vID8/DQpAQCAtMTIyMSw5ICsxMjEyLDkgQEANCiAgIH0NCiANCiANCi0g
IHByaXZhdGUgdm9pZCBjYWxsV3JpdGVNZXRob2QgKE9iamVjdCBvYmopIHRocm93cyBJT0V4Y2Vw
dGlvbg0KKyAgcHJpdmF0ZSB2b2lkIGNhbGxXcml0ZU1ldGhvZCAoT2JqZWN0IG9iaiwgT2JqZWN0
U3RyZWFtQ2xhc3Mgb3NjKSB0aHJvd3MgSU9FeGNlcHRpb24NCiAgIHsNCi0gICAgQ2xhc3Mga2xh
c3MgPSBvYmouZ2V0Q2xhc3MgKCk7DQorICAgIENsYXNzIGtsYXNzID0gb3NjLmZvckNsYXNzKCk7
DQogICAgIHRyeQ0KICAgICAgIHsNCiAJQ2xhc3MgY2xhc3NBcmdzW10gPSB7T2JqZWN0T3V0cHV0
U3RyZWFtLmNsYXNzfTsNCkBAIC0xMjUyLDExICsxMjQzLDEwIEBADQogICAgICAgfQ0KICAgfQ0K
IA0KLSAgcHJpdmF0ZSBib29sZWFuIGdldEJvb2xlYW5GaWVsZCAoT2JqZWN0IG9iaiwgU3RyaW5n
IGZpZWxkX25hbWUpIHRocm93cyBJT0V4Y2VwdGlvbg0KKyAgcHJpdmF0ZSBib29sZWFuIGdldEJv
b2xlYW5GaWVsZCAoT2JqZWN0IG9iaiwgQ2xhc3Mga2xhc3MsIFN0cmluZyBmaWVsZF9uYW1lKSB0
aHJvd3MgSU9FeGNlcHRpb24NCiAgIHsNCiAgICAgdHJ5DQogICAgICAgew0KLQlDbGFzcyBrbGFz
cyA9IG9iai5nZXRDbGFzcyAoKTsNCiAJRmllbGQgZiA9IGdldEZpZWxkIChrbGFzcywgZmllbGRf
bmFtZSk7DQogCWJvb2xlYW4gYiA9IGYuZ2V0Qm9vbGVhbiAob2JqKTsNCiAJcmV0dXJuIGI7DQpA
QCAtMTI2NywxMSArMTI1NywxMCBAQA0KICAgICAgIH0gICAgDQogICB9DQogDQotICBwcml2YXRl
IGJ5dGUgZ2V0Qnl0ZUZpZWxkIChPYmplY3Qgb2JqLCBTdHJpbmcgZmllbGRfbmFtZSkgdGhyb3dz
IElPRXhjZXB0aW9uDQorICBwcml2YXRlIGJ5dGUgZ2V0Qnl0ZUZpZWxkIChPYmplY3Qgb2JqLCBD
bGFzcyBrbGFzcywgU3RyaW5nIGZpZWxkX25hbWUpIHRocm93cyBJT0V4Y2VwdGlvbg0KICAgew0K
ICAgICB0cnkNCiAgICAgICB7DQotCUNsYXNzIGtsYXNzID0gb2JqLmdldENsYXNzICgpOw0KIAlG
aWVsZCBmID0gZ2V0RmllbGQgKGtsYXNzLCBmaWVsZF9uYW1lKTsNCiAJYnl0ZSBiID0gZi5nZXRC
eXRlIChvYmopOw0KIAlyZXR1cm4gYjsNCkBAIC0xMjgyLDExICsxMjcxLDEwIEBADQogICAgICAg
fSAgICANCiAgIH0NCiANCi0gIHByaXZhdGUgY2hhciBnZXRDaGFyRmllbGQgKE9iamVjdCBvYmos
IFN0cmluZyBmaWVsZF9uYW1lKSB0aHJvd3MgSU9FeGNlcHRpb24NCisgIHByaXZhdGUgY2hhciBn
ZXRDaGFyRmllbGQgKE9iamVjdCBvYmosIENsYXNzIGtsYXNzLCBTdHJpbmcgZmllbGRfbmFtZSkg
dGhyb3dzIElPRXhjZXB0aW9uDQogICB7DQogICAgIHRyeQ0KICAgICAgIHsNCi0JQ2xhc3Mga2xh
c3MgPSBvYmouZ2V0Q2xhc3MgKCk7DQogCUZpZWxkIGYgPSBnZXRGaWVsZCAoa2xhc3MsIGZpZWxk
X25hbWUpOw0KIAljaGFyIGIgPSBmLmdldENoYXIgKG9iaik7DQogCXJldHVybiBiOw0KQEAgLTEy
OTcsMTEgKzEyODUsMTAgQEANCiAgICAgICB9ICAgIA0KICAgfQ0KIA0KLSAgcHJpdmF0ZSBkb3Vi
bGUgZ2V0RG91YmxlRmllbGQgKE9iamVjdCBvYmosIFN0cmluZyBmaWVsZF9uYW1lKSB0aHJvd3Mg
SU9FeGNlcHRpb24NCisgIHByaXZhdGUgZG91YmxlIGdldERvdWJsZUZpZWxkIChPYmplY3Qgb2Jq
LCBDbGFzcyBrbGFzcywgU3RyaW5nIGZpZWxkX25hbWUpIHRocm93cyBJT0V4Y2VwdGlvbg0KICAg
ew0KICAgICB0cnkNCiAgICAgICB7DQotCUNsYXNzIGtsYXNzID0gb2JqLmdldENsYXNzICgpOw0K
IAlGaWVsZCBmID0gZ2V0RmllbGQgKGtsYXNzLCBmaWVsZF9uYW1lKTsNCiAJZG91YmxlIGIgPSBm
LmdldERvdWJsZSAob2JqKTsNCiAJcmV0dXJuIGI7DQpAQCAtMTMxMiwxMSArMTI5OSwxMCBAQA0K
ICAgICAgIH0gICAgDQogICB9DQogDQotICBwcml2YXRlIGZsb2F0IGdldEZsb2F0RmllbGQgKE9i
amVjdCBvYmosIFN0cmluZyBmaWVsZF9uYW1lKSB0aHJvd3MgSU9FeGNlcHRpb24NCisgIHByaXZh
dGUgZmxvYXQgZ2V0RmxvYXRGaWVsZCAoT2JqZWN0IG9iaiwgQ2xhc3Mga2xhc3MsIFN0cmluZyBm
aWVsZF9uYW1lKSB0aHJvd3MgSU9FeGNlcHRpb24NCiAgIHsNCiAgICAgdHJ5DQogICAgICAgew0K
LQlDbGFzcyBrbGFzcyA9IG9iai5nZXRDbGFzcyAoKTsNCiAJRmllbGQgZiA9IGdldEZpZWxkIChr
bGFzcywgZmllbGRfbmFtZSk7DQogCWZsb2F0IGIgPSBmLmdldEZsb2F0IChvYmopOw0KIAlyZXR1
cm4gYjsNCkBAIC0xMzI3LDExICsxMzEzLDEwIEBADQogICAgICAgfSAgICANCiAgIH0NCiANCi0g
IHByaXZhdGUgaW50IGdldEludEZpZWxkIChPYmplY3Qgb2JqLCBTdHJpbmcgZmllbGRfbmFtZSkg
dGhyb3dzIElPRXhjZXB0aW9uDQorICBwcml2YXRlIGludCBnZXRJbnRGaWVsZCAoT2JqZWN0IG9i
aiwgQ2xhc3Mga2xhc3MsIFN0cmluZyBmaWVsZF9uYW1lKSB0aHJvd3MgSU9FeGNlcHRpb24NCiAg
IHsNCiAgICAgdHJ5DQogICAgICAgew0KLQlDbGFzcyBrbGFzcyA9IG9iai5nZXRDbGFzcyAoKTsN
CiAJRmllbGQgZiA9IGdldEZpZWxkIChrbGFzcywgZmllbGRfbmFtZSk7DQogCWludCBiID0gZi5n
ZXRJbnQgKG9iaik7DQogCXJldHVybiBiOw0KQEAgLTEzNDIsMTEgKzEzMjcsMTAgQEANCiAgICAg
ICB9ICAgIA0KICAgfQ0KIA0KLSAgcHJpdmF0ZSBsb25nIGdldExvbmdGaWVsZCAoT2JqZWN0IG9i
aiwgU3RyaW5nIGZpZWxkX25hbWUpIHRocm93cyBJT0V4Y2VwdGlvbg0KKyAgcHJpdmF0ZSBsb25n
IGdldExvbmdGaWVsZCAoT2JqZWN0IG9iaiwgQ2xhc3Mga2xhc3MsIFN0cmluZyBmaWVsZF9uYW1l
KSB0aHJvd3MgSU9FeGNlcHRpb24NCiAgIHsNCiAgICAgdHJ5DQogICAgICAgew0KLQlDbGFzcyBr
bGFzcyA9IG9iai5nZXRDbGFzcyAoKTsNCiAJRmllbGQgZiA9IGdldEZpZWxkIChrbGFzcywgZmll
bGRfbmFtZSk7DQogCWxvbmcgYiA9IGYuZ2V0TG9uZyAob2JqKTsNCiAJcmV0dXJuIGI7DQpAQCAt
MTM1NywxMSArMTM0MSwxMCBAQA0KICAgICAgIH0gICAgDQogICB9DQogDQotICBwcml2YXRlIHNo
b3J0IGdldFNob3J0RmllbGQgKE9iamVjdCBvYmosIFN0cmluZyBmaWVsZF9uYW1lKSB0aHJvd3Mg
SU9FeGNlcHRpb24NCisgIHByaXZhdGUgc2hvcnQgZ2V0U2hvcnRGaWVsZCAoT2JqZWN0IG9iaiwg
Q2xhc3Mga2xhc3MsIFN0cmluZyBmaWVsZF9uYW1lKSB0aHJvd3MgSU9FeGNlcHRpb24NCiAgIHsN
CiAgICAgdHJ5DQogICAgICAgew0KLQlDbGFzcyBrbGFzcyA9IG9iai5nZXRDbGFzcyAoKTsNCiAJ
RmllbGQgZiA9IGdldEZpZWxkIChrbGFzcywgZmllbGRfbmFtZSk7DQogCXNob3J0IGIgPSBmLmdl
dFNob3J0IChvYmopOw0KIAlyZXR1cm4gYjsNCkBAIC0xMzcyLDEyICsxMzU1LDExIEBADQogICAg
ICAgfSAgICANCiAgIH0NCiANCi0gIHByaXZhdGUgT2JqZWN0IGdldE9iamVjdEZpZWxkIChPYmpl
Y3Qgb2JqLCBTdHJpbmcgZmllbGRfbmFtZSwNCisgIHByaXZhdGUgT2JqZWN0IGdldE9iamVjdEZp
ZWxkIChPYmplY3Qgb2JqLCBDbGFzcyBrbGFzcywgU3RyaW5nIGZpZWxkX25hbWUsDQogCQkJCSBT
dHJpbmcgdHlwZV9jb2RlKSB0aHJvd3MgSU9FeGNlcHRpb24NCiAgIHsNCiAgICAgdHJ5DQogICAg
ICAgew0KLQlDbGFzcyBrbGFzcyA9IG9iai5nZXRDbGFzcyAoKTsNCiAJRmllbGQgZiA9IGdldEZp
ZWxkIChrbGFzcywgZmllbGRfbmFtZSk7DQogCU9iamVjdCBvID0gZi5nZXQgKG9iaik7DQogCS8v
IEZJWE1FOiBXZSBzaG91bGQgY2hlY2sgdGhlIHR5cGVfY29kZSBoZXJlDQpJbmRleDogT2JqZWN0
U3RyZWFtQ2xhc3MuamF2YQ0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KUkNTIGZpbGU6IC9jdnNyb290L2NsYXNzcGF0
aC9jbGFzc3BhdGgvamF2YS9pby9PYmplY3RTdHJlYW1DbGFzcy5qYXZhLHYNCnJldHJpZXZpbmcg
cmV2aXNpb24gMS4yMA0KZGlmZiAtdSAtcjEuMjAgT2JqZWN0U3RyZWFtQ2xhc3MuamF2YQ0KLS0t
IE9iamVjdFN0cmVhbUNsYXNzLmphdmEJMTcgSmFuIDIwMDMgMTY6NDU6MjggLTAwMDAJMS4yMA0K
KysrIE9iamVjdFN0cmVhbUNsYXNzLmphdmEJMTMgRmViIDIwMDMgMTA6NDk6MjEgLTAwMDANCkBA
IC0xOTQsNiArMTk0LDI4IEBADQogDQogDQogICAvLyBSZXR1cm5zIHRydWUgaWZmIHRoZSBjbGFz
cyB0aGF0IHRoaXMgT2JqZWN0U3RyZWFtQ2xhc3MgcmVwcmVzZW50cw0KKyAgLy8gaGFzIHRoZSBm
b2xsb3dpbmcgbWV0aG9kOg0KKyAgLy8NCisgIC8vIHByaXZhdGUgdm9pZCByZWFkT2JqZWN0IChP
YmplY3RPdXRwdXRTdHJlYW0pDQorICAvLw0KKyAgLy8gVGhpcyBtZXRob2QgaXMgdXNlZCBieSB0
aGUgY2xhc3MgdG8gb3ZlcnJpZGUgZGVmYXVsdA0KKyAgLy8gc2VyaWFsaXphdGlvbiBiZWhhdmlv
ci4NCisgIGJvb2xlYW4gaGFzUmVhZE1ldGhvZCAoKQ0KKyAgew0KKyAgICAgIHRyeQ0KKyAgICAg
IHsNCisJICBDbGFzc1tdIHJlYWRPYmplY3RQYXJhbXMgPSB7IE9iamVjdElucHV0U3RyZWFtLmNs
YXNzIH07DQorCSAgZm9yQ2xhc3MgKCkuZ2V0RGVjbGFyZWRNZXRob2QgKCJyZWFkT2JqZWN0Iiwg
cmVhZE9iamVjdFBhcmFtcyk7DQorCSAgcmV0dXJuIHRydWU7DQorICAgICAgfQ0KKyAgICAgIGNh
dGNoIChOb1N1Y2hNZXRob2RFeGNlcHRpb24gZSkNCisgICAgICB7DQorCSAgcmV0dXJuIGZhbHNl
Ow0KKyAgICAgIH0NCisgIH0NCisNCisNCisgIC8vIFJldHVybnMgdHJ1ZSBpZmYgdGhlIGNsYXNz
IHRoYXQgdGhpcyBPYmplY3RTdHJlYW1DbGFzcyByZXByZXNlbnRzDQogICAvLyBpbXBsZW1lbnRz
IFNlcmlhbGl6YWJsZSBidXQgZG9lcyAqbm90KiBpbXBsZW1lbnQgRXh0ZXJuYWxpemFibGUuDQog
ICBib29sZWFuIGlzU2VyaWFsaXphYmxlICgpDQogICB7DQoa

------_=_NextPart_001_01C2D4D1.7A1FF204--



From MAILER-DAEMON Sat Feb 15 10:08:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18k3vQ-00020N-00
	for mharc-classpath@gnu.org; Sat, 15 Feb 2003 10:08:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18k3vF-0001Vf-00
	for classpath@gnu.org; Sat, 15 Feb 2003 10:08:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18k3vB-0001Px-00
	for classpath@gnu.org; Sat, 15 Feb 2003 10:08:06 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18k3v9-0001Oj-00
	for classpath@gnu.org; Sat, 15 Feb 2003 10:08:03 -0500
Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h1FF6ho5003580;
	Sat, 15 Feb 2003 10:06:43 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail4.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Sat, 15 Feb 2003 10:09:15 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 1F415830FC; Sat, 15 Feb 2003 10:07:54 -0500 (EST)
Sender: cbj@haphazard.org
To: Julian Dolby <dolby@us.ibm.com>
References: <OFEF32EF1B.9F9917F2-ON85256CCD.006E8997-85256CCD.006EB85E@us.ibm.com>
From: Brian Jones <cbj@gnu.org>
Date: 15 Feb 2003 10:07:53 -0500
In-Reply-To: <OFEF32EF1B.9F9917F2-ON85256CCD.006E8997-85256CCD.006EB85E@us.ibm.com>
Message-ID: <m3of5da8fq.fsf@lyta.haphazard.org>
Lines: 14
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Patches 1059 and 1094
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 15 Feb 2003 15:08:18 -0000

Julian Dolby <dolby@us.ibm.com> writes:

>   Those of us at IBM at planning to cut a new release of Jikes RVM fairly
> soon, and we would like to make some claims about what the combination of
> it and the GNU Classpath libraries can run.  Is there any chance that my
> recent patches (1059 and 1094) will be merged soon?  If they are merged we
> can make some nice statements about running both Eclipse and some AWT code.

They will both be in the 0.05 release this weekend.  Peer patch didn't
break anything noticable running against Kissme.

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



From MAILER-DAEMON Sat Feb 15 10:13:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18k40H-00056N-00
	for mharc-classpath@gnu.org; Sat, 15 Feb 2003 10:13:21 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18k3zb-0003dO-00
	for classpath@gnu.org; Sat, 15 Feb 2003 10:12:39 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18k3wz-0002c1-00
	for classpath@gnu.org; Sat, 15 Feb 2003 10:10:00 -0500
Received: from ms-smtp-03.southeast.rr.com ([24.93.67.84])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18k3wB-0002Gc-00
	for classpath@gnu.org; Sat, 15 Feb 2003 10:09:07 -0500
Received: from mail3.nc.rr.com (fe3 [24.93.67.50])h1FF8Ai6023327;
	Sat, 15 Feb 2003 10:08:10 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail3.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Sat, 15 Feb 2003 10:07:19 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 78BD2830FC; Sat, 15 Feb 2003 10:09:06 -0500 (EST)
Sender: cbj@haphazard.org
To: Julian Dolby <dolby@us.ibm.com>
References: <OFD32234FD.F43A5FB4-ON85256CC9.00684349-85256CC9.00699D74@us.ibm.com>
From: Brian Jones <cbj@gnu.org>
Date: 15 Feb 2003 10:09:06 -0500
In-Reply-To: <OFD32234FD.F43A5FB4-ON85256CC9.00684349-85256CC9.00699D74@us.ibm.com>
Message-ID: <m3k7g1a8dp.fsf@lyta.haphazard.org>
Lines: 20
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: GNU Classpath AWT sort-of runs on Jikes RVM
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 15 Feb 2003 15:13:18 -0000

Julian Dolby <dolby@us.ibm.com> writes:

>   I have been playing with running AWT programs on Jikes RVM using GNU
> Classpath, and I have have made some simple applications run.  The major
> issue was the threading model, and the assumption that Java threads look
> like pthreads, which they do not on Jikes RVM (we use our own user-level
> threading).  I found the gthread-jni files, and I basically filled in all
> the functions in gthread-jni.c to use JNI to talk to Java-level
> synchronization mechanisms.  I also passed the magic structure of those
> function pointers to g_thread_init in GtkMainThread.gtkInit.  This code
> should work for any VM; nonethelessI put the changes to use this stuff
> under a --enable-portable-native-sync option to configure, so that VMs that
> do not support all the JNI I used will not be bitten by it.

Yes, perhaps we can make the portable native sync the default
eventually.

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



From MAILER-DAEMON Sat Feb 15 21:07:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18kEDh-0001ZM-00
	for mharc-classpath@gnu.org; Sat, 15 Feb 2003 21:07:53 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18kEDc-0001KJ-00
	for classpath@gnu.org; Sat, 15 Feb 2003 21:07:48 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18kEDF-0000EO-00
	for classpath@gnu.org; Sat, 15 Feb 2003 21:07:26 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18kED8-0008Pc-00; Sat, 15 Feb 2003 21:07:18 -0500
Received: from fleche.redhat.com (tf0027.peakpeak.com [204.144.239.27])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id TAA26645;
	Sat, 15 Feb 2003 19:07:10 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 6DFB54F8072; Sat, 15 Feb 2003 18:57:17 -0700 (MST)
To: Brian Jones <cbj@gnu.org>
References: <OFD32234FD.F43A5FB4-ON85256CC9.00684349-85256CC9.00699D74@us.ibm.com>
	<m3k7g1a8dp.fsf@lyta.haphazard.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: You must be a CUB SCOUT!!  Have you made your MONEY-DROP today??
Date: 15 Feb 2003 18:57:17 -0700
In-Reply-To: <m3k7g1a8dp.fsf@lyta.haphazard.org>
Message-ID: <87znoxouma.fsf@fleche.redhat.com>
Lines: 11
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Julian Dolby <dolby@us.ibm.com>
cc: classpath@gnu.org
Subject: Re: GNU Classpath AWT sort-of runs on Jikes RVM
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 16 Feb 2003 02:07:51 -0000

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

Brian> Yes, perhaps we can make the portable native sync the default
Brian> eventually.

What's blocking us from doing it right away?  I like this approach
because it is cross-platform (not a big deal, I suppose, in the Gtk
peers -- though a Gtk Win32 port does exist) and doesn't make
assumptions about the VM's threading scheme.

Tom



From MAILER-DAEMON Sat Feb 15 21:29:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18kEYF-00006c-00
	for mharc-classpath@gnu.org; Sat, 15 Feb 2003 21:29:07 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18kEYD-0008Vi-00
	for classpath@gnu.org; Sat, 15 Feb 2003 21:29:05 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18kEYB-0008Uy-00
	for classpath@gnu.org; Sat, 15 Feb 2003 21:29:04 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18kEYB-0008UF-00
	for classpath@gnu.org; Sat, 15 Feb 2003 21:29:03 -0500
Received: from mail5.nc.rr.com (fe5 [24.93.67.52])h1G2Rho7016144;
	Sat, 15 Feb 2003 21:27:43 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail5.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Sat, 15 Feb 2003 21:27:05 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 3B4BD83235; Sat, 15 Feb 2003 21:29:02 -0500 (EST)
Sender: cbj@haphazard.org
To: tromey@redhat.com
References: <OFD32234FD.F43A5FB4-ON85256CC9.00684349-85256CC9.00699D74@us.ibm.com>
	<87znoxouma.fsf@fleche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 15 Feb 2003 21:29:02 -0500
In-Reply-To: <87znoxouma.fsf@fleche.redhat.com>
Message-ID: <m3k7g16jrl.fsf@lyta.haphazard.org>
Lines: 20
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Julian Dolby <dolby@us.ibm.com>
cc: classpath@gnu.org
Subject: Re: GNU Classpath AWT sort-of runs on Jikes RVM
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 16 Feb 2003 02:29:05 -0000

Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Brian" == Brian Jones <cbj@gnu.org> writes:
> 
> Brian> Yes, perhaps we can make the portable native sync the default
> Brian> eventually.
> 
> What's blocking us from doing it right away?  I like this approach
> because it is cross-platform (not a big deal, I suppose, in the Gtk
> peers -- though a Gtk Win32 port does exist) and doesn't make
> assumptions about the VM's threading scheme.

I didn't want to particularly break anything and didn't have time to
play with it.  I'm updating how the api doc is produced and then I'll
be making a release, tomorrow, as long as I don't break my machine
tonight installing software.

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



From MAILER-DAEMON Sun Feb 16 20:08:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18kZm5-00072U-00
	for mharc-classpath@gnu.org; Sun, 16 Feb 2003 20:08:49 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18kZm3-00070c-00
	for classpath@gnu.org; Sun, 16 Feb 2003 20:08:47 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18kZm1-0006xq-00
	for classpath@gnu.org; Sun, 16 Feb 2003 20:08:46 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18kZm0-0006wI-00
	for classpath@gnu.org; Sun, 16 Feb 2003 20:08:45 -0500
Received: from mail3.nc.rr.com (fe3 [24.93.67.50])h1H17Lo9014322
	for <classpath@gnu.org>; Sun, 16 Feb 2003 20:07:24 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail3.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Sun, 16 Feb 2003 20:06:53 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 0928E82D14; Sun, 16 Feb 2003 20:08:42 -0500 (EST)
Sender: cbj@haphazard.org
To: GNU Classpath <classpath@gnu.org>
From: Brian Jones <cbj@gnu.org>
Date: 16 Feb 2003 20:08:41 -0500
Message-ID: <m3vfzju31i.fsf@lyta.haphazard.org>
Lines: 86
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: GNU Classpath 0.05 Released
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 17 Feb 2003 01:08:47 -0000

Thanks to all the hard work of so many of you, GNU Classpath 0.05 has
been released.

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.

GNU Classpath 0.05 can be downloaded from 
ftp://alpha.gnu.org/pub/gnu/classpath/.

About Classpath 0.05:

	* Supports free Java VMs including Jikes RVM, 
	  Kissme, and perhaps others out of the box, but please refer
          to each VM's documentation on how to use GNU Classpath with 
          the VM.
	* Support GNU Crypto as the official provider of cryptographic
	  primitives and tools
	* Support the GNU Classpath Tools sub-project of GNU Classpath as
	  official provider of standard tools such as gjdoc, a javadoc
	  replacement, and others
	* Additional bug fixes and patches
	* Includes pre-compiled glibj.zip and gjdoc API documentation

Bugs Fixed in Classpath 0.05:

ID   DATE              TITLE
---- ----------------- -----------------------------------------------------
 744 2002-Jun-24 15:56 java.text.CollationElementIterator.next() is broken  
 750 2002-Jun-25 10:06 java.text.CollationElementIterator.next() is broken
 771 2002-Jun-27 16:09 bug in java.util.zip.InflaterDynHeader
 777 2002-Jun-28 16:41 bug in java.text.MessageFormat.format(Object[], ...
 783 2002-Jul-01 10:09 gnu.java.security.provider.MD5 should extend jav...
 789 2002-Jul-02 10:19 java.util.zip.InflaterInputStream broken for zer...
 790 2002-Jul-02 13:50 java.util.zip.DeflaterEngine exception
 791 2002-Jul-02 13:51 java.util.zip.DeflaterEngine exception
 835 2002-Jul-09 20:23 Incorrect implementation of SHA1PRNG.java
 891 2002-Jul-22 16:46 String java.lang.Long.toHexString(long) drops di...
 901 2002-Jul-24 15:15 String.trim off by one on lead whitespace
 925 2002-Jul-30 17:38 ZipFile.readEntries' bad perfomace for archives ...
 963 2002-Aug-08 07:42 File link on savannah doesn't work
 974 2002-Aug-09 10:42 REQUEST: Update to Classpath webpage
 976 2002-Aug-11 13:38 Missing GPL exception and missing Copyright stat...
 998 2002-Aug-15 04:13 classpath/vm/reference/java/lang/Throwable.java ...
1028 2002-Aug-19 04:58 ClassCastException thrown for MessageDigestSpi s...
1132 2002-Sep-05 06:11 classpath/gnu/java/util/prefs/NodeReader.java
1190 2002-Sep-12 12:16 java.io.RandomAccessFile.skipBytes() seeks past EOF
1862 2002-Dec-03 03:54 incorrect behaviour of getP() for DSA keys and p...
1921 2002-Dec-07 10:50 Bug in resource loading
1953 2002-Dec-11 16:33 LineNumberReader incorrect use of PushbackReader
1966 2002-Dec-12 09:56 java.net.Socket.isClosed() missing
2105 2003-Jan-01 12:34 String.getBytes("UTF8") broken for non-zero offs...
2192 2003-Jan-12 11:18 "make install" fails in docs/api directory

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

1). 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.

2). What platforms are supported?

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

3). 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.

4). 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/.

-- 
Brian Jones <cbj@gnu.org>



From MAILER-DAEMON Tue Feb 18 23:44:37 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18lM60-0003gL-00
	for mharc-classpath@gnu.org; Tue, 18 Feb 2003 23:44:36 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18iaJR-00066W-00
	for classpath@gnu.org; Tue, 11 Feb 2003 08:19:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18iaJE-0005tf-00
	for classpath@gnu.org; Tue, 11 Feb 2003 08:18:48 -0500
Received: from smtp-out-6.wanadoo.fr ([193.252.19.25]
	helo=mel-rto6.wanadoo.fr)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18iaIp-0005Zz-00
	for classpath@gnu.org; Tue, 11 Feb 2003 08:18:23 -0500
Received: from mel-rta7.wanadoo.fr (193.252.19.61) by mel-rto6.wanadoo.fr
	(6.7.015)        id 3E0C343F01D09C96; Tue, 11 Feb 2003 14:18:22 +0100
Received: from localhost.localdomain (193.253.182.201) by mel-rta7.wanadoo.fr
	(6.7.015)        id 3E26CE5401014164; Tue, 11 Feb 2003 14:18:22 +0100
Content-Type: text/plain;
  charset="us-ascii"
From: Yan Georget <yan.georget@koalog.com>
To: classpath@gnu.org
Date: Tue, 11 Feb 2003 14:17:06 +0100
User-Agent: KMail/1.4.3
Organization: Koalog
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200302111417.06564.yan.georget@koalog.com>
X-Mailman-Approved-At: Tue, 18 Feb 2003 23:44:35 -0500
Subject: Koalog Code Coverage
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: yan.georget@koalog.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 11 Feb 2003 13:19:28 -0000

Hello,

Koalog is a young software company.
Among others, we have developped a code coverage application in Java=20
(www.koalog.com/php/kover.php).

Since we are using quite a lot of open-source software, we are willing to=
 help=20
the open-source community.
We can not distribute freely our applications but we can grant special li=
cense=20
to open-source projects.

Feel free to download an evalutation version of Koalog Code Coverage.
If you find it useful, let us know and we will send you an "open-source=20
project" license.

Regards,
Yan Georget



From MAILER-DAEMON Thu Feb 20 16:30:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18lyGf-00082g-00
	for mharc-classpath@gnu.org; Thu, 20 Feb 2003 16:30:09 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18lyGd-00082A-00
	for classpath@gnu.org; Thu, 20 Feb 2003 16:30:07 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18lyGb-00081x-00
	for classpath@gnu.org; Thu, 20 Feb 2003 16:30:06 -0500
Received: from adsl-63-194-81-26.dsl.snfc21.pacbell.net ([63.194.81.26]
	helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18lyGa-0007yt-00
	for classpath@gnu.org; Thu, 20 Feb 2003 16:30:04 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id NAA64536
	for <classpath@gnu.org>; Thu, 20 Feb 2003 13:21:54 -0800 (PST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id h1KLKnjM020385
	for <classpath@gnu.org>; Thu, 20 Feb 2003 13:20:49 -0800 (PST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id h1KLKmJ3020384
	for classpath@gnu.org; Thu, 20 Feb 2003 13:20:48 -0800 (PST)
	(envelope-from archie)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200302202120.h1KLKmJ3020384@arch20m.dellroad.org>
To: classpath@gnu.org
Date: Thu, 20 Feb 2003 13:20:48 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Subject: VMThrowable.java
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 20 Feb 2003 21:30:07 -0000

Hello,

I'm looking at classpath for a JVM project and have a question about the
way things are set up.

Ideally, a JVM should "just work" with the default classpath sources, and
this seems to be an explicit goal of classpath. In particular, one should
not have to modify the Java source files for each JVM (i.e., the files in
"vm/reference" should work for most JVM's).

Howver, the java.lang.VMThrowable class doesn't seem to follow this rule,
because fillInStackTrace() and getStackTrace() are not native methods.
I.e., most JVM's would want to actually implement these methods, and that
means not only implementing native methods but modifying VMThrowable.java
to make the methods native in the first place. This seems to me like an
oversight.

As a side note, why does VMThrowable.getStackTrace() take a Throwable
parameter? It seems unnecessary.

Apologies in advance if I'm confused :-)

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com



From MAILER-DAEMON Thu Feb 20 17:09:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18lysP-0007Ej-00
	for mharc-classpath@gnu.org; Thu, 20 Feb 2003 17:09:09 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18lysM-000794-00
	for classpath@gnu.org; Thu, 20 Feb 2003 17:09:06 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18lyrv-0006Ic-00
	for classpath@gnu.org; Thu, 20 Feb 2003 17:08:39 -0500
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18lyrh-00068s-00
	for classpath@gnu.org; Thu, 20 Feb 2003 17:08:25 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 18lyrB-00043U-00; Thu, 20 Feb 2003 23:07:53 +0100
From: Mark Wielaard <mark@klomp.org>
To: Archie Cobbs <archie@dellroad.org>
In-Reply-To: <200302202120.h1KLKmJ3020384@arch20m.dellroad.org>
References: <200302202120.h1KLKmJ3020384@arch20m.dellroad.org>
Content-Type: text/plain
Organization: 
Message-Id: <1045778893.3354.331.camel@elsschot>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.2 
Date: 20 Feb 2003 23:08:14 +0100
Content-Transfer-Encoding: 7bit
cc: classpath@gnu.org
Subject: Re: VMThrowable.java
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 20 Feb 2003 22:09:07 -0000

Hi,

On Thu, 2003-02-20 at 22:20, Archie Cobbs wrote:
> Ideally, a JVM should "just work" with the default classpath sources, and
> this seems to be an explicit goal of classpath. In particular, one should
> not have to modify the Java source files for each JVM (i.e., the files in
> "vm/reference" should work for most JVM's).

Everything *outside* vm/reference should work out of the box for every
VM. At least if we can implement the native stuff in JNI and the VM
supports JNI.

The classes in vm/reference are mostly VM dependent and can not always
be implemented in a way that will (efficiently) work for every VM. So in
principle all a VM implementor has to do is look at the classes inside
vm/reference and adapt them to their own VM. (In theory that is...)

In practise a lot of code in vm/reference is still VM independent so
should/could be moved outside vm/reference into the actual package with
only small VM state/helper classes left inside vm/reference. The trick
is to know which parts can actually be implemented (efficiently) VM
indepeendent and what VM dependent interface to keep in vm/reference.
(Clearly this is a work in progress and a lot of how it works now comes
from when Japhar was the only VM that used GNU Classpath - that was
before there was any 1.2 class support. And from before I joined the
project.)

> Howver, the java.lang.VMThrowable class doesn't seem to follow this rule,
> because fillInStackTrace() and getStackTrace() are not native methods.
> I.e., most JVM's would want to actually implement these methods, and that
> means not only implementing native methods but modifying VMThrowable.java
> to make the methods native in the first place. This seems to me like an
> oversight.

I didn't know how to implement VMThrowable in a VM independent manner so
I just implemented it in a way that always works but doesn't do anything
usefull. There are actual implementations of this class for libgcj and
Kissme, but I don't believe that they can be made general enough to work
out of the box on every VM.

> As a side note, why does VMThrowable.getStackTrace() take a Throwable
> parameter? It seems unnecessary.

The libgcj implementation uses that parameter to strip any throwable
method calls from the actual StackTraceElements returned. It might not
be necessary in every implementation though. I believe the Kissme
implementation ignores it.

> Apologies in advance if I'm confused :-)

No, please ask. This is an area that is not documented enough and VM
implementers must really give us feedback on how they actually use this
stuff.

See for another examples of how I think the core classes and their
vm/reference counterparts should evolve the suggestion for splitting
Thread into a VM independent Thread and a VM dependent VMThread class:
http://mail.gnu.org/archive/html/classpath/2002-10/msg00009.html
(I have not found the time/opportunity to actually implement this yet.)

Cheers,

Mark




From MAILER-DAEMON Thu Feb 20 17:46:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18lzS7-0005nA-00
	for mharc-classpath@gnu.org; Thu, 20 Feb 2003 17:46:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18lzRd-0005Pm-00
	for classpath@gnu.org; Thu, 20 Feb 2003 17:45:33 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18lzRT-0005En-00
	for classpath@gnu.org; Thu, 20 Feb 2003 17:45:23 -0500
Received: from adsl-63-194-81-26.dsl.snfc21.pacbell.net ([63.194.81.26]
	helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18lzRE-0004xM-00
	for classpath@gnu.org; Thu, 20 Feb 2003 17:45:08 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id OAA64934;
	Thu, 20 Feb 2003 14:43:30 -0800 (PST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id h1KMgOjM020792;
	Thu, 20 Feb 2003 14:42:24 -0800 (PST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id h1KMgOCu020791;
	Thu, 20 Feb 2003 14:42:24 -0800 (PST)
	(envelope-from archie)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200302202242.h1KMgOCu020791@arch20m.dellroad.org>
In-Reply-To: <1045778893.3354.331.camel@elsschot>
To: Mark Wielaard <mark@klomp.org>
Date: Thu, 20 Feb 2003 14:42:24 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
cc: classpath@gnu.org
Subject: Re: VMThrowable.java
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 20 Feb 2003 22:46:02 -0000

Mark Wielaard wrote:
> > Howver, the java.lang.VMThrowable class doesn't seem to follow this rule,
> > because fillInStackTrace() and getStackTrace() are not native methods.
> 
> I didn't know how to implement VMThrowable in a VM independent manner so
> I just implemented it in a way that always works but doesn't do anything
> usefull. There are actual implementations of this class for libgcj and
> Kissme, but I don't believe that they can be made general enough to work
> out of the box on every VM.

I guess what I'm saying is, why not make them native? In my case
this would mean I could obtain the goal of "no modifciations to the
reference VM classes needed" because all the other reference classes
don't need to be changed (at least, so far.. I haven't completely
digested them all).

Moreover, making these two methods native doesn't make life any
harder for any other VM's, because if another VM doesn't want to
change the VMThrowable.java file, then they just have to add two
trivial native method implementations (one that returns null and
another that returns a zero length array)).

I can't imagine a lot of VM's can be satisfied with the default
VMThrowable.java because that means you'll never be able to see
exception stack traces (right?).

Finally, it still seems to me like VMThrowable is "different" from
the other VM reference classes. The other classes try to define a
framework for doing something, and then leave the VM part of the
job to native methods. VMThrowable instead defines a framework for
doing something and then provides an implementation that simply
does nothing.

As always, I could be completely misunderstanding things..

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com



From MAILER-DAEMON Thu Feb 20 18:17:45 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18lzwL-0007vh-00
	for mharc-classpath@gnu.org; Thu, 20 Feb 2003 18:17:17 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18lzw5-0007qx-00
	for classpath@gnu.org; Thu, 20 Feb 2003 18:17:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18lzvk-0007LP-00
	for classpath@gnu.org; Thu, 20 Feb 2003 18:16:41 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18lzvS-00072N-00
	for classpath@gnu.org; Thu, 20 Feb 2003 18:16:22 -0500
Received: from mail5.nc.rr.com (fe5 [24.93.67.52])h1KNEsoB002951;
	Thu, 20 Feb 2003 18:14:56 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail5.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Thu, 20 Feb 2003 18:14:16 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 1DBBC82D1F; Thu, 20 Feb 2003 18:16:18 -0500 (EST)
Sender: cbj@haphazard.org
To: Archie Cobbs <archie@dellroad.org>
References: <200302202242.h1KMgOCu020791@arch20m.dellroad.org>
From: Brian Jones <cbj@gnu.org>
Date: 20 Feb 2003 18:16:17 -0500
In-Reply-To: <200302202242.h1KMgOCu020791@arch20m.dellroad.org>
Message-ID: <m3isve35mm.fsf@lyta.haphazard.org>
Lines: 32
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Mark Wielaard <mark@klomp.org>
cc: classpath@gnu.org
Subject: Re: VMThrowable.java
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 20 Feb 2003 23:17:16 -0000

Archie Cobbs <archie@dellroad.org> writes:

> I can't imagine a lot of VM's can be satisfied with the default
> VMThrowable.java because that means you'll never be able to see
> exception stack traces (right?).
> 
> Finally, it still seems to me like VMThrowable is "different" from
> the other VM reference classes. The other classes try to define a
> framework for doing something, and then leave the VM part of the
> job to native methods. VMThrowable instead defines a framework for
> doing something and then provides an implementation that simply
> does nothing.
> 
> As always, I could be completely misunderstanding things..

I think you are correct that most others leave the heavy lifting to a
native method and here it is a noop java method.  In reality, you will
want to copy the reference classes and change them to native or java
as suits your JVM.  Jikes RVM for instance provides a Java API for all
needed native functionality so they don't really want any native
methods and hence we sort of need to move anything that has a native
method into the vm/reference tree.

But there is a different between the stuff you can change and the
stuff you absolutely must change and this is one of those areas where
I think a good JVM Integration Guide would help.  As you're going
through this now Archie it would be of tremendous help if you could
take a stab at updating the current documentation if needed.

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



From MAILER-DAEMON Thu Feb 20 20:00:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18m1YW-0000no-00
	for mharc-classpath@gnu.org; Thu, 20 Feb 2003 20:00:48 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18m1YC-0000HF-00
	for classpath@gnu.org; Thu, 20 Feb 2003 20:00:28 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18m1Xv-0007x6-00
	for classpath@gnu.org; Thu, 20 Feb 2003 20:00:13 -0500
Received: from adsl-63-194-81-26.dsl.snfc21.pacbell.net ([63.194.81.26]
	helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18m1Xn-0007Xb-00
	for classpath@gnu.org; Thu, 20 Feb 2003 20:00:03 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id QAA65648
	for <classpath@gnu.org>; Thu, 20 Feb 2003 16:50:33 -0800 (PST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id h1L0nSjM021171
	for <classpath@gnu.org>; Thu, 20 Feb 2003 16:49:28 -0800 (PST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id h1L0nS2h021170
	for classpath@gnu.org; Thu, 20 Feb 2003 16:49:28 -0800 (PST)
	(envelope-from archie)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200302210049.h1L0nS2h021170@arch20m.dellroad.org>
To: classpath@gnu.org
Date: Thu, 20 Feb 2003 16:49:28 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Subject: Class methods
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 21 Feb 2003 01:00:46 -0000

Hi,

It seems from a first look that these java.lang.Class methods which
are currently native:

	Class.getClasses()
	Class.getFields()
	Class.getMethods()
	Class.getConstructors()

could be implemented entirely in Java, by relying on these methods:

	Class.getDeclaredClasses()
	Class.getDeclaredFields()
	Class.getDeclaredMethods()
	Class.getDeclaredConstructors()
	Class.isInterface()
	Class.getSuperclass()
	Class.getInterfaces()

Would this work? It would save a lot of native code writing for JVM
implementors.

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com



From MAILER-DAEMON Thu Feb 20 20:30:45 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18m20Y-0003Ot-00
	for mharc-classpath@gnu.org; Thu, 20 Feb 2003 20:29:46 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18m20V-0003Df-00
	for classpath@gnu.org; Thu, 20 Feb 2003 20:29:43 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18m20Q-0002yr-00
	for classpath@gnu.org; Thu, 20 Feb 2003 20:29:38 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18m20J-0002T0-00
	for classpath@gnu.org; Thu, 20 Feb 2003 20:29:32 -0500
Received: from fleche.redhat.com (tf0105.peakpeak.com [204.144.239.105])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id SAA26995;
	Thu, 20 Feb 2003 18:29:21 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 938174F828E; Thu, 20 Feb 2003 18:20:34 -0700 (MST)
To: Mark Wielaard <mark@klomp.org>
References: <200302202120.h1KLKmJ3020384@arch20m.dellroad.org>
	<1045778893.3354.331.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I'm wearing PAMPERS!!
Date: 20 Feb 2003 18:20:34 -0700
In-Reply-To: <1045778893.3354.331.camel@elsschot>
Message-ID: <873cmi2zvh.fsf@fleche.redhat.com>
Lines: 30
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: VMThrowable.java
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 21 Feb 2003 01:29:45 -0000

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

Mark> No, please ask. This is an area that is not documented enough and VM
Mark> implementers must really give us feedback on how they actually use this
Mark> stuff.

I haven't looked at the reference VM code too much.  The javadoc there
looks pretty reasonable to me.  Maybe the next step would be a
package.html file to explain how it all fits together...

Mark> See for another examples of how I think the core classes and their
Mark> vm/reference counterparts should evolve the suggestion for splitting
Mark> Thread into a VM independent Thread and a VM dependent VMThread class:
Mark> http://mail.gnu.org/archive/html/classpath/2002-10/msg00009.html
Mark> (I have not found the time/opportunity to actually implement this yet.)

In general I think this separation makes a lot of sense.  It makes it
easier for us to provide a VM authors with the information they need
to port Classpath, and it makes it easier for us to say what has to
change in VM support code from release to release -- we can just diff
the VM reference code.

The only problem I have with this approach is when a particular method
is performance-sensitive; then the extra call is wasteful (as opposed
to a native method directly in the standard class).  For libgcj we can
just maintain a small divergence in these cases.  Ideally I prefer to
avoid these divergences.  I'm not sure how much this consideration
applies to other VMs.

Tom



From MAILER-DAEMON Thu Feb 20 23:02:32 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18m4ON-0005i6-00
	for mharc-classpath@gnu.org; Thu, 20 Feb 2003 23:02:31 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18m4OL-0005hQ-00
	for classpath@gnu.org; Thu, 20 Feb 2003 23:02:29 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18m4OK-0005fL-00
	for classpath@gnu.org; Thu, 20 Feb 2003 23:02:29 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18m4OJ-0005Ye-00
	for classpath@gnu.org; Thu, 20 Feb 2003 23:02:27 -0500
Received: from fleche.redhat.com (tf0105.peakpeak.com [204.144.239.105])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id VAA25856;
	Thu, 20 Feb 2003 21:02:21 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id C1B144F828E; Thu, 20 Feb 2003 20:53:35 -0700 (MST)
To: Archie Cobbs <archie@dellroad.org>
References: <200302210049.h1L0nS2h021170@arch20m.dellroad.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I put aside my copy of ``BOWLING WORLD'' and think
 about GUN CONTROL legislation..
Date: 20 Feb 2003 20:53:35 -0700
In-Reply-To: <200302210049.h1L0nS2h021170@arch20m.dellroad.org>
Message-ID: <87znoqxpa8.fsf@fleche.redhat.com>
Lines: 28
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Class methods
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 21 Feb 2003 04:02:30 -0000

>>>>> "Archie" == Archie Cobbs <archie@dellroad.org> writes:

Archie> It seems from a first look that these java.lang.Class methods
Archie> which are currently native:
Archie> 	Class.getClasses()
Archie> [ ... ]

Archie> could be implemented entirely in Java, by relying on these methods:
Archie> 	Class.getDeclaredClasses()
Archie> [ ... ]

Archie> Would this work? It would save a lot of native code writing
Archie> for JVM implementors.

I took a quick look at this.  The various methods make different
SecurityManager calls.  So a straightforward implementation wouldn't
be correct.

I guess it could be done by doing something like what is done in
ResourceBundle.  That seems like a pretty wordy approach though.
And it seems like it would be pretty inefficient (though perhaps it
doesn't matter).

We could also just define a single native API and then let Class do
the security checks and most of the work.  This may not actually
reduce the size of the native code all that much.

Tom



From MAILER-DAEMON Fri Feb 21 00:00:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18m5ID-0005PP-00
	for mharc-classpath@gnu.org; Fri, 21 Feb 2003 00:00:13 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18m5IA-0005Lu-00
	for classpath@gnu.org; Fri, 21 Feb 2003 00:00:10 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18m5I7-0005HA-00
	for classpath@gnu.org; Fri, 21 Feb 2003 00:00:07 -0500
Received: from adsl-63-194-81-26.dsl.snfc21.pacbell.net ([63.194.81.26]
	helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18m5I6-0005DO-00
	for classpath@gnu.org; Fri, 21 Feb 2003 00:00:06 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id UAA66933;
	Thu, 20 Feb 2003 20:59:46 -0800 (PST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id h1L4wdjM022020;
	Thu, 20 Feb 2003 20:58:39 -0800 (PST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id h1L4wdRm022019;
	Thu, 20 Feb 2003 20:58:39 -0800 (PST)
	(envelope-from archie)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200302210458.h1L4wdRm022019@arch20m.dellroad.org>
In-Reply-To: <87znoqxpa8.fsf@fleche.redhat.com>
To: tromey@redhat.com
Date: Thu, 20 Feb 2003 20:58:39 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
cc: classpath@gnu.org
Subject: Re: Class methods
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 21 Feb 2003 05:00:11 -0000

Tom Tromey wrote:
> Archie> It seems from a first look that these java.lang.Class methods
> Archie> which are currently native:
> Archie> 	Class.getClasses()
> Archie> [ ... ]
> 
> Archie> could be implemented entirely in Java, by relying on these methods:
> Archie> 	Class.getDeclaredClasses()
> Archie> [ ... ]
> 
> Archie> Would this work? It would save a lot of native code writing
> Archie> for JVM implementors.
> 
> I took a quick look at this.  The various methods make different
> SecurityManager calls.  So a straightforward implementation wouldn't
> be correct.

Hmmm, maybe I'm confused. I was thinking something along these lines...

  public Field[] getFields() {
	// Do security manager check
	// call getFieldsNoSecurityCheck()
  }

  public Field[] getDeclaredFields() {
	// Do security manager check
	// call getDeclaredFieldsNoSecurityCheck()
  }

  private Field[] getFieldsNoSecurityCheck() {
	// call getDeclaredFieldsNoSecurityCheck()
	if (this.isInterface())
	    // recurse: superclass.getFieldsNoSecurityCheck()
	else {
	    // recurse: superinterface.getFieldsNoSecurityCheck()
	    // for all superinterfaces
	}
	// return combined array
  }

  private native Field[] getDeclaredFieldsNoSecurityCheck();

  // same idea for getMethods(), getConstructors(), and getClasses()

I was planning on doing this whether or not it was merged into Classpath.
Is there a fundamental problem with this approach I'm not seeing?

Thanks for taking the time to look at this.

Cheers,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com



From MAILER-DAEMON Fri Feb 21 04:41:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18m9gF-0002y0-00
	for mharc-classpath@gnu.org; Fri, 21 Feb 2003 04:41:19 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18m9gC-0002wK-00
	for classpath@gnu.org; Fri, 21 Feb 2003 04:41:16 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18m9g9-0002uz-00
	for classpath@gnu.org; Fri, 21 Feb 2003 04:41:15 -0500
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18m9g9-0002ul-00
	for classpath@gnu.org; Fri, 21 Feb 2003 04:41:13 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 18m9fa-00058a-00; Fri, 21 Feb 2003 10:40:38 +0100
From: Mark Wielaard <mark@klomp.org>
To: tromey@redhat.com
In-Reply-To: <873cmi2zvh.fsf@fleche.redhat.com>
References: <200302202120.h1KLKmJ3020384@arch20m.dellroad.org>
	<873cmi2zvh.fsf@fleche.redhat.com>
Content-Type: text/plain
Organization: 
Message-Id: <1045820459.3356.453.camel@elsschot>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.2 
Date: 21 Feb 2003 10:41:00 +0100
Content-Transfer-Encoding: 7bit
cc: classpath@gnu.org
Subject: Re: VMThrowable.java
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 21 Feb 2003 09:41:17 -0000

Hi,

On Fri, 2003-02-21 at 02:20, Tom Tromey wrote:
> The only problem I have with this approach is when a particular method
> is performance-sensitive; then the extra call is wasteful (as opposed
> to a native method directly in the standard class).  For libgcj we can
> just maintain a small divergence in these cases.  Ideally I prefer to
> avoid these divergences.  I'm not sure how much this consideration
> applies to other VMs.

My idea was that the VMStateHelper classes are package private and final
which should be a hint to the VM that these are special cases that can
be optimized by inlining all calls into the non-VM version.

Cheers,

Mark




From MAILER-DAEMON Fri Feb 21 11:32:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18mG6T-0004oG-00
	for mharc-classpath@gnu.org; Fri, 21 Feb 2003 11:32:49 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18mG5p-00049F-00
	for classpath@gnu.org; Fri, 21 Feb 2003 11:32:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18mG3o-0002r6-00
	for classpath@gnu.org; Fri, 21 Feb 2003 11:30:05 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18mG3g-0002o3-00
	for classpath@gnu.org; Fri, 21 Feb 2003 11:29:56 -0500
Received: from fleche.redhat.com (tf0105.peakpeak.com [204.144.239.105])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id JAA14811;
	Fri, 21 Feb 2003 09:29:53 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id DD7304F828E; Fri, 21 Feb 2003 09:21:14 -0700 (MST)
To: Archie Cobbs <archie@dellroad.org>
References: <200302210458.h1L4wdRm022019@arch20m.dellroad.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: Yow!!  That's a GOOD IDEA!!  Eating a whole FIELD of COUGH MEDICINE
 should make you feel MUCH BETTER!!
Date: 21 Feb 2003 09:21:14 -0700
In-Reply-To: <200302210458.h1L4wdRm022019@arch20m.dellroad.org>
Message-ID: <87d6llfvut.fsf@fleche.redhat.com>
Lines: 15
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Class methods
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 21 Feb 2003 16:32:44 -0000

>>>>> "Archie" == Archie Cobbs <archie@dellroad.org> writes:

Archie> Hmmm, maybe I'm confused. I was thinking something along these
Archie> lines...

Yeah, that would work.  That's more or less what I meant in the second
option.

Archie> I was planning on doing this whether or not it was merged into
Archie> Classpath.  Is there a fundamental problem with this approach
Archie> I'm not seeing?

Not really.  It may be less efficient.  That probably doesn't matter.

Tom



From MAILER-DAEMON Fri Feb 21 12:00:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18mGX0-00057j-00
	for mharc-classpath@gnu.org; Fri, 21 Feb 2003 12:00:14 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18mGWy-00057O-00
	for classpath@gnu.org; Fri, 21 Feb 2003 12:00:12 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18mGWu-00056J-00
	for classpath@gnu.org; Fri, 21 Feb 2003 12:00:10 -0500
Received: from adsl-63-194-81-26.dsl.snfc21.pacbell.net ([63.194.81.26]
	helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18mGWt-00055m-00
	for classpath@gnu.org; Fri, 21 Feb 2003 12:00:07 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id IAA70905;
	Fri, 21 Feb 2003 08:47:32 -0800 (PST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id h1LGkOjM024049;
	Fri, 21 Feb 2003 08:46:24 -0800 (PST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id h1LGkOEI024048;
	Fri, 21 Feb 2003 08:46:24 -0800 (PST)
	(envelope-from archie)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200302211646.h1LGkOEI024048@arch20m.dellroad.org>
In-Reply-To: <87d6llfvut.fsf@fleche.redhat.com>
To: tromey@redhat.com
Date: Fri, 21 Feb 2003 08:46:24 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
cc: classpath@gnu.org
Subject: Re: Class methods
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 21 Feb 2003 17:00:13 -0000

Tom Tromey wrote:
> Archie> Hmmm, maybe I'm confused. I was thinking something along these
> Archie> lines...
> 
> Yeah, that would work.  That's more or less what I meant in the second
> option.
> 
> Archie> I was planning on doing this whether or not it was merged into
> Archie> Classpath.  Is there a fundamental problem with this approach
> Archie> I'm not seeing?
> 
> Not really.  It may be less efficient.  That probably doesn't matter.

Thanks for your comments. I'll post patches to the list when/if
I come up with something for anyone interested.

Cheers,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com



From MAILER-DAEMON Sat Feb 22 07:37:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18mYuh-0007WL-00
	for mharc-classpath@gnu.org; Sat, 22 Feb 2003 07:37:55 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18mYue-0007PX-00
	for classpath@gnu.org; Sat, 22 Feb 2003 07:37:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18mYu8-00067I-00
	for classpath@gnu.org; Sat, 22 Feb 2003 07:37:51 -0500
Received: from piglet.dstc.edu.au ([130.102.176.1])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18mYu7-0005zb-00
	for classpath@gnu.org; Sat, 22 Feb 2003 07:37:20 -0500
Received: from dstc.edu.au (soluble.dstc.edu.au [130.102.176.43])
	by piglet.dstc.edu.au (8.12.3/8.12.3) with ESMTP id h1MCb9jf004251;
	Sat, 22 Feb 2003 22:37:09 +1000 (EST)
Message-Id: <200302221237.h1MCb9jf004251@piglet.dstc.edu.au>
X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4
To: Archie Cobbs <archie@dellroad.org>
In-Reply-To: Message from Archie Cobbs <archie@dellroad.org> 
	<200302210049.h1L0nS2h021170@arch20m.dellroad.org> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sat, 22 Feb 2003 22:37:08 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Virus-Scanned: Message: ok
X-Scanned-By: MIMEDefang 2.9 (www dot roaringpenguin dot com slash mimedefang)
cc: crawley@piglet.dstc.edu.au
cc: classpath@gnu.org
Subject: Re: Class methods 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 22 Feb 2003 12:37:53 -0000

Archie,

You wrote:
> It seems from a first look that these java.lang.Class methods which
> are currently native: 

[...]

> could be implemented entirely in Java, by relying on these methods:

[...]

> Would this work? It would save a lot of native code writing for JVM
> implementors.

Bear in mind that it would ALSO create work for maintainers of existing 
JVMs that use (implement) the current native APIs.

-- Steve







From MAILER-DAEMON Mon Feb 24 15:06:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18nOrS-0004Vh-00
	for mharc-classpath@gnu.org; Mon, 24 Feb 2003 15:06:02 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18nOrP-0004Mm-00
	for classpath@gnu.org; Mon, 24 Feb 2003 15:05:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18nOqt-0003nU-00
	for classpath@gnu.org; Mon, 24 Feb 2003 15:05:58 -0500
Received: from relay10.cs.mcgill.ca ([132.206.3.88])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18nOqs-0003mN-00
	for classpath@gnu.org; Mon, 24 Feb 2003 15:05:26 -0500
Received: from pinto.cs.mcgill.ca (pinto.CS.McGill.CA [132.206.3.79])
	by relay10.cs.mcgill.ca (Postfix) with ESMTP id 3AC955370C2
	for <classpath@gnu.org>; Mon, 24 Feb 2003 15:05:26 -0500 (EST)
Received: from pinto.cs.mcgill.ca (dbelan2@localhost [127.0.0.1])
	h1OK5QWA003592verify=FAIL)
	for <classpath@gnu.org>; Mon, 24 Feb 2003 15:05:26 -0500
Received: (from dbelan2@localhost)
	by pinto.cs.mcgill.ca (8.12.3/8.12.3/Debian -4) id h1OK5Q6Z003590
	for classpath@gnu.org; Mon, 24 Feb 2003 15:05:26 -0500
Date: Mon, 24 Feb 2003 15:05:25 -0500
From: David =?iso-8859-1?Q?B=E9langer?= <dbelan2@cs.mcgill.ca>
To: classpath@gnu.org
Message-ID: <20030224200525.GA3565@pinto.cs.mcgill.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.4i
Content-Transfer-Encoding: quoted-printable
Subject: SableVM classpath integration and copyrights papers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 24 Feb 2003 20:06:01 -0000


Hi,

I'm a current SableVM developer.  I wrote an implementation of Process
and modified some reflection classes in our customized version of
Classpath.  We would like to eventually have the SableVM modifications
integrated in the Classpath CVS.

I would like to know what is the procedure to follow.  From what I
understand, I will have to sign copyright forms.  Let me know who I
should contact for the forms.

Thanks in advance,
David

---

David B=E9langer
Graduate Student
School of Computer Science
McGill University
Office: MC226

Web page:   http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt




From MAILER-DAEMON Tue Feb 25 19:38:06 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18npZ4-0002Bq-00
	for mharc-classpath@gnu.org; Tue, 25 Feb 2003 19:36:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18npYy-00027E-00
	for classpath@gnu.org; Tue, 25 Feb 2003 19:36:44 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18npUG-0000Fa-00
	for classpath@gnu.org; Tue, 25 Feb 2003 19:31:54 -0500
Received: from adsl-63-194-81-26.dsl.snfc21.pacbell.net ([63.194.81.26]
	helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18npSc-0007pK-00
	for classpath@gnu.org; Tue, 25 Feb 2003 19:30:10 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id QAA04685
	for <classpath@gnu.org>; Tue, 25 Feb 2003 16:27:16 -0800 (PST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id h1Q0PxjM057447
	for <classpath@gnu.org>; Tue, 25 Feb 2003 16:25:59 -0800 (PST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id h1Q0PwgG057446
	for classpath@gnu.org; Tue, 25 Feb 2003 16:25:58 -0800 (PST)
	(envelope-from archie)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200302260025.h1Q0PwgG057446@arch20m.dellroad.org>
To: classpath@gnu.org
Date: Tue, 25 Feb 2003 16:25:58 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Subject: Thoughts on 'reference classes'
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 26 Feb 2003 00:36:48 -0000


[ warning, random thoughts below... ]

I've been working on a new JVM and trying to figure out how
modify the "vm/reference" classpath classes into something that
this JVM particular can support.

Something occurred to me while looking at the Java sources under
vm/reference and reading some messages on this list.

On the one hand, the 'reference' classes contain many places where
the particular JVM developer is required or expected to add, subtract,
or modify the 'reference' Java code to fit that particular JVM.
>From my point of view this is annoying, because often means I have
to think hard about how to do something and whether I'm breaking
some subtle JVM semantics by doing it. But even when it's obvious
what to do, you still have to create a different version of this
class which has to be synchronized whenever you update from Classpath.

For example, VMThrowable.java. While it's clear what the JVM needs
to do in this case, whatever your JVM, you'll have to do *something*
with this class if you want to be able to print out exception traces.
Also, there are lots of other methods that are marked "XXX - Not
implemented; this requires native help" but are not native methods.
Why not just make them native so I don't have to modify the file?

On the other hand, any proposed changes to the reference classes
in the interest of making them more 'generally suitable' to the
widest variety of JVM's, or making them require fewer changes when
ported to a new JVM, run up against backwards compatibility
issues, because any such change means some existing JVM somewhere
will probably have to be adjusted to accomodate.

For an example of this, there are lots of places in the reference
classes that say "this method will be removed in a future version of
classpath" yet there the method sits.

The tension between these two 'hands' seems to me likely to result
in a negative effect on the reference code, because you can't easily
make changes that improve anything. As a result, new JVM implementors
like me don't get as much value out of the 'reference' code.

I.e., in my (biased) opinion, ideally the 'reference' classes should
always reflect the combined wisdom of the Classpath developers'
about what the best, most correct way is to organize and partition
the Java code from the native code. If a new way to do something is
discovered, it should be natural and we should be quick to include
it in Classpath, even if that changes the Java <-> native API.

What I'd like to suggest is the following (donning flamesuit): the
goal of the 'reference' code should be explicitly changed so that
it reflects this 'best guess' at what an 'ideal' set of native
method classes should look like, and the goal of maintaining support
for existing JVM's in the 'reference' classes should be dropped.
In it's place, the existing 'reference' code can be (CVS repository)
copied into distinct 'vm' subdirectories for each JVM out there
that currently relies on it. These JVM's can then manage their
per-JVM classes as they see fit (some may not change anything,
others may try to migrate toward the 'reference' set).

For an existing JVM it's probably not worth the trouble do a lot
of adjustment work to the native method implementations just for
the sake of Classpath consistency. But for new JVM's, and for any
JVM's that prefer to keep their differences from Classpath at a
minimum and track the 'combined wisdom' of the Classpath developers,
there should be a way to do this (the goals of my particular project
make me lean much farther towards using the Classpath 'reference'
suite to benefit from that combined wisdom).

Moreover, a second goal for the 'reference' classes should be that it
is possible for a JVM to be implemented using them without any changes.
Having methods marked "XXX - Not implemented; this requires native help"
but not actualy native is neither here nor there.

Hope this makes sense and is not too simplistic a view to take,
as I'm new to this project. Comments?

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com



From MAILER-DAEMON Tue Feb 25 22:36:17 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18nsMj-0007zP-00
	for mharc-classpath@gnu.org; Tue, 25 Feb 2003 22:36:17 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18nsLB-0007YX-00
	for classpath@gnu.org; Tue, 25 Feb 2003 22:34:41 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18nsKN-00068Q-00
	for classpath@gnu.org; Tue, 25 Feb 2003 22:33:51 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18nsK2-0005rk-00
	for classpath@gnu.org; Tue, 25 Feb 2003 22:33:30 -0500
Received: from mail5.nc.rr.com (fe5 [24.93.67.52])h1Q3W1oF013701
	for <classpath@gnu.org>; Tue, 25 Feb 2003 22:32:04 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail5.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Tue, 25 Feb 2003 22:31:23 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 1E9488332F; Tue, 25 Feb 2003 22:33:19 -0500 (EST)
Sender: cbj@haphazard.org
To: GNU Classpath <classpath@gnu.org>
From: Brian Jones <cbj@gnu.org>
Date: 25 Feb 2003 22:33:19 -0500
Message-ID: <m3adgj67i8.fsf@lyta.haphazard.org>
Lines: 6
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: gcj 3.2.1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 26 Feb 2003 03:36:15 -0000

I've noticed I cannot compile CVS with gcj 3.2.1, is any other version
capable?

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



From MAILER-DAEMON Tue Feb 25 22:46:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18nsVT-0007Vm-00
	for mharc-classpath@gnu.org; Tue, 25 Feb 2003 22:45:19 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18nsVJ-0006xy-00
	for classpath@gnu.org; Tue, 25 Feb 2003 22:45:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18nsUu-0005uo-00
	for classpath@gnu.org; Tue, 25 Feb 2003 22:44:49 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18nsUs-0005WE-00; Tue, 25 Feb 2003 22:44:42 -0500
Received: from fleche.redhat.com (te0194.peakpeak.com [204.144.238.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id UAB06792;
	Tue, 25 Feb 2003 20:44:35 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 9C4824F8090; Tue, 25 Feb 2003 20:36:51 -0700 (MST)
To: Brian Jones <cbj@gnu.org>
References: <m3adgj67i8.fsf@lyta.haphazard.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: WHOA!!  I'm having a RELIGIOUS EXPERIENCE right NOW!!
Date: 25 Feb 2003 20:36:51 -0700
In-Reply-To: <m3adgj67i8.fsf@lyta.haphazard.org>
Message-ID: <87hearaf1o.fsf@fleche.redhat.com>
Lines: 27
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: GNU Classpath <classpath@gnu.org>
Subject: Re: gcj 3.2.1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 26 Feb 2003 03:45:16 -0000

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

Brian> I've noticed I cannot compile CVS with gcj 3.2.1, is any other
Brian> version capable?

I'd heard that 3.2 *could* compile CVS Classpath and that 3.3 (and
trunk, currently aka 3.4) could not.  This belief forms the basis for
PR java/9695.

In a perverse way it would be good news if 3.2 couldn't do the job.
That could mean we don't have a gcj regression, hence one less
required bug to fix before release.  (A somewhat silly approach to
bugs, but gcj time is limited these days.)

In the past people have checked in workarounds in Classpath to avoid
gcj bugs.  At the time I think I thought this was a bad idea.
Nowadays, well, there's a precedent... :-)

Seriously, we could try to work around the problem.  Or we could just
report gcj bugs and compile Classpath with a different free compiler
(jikes, or the Eclipse compiler, or kopi, or ... are there others?).
I'm not too bothered if the workarounds don't go in; for libgcj we'll
maintain a temporary divergence if need be.

How does gcj 3.2 fail on CVS Classpath?  Maybe that can help guide us.

Tom



From MAILER-DAEMON Tue Feb 25 23:04:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18nsnj-0002Eq-00
	for mharc-classpath@gnu.org; Tue, 25 Feb 2003 23:04:11 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18nsnh-0002Dk-00
	for classpath@gnu.org; Tue, 25 Feb 2003 23:04:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18nsnf-00029k-00
	for classpath@gnu.org; Tue, 25 Feb 2003 23:04:08 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18nsnf-00028O-00
	for classpath@gnu.org; Tue, 25 Feb 2003 23:04:07 -0500
Received: from mail5.nc.rr.com (fe5 [24.93.67.52])h1Q42eo5004105;
	Tue, 25 Feb 2003 23:02:40 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail5.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Tue, 25 Feb 2003 23:02:00 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 3FB938332F; Tue, 25 Feb 2003 23:04:06 -0500 (EST)
Sender: cbj@haphazard.org
To: tromey@redhat.com
References: <m3adgj67i8.fsf@lyta.haphazard.org>
	<87hearaf1o.fsf@fleche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 25 Feb 2003 23:04:06 -0500
In-Reply-To: <87hearaf1o.fsf@fleche.redhat.com>
Message-ID: <m365r7u1qh.fsf@lyta.haphazard.org>
Lines: 30
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: GNU Classpath <classpath@gnu.org>
Subject: Re: gcj 3.2.1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 26 Feb 2003 04:04:10 -0000

Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Brian" == Brian Jones <cbj@gnu.org> writes:
> 
> Brian> I've noticed I cannot compile CVS with gcj 3.2.1, is any other
> Brian> version capable?
> 
> How does gcj 3.2 fail on CVS Classpath?  Maybe that can help guide us.

Appears to not be capable of handling
java.text.AttributedCharacterIterator, an interface containing a
non-abstract static inner class.  But there hasn't been a change to
this class in quite a while.  This gcj I'm using is from a Red Hat 8.1
beta so I wanted to see if anyone else had similar problems.  I tried
playing with the import statement in java.awt.font.TextAttribute to no
avail.

[cbj@lyta build]$ make
Making all in lib
make[1]: Entering directory `/home/cbj/cvs/classpath/build/lib'
top_builddir=.. /bin/sh ./gen-classlist.sh standard
/usr/bin/gcj --bootclasspath '' -classpath ../..:../../external/jaxp/source:../vm/current:.: -C -d . @classes
../../java/awt/font/TextAttribute.java:43: Superclass `AttributedCharacterIterator.Attribute' of class `java.awt.font.TextAttribute' not found.
   public final class TextAttribute extends AttributedCharacterIterator.Attribute
                                            ^
1 error
make[1]: *** [compile-classes] Error 1

-- 
Brian Jones <cbj@gnu.org>



From MAILER-DAEMON Wed Feb 26 02:21:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18nvsP-000610-00
	for mharc-classpath@gnu.org; Wed, 26 Feb 2003 02:21:13 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18nvsM-00060p-00
	for classpath@gnu.org; Wed, 26 Feb 2003 02:21:10 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18nvsL-0005zH-00
	for classpath@gnu.org; Wed, 26 Feb 2003 02:21:09 -0500
Received: from mail0.ewetel.de ([212.6.122.10])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18nvsJ-0005yy-00; Wed, 26 Feb 2003 02:21:07 -0500
Received: from asterix.konqueror.de (dynadsl-080-228-67-005.ewetel.net
	[80.228.67.5])
	by mail0.ewetel.de (8.12.1/8.12.1) with ESMTP id h1Q7KuNt009540;
	Wed, 26 Feb 2003 08:20:57 +0100 (MET)
From: Michael Koch <konqueror@gmx.de>
To: Brian Jones <cbj@gnu.org>, tromey@redhat.com
Date: Wed, 26 Feb 2003 08:18:50 +0100
User-Agent: KMail/1.5
References: <m3adgj67i8.fsf@lyta.haphazard.org>
	<87hearaf1o.fsf@fleche.redhat.com> <m365r7u1qh.fsf@lyta.haphazard.org>
In-Reply-To: <m365r7u1qh.fsf@lyta.haphazard.org>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Description: clearsigned data
Content-Disposition: inline
Message-Id: <200302260818.54165.konqueror@gmx.de>
X-CheckCompat: OK
cc: GNU Classpath <classpath@gnu.org>
Subject: Re: gcj 3.2.1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 26 Feb 2003 07:21:11 -0000

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Mittwoch, 26. Februar 2003 05:04 schrieb Brian Jones:
> Tom Tromey <tromey@redhat.com> writes:
> > >>>>> "Brian" =3D=3D Brian Jones <cbj@gnu.org> writes:
> >
> > Brian> I've noticed I cannot compile CVS with gcj 3.2.1, is any
> > other Brian> version capable?
> >
> > How does gcj 3.2 fail on CVS Classpath?  Maybe that can help
> > guide us.
>
> Appears to not be capable of handling
> java.text.AttributedCharacterIterator, an interface containing a
> non-abstract static inner class.  But there hasn't been a change to
> this class in quite a while.  This gcj I'm using is from a Red Hat
> 8.1 beta so I wanted to see if anyone else had similar problems.  I
> tried playing with the import statement in
> java.awt.font.TextAttribute to no avail.

Hmm,

Here on Debian unstable it works perfectly.

mkoch@asterix ~> gcj-3.2 --version
gcj-3.2 (GCC) 3.2.3 20030221 (Debian prerelease)

=46ormer versions build classpath CVS too.


Michael
=2D --=20
Homepage: http://www.worldforge.org/
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+XGpdWSOgCCdjSDsRAkoCAJwJ6ejOkr7UHxohTZrI3u5adwYiqgCfd4hs
xmafx7w9B3RLSBLWHjJ0H18=3D
=3DFjyr
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Wed Feb 26 04:14:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18nxeE-0006cl-00
	for mharc-classpath@gnu.org; Wed, 26 Feb 2003 04:14:42 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18nxeC-0006b8-00
	for classpath@gnu.org; Wed, 26 Feb 2003 04:14:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18nxeA-0006ad-00
	for classpath@gnu.org; Wed, 26 Feb 2003 04:14:39 -0500
Received: from 62-177-154-234.bbeyond.nl ([62.177.154.234]
	helo=LEMBU.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18nxeA-0006Zo-00
	for classpath@gnu.org; Wed, 26 Feb 2003 04:14:38 -0500
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C2DD77.664E05D2"
Date: Wed, 26 Feb 2003 10:14:00 +0100
Message-ID: <5C38B761F205B54BA59FF611A65C624801188F@lembu.sumatrasoftware.com>
X-MimeOLE: Produced By Microsoft Exchange V6.5.6803.0
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Thoughts on 'reference classes'
Thread-Index: AcLdL1xPed3qPvq2QXqMzbQzDUj0hgAPFOPw
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Archie Cobbs" <archie@dellroad.org>,
	<classpath@gnu.org>
Subject: RE: Thoughts on 'reference classes'
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 26 Feb 2003 09:14:41 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01C2DD77.664E05D2
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

I'm a VM implementer too and I have a few comments. One general point is
that the current GNU Classpath version is 0.05, this suggests that it
isn't mature yet so I think VM implementers should expect that the VM
interface isn't yet stable. BTW, personally I think that 0.05 is a way
too low number for the current state of affairs, but maybe I'm just
reading too much into the number ;-)

Some random points (all IMHO):
* I don't mind changes to the Classpath <-> VM interface, if they
improve the situation. I'd love to hear what other VM implementers have
to say about this, but I agree with Archie sometimes there is too much
inertia.
* The use of native code should be limited. Preferrably to primitive
operations that cannot be performed from within Java
* I really like Mark's approach of introducing the VMxxx classes. The
interface between xxx and VMxxx should be well defined and we should try
to minimize changes too it, but we also have to recognize that this is a
hard problem. Not all VMs have the same requirements/trade-offs.

And finally, here is an example of how some of the requirements can be
very different: My VM (http://ikvm.net) is built on top of .NET, so I
want to use the .NET class libraries for I/O, but the current
java.io.FileDescriptor uses an int as the native handle, while I want
the use a reference to a .NET stream object. Similarly, sometimes I
implement native methods in C#, but other times I use Java code to
directly call the .NET class library. Here is a fragment from my
java.lang.Thread:

public static Thread currentThread()
{
  Thread javaThread =3D
(Thread)system.threading.Thread.GetData(localDataStoreSlot);
  if(javaThread =3D=3D null)
  {
    // threads created outside of Java always run in the root thread
group
    javaThread =3D new Thread(ThreadGroup.root,
system.threading.Thread.get_CurrentThread());
    system.threading.Thread.SetData(localDataStoreSlot, javaThread);
  }
  return javaThread;
}

This is why I really like the native methods to live in a VMxxx class,
because that way I can choose to implement the method inline and still
retain the ability to keep using the latest Classpath code (except for
the vm/reference classes) as long as the interface between the xxx and
VMxxx classes remains stable.

Regards,
Jeroen

------_=_NextPart_001_01C2DD77.664E05D2
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.6803.0">
<TITLE>RE: Thoughts on 'reference classes'</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Hi,</FONT>
</P>

<P><FONT SIZE=3D2>I'm a VM implementer too and I have a few comments. =
One general point is that the current GNU Classpath version is 0.05, =
this suggests that it isn't mature yet so I think VM implementers should =
expect that the VM interface isn't yet stable. BTW, personally I think =
that 0.05 is a way too low number for the current state of affairs, but =
maybe I'm just reading too much into the number ;-)</FONT></P>

<P><FONT SIZE=3D2>Some random points (all IMHO):</FONT>

<BR><FONT SIZE=3D2>* I don't mind changes to the Classpath &lt;-&gt; VM =
interface, if they improve the situation. I'd love to hear what other VM =
implementers have to say about this, but I agree with Archie sometimes =
there is too much inertia.</FONT></P>

<P><FONT SIZE=3D2>* The use of native code should be limited. =
Preferrably to primitive operations that cannot be performed from within =
Java</FONT></P>

<P><FONT SIZE=3D2>* I really like Mark's approach of introducing the =
VMxxx classes. The interface between xxx and VMxxx should be well =
defined and we should try to minimize changes too it, but we also have =
to recognize that this is a hard problem. Not all VMs have the same =
requirements/trade-offs.</FONT></P>

<P><FONT SIZE=3D2>And finally, here is an example of how some of the =
requirements can be very different: My VM (<A =
HREF=3D"http://ikvm.net">http://ikvm.net</A>) is built on top of .NET, =
so I want to use the .NET class libraries for I/O, but the current =
java.io.FileDescriptor uses an int as the native handle, while I want =
the use a reference to a .NET stream object. Similarly, sometimes I =
implement native methods in C#, but other times I use Java code to =
directly call the .NET class library. Here is a fragment from my =
java.lang.Thread:</FONT></P>

<P><FONT SIZE=3D2>public static Thread currentThread()</FONT>

<BR><FONT SIZE=3D2>{</FONT>

<BR><FONT SIZE=3D2>&nbsp; Thread javaThread =3D =
(Thread)system.threading.Thread.GetData(localDataStoreSlot);</FONT>

<BR><FONT SIZE=3D2>&nbsp; if(javaThread =3D=3D null)</FONT>

<BR><FONT SIZE=3D2>&nbsp; {</FONT>

<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; // threads created outside of Java =
always run in the root thread group</FONT>

<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; javaThread =3D new =
Thread(ThreadGroup.root, =
system.threading.Thread.get_CurrentThread());</FONT>

<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; =
system.threading.Thread.SetData(localDataStoreSlot, javaThread);</FONT>

<BR><FONT SIZE=3D2>&nbsp; }</FONT>

<BR><FONT SIZE=3D2>&nbsp; return javaThread;</FONT>

<BR><FONT SIZE=3D2>}</FONT>
</P>

<P><FONT SIZE=3D2>This is why I really like the native methods to live =
in a VMxxx class, because that way I can choose to implement the method =
inline and still retain the ability to keep using the latest Classpath =
code (except for the vm/reference classes) as long as the interface =
between the xxx and VMxxx classes remains stable.</FONT></P>

<P><FONT SIZE=3D2>Regards,</FONT>

<BR><FONT SIZE=3D2>Jeroen</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2DD77.664E05D2--



From MAILER-DAEMON Wed Feb 26 07:54:32 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18o14x-0005Yt-00
	for mharc-classpath@gnu.org; Wed, 26 Feb 2003 07:54:31 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18o10G-0004Aw-00
	for classpath@gnu.org; Wed, 26 Feb 2003 07:49:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18o0zy-0003jq-00
	for classpath@gnu.org; Wed, 26 Feb 2003 07:49:28 -0500
Received: from ms-smtp-03.southeast.rr.com ([24.93.67.84])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18o0zq-0003b7-00
	for classpath@gnu.org; Wed, 26 Feb 2003 07:49:14 -0500
Received: from mail3.nc.rr.com (fe3 [24.93.67.50])h1QCmBi6016465;
	Wed, 26 Feb 2003 07:48:11 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail3.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Wed, 26 Feb 2003 07:47:16 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id D8C3F8332F; Wed, 26 Feb 2003 07:49:11 -0500 (EST)
Sender: cbj@haphazard.org
To: Michael Koch <konqueror@gmx.de>
References: <m3adgj67i8.fsf@lyta.haphazard.org>
	<87hearaf1o.fsf@fleche.redhat.com> <m365r7u1qh.fsf@lyta.haphazard.org>
	<200302260818.54165.konqueror@gmx.de>
From: Brian Jones <cbj@gnu.org>
Date: 26 Feb 2003 07:49:11 -0500
In-Reply-To: <200302260818.54165.konqueror@gmx.de>
Message-ID: <m3znojryuw.fsf@lyta.haphazard.org>
Lines: 17
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: GNU Classpath <classpath@gnu.org>
cc: tromey@redhat.com
Subject: Re: gcj 3.2.1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 26 Feb 2003 12:54:30 -0000

Michael Koch <konqueror@gmx.de> writes:

> Hmm,
> 
> Here on Debian unstable it works perfectly.
> 
> mkoch@asterix ~> gcj-3.2 --version
> gcj-3.2 (GCC) 3.2.3 20030221 (Debian prerelease)
> 
> Former versions build classpath CVS too.

I wonder if the regression showed up in 3.2.1 instead of 3.3 and 3.2
is okay?

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



From MAILER-DAEMON Wed Feb 26 10:55:41 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18o3tw-00032P-00
	for mharc-classpath@gnu.org; Wed, 26 Feb 2003 10:55:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18o3tf-0002e8-00
	for classpath@gnu.org; Wed, 26 Feb 2003 10:55:03 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18o3tX-0002J9-00
	for classpath@gnu.org; Wed, 26 Feb 2003 10:54:57 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18o3tV-0002Bi-00
	for classpath@gnu.org; Wed, 26 Feb 2003 10:54:53 -0500
Received: from mail3.nc.rr.com (fe3 [24.93.67.50])h1QFrPo5002517
	for <classpath@gnu.org>; Wed, 26 Feb 2003 10:53:25 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail3.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Wed, 26 Feb 2003 10:52:56 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 487598332F; Wed, 26 Feb 2003 10:54:52 -0500 (EST)
Sender: cbj@haphazard.org
To: GNU Classpath <classpath@gnu.org>
From: Brian Jones <cbj@gnu.org>
Date: 26 Feb 2003 10:54:52 -0500
Message-ID: <m3adgj6nqr.fsf@lyta.haphazard.org>
Lines: 6
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Zaval Light-Weight Visual Components Library
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 26 Feb 2003 15:55:18 -0000

I wasn't aware of this non-AWT-based GUI library for Java, but it is
available under the GPL for those who would like to try it with free JVMs.

http://www.zaval.org/products/lwvcl/
-- 
Brian Jones <cbj@gnu.org>



From MAILER-DAEMON Wed Feb 26 13:23:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18o6DC-0001As-00
	for mharc-classpath@gnu.org; Wed, 26 Feb 2003 13:23:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18o6CJ-0000Ls-00
	for classpath@gnu.org; Wed, 26 Feb 2003 13:22:27 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18o6AP-0007yS-00
	for classpath@gnu.org; Wed, 26 Feb 2003 13:20:31 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18o64y-00071H-00; Wed, 26 Feb 2003 13:14:52 -0500
Received: from fleche.redhat.com (te0194.peakpeak.com [204.144.238.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id LAA21801;
	Wed, 26 Feb 2003 11:14:49 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 7B3AA4F8090; Wed, 26 Feb 2003 11:07:13 -0700 (MST)
To: Brian Jones <cbj@gnu.org>
References: <m3adgj67i8.fsf@lyta.haphazard.org>
	<87hearaf1o.fsf@fleche.redhat.com> <m365r7u1qh.fsf@lyta.haphazard.org>
	<200302260818.54165.konqueror@gmx.de>
	<m3znojryuw.fsf@lyta.haphazard.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: JAPAN is a WONDERFUL planet -- I wonder if we'll ever reach
 their level of COMPARATIVE SHOPPING...
Date: 26 Feb 2003 11:07:11 -0700
In-Reply-To: <m3znojryuw.fsf@lyta.haphazard.org>
Message-ID: <873cma9ar4.fsf@fleche.redhat.com>
Lines: 21
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Michael Koch <konqueror@gmx.de>
cc: GNU Classpath <classpath@gnu.org>
Subject: Re: gcj 3.2.1
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 26 Feb 2003 18:23:21 -0000

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

Brian> I wonder if the regression showed up in 3.2.1 instead of 3.3
Brian> and 3.2 is okay?

I don't remember any gcj changes going in to the 3.2 branch after 3.2
shipped.  Maybe I forgot one though.

I looked at the gcc/java/ChangeLog diffs from 3.2 to 3.2.1.  There are
some, but none of them look like they would affect compilation.

I looked at the diffs between 3.2 and the rhl8 branch in the gcc cvs
repository (the Red Hat gcc is a branch in the main gcc repository
these days -- easier for everybody).  There's a bunch of stuff in
there.  So it looks like this really is a regression.

It's on my list to fix before 3.3.  Not sure when I'll find the time
yet.  I don't know whether any fix could make it in to the next OS
release (and if I did know I probably couldn't say anyway).

Tom



From MAILER-DAEMON Wed Feb 26 22:20:12 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oEZz-0008C1-00
	for mharc-classpath@gnu.org; Wed, 26 Feb 2003 22:19:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oEZr-0007nr-00
	for classpath@gnu.org; Wed, 26 Feb 2003 22:19:19 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oEZZ-0007B3-00
	for classpath@gnu.org; Wed, 26 Feb 2003 22:19:01 -0500
Received: from pop2a.ripco.com ([209.100.227.25])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oEZP-0006zy-00
	for classpath@gnu.org; Wed, 26 Feb 2003 22:18:52 -0500
Received: (from arenn@localhost)
	by pop2a.ripco.com (8.11.0/8.11.0) id h1R3J2n07491
	for classpath@gnu.org; Wed, 26 Feb 2003 21:19:02 -0600 (CST)
Date: Wed, 26 Feb 2003 21:19:02 -0600
From: "Aaron M. Renn" <arenn@urbanophile.com>
To: classpath@gnu.org
Message-ID: <20030227031901.GA7122@urbanophile.com>
Mail-Followup-To: "Aaron M. Renn" <arenn@urbanophile.com>,
	classpath@gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Organization: GNU's Not Unix!
Subject: Classpath / GCJ java.io Merge
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 03:19:25 -0000

Hi.  I've been looking at the Classpath / GCJ merge status here:

http://gcc.gnu.org/java/libgcj-classpath-compare.html

specifically, java.io.  Of the un-merged classes, I group them as follows:

1. Classes Doing Native I/O
---------------------------
FileDescriptor
File
FileInputStream
FileOutputStream
RandomAccessFile

2. Classes Doing Character Encoding
-----------------------------------
InputStreamReader
OutputStreamWriter

3. Random Classes
-----------------
DataOutputStream
LineNumberReader
PrintStream

For #2, it seems that the answer is to switch to NIO.  I hear that the
Classpath version is not yet functional however.

For #1, I have no idea what has been decided regarding native code.
Last I checked, we still had a JNI/CNI deadlock going on.

For #3, I'm a bit confused.  Does anyone have any background on why
these classes aren't merged?  I poked around the source code, and it
does not appear obvious.  Are the Classpath versions seriously broken
or something?  (I already found a few errors that need fixing).

I'm thinking about trying to tackle some of the remaining un-merged
classes.

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




From MAILER-DAEMON Thu Feb 27 06:19:47 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oM4o-00049f-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 06:19:46 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oLt8-00014X-00
	for classpath@gnu.org; Thu, 27 Feb 2003 06:07:42 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oLsN-0000hU-00
	for classpath@gnu.org; Thu, 27 Feb 2003 06:06:56 -0500
Received: from 62-177-154-234.bbeyond.nl ([62.177.154.234]
	helo=LEMBU.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18oLrc-0000Rd-00
	for classpath@gnu.org; Thu, 27 Feb 2003 06:06:09 -0500
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----_=_NextPart_001_01C2DE50.22ED7032"
Date: Thu, 27 Feb 2003 12:05:28 +0100
Message-ID: <5C38B761F205B54BA59FF611A65C6248011896@lembu.sumatrasoftware.com>
X-MimeOLE: Produced By Microsoft Exchange V6.5.6803.0
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Thread-Topic: Math patch
Thread-Index: AcLeTshDMzrvzFe2TP2LQMdkj0tfGQ==
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: <classpath@gnu.org>
Subject: Math patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 11:19:44 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01C2DE50.22ED7032
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

Attached is a small patch to java.lang.Math to make round(float) and
round(double) do the right thing for NaN.

Style wise, is it a good idea to use "a !=3D a" to test for NaN, or =
should
Double.isNaN() be used?

Regards,
Jeroen

------_=_NextPart_001_01C2DE50.22ED7032
Content-Type: application/octet-stream;
	name="math.patch"
Content-Transfer-Encoding: base64
Content-Description: math.patch
Content-Disposition: attachment;
	filename="math.patch"

SW5kZXg6IGphdmEvbGFuZy9NYXRoLmphdmENCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvY3Zzcm9v
dC9jbGFzc3BhdGgvY2xhc3NwYXRoL2phdmEvbGFuZy9NYXRoLmphdmEsdg0KcmV0cmlldmluZyBy
ZXZpc2lvbiAxLjEyDQpkaWZmIC11IC1yMS4xMiBNYXRoLmphdmENCi0tLSBqYXZhL2xhbmcvTWF0
aC5qYXZhCTE1IEZlYiAyMDAyIDAyOjQzOjM3IC0wMDAwCTEuMTINCisrKyBqYXZhL2xhbmcvTWF0
aC5qYXZhCTI3IEZlYiAyMDAzIDEwOjUyOjI3IC0wMDAwDQpAQCAtNTc1LDYgKzU3NSw3IEBADQog
ICAgKi8NCiAgIHB1YmxpYyBzdGF0aWMgaW50IHJvdW5kKGZsb2F0IGEpDQogICB7DQorICAgIGlm
KGEgIT0gYSkgcmV0dXJuIDA7DQogICAgIHJldHVybiAoaW50KSBmbG9vcihhICsgMC41Zik7DQog
ICB9DQogDQpAQCAtNTkxLDYgKzU5Miw3IEBADQogICAgKi8NCiAgIHB1YmxpYyBzdGF0aWMgbG9u
ZyByb3VuZChkb3VibGUgYSkNCiAgIHsNCisgICAgaWYoYSAhPSBhKSByZXR1cm4gMDsNCiAgICAg
cmV0dXJuIChsb25nKSBmbG9vcihhICsgMC41ZCk7DQogICB9DQogDQo=

------_=_NextPart_001_01C2DE50.22ED7032--



From MAILER-DAEMON Thu Feb 27 08:07:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oNlB-0002i7-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 08:07:37 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oNkr-0002Xd-00
	for classpath@gnu.org; Thu, 27 Feb 2003 08:07:17 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oNka-0002Oo-00
	for classpath@gnu.org; Thu, 27 Feb 2003 08:07:01 -0500
Received: from nat.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oNkX-0002Ks-00
	for classpath@gnu.org; Thu, 27 Feb 2003 08:06:57 -0500
Received: from sophocles.leuven.intern.acunia.com
	(sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id h1RD6qu29828;
	Thu, 27 Feb 2003 14:06:52 +0100
Date: Thu, 27 Feb 2003 13:29:45 +0100 (CET)
From: Chris Gray <chris.gray@acunia.com>
X-X-Sender: gray@sophocles.leuven.intern.acunia.com
To: Jeroen Frijters <jeroen@sumatra.nl>
In-Reply-To: <5C38B761F205B54BA59FF611A65C6248011896@lembu.sumatrasoftware.com>
Message-ID: <Pine.LNX.4.44.0302271224480.2476-100000@sophocles.leuven.intern.acunia.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
cc: classpath@gnu.org
Subject: Re: Math patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 13:07:35 -0000

On Thu, 27 Feb 2003, Jeroen Frijters wrote:

> Hi,
> 
> Attached is a small patch to java.lang.Math to make round(float) and
> round(double) do the right thing for NaN.
> 
> Style wise, is it a good idea to use "a != a" to test for NaN, or should
> Double.isNaN() be used?

This is an old chestnut. ;) For some VMs, Double.isNaN() will translate to 
an (expensive) JNI method call. For others it's no big deal. So on the 
whole "a != a" seems like the better bet. Hm, I see Wonka's java.lang.Math 
contains 21 "a != a" constructs and 2 "Double.isNaN(a)"'s. :-/

What we really need is
#define isNaN(a) ((a) != (a))

;>

-- 

Chris Gray

VM Architect, ACUNIA





From MAILER-DAEMON Thu Feb 27 13:21:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oSYi-0003zW-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 13:15:04 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oSYQ-0003cT-00
	for classpath@gnu.org; Thu, 27 Feb 2003 13:14:46 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oSWx-0002Lt-00
	for classpath@gnu.org; Thu, 27 Feb 2003 13:13:16 -0500
Received: from e2.ny.us.ibm.com ([32.97.182.102])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oSD6-00058k-00
	for classpath@gnu.org; Thu, 27 Feb 2003 12:52:44 -0500
Received: from northrelay04.pok.ibm.com (northrelay04.pok.ibm.com
	[9.56.224.206])
	by e2.ny.us.ibm.com (8.12.7/8.12.2) with ESMTP id h1RHqVXm032550
	for <classpath@gnu.org>; Thu, 27 Feb 2003 12:52:31 -0500
Received: from d01ml243.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216])
	h1RHqSNF116752
	for <classpath@gnu.org>; Thu, 27 Feb 2003 12:52:29 -0500
In-Reply-To: <E18oRPL-00070p-03@monty-python.gnu.org>
To: classpath@gnu.org
X-Mailer: Lotus Notes Release 6.0 September 26, 2002
Message-ID: <OF7020322D.213A8CF1-ON85256CDA.0061BFB3-85256CDA.0062059A@us.ibm.com>
From: David P Grove <groved@us.ibm.com>
Date: Thu, 27 Feb 2003 12:50:39 -0500
X-MIMETrack: Serialize by Router on D01ML243/01/M/IBM(Release 6.0.1
	[IBM]|February 24, 2003) at 02/27/2003 12:52:28
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Subject: Re: Math patch (Chris Gray)
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 18:15:01 -0000





> This is an old chestnut. ;) For some VMs, Double.isNaN() will translate
to
> an (expensive) JNI method call. For others it's no big deal. So on the
> whole "a != a" seems like the better bet. Hm, I see Wonka's
java.lang.Math
> contains 21 "a != a" constructs and 2 "Double.isNaN(a)"'s. :-/
>
> What we really need is
> #define isNaN(a) ((a) != (a))

I thought we had this already because the classpath Double.isNaN is defined
as:

  /**
   * Return <code>true</code> if the <code>double</code> has the same
   * value as <code>NaN</code>, otherwise return <code>false</code>.
   *
   * @param v the <code>double</code> to compare
   * @return whether the argument is <code>NaN</code>.
   */
  public static boolean isNaN(double v)
  {
    // This works since NaN != NaN is the only reflexive inequality
    // comparison which returns true.
    return v != v;
  }

So, it seems to me that using isNaN should be preferred as it is clearer
and will have no runtime cost (any JIT should inline a trivial static
method like this).

--dave




From MAILER-DAEMON Thu Feb 27 13:24:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oSgm-0007Pe-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 13:23:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oSgG-00075d-00
	for classpath@gnu.org; Thu, 27 Feb 2003 13:22:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oScE-0004uo-00
	for classpath@gnu.org; Thu, 27 Feb 2003 13:18:43 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oSbK-0004RL-00
	for classpath@gnu.org; Thu, 27 Feb 2003 13:17:46 -0500
Received: from fleche.redhat.com (te0194.peakpeak.com [204.144.238.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id LAB20100;
	Thu, 27 Feb 2003 11:17:36 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id DB0304F8610; Thu, 27 Feb 2003 11:10:14 -0700 (MST)
To: "Aaron M. Renn" <arenn@urbanophile.com>
References: <20030227031901.GA7122@urbanophile.com>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I know how to get the hostesses released!  Give them their own
 television series!
Date: 27 Feb 2003 11:10:14 -0700
In-Reply-To: <20030227031901.GA7122@urbanophile.com>
Message-ID: <87y941zjax.fsf@fleche.redhat.com>
Lines: 65
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Classpath / GCJ java.io Merge
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 18:23:23 -0000

>>>>> "Aaron" == Aaron M Renn <arenn@urbanophile.com> writes:

Aaron> For #1, I have no idea what has been decided regarding native code.
Aaron> Last I checked, we still had a JNI/CNI deadlock going on.

I'm resigned to the fact that we'll need dual implementations of
certain native code.  The Gtk AWT peers I imported into libgcj as-is,
using JNI, but that is a special case.

This does hamper merging since it is a lot of effort to rewrite the
JNI code.  I've never had time, or really much motivation.
I think there's also some question of which approach is preferable.

Aaron> For #2, it seems that the answer is to switch to NIO.  I hear
Aaron> that the Classpath version is not yet functional however.

I think Michael just got the gcj version to work.  I think his plan is
at least to merge all the Java code back to Classpath.  I'm not sure
if he is planning to write the JNI side or not.  I also don't know how
much work that would be.

Aaron> 3. Random Classes
Aaron> -----------------
Aaron> DataOutputStream
Aaron> LineNumberReader
Aaron> PrintStream

Aaron> For #3, I'm a bit confused.  Does anyone have any background on
Aaron> why these classes aren't merged?  I poked around the source
Aaron> code, and it does not appear obvious.  Are the Classpath
Aaron> versions seriously broken or something?

I remember looking at this a long time ago.

In Classpath, methods in DataOutputStream are used by
RandomAccessFile.  So this puts DataOutputStream effectively into
category 1.  Also the Classpath implementation allocates in many of
the write methods, which we preferred to avoid in libgcj (especially
when I wrote this code, way back when).

For PrintStream it looks like there were conflicting goals.  From
libgcj:

  /* Notice the implementation is quite similar to OutputStreamWriter.
   * This leads to some minor duplication, because neither inherits
   * from the other, and we want to maximize performance. */

>From Classpath:

 * Ok, why is this class deprecated?  It could easily have been extended
 * to support character encodings.  In fact, PrintWriter is basically a
 * superset of this except for the write() methods.  So let's do something
 * tricky here and just redirect calls in this class to a hidden PrintWriter
 * instance.  All the functionality goes there since that is the 'real'
 * class.  The big win of doing this way is that the default character 
 * encoding is done automagicially by the PrintWriter tree!

Also, the libgcj PrintStream knows about charset conversion, so it is
effectively in category 2.

LineNumberReader I don't know.  I think I just never found the
motivation to compare the two implementations.  They are very
different, so a lot of testing would probably be in order.

Tom



From MAILER-DAEMON Thu Feb 27 13:59:15 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oSzx-0008MK-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 13:43:13 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oSzu-0008Kc-00
	for classpath@gnu.org; Thu, 27 Feb 2003 13:43:10 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oSwM-0007Gq-00
	for classpath@gnu.org; Thu, 27 Feb 2003 13:39:31 -0500
Received: from pop2a.ripco.com ([209.100.227.25])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oSuR-0005cx-00
	for classpath@gnu.org; Thu, 27 Feb 2003 13:37:32 -0500
Received: (from arenn@localhost)
	by pop2a.ripco.com (8.11.0/8.11.0) id h1RIbg216257
	for classpath@gnu.org; Thu, 27 Feb 2003 12:37:42 -0600 (CST)
Date: Thu, 27 Feb 2003 12:37:42 -0600
From: "Aaron M. Renn" <arenn@urbanophile.com>
To: classpath@gnu.org
Message-ID: <20030227183741.GB14675@urbanophile.com>
Mail-Followup-To: "Aaron M. Renn" <arenn@urbanophile.com>,
	classpath@gnu.org
References: <20030227031901.GA7122@urbanophile.com>
	<87y941zjax.fsf@fleche.redhat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87y941zjax.fsf@fleche.redhat.com>
User-Agent: Mutt/1.4i
Organization: GNU's Not Unix!
Subject: Re: Classpath / GCJ java.io Merge
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 18:43:12 -0000

Tom Tromey (tromey@redhat.com) wrote:
> Aaron> For #1, I have no idea what has been decided regarding native code.
> Aaron> Last I checked, we still had a JNI/CNI deadlock going on.
> 
> I'm resigned to the fact that we'll need dual implementations of
> certain native code.  The Gtk AWT peers I imported into libgcj as-is,
> using JNI, but that is a special case.
> 
> This does hamper merging since it is a lot of effort to rewrite the
> JNI code.  I've never had time, or really much motivation.
> I think there's also some question of which approach is preferable.

One problem is that it is not just the native methods that are different.
I think it would be relatively easy to write a CNI and a JNI version of
the code as there is not a huge amount of native code to write for
IO and networking.  The problem is that the entire implementation strategy
of the classes is different.  For example, gcj relies heavily on delegating
to OS file access methods in the FileDescriptor class, which Classpath
doesn't use at all.  The challenge would seem to be getting agreement
on what native methods need to be written and what their signatures are.
 
> Aaron> For #2, it seems that the answer is to switch to NIO.  I hear
> Aaron> that the Classpath version is not yet functional however.
> 
> I think Michael just got the gcj version to work.  I think his plan is
> at least to merge all the Java code back to Classpath.  I'm not sure
> if he is planning to write the JNI side or not.  I also don't know how
> much work that would be.

That will have to be addressed, I guess.  I just noticed that there are
shitloads of native methods in this package.  Hopefully except for
falling back on iconv, there aren't a huge number of them for charest
conversion.
 
> In Classpath, methods in DataOutputStream are used by
> RandomAccessFile.  So this puts DataOutputStream effectively into
> category 1.  Also the Classpath implementation allocates in many of
> the write methods, which we preferred to avoid in libgcj (especially
> when I wrote this code, way back when).

Those shared methods can die, IMO.  They don't do much.  The allocation
is an interesting point.  Classpath does it to avoid doing what gcj
does: namely do tons of single byte writes.  This would be hideously
expensive in the JNI world.  Is allocation still a problem?
 
> For PrintStream it looks like there were conflicting goals.  From
> libgcj:

Hmm.  I kinda liked the Classpath approach, assuming it's actually a
valid implementation strategy, because I'm lazy by nature.  

> Also, the libgcj PrintStream knows about charset conversion, so it is
> effectively in category 2.
 
> LineNumberReader I don't know.  I think I just never found the
> motivation to compare the two implementations.  They are very
> different, so a lot of testing would probably be in order.

I'll take a look at this. 

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




From MAILER-DAEMON Thu Feb 27 17:09:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oWBb-00051T-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 17:07:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oWBR-0004dr-00
	for classpath@gnu.org; Thu, 27 Feb 2003 17:07:17 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oWBH-0004QT-00
	for classpath@gnu.org; Thu, 27 Feb 2003 17:07:07 -0500
Received: from pop2a.ripco.com ([209.100.227.25])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oWAw-0003uW-00
	for classpath@gnu.org; Thu, 27 Feb 2003 17:06:46 -0500
Received: (from arenn@localhost)
	by pop2a.ripco.com (8.11.0/8.11.0) id h1RM6vf28457
	for classpath@gnu.org; Thu, 27 Feb 2003 16:06:57 -0600 (CST)
Date: Thu, 27 Feb 2003 16:06:57 -0600
From: "Aaron M. Renn" <arenn@urbanophile.com>
To: classpath@gnu.org
Message-ID: <20030227220656.GA27040@urbanophile.com>
Mail-Followup-To: "Aaron M. Renn" <arenn@urbanophile.com>,
	classpath@gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Organization: GNU's Not Unix!
Subject: The Road to 1.0
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 22:07:25 -0000

The Classpath project has reached a milestone of sorts.  Five years ago
in March 1998, the Classpath project was born when I started work on a 
java.net implementation for the Japhar JVM project.  Shortly thereafter,
Paul Fisher and Brian Jones stopped working on Japhar in order to 
concentrate on writing a class library.  Thus Classpath came into being 
as a separate project with the inauspcious name of "JCL".  

Happy Birthday, Classpath!

I think it is truly amazing how far Classpath has come in that time.
While Paul and I haven't exactly been major contributors over the last
year and a half, other folks have really stepped up to the plate.

I think it is worthwhile to reflect on what we have as of release 0.05:

o A class library that almost fully implements the Java 1.1 spec, and
  which is a long way toward implementing even the most recent 1.4 spec.
  This includes standard extensions!
o Extensive API documentation.  Check it out at:
  http://www.gnu.org/software/classpath/docs/api/index_noframes.html
o A great start towards a free Java library test suite in Mauve
o A great set of free replacements for standard Java tools, most
  notably javadoc.
o A number of great developer tools that can benefit people beyond the
  Classpath project - Japitools comes to mind.
o Probably even more great stuff I haven't listed or don't know about.

Given how far we've come, I'm prompted to ask, what is the road
to Classpath release 1.0?  Per Brian's 0.05 pre-release notes, he suggests
incrementing release numbers as is until at least we have a functional
AWT.  (Though let me quickly add that I can get our AWT to do basic
things).

It seems to me that there are a couple of routes we can take:

o Get AWT working right and fix any other major holes in Java 1.1
  support, increment the version to something like 0.9, then start
  debugging towards 1.0

o Stay in development mode indefinitely as future functionality needed
  for higher version support is added.

The original thought was always that we'd target Java 1.1 as our 1.0
release.  However, going into real release mode would make it trickier
to do development because of the implied stability contract with users.

Personally, I'd like to see Classpath reach release 1.0 some time prior
to its 10th birthday :)  Thoughts?

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




From MAILER-DAEMON Thu Feb 27 18:05:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oX4v-000060-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 18:04:37 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oX4p-0008Vy-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:04:31 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oX46-0007zx-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:03:46 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oX3r-0007sU-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:03:31 -0500
Received: from mail5.nc.rr.com (fe5 [24.93.67.52])h1RN23o5014976;
	Thu, 27 Feb 2003 18:02:03 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail5.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Thu, 27 Feb 2003 18:01:22 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 13D868332F; Thu, 27 Feb 2003 18:03:29 -0500 (EST)
Sender: cbj@haphazard.org
To: tromey@redhat.com
References: <20030227031901.GA7122@urbanophile.com>
	<87y941zjax.fsf@fleche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2003 18:03:28 -0500
In-Reply-To: <87y941zjax.fsf@fleche.redhat.com>
Message-ID: <m3of4xs4vz.fsf@lyta.haphazard.org>
Lines: 22
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: "Aaron M. Renn" <arenn@urbanophile.com>
cc: classpath@gnu.org
Subject: Re: Classpath / GCJ java.io Merge
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 23:04:35 -0000

Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Aaron" == Aaron M Renn <arenn@urbanophile.com> writes:
> 
> Aaron> For #1, I have no idea what has been decided regarding native code.
> Aaron> Last I checked, we still had a JNI/CNI deadlock going on.
> 
> I'm resigned to the fact that we'll need dual implementations of
> certain native code.  The Gtk AWT peers I imported into libgcj as-is,
> using JNI, but that is a special case.
> 
> This does hamper merging since it is a lot of effort to rewrite the
> JNI code.  I've never had time, or really much motivation.
> I think there's also some question of which approach is preferable.

I have noticed that for a good deal of CNI code it is quite straight
forward to turn it into C or C++ based JNI instead.  There was a Perl
script that someone purported to do some of this a while ago.  I'm
tempted to play with it a bit.

-- 
Brian Jones <cbj@gnu.org>



From MAILER-DAEMON Thu Feb 27 18:17:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oXGH-0005dm-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 18:16:21 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oXFK-00054G-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:15:22 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oXBC-0003W0-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:11:10 -0500
Received: from ms-smtp-03.southeast.rr.com ([24.93.67.84])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oXAl-00039Y-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:10:39 -0500
Received: from mail3.nc.rr.com (fe3 [24.93.67.50])h1RN9ci6003930;
	Thu, 27 Feb 2003 18:09:38 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail3.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Thu, 27 Feb 2003 18:08:41 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 8C3318332F; Thu, 27 Feb 2003 18:10:38 -0500 (EST)
Sender: cbj@haphazard.org
To: "Aaron M. Renn" <arenn@urbanophile.com>
References: <20030227031901.GA7122@urbanophile.com>
	<87y941zjax.fsf@fleche.redhat.com>
	<20030227183741.GB14675@urbanophile.com>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2003 18:10:38 -0500
In-Reply-To: <20030227183741.GB14675@urbanophile.com>
Message-ID: <m3k7fls4k1.fsf@lyta.haphazard.org>
Lines: 23
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Classpath / GCJ java.io Merge
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 23:16:14 -0000

"Aaron M. Renn" <arenn@urbanophile.com> writes:

> One problem is that it is not just the native methods that are different.
> I think it would be relatively easy to write a CNI and a JNI version of
> the code as there is not a huge amount of native code to write for
> IO and networking.  The problem is that the entire implementation strategy
> of the classes is different.  For example, gcj relies heavily on delegating
> to OS file access methods in the FileDescriptor class, which Classpath
> doesn't use at all.  The challenge would seem to be getting agreement
> on what native methods need to be written and what their signatures are.

Between gcj and classpath there is a difference of opinion on whether
to drop into native code (CNI) at every opportunity or not and I think
it has affected the way some things are handled.  However I think when
designing for JNI you do not hinder library performance using CNI but
the opposite is not true.

I'd like to see our I/O implementation handle 64-bit filesystems and
all the native libs be 64-bit compatible (i.e. no assuming pointers
are ints, file handles are ints, etc.).

-- 
Brian Jones <cbj@gnu.org>



From MAILER-DAEMON Thu Feb 27 18:18:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oXIE-0008BQ-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 18:18:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oXI9-0007xE-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:18:17 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oXHa-0007ME-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:17:48 -0500
Received: from mail-out2.apple.com ([17.254.0.51])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oXHX-0007DH-00; Thu, 27 Feb 2003 18:17:39 -0500
Received: from mailgate2.apple.com (A17-129-100-225.apple.com
	[17.129.100.225])
	by mail-out2.apple.com (8.12.3/8.12.3) with ESMTP id h1RNHcTb019404;
	Thu, 27 Feb 2003 15:17:38 -0800 (PST)
Received: from scv3.apple.com (scv3.apple.com) by mailgate2.apple.com
	<T60ac44ea1b118164e13f8@mailgate2.apple.com>;
	Thu, 27 Feb 2003 15:17:37 -0800
Received: from bothner.com (il0102b-dhcp93.apple.com [17.201.26.143])
	by scv3.apple.com (8.11.3/8.11.3) with ESMTP id h1RNHcf22065;
	Thu, 27 Feb 2003 15:17:38 -0800 (PST)
Message-ID: <3E5E9752.8080605@bothner.com>
Date: Thu, 27 Feb 2003 14:55:14 -0800
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
References: <20030227031901.GA7122@urbanophile.com>
	<87y941zjax.fsf@fleche.redhat.com> <m3of4xs4vz.fsf@lyta.haphazard.org>
In-Reply-To: <m3of4xs4vz.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
cc: classpath@gnu.org
Subject: Re: Classpath / GCJ java.io Merge
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 23:18:20 -0000

Brian Jones wrote:
> I have noticed that for a good deal of CNI code it is quite straight
> forward to turn it into C or C++ based JNI instead.  There was a Perl
> script that someone purported to do some of this a while ago.  I'm
> tempted to play with it a bit.

That would be great, but surprising.  I would think you'd need
a fair bit of analysis to convert CNI to JNI.

If we could maintain native methods in readable CNI, possibly
with some annotations/conventions to ease the script's job,
and generate JNI automatically from that, it might solve
much of the CNI vs JNI problems.  For the hard bits, we could
use #ifdef CNI sections.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/




From MAILER-DAEMON Thu Feb 27 18:27:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oXOV-0005Mj-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 18:24:51 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oXOA-0004xD-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:24:30 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oXO8-0004vR-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:24:29 -0500
Received: from ms-smtp-03.southeast.rr.com ([24.93.67.84])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oXMq-00048Y-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:23:08 -0500
Received: from mail3.nc.rr.com (fe3 [24.93.67.50])h1RNM6i8017701;
	Thu, 27 Feb 2003 18:22:06 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail3.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Thu, 27 Feb 2003 18:21:10 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 8A1638332F; Thu, 27 Feb 2003 18:23:06 -0500 (EST)
Sender: cbj@haphazard.org
To: "Jeroen Frijters" <jeroen@sumatra.nl>
References: <5C38B761F205B54BA59FF611A65C6248011896@lembu.sumatrasoftware.com>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2003 18:23:06 -0500
In-Reply-To: <5C38B761F205B54BA59FF611A65C6248011896@lembu.sumatrasoftware.com>
Message-ID: <m3fzq9s3z9.fsf@lyta.haphazard.org>
Lines: 17
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Math patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 23:24:48 -0000

"Jeroen Frijters" <jeroen@sumatra.nl> writes:

> Hi,
> 
> Attached is a small patch to java.lang.Math to make round(float) and
> round(double) do the right thing for NaN.
> 
> Style wise, is it a good idea to use "a != a" to test for NaN, or should
> Double.isNaN() be used?

I went ahead and converted all the a != a to Double.isNaN or
Float.isNaN as appropriate.  As mentioned previously a good JIT should
optimize this... maybe even a good byte-code compiler. 

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



From MAILER-DAEMON Thu Feb 27 18:39:41 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oXa6-0006Nr-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 18:36:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oXa1-00065n-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:36:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oXZv-0005mI-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:36:40 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oXZa-0004lR-00; Thu, 27 Feb 2003 18:36:18 -0500
Received: from fleche.redhat.com (te0194.peakpeak.com [204.144.238.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id QAA00728;
	Thu, 27 Feb 2003 16:36:15 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 9CD024F8613; Thu, 27 Feb 2003 16:27:23 -0700 (MST)
To: Brian Jones <cbj@gnu.org>
References: <5C38B761F205B54BA59FF611A65C6248011896@lembu.sumatrasoftware.com>
	<m3fzq9s3z9.fsf@lyta.haphazard.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I'm having fun HITCHHIKING to CINCINNATI or FAR ROCKAWAY!!
Date: 27 Feb 2003 16:27:23 -0700
In-Reply-To: <m3fzq9s3z9.fsf@lyta.haphazard.org>
Message-ID: <87lm01wbhg.fsf@fleche.redhat.com>
Lines: 17
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Jeroen Frijters <jeroen@sumatra.nl>
cc: classpath@gnu.org
Subject: Re: Math patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 23:36:48 -0000

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

Brian> I went ahead and converted all the a != a to Double.isNaN or
Brian> Float.isNaN as appropriate.  As mentioned previously a good JIT should
Brian> optimize this... maybe even a good byte-code compiler. 

I think a byte compiler can't inline any call to another class.  That
would violate Java binary compatibility rules.

Unfortunately gcj can't inline this call either, yet.  And with gcj, a
static method call involves a class initialization check.  So this is
hugely slower for us.

Time to add another builtin.  I'll put it on my to-do list.  Hopefully
this will be the last time this particular thing comes up :-).

Tom



From MAILER-DAEMON Thu Feb 27 18:41:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oXeF-0001pD-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 18:41:07 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oXeC-0001k1-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:41:04 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oXe9-0001aj-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:41:02 -0500
Received: from mail-out2.apple.com ([17.254.0.51])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oXe8-0001Xn-00; Thu, 27 Feb 2003 18:41:00 -0500
Received: from mailgate2.apple.com (A17-129-100-225.apple.com
	[17.129.100.225])
	by mail-out2.apple.com (8.12.3/8.12.3) with ESMTP id h1RNf0Tb026526;
	Thu, 27 Feb 2003 15:41:00 -0800 (PST)
Received: from scv3.apple.com (scv3.apple.com) by mailgate2.apple.com
	<T60ac5a4e4d118164e13f8@mailgate2.apple.com>;
	Thu, 27 Feb 2003 15:40:59 -0800
Received: from bothner.com (il0102b-dhcp93.apple.com [17.201.26.143])
	by scv3.apple.com (8.11.3/8.11.3) with ESMTP id h1RNexf08287;
	Thu, 27 Feb 2003 15:40:59 -0800 (PST)
Message-ID: <3E5E9CCB.4080302@bothner.com>
Date: Thu, 27 Feb 2003 15:18:35 -0800
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
References: <20030227031901.GA7122@urbanophile.com>
	<87y941zjax.fsf@fleche.redhat.com>	<20030227183741.GB14675@urbanophile.com>
	<m3k7fls4k1.fsf@lyta.haphazard.org>
In-Reply-To: <m3k7fls4k1.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
cc: classpath@gnu.org
Subject: Re: Classpath / GCJ java.io Merge
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 23:41:05 -0000

Brian Jones wrote:
> I'd like to see our I/O implementation handle 64-bit filesystems and
> all the native libs be 64-bit compatible (i.e. no assuming pointers
> are ints, file handles are ints, etc.).

GCJ uses the "magic" class type gnu.gcj.RawData as essentially
a non-GC'd 'void *' pointer.  This may not be portable to other
VMs directly, but you could have a script convert gnu.gcj.RawData
to int or long, depending on the target word size.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/




From MAILER-DAEMON Thu Feb 27 18:45:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oXhL-0006jM-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 18:44:19 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oXhE-0006Kb-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:44:12 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oXgz-0005Rp-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:43:57 -0500
Received: from ms-smtp-03.southeast.rr.com ([24.93.67.84])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oXgA-0004hz-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:43:06 -0500
Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h1RNg1i8014443;
	Thu, 27 Feb 2003 18:42:02 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail4.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Thu, 27 Feb 2003 18:44:24 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id E8D728332F; Thu, 27 Feb 2003 18:43:01 -0500 (EST)
Sender: cbj@haphazard.org
To: Archie Cobbs <archie@dellroad.org>
References: <200302260025.h1Q0PwgG057446@arch20m.dellroad.org>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2003 18:43:01 -0500
In-Reply-To: <200302260025.h1Q0PwgG057446@arch20m.dellroad.org>
Message-ID: <m3adghs322.fsf@lyta.haphazard.org>
Lines: 43
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Thoughts on 'reference classes'
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 23:44:17 -0000

Archie Cobbs <archie@dellroad.org> writes:

> The tension between these two 'hands' seems to me likely to result
> in a negative effect on the reference code, because you can't easily
> make changes that improve anything. As a result, new JVM implementors
> like me don't get as much value out of the 'reference' code.
> 
> I.e., in my (biased) opinion, ideally the 'reference' classes should
> always reflect the combined wisdom of the Classpath developers'
> about what the best, most correct way is to organize and partition
> the Java code from the native code. If a new way to do something is
> discovered, it should be natural and we should be quick to include
> it in Classpath, even if that changes the Java <-> native API.

How do other JVM developers feel about this sort of thing?  I don't
like to make changes here myself because then I've nothing to use
Classpath with until JVMs adjust!

> What I'd like to suggest is the following (donning flamesuit): the
> goal of the 'reference' code should be explicitly changed so that
> it reflects this 'best guess' at what an 'ideal' set of native
> method classes should look like, and the goal of maintaining support
> for existing JVM's in the 'reference' classes should be dropped.
> In it's place, the existing 'reference' code can be (CVS repository)
> copied into distinct 'vm' subdirectories for each JVM out there
> that currently relies on it. These JVM's can then manage their
> per-JVM classes as they see fit (some may not change anything,
> others may try to migrate toward the 'reference' set).

I think we'd like to not try to maintain 3rd party specific code
within Classpath but rather let the reference code be maintained by
JVM implementors in their own repository.  The first part you suggest
may be okay if other JVM implementors agree.

> Moreover, a second goal for the 'reference' classes should be that it
> is possible for a JVM to be implemented using them without any changes.
> Having methods marked "XXX - Not implemented; this requires native help"
> but not actualy native is neither here nor there.

Okay.

-- 
Brian Jones <cbj@gnu.org>



From MAILER-DAEMON Thu Feb 27 18:57:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oXtm-0000lr-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 18:57:10 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oXtk-0000kK-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:57:08 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oXti-0000ii-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:57:07 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oXti-0000iU-00
	for classpath@gnu.org; Thu, 27 Feb 2003 18:57:06 -0500
Received: from mail5.nc.rr.com (fe5 [24.93.67.52])h1RNtao5024351;
	Thu, 27 Feb 2003 18:55:36 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail5.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Thu, 27 Feb 2003 18:54:55 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 1DF758332F; Thu, 27 Feb 2003 18:57:02 -0500 (EST)
Sender: cbj@haphazard.org
To: "Jeroen Frijters" <jeroen@sumatra.nl>
References: <5C38B761F205B54BA59FF611A65C624801188F@lembu.sumatrasoftware.com>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2003 18:57:02 -0500
In-Reply-To: <5C38B761F205B54BA59FF611A65C624801188F@lembu.sumatrasoftware.com>
Message-ID: <m365r5s2ep.fsf@lyta.haphazard.org>
Lines: 56
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Thoughts on 'reference classes'
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 27 Feb 2003 23:57:09 -0000

"Jeroen Frijters" <jeroen@sumatra.nl> writes:

> Hi,
> 
> I'm a VM implementer too and I have a few comments. One general
> point is that the current GNU Classpath version is 0.05, this
> suggests that it isn't mature yet so I think VM implementers should
> expect that the VM interface isn't yet stable. BTW, personally I
> think that 0.05 is a way too low number for the current state of
> affairs, but maybe I'm just reading too much into the number ;-)

I don't like it either, but we have this long standing thing of making
1.0 a full 1.1 (+++) release.  Aaron's recent email speaks to this
really well.

> Some random points (all IMHO):
> * I don't mind changes to the Classpath <-> VM interface, if they
> improve the situation. I'd love to hear what other VM implementers have
> to say about this, but I agree with Archie sometimes there is too much
> inertia.

Some degree of control needs to be exercised over the reference
interface or nothing would ever work with Classpath CVS and JVM
implementors might not enjoy tracking a rapidly moving target.
  
> * The use of native code should be limited. Preferrably to primitive
> operations that cannot be performed from within Java

I agree.  Most JVMs are going to run Java code much faster than
marshaling/unmarshaling to native code and back.

> And finally, here is an example of how some of the requirements can be
> very different: My VM (http://ikvm.net) is built on top of .NET, so I
> want to use the .NET class libraries for I/O, but the current
> java.io.FileDescriptor uses an int as the native handle, while I want
> the use a reference to a .NET stream object.

This is an assumption that isn't even valid under all flavors of UNIX;
think 64 bit file systems for example.  Perhaps Aaron will be able to
tackle this.

> This is why I really like the native methods to live in a VMxxx class,
> because that way I can choose to implement the method inline and still
> retain the ability to keep using the latest Classpath code (except for
> the vm/reference classes) as long as the interface between the xxx and
> VMxxx classes remains stable.

To make it more clear, perhaps things that are "native" that we
provide implementations for should be moved to some other type of
interface scheme such as NativeXXX instead of VMXXX.  Putting these
things in VMXXX makes it terribly unclear what needs to be implemented
by a JVM and what is "optional".  Opinions?

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



From MAILER-DAEMON Thu Feb 27 19:46:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oYcm-0001JP-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 19:43:40 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oYak-0000i0-00
	for classpath@gnu.org; Thu, 27 Feb 2003 19:41:34 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oYaN-0008PJ-00
	for classpath@gnu.org; Thu, 27 Feb 2003 19:41:12 -0500
Received: from pop2a.ripco.com ([209.100.227.25])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oYZv-0007n5-00
	for classpath@gnu.org; Thu, 27 Feb 2003 19:40:43 -0500
Received: (from arenn@localhost)
	by pop2a.ripco.com (8.11.0/8.11.0) id h1S0ewB05385
	for classpath@gnu.org; Thu, 27 Feb 2003 18:40:58 -0600 (CST)
Date: Thu, 27 Feb 2003 18:40:58 -0600
From: "Aaron M. Renn" <arenn@urbanophile.com>
To: classpath@gnu.org
Message-ID: <20030228004058.GA5287@urbanophile.com>
Mail-Followup-To: "Aaron M. Renn" <arenn@urbanophile.com>,
	classpath@gnu.org
References: <5C38B761F205B54BA59FF611A65C624801188F@lembu.sumatrasoftware.com>
	<m365r5s2ep.fsf@lyta.haphazard.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <m365r5s2ep.fsf@lyta.haphazard.org>
User-Agent: Mutt/1.4i
Organization: GNU's Not Unix!
Subject: Re: Thoughts on 'reference classes'
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 00:43:38 -0000

Brian Jones (cbj@gnu.org) wrote:
> > I'm a VM implementer too and I have a few comments. One general
> > point is that the current GNU Classpath version is 0.05, this
> > suggests that it isn't mature yet so I think VM implementers should
> > expect that the VM interface isn't yet stable. BTW, personally I
> > think that 0.05 is a way too low number for the current state of
> > affairs, but maybe I'm just reading too much into the number ;-)
> 
> I don't like it either, but we have this long standing thing of making
> 1.0 a full 1.1 (+++) release.  Aaron's recent email speaks to this
> really well.

If we are going to go forward with 1.0 being a Java 1.1 complete
version, then two things I'd add to the list to get done before heading
that direction:

o Solidify the JVM interface.  If we are going to fundamentally rethink
  it, the sooner the better.

o Figure out the JNI/CNI situation and merge the native backends with gcj.

I don't think we'd be well served to be making these sorts of major
re-architectings in a post-1.0 world.  Esp. those that we know we have
to do (the VM interface might not fall in this space).

> > And finally, here is an example of how some of the requirements can be
> > very different: My VM (http://ikvm.net) is built on top of .NET, so I
> > want to use the .NET class libraries for I/O, but the current
> > java.io.FileDescriptor uses an int as the native handle, while I want
> > the use a reference to a .NET stream object.
> 
> This is an assumption that isn't even valid under all flavors of UNIX;
> think 64 bit file systems for example.  Perhaps Aaron will be able to
> tackle this.

This is something that should definitely be done as part of the CNI/JNI
merger.
 
-- 
Aaron M. Renn (arenn@urbanophile.com) http://www.urbanophile.com/arenn/




From MAILER-DAEMON Thu Feb 27 19:58:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oYqQ-0007ca-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 19:57:46 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oYpy-0007IB-00
	for classpath@gnu.org; Thu, 27 Feb 2003 19:57:18 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oYou-0006pF-00
	for classpath@gnu.org; Thu, 27 Feb 2003 19:56:12 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oYnx-0006iC-00; Thu, 27 Feb 2003 19:55:13 -0500
Received: from fleche.redhat.com (te0194.peakpeak.com [204.144.238.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id RAA26920;
	Thu, 27 Feb 2003 17:55:12 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id EBFA14F8610; Thu, 27 Feb 2003 17:47:53 -0700 (MST)
To: Brian Jones <cbj@gnu.org>
References: <5C38B761F205B54BA59FF611A65C624801188F@lembu.sumatrasoftware.com>
	<m365r5s2ep.fsf@lyta.haphazard.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I fill MY industrial waste containers with old copies
 of the ``WATCHTOWER'' and then add HAWAIIAN PUNCH to
 the top..  They look NICE in the yard--
Date: 27 Feb 2003 17:47:53 -0700
In-Reply-To: <m365r5s2ep.fsf@lyta.haphazard.org>
Message-ID: <874r6pw7ra.fsf@fleche.redhat.com>
Lines: 15
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Jeroen Frijters <jeroen@sumatra.nl>
cc: classpath@gnu.org
Subject: Re: Thoughts on 'reference classes'
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 00:57:45 -0000

Jeroen> My VM (http://ikvm.net) is built on top of .NET, so I
Jeroen> want to use the .NET class libraries for I/O, but the current
Jeroen> java.io.FileDescriptor uses an int as the native handle, while I want
Jeroen> the use a reference to a .NET stream object.

Brian> This is an assumption that isn't even valid under all flavors
Brian> of UNIX; think 64 bit file systems for example.

In libgcj we're using `int' in FileDescriptor.  I don't think we have
cross-platform problems.  However, it wouldn't hurt to change this to
`long'.  I know this has come up before with libgcj, but I don't
remember why we never made a change -- probably because on Windows,
sizeof(int)==sizeof(void*).

Tom



From MAILER-DAEMON Thu Feb 27 20:00:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oYsi-0001RK-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 20:00:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oYsZ-00014Z-00
	for classpath@gnu.org; Thu, 27 Feb 2003 19:59:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oYr4-00083z-00
	for classpath@gnu.org; Thu, 27 Feb 2003 19:58:28 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oYqM-0007WL-00
	for classpath@gnu.org; Thu, 27 Feb 2003 19:57:42 -0500
Received: from fleche.redhat.com (te0194.peakpeak.com [204.144.238.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id RAA27457;
	Thu, 27 Feb 2003 17:57:41 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id F2D764F8610; Thu, 27 Feb 2003 17:50:22 -0700 (MST)
To: "Aaron M. Renn" <arenn@urbanophile.com>
References: <5C38B761F205B54BA59FF611A65C624801188F@lembu.sumatrasoftware.com>
	<m365r5s2ep.fsf@lyta.haphazard.org>
	<20030228004058.GA5287@urbanophile.com>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: Now I'm telling MISS PIGGY about MONEY MARKET FUNDS!
Date: 27 Feb 2003 17:50:22 -0700
In-Reply-To: <20030228004058.GA5287@urbanophile.com>
Message-ID: <87znohut2p.fsf@fleche.redhat.com>
Lines: 18
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Thoughts on 'reference classes'
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 01:00:06 -0000

>>>>> "Aaron" == Aaron M Renn <arenn@urbanophile.com> writes:

Aaron> o Solidify the JVM interface.  If we are going to fundamentally
Aaron> rethink it, the sooner the better.

I think this is important for a 1.0 release.  It seems like we're all
agreed on this.

Aaron> o Figure out the JNI/CNI situation and merge the native
Aaron> backends with gcj.

I don't think we should let this hold up Classpath 1.0.  libgcj will
probably continue to have some divergences with Classpath for quite
some time.  The CNI thing is just part of it.  In other places we have
divergences for performance reasons (see ResourceBundle) or due to how
our VM is implemented (see Reference).

Tom



From MAILER-DAEMON Thu Feb 27 20:18:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oZAU-0002d5-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 20:18:30 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oZ7L-0001V3-00
	for classpath@gnu.org; Thu, 27 Feb 2003 20:15:15 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oZ6t-00018d-00
	for classpath@gnu.org; Thu, 27 Feb 2003 20:14:48 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oZ6s-00017h-00
	for classpath@gnu.org; Thu, 27 Feb 2003 20:14:46 -0500
Received: from fleche.redhat.com (te0194.peakpeak.com [204.144.238.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id SAA31188;
	Thu, 27 Feb 2003 18:14:45 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 354534F8610; Thu, 27 Feb 2003 18:07:27 -0700 (MST)
To: "Aaron M. Renn" <arenn@urbanophile.com>
References: <20030227220656.GA27040@urbanophile.com>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I'm dressing up in an ill-fitting IVY-LEAGUE SUIT!!  Too late...
Date: 27 Feb 2003 18:07:27 -0700
In-Reply-To: <20030227220656.GA27040@urbanophile.com>
Message-ID: <87r89tusa8.fsf@fleche.redhat.com>
Lines: 48
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: The Road to 1.0
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 01:18:28 -0000

>>>>> "Aaron" == Aaron M Renn <arenn@urbanophile.com> writes:

Aaron> I think it is truly amazing how far Classpath has come in that time.
Aaron> While Paul and I haven't exactly been major contributors over the last
Aaron> year and a half, other folks have really stepped up to the plate.

If the originators can take an extended leave, and the project
continues, then you know it is successful.  Congratulations -- you've
managed to do something that is difficult and rare.

Aaron> o Get AWT working right and fix any other major holes in Java 1.1
Aaron>   support, increment the version to something like 0.9, then start
Aaron>   debugging towards 1.0

Outside of AWT, I suspect there won't be too much debugging to do.
We've actually done a substantial amount of that, since people are
already using Classpath for applications.

I took a quick look at classpath-vs-1.1 on the japi page.  We are
really shockingly close; all those green bars are delightful.  The
real question is how many of the comparison reports are there for
compliance against some later JDK.  We'd have to tweak japi to do a
3-way diff to find out, I guess.

AWT really needs a lot of love.  There are parts missing (notably
GridBagLayout -- maybe we can take Acunia's implementation though).
There are known systemic bugs (there are many places that should
acquire the tree lock that don't).  The peers aren't finished, and the
parts that are there need to be ported to the latest Gtk (you can't
even compile against Gtk 2) and are buggy besides.  The bright side is
that enough works to play around with it.

Aaron> The original thought was always that we'd target Java 1.1 as
Aaron> our 1.0 release.  However, going into real release mode would
Aaron> make it trickier to do development because of the implied
Aaron> stability contract with users.

When we get close enough, we can make a release branch with different
rules.  For instance, we can promise VM-level API stability for all
the releases in a given sequence (1.0, 1.1, 1.2, etc).

I'd rather not ever shut down the trunk.  There's no telling when
someone will implement a package.  For instance, Michael Koch has been
doing a lot of libgcj work lately.  Having a separate release branch
means we can still accept his patches at a pretty high rate; the less
certain of these can be put on the trunk only.

Tom



From MAILER-DAEMON Thu Feb 27 21:18:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oa69-0001MT-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 21:18:05 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oa5w-0000e0-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:17:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oa5h-0000AZ-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:17:40 -0500
Received: from adsl-63-194-81-26.dsl.snfc21.pacbell.net ([63.194.81.26]
	helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18oa3E-00075e-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:15:04 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id SAA21402
	for <classpath@gnu.org>; Thu, 27 Feb 2003 18:04:23 -0800 (PST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id h1S232jM065597
	for <classpath@gnu.org>; Thu, 27 Feb 2003 18:03:02 -0800 (PST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id h1S231we065596
	for classpath@gnu.org; Thu, 27 Feb 2003 18:03:01 -0800 (PST)
	(envelope-from archie)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200302280203.h1S231we065596@arch20m.dellroad.org>
To: classpath@gnu.org
Date: Thu, 27 Feb 2003 18:03:01 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Subject: Method.equals() question
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 02:18:02 -0000

Hi,

In classpath-0.05, Method.equals() is described this way:

  /**
   * Compare two objects to see if they are semantically equivalent.
   * Two Methods are semantically equivalent if they have the same declaring
   * class, name, and parameter list.  This ignores different exception
   * clauses or return types.
   *
   * @param o the object to compare to
   * @return <code>true</code> if they are equal; <code>false</code> if not
   */
  public boolean equals(Object o)
  {
    ....
  }

Howver, this contradicts the JDK 1.4 docs, which say that the method's
return type must also be equal:

    http://java.sun.com/j2se/1.4/docs/api/java/lang/reflect/Method.html#equals(java.lang.Object)

Is this a classpath bug?

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Precision I/O      *     http://www.precisionio.com



From MAILER-DAEMON Thu Feb 27 21:29:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oaH4-0007SW-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 21:29:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oaGp-0006g3-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:29:07 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oaGV-0005ZS-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:28:54 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oaGQ-0005CH-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:28:42 -0500
Received: from fleche.redhat.com (te0194.peakpeak.com [204.144.238.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id TAA12665;
	Thu, 27 Feb 2003 19:28:28 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 62C594F8610; Thu, 27 Feb 2003 19:21:11 -0700 (MST)
To: Archie Cobbs <archie@dellroad.org>
References: <200302280203.h1S231we065596@arch20m.dellroad.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: A KAISER ROLL?!  What good is a Kaiser Roll without a little
 COLE SLAW on the SIDE?
Date: 27 Feb 2003 19:21:11 -0700
In-Reply-To: <200302280203.h1S231we065596@arch20m.dellroad.org>
Message-ID: <87heapuovc.fsf@fleche.redhat.com>
Lines: 16
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Method.equals() question
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 02:29:20 -0000

>>>>> "Archie" == Archie Cobbs <archie@dellroad.org> writes:

Archie> Howver, this contradicts the JDK 1.4 docs, which say that the
Archie> method's return type must also be equal:

Archie> Is this a classpath bug?

Yes.  Care to submit a patch?

Maybe this changed from 1.3 to 1.4.  I know a lot of changes like this
are happening in preparation for the addition of generics.

Could you see if this did change from 1.3?  If so we can add an
@specnote to explain the change.

Tom



From MAILER-DAEMON Thu Feb 27 21:36:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oaNP-0008BQ-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 21:35:55 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oaN7-0007kG-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:35:37 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oaMr-0007Ft-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:35:21 -0500
Received: from ms-smtp-03.southeast.rr.com ([24.93.67.84])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oaMa-00079E-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:35:04 -0500
Received: from mail3.nc.rr.com (fe3 [24.93.67.50])h1S2Y3i6028936;
	Thu, 27 Feb 2003 21:34:03 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail3.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Thu, 27 Feb 2003 21:33:06 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 20D718332F; Thu, 27 Feb 2003 21:35:03 -0500 (EST)
Sender: cbj@haphazard.org
To: tromey@redhat.com
References: <5C38B761F205B54BA59FF611A65C624801188F@lembu.sumatrasoftware.com>
	<m365r5s2ep.fsf@lyta.haphazard.org> <874r6pw7ra.fsf@fleche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2003 21:35:03 -0500
In-Reply-To: <874r6pw7ra.fsf@fleche.redhat.com>
Message-ID: <m3smu9qgiw.fsf@lyta.haphazard.org>
Lines: 22
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Jeroen Frijters <jeroen@sumatra.nl>
cc: classpath@gnu.org
Subject: Re: Thoughts on 'reference classes'
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 02:35:52 -0000

Tom Tromey <tromey@redhat.com> writes:

> Jeroen> My VM (http://ikvm.net) is built on top of .NET, so I
> Jeroen> want to use the .NET class libraries for I/O, but the current
> Jeroen> java.io.FileDescriptor uses an int as the native handle, while I want
> Jeroen> the use a reference to a .NET stream object.
> 
> Brian> This is an assumption that isn't even valid under all flavors
> Brian> of UNIX; think 64 bit file systems for example.
> 
> In libgcj we're using `int' in FileDescriptor.  I don't think we have
> cross-platform problems.  However, it wouldn't hurt to change this to
> `long'.  I know this has come up before with libgcj, but I don't
> remember why we never made a change -- probably because on Windows,
> sizeof(int)==sizeof(void*).

Windows POSIX API has both 'int' and 'long' versions of the file I/O
functions or I should say 32bit vs 64bit.  

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



From MAILER-DAEMON Thu Feb 27 21:52:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oadZ-0007Q3-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 21:52:37 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oad7-00076F-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:52:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oad3-00071w-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:52:06 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oacm-0006N0-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:51:48 -0500
Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h1S2oIo7011949
	for <classpath@gnu.org>; Thu, 27 Feb 2003 21:50:19 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail4.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Thu, 27 Feb 2003 21:53:06 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 69B6A8332F; Thu, 27 Feb 2003 21:51:44 -0500 (EST)
Sender: cbj@haphazard.org
To: GNU Classpath <classpath@gnu.org>
References: <20030227220656.GA27040@urbanophile.com>
	<87r89tusa8.fsf@fleche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2003 21:51:44 -0500
In-Reply-To: <87r89tusa8.fsf@fleche.redhat.com>
Message-ID: <m3of4xqfr3.fsf@lyta.haphazard.org>
Lines: 54
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Re: The Road to 1.0
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 02:52:33 -0000

Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Aaron" == Aaron M Renn <arenn@urbanophile.com> writes:
> 
> Aaron> I think it is truly amazing how far Classpath has come in that time.
> Aaron> While Paul and I haven't exactly been major contributors over the last
> Aaron> year and a half, other folks have really stepped up to the plate.
> 
> If the originators can take an extended leave, and the project
> continues, then you know it is successful.  Congratulations -- you've
> managed to do something that is difficult and rare.

Just a small point, it's been 3 years Aaron!  If you're like me you're
wondering where all that time went and marveling at how fast time does
go by.  This bit from the JBoss website is appropriate...

"But remember, the better you are, the faster you will burn out. You
will burn out. We all do. And like that, ffff, you will be
gone. That's ok, 30% of our development is done on a "wham bam" basis,
come in do stuff, leave, we will remember you stranger now that you
are riding in the sunset. We never hear about you again. That's quite
alright (it is), if you want to play long run, pace yourself, do
something relaxing, take a break, smoke a doobie, just look at a
brighter day, heck! get out! leave your room!. Then stare back at the
furnace. Come back 2 month later and do stuff again. "

Quoted from http://www.jboss.org/developers/join.jsp.

> Outside of AWT, I suspect there won't be too much debugging to do.
> We've actually done a substantial amount of that, since people are
> already using Classpath for applications.

I'm not so optimistic.

> AWT really needs a lot of love.  There are parts missing (notably
> GridBagLayout -- maybe we can take Acunia's implementation though).
> There are known systemic bugs (there are many places that should
> acquire the tree lock that don't).  The peers aren't finished, and the
> parts that are there need to be ported to the latest Gtk (you can't
> even compile against Gtk 2) and are buggy besides.  The bright side is
> that enough works to play around with it.

Yes, I really want to work on the peers and AWT this year and the more
the merrier.

> When we get close enough, we can make a release branch with different
> rules.  For instance, we can promise VM-level API stability for all
> the releases in a given sequence (1.0, 1.1, 1.2, etc).

Yes, we will adopt a more complicated branch scheme just as gcj does
for releases that no longer qualify as "alpha" releases.

-- 
Brian Jones <cbj@gnu.org>



From MAILER-DAEMON Thu Feb 27 21:55:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oafC-00017r-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 21:54:18 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oaf2-0000fp-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:54:08 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oaew-0000O2-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:54:03 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oaeP-00086A-00; Thu, 27 Feb 2003 21:53:29 -0500
Received: from fleche.redhat.com (te0194.peakpeak.com [204.144.238.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id TAA17013;
	Thu, 27 Feb 2003 19:53:27 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 2E4A94F8610; Thu, 27 Feb 2003 19:46:07 -0700 (MST)
To: Brian Jones <cbj@gnu.org>
References: <5C38B761F205B54BA59FF611A65C624801188F@lembu.sumatrasoftware.com>
	<m365r5s2ep.fsf@lyta.haphazard.org> <874r6pw7ra.fsf@fleche.redhat.com>
	<m3smu9qgiw.fsf@lyta.haphazard.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I brought my BOWLING BALL - and some DRUGS!!
Date: 27 Feb 2003 19:46:07 -0700
In-Reply-To: <m3smu9qgiw.fsf@lyta.haphazard.org>
Message-ID: <87adghunps.fsf@fleche.redhat.com>
Lines: 15
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Jeroen Frijters <jeroen@sumatra.nl>
cc: classpath@gnu.org
Subject: Re: Thoughts on 'reference classes'
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 02:54:16 -0000

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

Brian> Windows POSIX API has both 'int' and 'long' versions of the
Brian> file I/O functions or I should say 32bit vs 64bit.

I think we were just talking about the file descriptor representation.
In Windows I think this is a pointer.

The libgcj FileDescriptor is already set up to allow 64-bit file
contents.  The various methods use `long' arguments for lengths of
things, e.g.:

  native void setLength (long pos) throws IOException;

Tom



From MAILER-DAEMON Thu Feb 27 21:56:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oagk-0002Ne-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 21:55:54 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oagb-0002H3-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:55:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oagN-00028x-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:55:31 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oafg-0001yh-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:54:48 -0500
Received: from mail5.nc.rr.com (fe5 [24.93.67.52])h1S2rLo5016117;
	Thu, 27 Feb 2003 21:53:21 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail5.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Thu, 27 Feb 2003 21:52:40 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 553698332F; Thu, 27 Feb 2003 21:54:42 -0500 (EST)
Sender: cbj@haphazard.org
To: tromey@redhat.com
References: <5C38B761F205B54BA59FF611A65C6248011896@lembu.sumatrasoftware.com>
	<m3fzq9s3z9.fsf@lyta.haphazard.org> <87lm01wbhg.fsf@fleche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2003 21:54:42 -0500
In-Reply-To: <87lm01wbhg.fsf@fleche.redhat.com>
Message-ID: <m3fzq9qfm5.fsf@lyta.haphazard.org>
Lines: 24
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Jeroen Frijters <jeroen@sumatra.nl>
cc: classpath@gnu.org
Subject: Re: Math patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 02:55:48 -0000

Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Brian" == Brian Jones <cbj@gnu.org> writes:
> 
> Brian> I went ahead and converted all the a != a to Double.isNaN or
> Brian> Float.isNaN as appropriate.  As mentioned previously a good JIT should
> Brian> optimize this... maybe even a good byte-code compiler. 
> 
> I think a byte compiler can't inline any call to another class.  That
> would violate Java binary compatibility rules.
> 
> Unfortunately gcj can't inline this call either, yet.  And with gcj, a
> static method call involves a class initialization check.  So this is
> hugely slower for us.
> 
> Time to add another builtin.  I'll put it on my to-do list.  Hopefully
> this will be the last time this particular thing comes up :-).

If I need to change it back let me know.  I didn't follow the
"builtin" bit.

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



From MAILER-DAEMON Thu Feb 27 21:57:12 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oahG-0002i8-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 21:56:26 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oags-0002Vl-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:56:02 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oagV-0002D4-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:55:40 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oafm-0001yk-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:54:54 -0500
Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h1S2qZoN015164;
	Thu, 27 Feb 2003 21:53:26 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail4.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Thu, 27 Feb 2003 21:55:27 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id A24DA8332F; Thu, 27 Feb 2003 21:54:05 -0500 (EST)
Sender: cbj@haphazard.org
To: Archie Cobbs <archie@dellroad.org>
References: <200302280203.h1S231we065596@arch20m.dellroad.org>
From: Brian Jones <cbj@gnu.org>
Date: 27 Feb 2003 21:54:05 -0500
In-Reply-To: <200302280203.h1S231we065596@arch20m.dellroad.org>
Message-ID: <m3k7flqfn6.fsf@lyta.haphazard.org>
Lines: 14
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Method.equals() question
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 02:56:25 -0000

Archie Cobbs <archie@dellroad.org> writes:

> Howver, this contradicts the JDK 1.4 docs, which say that the method's
> return type must also be equal:
> 
>     http://java.sun.com/j2se/1.4/docs/api/java/lang/reflect/Method.html#equals(java.lang.Object)
> 
> Is this a classpath bug?

I looked... I think so.

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



From MAILER-DAEMON Thu Feb 27 21:57:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oaid-0004ct-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 21:57:51 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oaiN-00049n-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:57:35 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oai0-0003Ta-00
	for classpath@gnu.org; Thu, 27 Feb 2003 21:57:13 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oagS-0002A7-00; Thu, 27 Feb 2003 21:55:36 -0500
Received: from fleche.redhat.com (te0194.peakpeak.com [204.144.238.194])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id TAA17388;
	Thu, 27 Feb 2003 19:55:35 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 1BF814F8610; Thu, 27 Feb 2003 19:48:18 -0700 (MST)
To: Brian Jones <cbj@gnu.org>
References: <20030227031901.GA7122@urbanophile.com>
	<87y941zjax.fsf@fleche.redhat.com>
	<20030227183741.GB14675@urbanophile.com>
	<m3k7fls4k1.fsf@lyta.haphazard.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: ..  I want a COLOR T.V. and a VIBRATING BED!!!
Date: 27 Feb 2003 19:48:17 -0700
In-Reply-To: <m3k7fls4k1.fsf@lyta.haphazard.org>
Message-ID: <874r6punm6.fsf@fleche.redhat.com>
Lines: 15
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: "Aaron M. Renn" <arenn@urbanophile.com>
cc: classpath@gnu.org
Subject: Re: Classpath / GCJ java.io Merge
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 02:57:49 -0000

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

Brian> Between gcj and classpath there is a difference of opinion on
Brian> whether to drop into native code (CNI) at every opportunity or
Brian> not and I think it has affected the way some things are
Brian> handled.

There don't seem to be very many places where the goals conflict.
But, yeah, there are some.  We should be better about identifying
these.  We can maintain `gcj local' variants of methods and classes
that are important to us -- as long as they are clearly marked, they
show up nicely on the diff page, and generally don't cause a big
problem for merging.

Tom



From MAILER-DAEMON Thu Feb 27 22:18:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ob2W-0004Uq-00
	for mharc-classpath@gnu.org; Thu, 27 Feb 2003 22:18:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ob2U-0004OK-00
	for classpath@gnu.org; Thu, 27 Feb 2003 22:18:22 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18ob2S-0004J8-00
	for classpath@gnu.org; Thu, 27 Feb 2003 22:18:21 -0500
Received: from piglet.dstc.edu.au ([130.102.176.1])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18ob1x-0003r5-00; Thu, 27 Feb 2003 22:17:49 -0500
Received: from dstc.edu.au (soluble.dstc.edu.au [130.102.176.43])
	by piglet.dstc.edu.au (8.12.3/8.12.3) with ESMTP id h1S3Hb8b005162;
	Fri, 28 Feb 2003 13:17:37 +1000 (EST)
Message-Id: <200302280317.h1S3Hb8b005162@piglet.dstc.edu.au>
X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4
To: Brian Jones <cbj@gnu.org>
In-Reply-To: Message from Brian Jones <cbj@gnu.org> 
   of "27 Feb 2003 18:43:01 EST." <m3adghs322.fsf@lyta.haphazard.org> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 28 Feb 2003 13:17:36 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Virus-Scanned: Message: ok
X-Scanned-By: MIMEDefang 2.9 (www dot roaringpenguin dot com slash mimedefang)
cc: crawley@piglet.dstc.edu.au
cc: classpath@gnu.org
Subject: Re: Thoughts on 'reference classes' 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 03:18:23 -0000

> Archie Cobbs <archie@dellroad.org> writes:
> 
> > The tension between these two 'hands' seems to me likely to result
> > in a negative effect on the reference code, because you can't easily
> > make changes that improve anything. As a result, new JVM implementors
> > like me don't get as much value out of the 'reference' code.
> > 
> > I.e., in my (biased) opinion, ideally the 'reference' classes should
> > always reflect the combined wisdom of the Classpath developers'
> > about what the best, most correct way is to organize and partition
> > the Java code from the native code. If a new way to do something is
> > discovered, it should be natural and we should be quick to include
> > it in Classpath, even if that changes the Java <-> native API.
> 
> How do other JVM developers feel about this sort of thing?  I don't
> like to make changes here myself because then I've nothing to use
> Classpath with until JVMs adjust!

Speaking as the most active Kissme maintainer, and the one on whose
shoulders the work will fall, I'm wary of changes to the reference 
classes and the native APIs they use.  It represents short term /
high priority work ... and I'd prefer to be doing things that make
Kissme more usable.

However, it one way to make things easier for most people would be
if the Classpath CVS was branched each time someone makes a change
(or set of changes) to the reference classes that is likely to
break compatibility with JVMs.  That way, JVM developers can migrate 
at a more leisurely pace.  Obviously, there needs to be a schedule
for merging such branches back into the main tree ... once the
important JVMs have been adapted.

> > What I'd like to suggest is the following (donning flamesuit): the
> > goal of the 'reference' code should be explicitly changed so that
> > it reflects this 'best guess' at what an 'ideal' set of native
> > method classes should look like, and the goal of maintaining support
> > for existing JVM's in the 'reference' classes should be dropped.
> > In it's place, the existing 'reference' code can be (CVS repository)
> > copied into distinct 'vm' subdirectories for each JVM out there
> > that currently relies on it. These JVM's can then manage their
> > per-JVM classes as they see fit (some may not change anything,
> > others may try to migrate toward the 'reference' set).
> 
> I think we'd like to not try to maintain 3rd party specific code
> within Classpath but rather let the reference code be maintained by
> JVM implementors in their own repository.  The first part you suggest
> may be okay if other JVM implementors agree.

We maintain own version of the VM reference classes that need to be
different for Kissme.  They live in the Kissme CVS repository, and
we don't intend to check them into the Classpath CVS repository.  We
handle integration by putting a ZIP file of Kissme specific classes
on the bootstrap classpath, ahead of the Classpath JAR file.

Historically, Kissme's VM classes came from an old version of Classpath
... well before the split between core and vm/ reference classes.  We
probably have too many (unnecessary) Kissme-specific classes, which
means that we don't benefit from some bug fixes made in Classpath.

When you say:

  "and the goal of maintaining support for existing JVM's in 
   the 'reference' classes should be dropped"

... I have to disagree.  I'm prepared to wear some migration cost for
adapting Kissme to changes in the Classpath vm reference classes and
APIs.  However, if the Classpath development process does not take
account of the ongoing support for old JVMs, those will stop working
or the they will get stuck on an old version of Classpath.  [This
happened to Kissme in the past, until we changed the build process
to work against a pristine Classpath checkout.  It has apparently
also happened to the current version of SableVM.]

> > Moreover, a second goal for the 'reference' classes should be that it
> > is possible for a JVM to be implemented using them without any changes.
> > Having methods marked "XXX - Not implemented; this requires native help"
> > but not actualy native is neither here nor there.

This is an interesting goal, but I don't really see the value of it.
After all, it is easy to maintain replacements for a subset of the 
Classpath vm reference classes, provided the APIs aren't changing
all of the time.

I agree with you last sentence, provided that someone can come
up with a reasonable (useable) definition for the native methods in
question.

-- Steve








From MAILER-DAEMON Fri Feb 28 00:01:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ocdh-00050m-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 00:00:53 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ocdT-0004o2-00
	for classpath@gnu.org; Fri, 28 Feb 2003 00:00:39 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18occx-0004Tl-00
	for classpath@gnu.org; Fri, 28 Feb 2003 00:00:07 -0500
Received: from adsl-63-194-81-26.dsl.snfc21.pacbell.net ([63.194.81.26]
	helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18occv-0004Sw-00
	for classpath@gnu.org; Fri, 28 Feb 2003 00:00:05 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id UAA22256;
	Thu, 27 Feb 2003 20:58:04 -0800 (PST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id h1S4ufjM066393;
	Thu, 27 Feb 2003 20:56:41 -0800 (PST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id h1S4ufYk066392;
	Thu, 27 Feb 2003 20:56:41 -0800 (PST)
	(envelope-from archie)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200302280456.h1S4ufYk066392@arch20m.dellroad.org>
In-Reply-To: <87heapuovc.fsf@fleche.redhat.com>
To: tromey@redhat.com
Date: Thu, 27 Feb 2003 20:56:40 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
cc: classpath@gnu.org
Subject: Re: Method.equals() question
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 05:00:51 -0000

Tom Tromey wrote:
> Archie> Howver, this contradicts the JDK 1.4 docs, which say that the
> Archie> method's return type must also be equal:
> 
> Archie> Is this a classpath bug?
> 
> Yes.  Care to submit a patch?

Sure! See below... fortunately this vastly simplifies things :-)

> Maybe this changed from 1.3 to 1.4.  I know a lot of changes like this
> are happening in preparation for the addition of generics.
> 
> Could you see if this did change from 1.3?  If so we can add an
> @specnote to explain the change.

It turns out the comparision has included the return type since JDK 1.2.

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Precision I/O      *     http://www.precisionio.com

--- classpath/classpath-0.05/vm/reference/java/lang/reflect/Method.java	Wed Dec 18 02:28:29 2002
+++ /home/archie/jc/classpath/java/lang/reflect/Method.java	Thu Feb 27 18:04:53 2003
@@ -144,57 +134,14 @@
   /**
    * Compare two objects to see if they are semantically equivalent.
    * Two Methods are semantically equivalent if they have the same declaring
-   * class, name, and parameter list.  This ignores different exception
-   * clauses or return types.
+   * class, name, parameter list, and return type.
    *
    * @param o the object to compare to
    * @return <code>true</code> if they are equal; <code>false</code> if not
    */
   public boolean equals(Object o)
   {
-      // Implementation note:
-      // The following is a correct but possibly slow implementation.
-      //
-      // This class has a private field 'slot' that could be used by
-      // the VM implementation to "link" a particular method to a Class.
-      // In that case equals could be simply implemented as:
-      //
-      // if (o instanceof Method)
-      // {
-      //    Method m = (Method)o;
-      //    return m.declaringClass == this.declaringClass
-      //           && m.slot == this.slot;
-      // }
-      // return false;
-      //
-      // If a VM uses the Method class as their native/internal representation
-      // then just using the following would be optimal:
-      //
-      // return this == o;
-      //
-      if (o == null)
-        return false;
-
-      if (!(o instanceof Method))
-        return false;
-
-      Method m = (Method)o;
-      if(!name.equals(m.name))
-	  return false;
-
-      if(declaringClass != m.declaringClass)
-	  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;
+      return this == o;
   }
 
   /**



From MAILER-DAEMON Fri Feb 28 00:30:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18od63-0006eP-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 00:30:11 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18od60-0006aY-00
	for classpath@gnu.org; Fri, 28 Feb 2003 00:30:08 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18od5y-0006ZA-00
	for classpath@gnu.org; Fri, 28 Feb 2003 00:30:07 -0500
Received: from adsl-63-194-81-26.dsl.snfc21.pacbell.net ([63.194.81.26]
	helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)	id 18od5v-0006Vt-00
	for classpath@gnu.org; Fri, 28 Feb 2003 00:30:04 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id VAA22426
	for <classpath@gnu.org>; Thu, 27 Feb 2003 21:27:42 -0800 (PST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id h1S5QJjM066612
	for <classpath@gnu.org>; Thu, 27 Feb 2003 21:26:19 -0800 (PST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id h1S5QJiJ066611
	for classpath@gnu.org; Thu, 27 Feb 2003 21:26:19 -0800 (PST)
	(envelope-from archie)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200302280526.h1S5QJiJ066611@arch20m.dellroad.org>
To: classpath@gnu.org
Date: Thu, 27 Feb 2003 21:26:19 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Subject: java.lang.Class patches
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 05:30:09 -0000

Below is a subset of my current set of diffs for java.lang.Class.
I'm sending them just for anyone to look at and for consideration
for checking in. I think some of them could be useful for classpath.
I'd be interested to hear what other people think.

Notes about this patch...

  - The 'vmData' field is VM specific, ignore that part.
    A neat idea stolen from SableVM.

  - The Class.initialize() method is from SableVM and I like it
    a lot as it simplifies the work that the JVM has to do for class
    initialization.  Since initialization is a one time thing it's
    less important if things are slower. The integer thread ID might
    need to be generalized to long or byte[] or something.

  - Is the Class.forName() patch correct?? I just uncommented
    the code that was already there but commented out.

  - getComponentType() became native, this is probably VM specific.
    Seems like an obvious and easy native method though.

  - Several of the get*Field*(), get*Method*(), and get*Constructor()
    methods became non-native. This may make them slower (?) but for me
    it's worth it because it saves a lot of work in the VM.

Cheers,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Precision I/O      *     http://www.precisionio.com

--- classpath/classpath-0.05/vm/reference/java/lang/Class.java	Sat Oct 26 11:41:59 2002
+++ /home/archie/jc/classpath/java/lang/Class.java	Thu Feb 27 17:24:32 2003
@@ -42,11 +42,14 @@
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Field;
 import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Member;
 import java.lang.reflect.Method;
 import java.net.URL;
 import java.security.AllPermission;
 import java.security.Permissions;
 import java.security.ProtectionDomain;
+import java.util.ArrayList;
+import java.util.Arrays;
 import gnu.java.lang.ClassHelper;
 
 /*
@@ -103,11 +106,102 @@
   }
 
   /**
+   * Pointer to VM internal class structure.
+   */
+  private final byte[] vmData;
+
+  /**
    * Class is non-instantiable from Java code; only the VM can create
    * instances of this class.
    */
-  private Class()
+  private Class(byte[] vmData)
   {
+    this.vmData = vmData;
+  }
+
+  /*
+   * Class initialization mostly-in-Java copied from SableVM.
+   * The steps below follow the JVM spec, 2nd edition, sec. 2.17.5.
+   */
+  private int initializing_thread;
+  private boolean erroneous_state;
+
+  private native boolean isInitialized();
+  private native void setInitialized();
+  private native void step7();
+  private native void step8();
+
+  private void initialize(int thread) throws InterruptedException
+  {
+    Error error;
+
+    /* 1 */
+    synchronized (this)
+    {
+      /* 2 */
+      while (initializing_thread != 0 && initializing_thread != thread)
+        wait();
+
+      /* 3 */
+      if (initializing_thread == thread)
+        return;
+
+      /* 4 */
+      if (isInitialized())
+        return;
+
+      /* 5 */
+      if (erroneous_state)
+        throw new NoClassDefFoundError();
+
+      /* 6 */
+      initializing_thread = thread;
+    }
+
+    /* 7 */
+    try {
+      step7();
+    }
+    catch(Error e) {
+      synchronized(this) {
+        erroneous_state = true;
+        initializing_thread = 0;
+        notifyAll();
+        throw e;
+      }
+    }
+
+    /* 8 */
+    try {
+      step8();
+
+      /* 9 */
+      synchronized(this) {
+        setInitialized();
+        initializing_thread = 0;
+        notifyAll();
+        return;
+      }
+    }
+
+    /* 10 */
+    catch(Exception e) {
+      try {
+        error = new ExceptionInInitializerError(e);
+      } catch (OutOfMemoryError e2) {
+        error = e2;
+      }
+    } catch(Error e) {
+      error = e;
+    }
+
+    /* 11 */
+    synchronized(this) {
+      erroneous_state = true;
+      initializing_thread = 0;
+      notifyAll();
+      throw error;
+    }
   }
 
   /**
@@ -137,15 +231,11 @@
    * @throws ExceptionInInitializerError if the class loads, but an exception
    *         occurs during initialization
    */
-  //XXX This does not need to be native.
-  public static native Class forName(String name)
-    throws ClassNotFoundException;
-  /*
+  public static Class forName(String name) throws ClassNotFoundException
   {
     return forName(name, true,
                    VMSecurityManager.getClassContext()[1].getClassLoader());
   }
-  */
 
   /**
    * Use the specified classloader to load and link a class. If the loader
@@ -313,7 +403,7 @@
    * void                V
    * array type          [<em>element type</em>
    * class or interface, alone: &lt;dotted name&gt;
-   * class or interface, as element type: L&lt;dotten name&gt;;
+   * class or interface, as element type: L&lt;dotted name&gt;;
    *
    * @return the name of this class
    */
@@ -400,46 +490,7 @@
    * @see Array
    * @since 1.1
    */
-  public Class getComponentType()
-  {
-    if (isArray())
-      try
-        {
-          String name = getName();
-          switch (name.charAt(1))
-            {
-            case 'B':
-              return byte.class;
-            case 'C':
-              return char.class;
-            case 'D':
-              return double.class;
-            case 'F':
-              return float.class;
-            case 'I':
-              return int.class;
-            case 'J':
-              return long.class;
-            case 'S':
-              return short.class;
-            case 'Z':
-              return boolean.class;
-            default:
-              return null;
-            case '[':
-              name = name.substring(1);
-              break;
-            case 'L':
-              name = name.substring(2, name.length() - 1);
-            }
-          return Class.forName(name, false, getClassLoader());
-        }
-      catch(ClassNotFoundException e)
-        {
-          // Shouldn't happen, but ignore it anyway.
-        }
-    return null;
-  }
+  public native Class getComponentType();
 
   /**
    * Get the modifiers of this class.  These can be decoded using Modifier,
@@ -478,6 +529,20 @@
   }
 
   /**
+   * Perform security checks common to all of the methods that
+   * get members of this Class.
+   */
+  private void memberAccessCheck(int which) {
+    SecurityManager sm = System.getSecurityManager();
+    if (sm != null) {
+      sm.checkMemberAccess(this, which);
+      Package pkg = getPackage();
+      if (pkg != null)
+	sm.checkPackageAccess(pkg.getName());
+    }
+  }
+
+  /**
    * If this is a nested or inner class, return the class that declared it.
    * If not, return null.
    *
@@ -498,7 +563,22 @@
    * @throws SecurityException if the security check fails
    * @since 1.1
    */
-  public native Class[] getClasses();
+  public Class[] getClasses() {
+    memberAccessCheck(Member.PUBLIC);
+    return internalGetClasses();
+  }
+
+  /**
+   * Like <code>getClasses()</code> but without the security checks.
+   */
+  private Class[] internalGetClasses() {
+    ArrayList list = new ArrayList();
+    list.add(Arrays.asList(nativeGetDeclaredClasses(true)));
+    Class superClass = getSuperclass();
+    if (superClass != null)
+      list.add(Arrays.asList(superClass.internalGetClasses()));
+    return (Class[])list.toArray(new Class[list.size()]);
+  }
 
   /**
    * Get all the public fields declared in this class or inherited from
@@ -512,7 +592,28 @@
    * @throws SecurityException if the security check fails
    * @since 1.1
    */
-  public native Field[] getFields();
+  public Field[] getFields() {
+    memberAccessCheck(Member.PUBLIC);
+    return internalGetFields();
+  }
+
+  /**
+   * Like <code>getFields()</code> but without the security checks.
+   */
+  private Field[] internalGetFields() {
+    ArrayList list = new ArrayList();
+    list.add(Arrays.asList(nativeGetDeclaredFields(true)));
+    if (isInterface()) {
+      Class[] interfaces = getInterfaces();
+      for (int i = 0; i < interfaces.length; i++)
+	list.add(Arrays.asList(interfaces[i].internalGetFields()));
+    } else {
+      Class superClass = getSuperclass();
+      if (superClass != null)
+	list.add(Arrays.asList(superClass.internalGetFields()));
+    }
+    return (Field[])list.toArray(new Field[list.size()]);
+  }
 
   /**
    * Get all the public methods declared in this class or inherited from
@@ -530,7 +631,25 @@
    * @throws SecurityException if the security check fails
    * @since 1.1
    */
-  public native Method[] getMethods();
+  public Method[] getMethods() {
+    memberAccessCheck(Member.PUBLIC);
+    return internalGetMethods();
+  }
+
+  /**
+   * Like <code>getMethods()</code> but without the security checks.
+   */
+  private Method[] internalGetMethods() {
+    ArrayList list = new ArrayList();
+    list.add(Arrays.asList(nativeGetDeclaredMethods(true)));
+    Class[] interfaces = getInterfaces();
+    for (int i = 0; i < interfaces.length; i++)
+      list.add(Arrays.asList(interfaces[i].internalGetMethods()));
+    Class superClass = getSuperclass();
+    if (superClass != null)
+      list.add(Arrays.asList(superClass.internalGetMethods()));
+    return (Method[])list.toArray(new Method[list.size()]);
+  }
 
   /**
    * Get all the public constructors of this class. This returns an array of
@@ -544,7 +663,10 @@
    * @throws SecurityException if the security check fails
    * @since 1.1
    */
-  public native Constructor[] getConstructors();
+  public Constructor[] getConstructors() {
+    memberAccessCheck(Member.PUBLIC);
+    return nativeGetDeclaredConstructors(true);
+  }
 
   /**
    * Get a public field declared or inherited in this class, where name is
@@ -561,7 +683,26 @@
    * @see #getFields()
    * @since 1.1
    */
-  public native Field getField(String name) throws NoSuchFieldException;
+  public Field getField(String name) throws NoSuchFieldException {
+    memberAccessCheck(Member.PUBLIC);
+    Field[] fields = nativeGetDeclaredFields(true);
+    for (int i = 0; i < fields.length; i++) {
+      Field field = fields[i];
+      if (field.getName().equals(name))
+	return field;
+    }
+    Class[] interfaces = getInterfaces();
+    for (int i = 0; i < interfaces.length; i++) {
+      try {
+	return interfaces[i].getField(name);
+      } catch (NoSuchFieldException e) {
+      }
+    }
+    Class superclass = getSuperclass();
+    if (superclass != null)
+      return superclass.getField(name);
+    throw new NoSuchFieldException();
+  }
 
   /**
    * Get a public method declared or inherited in this class, where name is
@@ -585,8 +726,62 @@
    * @see #getMethods()
    * @since 1.1
    */
-   public native Method getMethod(String name, Class[] args)
-     throws NoSuchMethodException;
+  public Method getMethod(String name, Class[] args)
+	throws NoSuchMethodException {
+    memberAccessCheck(Member.PUBLIC);
+    for (Class c = this; c != null; c = c.getSuperclass()) {
+      Method match = matchMethod(c.nativeGetDeclaredMethods(true), name, args);
+      if (match != null)
+	return match;
+    }
+    throw new NoSuchMethodException();
+  }
+
+  /** 
+   * Find the best matching method in <code>list</code> according to
+   * the definition of ``best matching'' used by <code>getMethod()</code>
+   *
+   * <p>
+   * Returns the method if any, otherwise <code>null</code>.
+   *
+   * @param list List of methods to search
+   * @param name Name of method
+   * @param args Method parameter types
+   * @see #getMethod()
+   */
+  private static Method matchMethod(Method[] list, String name, Class[] args) {
+    Method match = null;
+    for (int i = 0; i < list.length; i++) {
+      Method method = list[i];
+      if (!method.getName().equals(name))
+	continue;
+      if (!matchParameters(args, method.getParameterTypes()))
+	continue;
+      if (match == null
+	  || match.getReturnType().isAssignableFrom(method.getReturnType()))
+	match = method;
+    }
+    return match;
+  }
+
+  /**
+   * Check for an exact match between parameter type lists.
+   * Either list may be <code>null</code> to mean a list of
+   * length zero.
+   */
+  private static boolean matchParameters(Class[] types1, Class[] types2) {
+    if (types1 == null)
+      return types2 == null || types2.length == 0;
+    if (types2 == null)
+      return types1 == null || types1.length == 0;
+    if (types1.length != types2.length)
+      return false;
+    for (int i = 0; i < types1.length; i++) {
+      if (!types1[i].equals(types2[i]))
+	return false;
+    }
+    return true;
+  }
 
   /**
    * Get a public constructor declared in this class. If the constructor takes
@@ -602,8 +797,16 @@
    * @see #getConstructors()
    * @since 1.1
    */
-  public native Constructor getConstructor(Class[] args)
-    throws NoSuchMethodException;
+  public Constructor getConstructor(Class[] args) throws NoSuchMethodException {
+    memberAccessCheck(Member.PUBLIC);
+    Constructor[] constructors = nativeGetDeclaredConstructors(true);
+    for (int i = 0; i < constructors.length; i++) {
+      Constructor constructor = constructors[i];
+      if (matchParameters(args, constructor.getParameterTypes()))
+	return constructor;
+    }
+    throw new NoSuchMethodException();
+  }
 
   /**
    * Get all the declared member classes and interfaces in this class, but
@@ -617,7 +820,17 @@
    * @throws SecurityException if the security check fails
    * @since 1.1
    */
-  public native Class[] getDeclaredClasses();
+  public Class[] getDeclaredClasses() {
+    memberAccessCheck(Member.DECLARED);
+    return nativeGetDeclaredClasses(false);
+  }
+
+  /**
+   * Like <code>getDeclaredClasses()</code> but without the security checks.
+   *
+   * @param pulicOnly Only public classes should be returned
+   */
+  private native Class[] nativeGetDeclaredClasses(boolean pulicOnly);
 
   /**
    * Get all the declared fields in this class, but not those inherited from
@@ -631,7 +844,17 @@
    * @throws SecurityException if the security check fails
    * @since 1.1
    */
-  public native Field[] getDeclaredFields();
+  public Field[] getDeclaredFields() {
+    memberAccessCheck(Member.DECLARED);
+    return nativeGetDeclaredFields(false);
+  }
+
+  /**
+   * Like <code>getDeclaredFields()</code> but without the security checks.
+   *
+   * @param pulicOnly Only public fields should be returned
+   */
+  private native Field[] nativeGetDeclaredFields(boolean pulicOnly);
 
   /**
    * Get all the declared methods in this class, but not those inherited from
@@ -649,7 +872,17 @@
    * @throws SecurityException if the security check fails
    * @since 1.1
    */
-  public native Method[] getDeclaredMethods();
+  public Method[] getDeclaredMethods() {
+    memberAccessCheck(Member.DECLARED);
+    return nativeGetDeclaredMethods(false);
+  }
+
+  /**
+   * Like <code>getDeclaredMethods()</code> but without the security checks.
+   *
+   * @param pulicOnly Only public methods should be returned
+   */
+  private native Method[] nativeGetDeclaredMethods(boolean pulicOnly);
 
   /**
    * Get all the declared constructors of this class. This returns an array of
@@ -663,7 +896,19 @@
    * @throws SecurityException if the security check fails
    * @since 1.1
    */
-  public native Constructor[] getDeclaredConstructors();
+  public Constructor[] getDeclaredConstructors() {
+    memberAccessCheck(Member.DECLARED);
+    return nativeGetDeclaredConstructors(false);
+  }
+
+  /**
+   * Like <code>getDeclaredConstructors()</code> but without
+   * the security checks.
+   *
+   * @param pulicOnly Only public constructors should be returned
+   */
+  private native Constructor[]
+	nativeGetDeclaredConstructors(boolean publicOnly);
 
   /**
    * Get a field declared in this class, where name is its simple name. The
@@ -678,8 +923,15 @@
    * @see #getDeclaredFields()
    * @since 1.1
    */
-  public native Field getDeclaredField(String name)
-    throws NoSuchFieldException;
+  public Field getDeclaredField(String name) throws NoSuchFieldException {
+    memberAccessCheck(Member.DECLARED);
+    Field[] fields = nativeGetDeclaredFields(false);
+    for (int i = 0; i < fields.length; i++) {
+      if (fields[i].getName().equals(name))
+	return fields[i];
+    }
+    throw new NoSuchFieldException();
+  }
 
   /**
    * Get a method declared in this class, where name is its simple name. The
@@ -702,8 +954,14 @@
    * @see #getDeclaredMethods()
    * @since 1.1
    */
-   public native Method getDeclaredMethod(String name, Class[] args)
-     throws NoSuchMethodException;
+   public Method getDeclaredMethod(String name, Class[] args)
+		throws NoSuchMethodException {
+    memberAccessCheck(Member.DECLARED);
+    Method match = matchMethod(nativeGetDeclaredMethods(false), name, args);
+    if (match != null)
+      return match;
+    throw new NoSuchMethodException();
+  }
 
   /**
    * Get a constructor declared in this class. If the constructor takes no
@@ -719,8 +977,17 @@
    * @see #getDeclaredConstructors()
    * @since 1.1
    */
-  public native Constructor getDeclaredConstructor(Class[] args)
-    throws NoSuchMethodException;
+  public Constructor getDeclaredConstructor(Class[] args)
+		throws NoSuchMethodException {
+    memberAccessCheck(Member.DECLARED);
+    Constructor[] constructors = nativeGetDeclaredConstructors(false);
+    for (int i = 0; i < constructors.length; i++) {
+      Constructor constructor = constructors[i];
+      if (matchParameters(args, constructor.getParameterTypes()))
+	return constructor;
+    }
+    throw new NoSuchMethodException();
+  }
 
   /**
    * Get a resource using this class's package using the



From MAILER-DAEMON Fri Feb 28 00:31:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18od6R-000737-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 00:30:35 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18od6D-0006wr-00
	for classpath@gnu.org; Fri, 28 Feb 2003 00:30:21 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18od6B-0006u2-00
	for classpath@gnu.org; Fri, 28 Feb 2003 00:30:20 -0500
Received: from adsl-63-194-81-26.dsl.snfc21.pacbell.net ([63.194.81.26]
	helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18od6A-0006Vt-00; Fri, 28 Feb 2003 00:30:18 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id VAA22347;
	Thu, 27 Feb 2003 21:12:24 -0800 (PST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id h1S5B2jM066496;
	Thu, 27 Feb 2003 21:11:02 -0800 (PST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id h1S5B184066495;
	Thu, 27 Feb 2003 21:11:01 -0800 (PST)
	(envelope-from archie)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200302280511.h1S5B184066495@arch20m.dellroad.org>
In-Reply-To: <200302280317.h1S3Hb8b005162@piglet.dstc.edu.au>
To: Stephen Crawley <crawley@dstc.edu.au>
Date: Thu, 27 Feb 2003 21:11:01 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
cc: crawley@piglet.dstc.edu.au
cc: classpath@gnu.org
cc: Brian Jones <cbj@gnu.org>
Subject: Re: Thoughts on 'reference classes'
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 05:30:33 -0000

Stephen Crawley wrote:
>   "and the goal of maintaining support for existing JVM's in 
>    the 'reference' classes should be dropped"
> 
> ... I have to disagree.  I'm prepared to wear some migration cost for

I guess what I meant by that was that the 'reference' classes should
ultimately become stable (or at least their native methods should).

Once this happens, maintaining support with existing JVM's (that work
with the stable reference classes) will become automatic.

I'm willing to tolerate a "one time" set of major incompatibility
changes if that's what's required to (a) remove JVM-specific hacks that
are not generally useful and (b) achieve a stable, "best common wisdom"
set of classes -- assuming such a thing (b) is possible.

Also, there's no reason the existing set of classes can't also be
kept around. Maybe we should have "vm/reference" and "vm/idealized"
or something.

> > > Moreover, a second goal for the 'reference' classes should be that it
> > > is possible for a JVM to be implemented using them without any changes.
> > > Having methods marked "XXX - Not implemented; this requires native help"
> > > but not actualy native is neither here nor there.
> 
> This is an interesting goal, but I don't really see the value of it.
> After all, it is easy to maintain replacements for a subset of the 
> Classpath vm reference classes, provided the APIs aren't changing
> all of the time.

It's even easier to not maintain replacements :-)

Cheers,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Precision I/O      *     http://www.precisionio.com



From MAILER-DAEMON Fri Feb 28 03:27:06 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ofql-0004Yr-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 03:26:35 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ofqN-0004EJ-00
	for classpath@gnu.org; Fri, 28 Feb 2003 03:26:11 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18ofq5-0003jz-00
	for classpath@gnu.org; Fri, 28 Feb 2003 03:25:56 -0500
Received: from nat.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18ofq2-0003Ym-00
	for classpath@gnu.org; Fri, 28 Feb 2003 03:25:50 -0500
Received: from sophocles.leuven.intern.acunia.com
	(sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id h1S8Pju07459;
	Fri, 28 Feb 2003 09:25:45 +0100
Date: Fri, 28 Feb 2003 08:48:35 +0100 (CET)
From: Chris Gray <chris.gray@acunia.com>
X-X-Sender: gray@sophocles.leuven.intern.acunia.com
To: David P Grove <groved@us.ibm.com>
In-Reply-To: <OF7020322D.213A8CF1-ON85256CDA.0061BFB3-85256CDA.0062059A@us.ibm.com>
Message-ID: <Pine.LNX.4.44.0302280839350.14609-100000@sophocles.leuven.intern.acunia.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
cc: classpath@gnu.org
Subject: Re: Math patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 08:26:33 -0000

On Thu, 27 Feb 2003, David P Grove wrote:

> > [CG]
> > What we really need is
> > #define isNaN(a) ((a) != (a))
> 
> I thought we had this already because the classpath Double.isNaN is defined
> as:
> 
>   /**
>    * Return <code>true</code> if the <code>double</code> has the same
>    * value as <code>NaN</code>, otherwise return <code>false</code>.
>    *
>    * @param v the <code>double</code> to compare
>    * @return whether the argument is <code>NaN</code>.
>    */
>   public static boolean isNaN(double v)
>   {
>     // This works since NaN != NaN is the only reflexive inequality
>     // comparison which returns true.
>     return v != v;
>   }
> 
> So, it seems to me that using isNaN should be preferred as it is clearer
> and will have no runtime cost (any JIT should inline a trivial static
> method like this).

OTOH JIT *is* a runtime cost. In principle the static method could be 
inlined by a static analysis tool, but I don't believe a bytecode compiler 
is allowed to do it - it should leave open the possibility that the code 
will be deployed against a different version of java.lang.Math to that 
against which it was compiled. SFAIK the only legitimate inlining a 
bytecode compiler can do is for static final constants.

That's why one can sometimes get nostalgic for #define. :)

-- 

Chris Gray

VM Architect, ACUNIA





From MAILER-DAEMON Fri Feb 28 03:43:38 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18og6C-0003kE-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 03:42:32 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18og65-0003OS-00
	for classpath@gnu.org; Fri, 28 Feb 2003 03:42:25 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18og5y-00032n-00
	for classpath@gnu.org; Fri, 28 Feb 2003 03:42:19 -0500
Received: from nat.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18og5x-0002tp-00
	for classpath@gnu.org; Fri, 28 Feb 2003 03:42:17 -0500
Received: from sophocles.leuven.intern.acunia.com
	(sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id h1S8gCu08061;
	Fri, 28 Feb 2003 09:42:13 +0100
Date: Fri, 28 Feb 2003 09:05:02 +0100 (CET)
From: Chris Gray <chris.gray@acunia.com>
X-X-Sender: gray@sophocles.leuven.intern.acunia.com
To: "Aaron M. Renn" <arenn@urbanophile.com>
In-Reply-To: <20030227220656.GA27040@urbanophile.com>
Message-ID: <Pine.LNX.4.44.0302280855430.14609-100000@sophocles.leuven.intern.acunia.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
cc: classpath@gnu.org
Subject: Re: The Road to 1.0
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 08:42:31 -0000

On Thu, 27 Feb 2003, Aaron M. Renn wrote:

> The Classpath project has reached a milestone of sorts.  Five years ago
> in March 1998, the Classpath project was born when I started work on a 
> java.net implementation for the Japhar JVM project.  Shortly thereafter,
> Paul Fisher and Brian Jones stopped working on Japhar in order to 
> concentrate on writing a class library.  Thus Classpath came into being 
> as a separate project with the inauspcious name of "JCL".  
> 
> Happy Birthday, Classpath!

Hip hip hurrah!

I've been watching most of the time: I joined the Java world when I 
downloaded Kaffe in mid/late 1998, and joined Acunia in November of that 
year. In that time Classpath has gone from an "interesting idea" to a 
solution I would now recommend to anyone starting an academic or 
commercial VM project. (In fact I did recommend just that to someone on 
comp.lang.java.machine a while ago).

My future is a bit open just now (I'm being "downsized"), but it's likely 
to feature VMs and/or open source. Who knows, I may one day find myself 
contributing to Classpath. :) Until then, many happy returns and copious 
congratulations! 

-- 

Chris Gray

VM Architect, ACUNIA






From MAILER-DAEMON Fri Feb 28 03:51:16 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ogEQ-00013b-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 03:51:02 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ogEI-0000V2-00
	for classpath@gnu.org; Fri, 28 Feb 2003 03:50:54 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18ogE6-0008El-00
	for classpath@gnu.org; Fri, 28 Feb 2003 03:50:48 -0500
Received: from web10010.mail.yahoo.com ([216.136.128.121])
	by monty-python.gnu.org with smtp (Exim 4.10.13)
	id 18ogE4-00082A-00
	for classpath@gnu.org; Fri, 28 Feb 2003 03:50:40 -0500
Message-ID: <20030228085036.31429.qmail@web10010.mail.yahoo.com>
Received: from [139.19.20.91] by web10010.mail.yahoo.com via HTTP;
	Fri, 28 Feb 2003 00:50:36 PST
Date: Fri, 28 Feb 2003 00:50:36 -0800 (PST)
From: Dalibor Topic <robilad@yahoo.com>
To: Chris Gray <chris.gray@acunia.com>, David P Grove <groved@us.ibm.com>
In-Reply-To: <Pine.LNX.4.44.0302280839350.14609-100000@sophocles.leuven.intern.acunia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Math patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 08:51:00 -0000

hi Chris,

--- Chris Gray <chris.gray@acunia.com> wrote:
> On Thu, 27 Feb 2003, David P Grove wrote:
> 
> > > [CG]
> > > What we really need is
> > > #define isNaN(a) ((a) != (a))
> > 
> > I thought we had this already because the
> classpath Double.isNaN is defined
> > as:
> > 
> >   /**
> >    * Return <code>true</code> if the
> <code>double</code> has the same
> >    * value as <code>NaN</code>, otherwise return
> <code>false</code>.
> >    *
> >    * @param v the <code>double</code> to compare
> >    * @return whether the argument is
> <code>NaN</code>.
> >    */
> >   public static boolean isNaN(double v)
> >   {
> >     // This works since NaN != NaN is the only
> reflexive inequality
> >     // comparison which returns true.
> >     return v != v;
> >   }
> > 
> > So, it seems to me that using isNaN should be
> preferred as it is clearer
> > and will have no runtime cost (any JIT should
> inline a trivial static
> > method like this).
> 
> OTOH JIT *is* a runtime cost. In principle the
> static method could be 
> inlined by a static analysis tool, but I don't
> believe a bytecode compiler 
> is allowed to do it - it should leave open the
> possibility that the code 
> will be deployed against a different version of
> java.lang.Math to that 
> against which it was compiled. SFAIK the only
> legitimate inlining a 
> bytecode compiler can do is for static final
> constants.

I doubt even that is safe, as
http://java.sun.com/j2se/1.4/docs/api/java/awt/event/MouseEvent.html#MOUSE_LAST
this field surely changed between the java releases
when they introduced mouse wheel support ;)

In my opinion, the safest place to do constant
inlining is in a class loader, when you know that
which specific implementation you're going to 'link'
to. Method inlining is possible during class loading
as well, but  would probably require a good heuristic
to avoid a huge increase in code size. 

I intend to experiment with that in kaffe, but I'm too
busy merging stuff in to do much development at the
moment ;)

cheers,
dalibor topic

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



From MAILER-DAEMON Fri Feb 28 04:48:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oh7w-0007Tu-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 04:48:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oh7s-0007Gh-00
	for classpath@gnu.org; Fri, 28 Feb 2003 04:48:20 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oh7p-0007Bk-00
	for classpath@gnu.org; Fri, 28 Feb 2003 04:48:18 -0500
Received: from nat.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oh7p-000781-00
	for classpath@gnu.org; Fri, 28 Feb 2003 04:48:17 -0500
Received: from sophocles.leuven.intern.acunia.com
	(sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id h1S9m0u11564;
	Fri, 28 Feb 2003 10:48:00 +0100
Date: Fri, 28 Feb 2003 10:10:50 +0100 (CET)
From: Chris Gray <chris.gray@acunia.com>
X-X-Sender: gray@sophocles.leuven.intern.acunia.com
To: Dalibor Topic <robilad@yahoo.com>
In-Reply-To: <20030228085036.31429.qmail@web10010.mail.yahoo.com>
Message-ID: <Pine.LNX.4.44.0302280956310.14958-100000@sophocles.leuven.intern.acunia.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
cc: classpath@gnu.org
cc: Chris Gray <chris.gray@acunia.com>
cc: David P Grove <groved@us.ibm.com>
Subject: Re: Math patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 09:48:22 -0000

On Fri, 28 Feb 2003, Dalibor Topic wrote:

> hi Chris,
> 
> --- Chris Gray <chris.gray@acunia.com> wrote:
> > [...] SFAIK the only
> > legitimate inlining a 
> > bytecode compiler can do is for static final
> > constants.
> 
> I doubt even that is safe, as
> http://java.sun.com/j2se/1.4/docs/api/java/awt/event/MouseEvent.html#MOUSE_LAST
> this field surely changed between the java releases
> when they introduced mouse wheel support ;)

Nonetheless, javac certainly used to do that, and I'm pretty sure it still 
does. (I could swear that the JLS actually specifies this behaviour, but 
I'm darned if I can find the words now.)  Notoriously this causes 
applications to fail if the library they are run against uses different 
values for the static finals - this used to be a major problem for 
independent implementations, as Sun didn't publish the values they were 
using. It's still a snare for the unwary.
 
> In my opinion, the safest place to do constant 
> inlining is in a class loader, when you know that
> which specific implementation you're going to 'link'
> to. Method inlining is possible during class loading
> as well, but  would probably require a good heuristic
> to avoid a huge increase in code size. 

Yes, that's right: the logical place to do this would be in the phase we 
call "referencing", or maybe a bit later in a verifying/bytecode rewriting 
phase if one exists. In the latter case one could encode the actual value 
directly into the instruction, by-passing the constant pool entirely.

> I intend to experiment with that in kaffe, but I'm too 
> busy merging stuff in to do much development at the
> moment ;)

Know the feeling. ;> It's got me thinking too though - I might at least 
instrument Wonka to find out what the size distribution of static methods 
is. If there are a lot of one-liners or empty(!) methods then there may be 
some low-hanging fruit to be had ...

Cheers

-- 

Chris Gray

VM Architect, ACUNIA





From MAILER-DAEMON Fri Feb 28 05:13:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ohW7-0001re-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 05:13:23 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ohVp-0001f1-00
	for classpath@gnu.org; Fri, 28 Feb 2003 05:13:05 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18ohVk-0001YY-00
	for classpath@gnu.org; Fri, 28 Feb 2003 05:13:01 -0500
Received: from smtp.wp.pl ([212.77.101.161])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18ohTG-0000X4-00
	for classpath@gnu.org; Fri, 28 Feb 2003 05:10:26 -0500
Received: (WP-SMTPD 18684 invoked from network); 28 Feb 2003 10:10:20 -0000
Received: from mizzar.multicon.pl (HELO wp.pl) (abies00@[213.77.83.2])
          (envelope-sender <abies00@wp.pl>)
          by smtp.wp.pl (wp-smtpd) with SMTP
          for <classpath@gnu.org>; 28 Feb 2003 10:10:20 -0000
Message-ID: <3E5F358B.9020204@wp.pl>
Date: Fri, 28 Feb 2003 11:10:19 +0100
From: Artur Biesiadowski <abies00@wp.pl>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.3a) Gecko/20021212
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: GNU Classpath <classpath@gnu.org>
References: <Pine.LNX.4.44.0302280956310.14958-100000@sophocles.leuven.intern.acunia.com>
In-Reply-To: <Pine.LNX.4.44.0302280956310.14958-100000@sophocles.leuven.intern.acunia.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-AntiVirus: skaner antywirusowy poczty Wirtualnej Polski S. A.
X-WP-ChangeAV: 0
Subject: Re: Math patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: abies@pg.gda.pl
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 10:13:21 -0000

Chris Gray wrote:

> Nonetheless, javac certainly used to do that, and I'm pretty sure it still 
> does. (I could swear that the JLS actually specifies this behaviour, but 
> I'm darned if I can find the words now.)  

13.4.8

http://java.sun.com/docs/books/jls/second_edition/html/binaryComp.doc.html#45139

[...]
One reason for requiring inlining of constants is that switch statements 
require constants on each case, and no two such constant values may be 
the same. The compiler checks for duplicate constant values in a switch 
statement at compile time; the class file format does not do symbolic 
linkage of case values
[...]

Instead of doing checks on both compile and then runtime link time 
(check would be really trivial), they have decided to go this broken 
route. Major reason for that is probably speed of interpreter versus 
boolean debug flag - jit could trivially reject dead branch, with 
interpreter it is not so obvious.

Artur




From MAILER-DAEMON Fri Feb 28 05:17:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ohZC-0004Zf-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 05:16:34 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ohYz-0004Oo-00
	for classpath@gnu.org; Fri, 28 Feb 2003 05:16:21 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18ohYs-00048X-00
	for classpath@gnu.org; Fri, 28 Feb 2003 05:16:18 -0500
Received: from web10010.mail.yahoo.com ([216.136.128.121])
	by monty-python.gnu.org with smtp (Exim 4.10.13)
	id 18ohYj-0003v6-00
	for classpath@gnu.org; Fri, 28 Feb 2003 05:16:05 -0500
Message-ID: <20030228101604.37939.qmail@web10010.mail.yahoo.com>
Received: from [139.19.20.91] by web10010.mail.yahoo.com via HTTP;
	Fri, 28 Feb 2003 02:16:04 PST
Date: Fri, 28 Feb 2003 02:16:04 -0800 (PST)
From: Dalibor Topic <robilad@yahoo.com>
To: Chris Gray <chris.gray@acunia.com>
In-Reply-To: <Pine.LNX.4.44.0302280956310.14958-100000@sophocles.leuven.intern.acunia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: David P Grove <groved@us.ibm.com>
cc: classpath@gnu.org
Subject: Inlining (Was: Re: Math patch)
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 10:16:32 -0000

Hi Chris,

--- Chris Gray <chris.gray@acunia.com> wrote:
> On Fri, 28 Feb 2003, Dalibor Topic wrote:

> > In my opinion, the safest place to do constant 
> > inlining is in a class loader, when you know that
> > which specific implementation you're going to
> 'link'
> > to. Method inlining is possible during class
> loading
> > as well, but  would probably require a good
> heuristic
> > to avoid a huge increase in code size. 
> 
> Yes, that's right: the logical place to do this
> would be in the phase we 
> call "referencing", or maybe a bit later in a
> verifying/bytecode rewriting 
> phase if one exists. In the latter case one could
> encode the actual value 
> directly into the instruction, by-passing the
> constant pool entirely.

Actually, that would not only make the code faster but
also smaller in the cases where the constant fits into
a xload_y instruction. ;)
 
> > I intend to experiment with that in kaffe, but I'm
> too 
> > busy merging stuff in to do much development at
> the
> > moment ;)
> 
> Know the feeling. ;> It's got me thinking too though
> - I might at least 
> instrument Wonka to find out what the size
> distribution of static methods 
> is. If there are a lot of one-liners or empty(!)
> methods then there may be 
> some low-hanging fruit to be had ...

Well written code should use getter/setter methods for
field access (flamebait, I know ;). Such classes
should benefit quite a bit from inlining their field
access methods (which usually are one liners ;). 

I believe that some Java IDE's come with wizards which
let you generate this kind of code automatically (JDEE
for example). And it's the proper form of field access
for java beans, AFAIK.

I think it's safe to inline 
a) private members (at compile time)
b) superclass methods (at load time)
c) static final members (at load time)

at least.

a) covers chained constructors, getters/setters etc.
b) covers finalize, equals, read/write in IO classes
c) covers Math.abs, Double.isNan, etc.

It may be possible to inline non-static methods from
final classes (String.charAt), but I haven't figured
out how if the method is not using public fields only
;) 

If someone knows of a free software/open source java
inliner, I'd like to have a link ...

cheers,
dalibor topic

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



From MAILER-DAEMON Fri Feb 28 08:57:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ol0u-0005Qp-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 08:57:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ol0g-00053Q-00
	for classpath@gnu.org; Fri, 28 Feb 2003 08:57:10 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18ol0c-0004rD-00
	for classpath@gnu.org; Fri, 28 Feb 2003 08:57:08 -0500
Received: from nat.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18ol0W-0004P5-00
	for classpath@gnu.org; Fri, 28 Feb 2003 08:57:01 -0500
Received: from sophocles.leuven.intern.acunia.com
	(sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id h1SDuku25575;
	Fri, 28 Feb 2003 14:56:48 +0100
Date: Fri, 28 Feb 2003 14:19:35 +0100 (CET)
From: Chris Gray <chris.gray@acunia.com>
X-X-Sender: gray@sophocles.leuven.intern.acunia.com
To: abies@pg.gda.pl
In-Reply-To: <3E5F358B.9020204@wp.pl>
Message-ID: <Pine.LNX.4.44.0302281414590.23171-100000@sophocles.leuven.intern.acunia.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
cc: GNU Classpath <classpath@gnu.org>
Subject: Re: Math patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 13:57:18 -0000

On Fri, 28 Feb 2003, Artur Biesiadowski wrote:

> Chris Gray wrote:
> 
> > Nonetheless, javac certainly used to do that, and I'm pretty sure it still 
> > does. (I could swear that the JLS actually specifies this behaviour, but 
> > I'm darned if I can find the words now.)  
> 
> 13.4.8
> 
> http://java.sun.com/docs/books/jls/second_edition/html/binaryComp.doc.html#45139
> 
> [...]
> One reason for requiring inlining of constants is that switch statements 
> require constants on each case, and no two such constant values may be 
> the same. The compiler checks for duplicate constant values in a switch 
> statement at compile time; the class file format does not do symbolic 
> linkage of case values
> [...]

Knew it was there somewhere. :) Thx.

IMO that text is just a bogus justification for a misguided "optimisation" 
built into ur-javac. They could as well have said that if two switch cases 
turn out at runtime to be the same then the result is undefined. As it is 
we have major breakage. :(

-- 

Chris Gray

VM Architect, ACUNIA





From MAILER-DAEMON Fri Feb 28 11:05:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18on0R-0006A8-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 11:05:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18on0O-00069i-00
	for classpath@gnu.org; Fri, 28 Feb 2003 11:05:00 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18omx5-0005Dm-00
	for classpath@gnu.org; Fri, 28 Feb 2003 11:01:36 -0500
Received: from nat.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18omuE-0004CS-00
	for classpath@gnu.org; Fri, 28 Feb 2003 10:58:38 -0500
Received: from sophocles.leuven.intern.acunia.com
	(sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id h1SFwSu32557;
	Fri, 28 Feb 2003 16:58:28 +0100
Date: Fri, 28 Feb 2003 16:21:17 +0100 (CET)
From: Chris Gray <chris.gray@acunia.com>
X-X-Sender: gray@sophocles.leuven.intern.acunia.com
To: Chris Gray <chris.gray@acunia.com>
In-Reply-To: <Pine.LNX.4.44.0302280956310.14958-100000@sophocles.leuven.intern.acunia.com>
Message-ID: <Pine.LNX.4.44.0302281611520.25195-100000@sophocles.leuven.intern.acunia.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
cc: classpath@gnu.org
cc: Dalibor Topic <robilad@yahoo.com>
cc: David P Grove <groved@us.ibm.com>
Subject: Re: Math patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 16:05:01 -0000

On Fri, 28 Feb 2003, Chris Gray wrote:

> Know the feeling. ;> It's got me thinking too though - I might at least 
> instrument Wonka to find out what the size distribution of static methods 
> is. If there are a lot of one-liners or empty(!) methods then there may be 
> some low-hanging fruit to be had ...

Hm. See the attached results for our mauve suite and visual test engine - 
neither of which employ the getter/setter style to any noticeable extent. 
In both cases the biggest win would probably come from inlining random(), 
but you'd need to gather data at runtime to know that. There are a lot of 
4-byte methods (just one byte longer than the getstatic() instruction 
itself), but most are only called once ...

We have pondered the idea of bytecode rewriting as a complimentary 
technique to JITting, but up to now we never did anything about it. Maybe 
it's worth looking at after all.

Cheers

-- 

Chris Gray

VM Architect, ACUNIA





From MAILER-DAEMON Fri Feb 28 13:15:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18op2O-0000fN-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 13:15:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18op2L-0000ax-00
	for classpath@gnu.org; Fri, 28 Feb 2003 13:15:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18op2I-0000YW-00
	for classpath@gnu.org; Fri, 28 Feb 2003 13:15:07 -0500
Received: from e6.ny.us.ibm.com ([32.97.182.106])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18op2H-0000Xp-00
	for classpath@gnu.org; Fri, 28 Feb 2003 13:15:05 -0500
Received: from northrelay02.pok.ibm.com (northrelay02.pok.ibm.com
	[9.56.224.150])
	by e6.ny.us.ibm.com (8.12.7/8.12.2) with ESMTP id h1SIF3GM064332
	for <classpath@gnu.org>; Fri, 28 Feb 2003 13:15:03 -0500
Received: from d01ml243.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216])
	h1SIF1JA033210
	for <classpath@gnu.org>; Fri, 28 Feb 2003 13:15:01 -0500
In-Reply-To: <E18oRPL-00070p-03@monty-python.gnu.org>
To: classpath@gnu.org
X-Mailer: Lotus Notes Release 6.0 September 26, 2002
Message-ID: <OF4A46FC61.350A303B-ON85256CDB.005B2A2A-85256CDB.0063D923@us.ibm.com>
From: David P Grove <groved@us.ibm.com>
Date: Fri, 28 Feb 2003 13:10:36 -0500
X-MIMETrack: Serialize by Router on D01ML243/01/M/IBM(Release 6.0.1
	[IBM]|February 24, 2003) at 02/28/2003 13:15:01
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Subject: automauve results on Jikes RVM
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 18:15:10 -0000





Hi,

      I'm putting the finishing touches on a script to run mauve tests
against the CVS head of classpath & Jikes RVM.  We plan to run this as part
of our nightly regression tests.  Is there interest in having these results
periodically (once a week? every day?) posted to the automauve result page?
If so, let me know what needs to be done.

thanks,

--dave




From MAILER-DAEMON Fri Feb 28 14:39:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oqLI-0008Ae-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 14:38:48 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oqLF-00087a-00
	for classpath@gnu.org; Fri, 28 Feb 2003 14:38:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oqKX-0007nn-00
	for classpath@gnu.org; Fri, 28 Feb 2003 14:38:02 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oqKL-0007iL-00
	for classpath@gnu.org; Fri, 28 Feb 2003 14:37:50 -0500
Received: from fleche.redhat.com (tf0101.peakpeak.com [204.144.239.101])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id MAA30914;
	Fri, 28 Feb 2003 12:37:39 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id EC7FB4F8610; Fri, 28 Feb 2003 12:28:49 -0700 (MST)
To: Archie Cobbs <archie@dellroad.org>
References: <200302280456.h1S4ufYk066392@arch20m.dellroad.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I have a very good DENTAL PLAN.  Thank you.
Date: 28 Feb 2003 12:28:49 -0700
In-Reply-To: <200302280456.h1S4ufYk066392@arch20m.dellroad.org>
Message-ID: <8765r45hn2.fsf@fleche.redhat.com>
Lines: 10
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: Method.equals() question
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 19:38:47 -0000

>>>>> "Archie" == Archie Cobbs <archie@dellroad.org> writes:

Archie> -  [ lots of code ]
Archie> +      return this == o;
Archie>    }
 
I don't think there's a guarantee that every call to Class will return
an identical Method.  You have to look at the fields somehow.

Tom



From MAILER-DAEMON Fri Feb 28 14:55:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oqb8-0005yb-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 14:55:10 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oqYR-000540-00
	for classpath@gnu.org; Fri, 28 Feb 2003 14:52:23 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oqXh-0004m5-00
	for classpath@gnu.org; Fri, 28 Feb 2003 14:51:38 -0500
Received: from ms-smtp-03.southeast.rr.com ([24.93.67.84])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oqWm-0004fF-00
	for classpath@gnu.org; Fri, 28 Feb 2003 14:50:40 -0500
Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h1SJndi6023835;
	Fri, 28 Feb 2003 14:49:39 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail4.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Fri, 28 Feb 2003 14:52:01 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 5B834BEA92; Fri, 28 Feb 2003 14:50:37 -0500 (EST)
Sender: cbj@haphazard.org
To: David P Grove <groved@us.ibm.com>
References: <OF4A46FC61.350A303B-ON85256CDB.005B2A2A-85256CDB.0063D923@us.ibm.com>
From: Brian Jones <cbj@gnu.org>
Date: 28 Feb 2003 14:50:37 -0500
In-Reply-To: <OF4A46FC61.350A303B-ON85256CDB.005B2A2A-85256CDB.0063D923@us.ibm.com>
Message-ID: <m3adgg89rm.fsf@lyta.haphazard.org>
Lines: 34
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: classpath@gnu.org
Subject: Re: automauve results on Jikes RVM
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 19:55:08 -0000

David P Grove <groved@us.ibm.com> writes:

> Hi,
> 
>       I'm putting the finishing touches on a script to run mauve tests
> against the CVS head of classpath & Jikes RVM.  We plan to run this as part
> of our nightly regression tests.  Is there interest in having these results
> periodically (once a week? every day?) posted to the automauve result page?
> If so, let me know what needs to be done.

I keep planning to add Jikes RVM myself to this.  I have been trying
to collect results once a week for kissme thus far.  The results will
eventually be posted weekly to the Classpath webpage and I'll HTML-ize
the Mauve results as well using some of the Japhar script logic to do
that.

If you were to provide files for me, then:

* mauve log with "-verbose" output (required)
* cvs log (optional)
* build log (optional)

Some sort of indication of when the tests were conducted and with what
source (by date, preferably in seconds since epoch).  See GNU sh-utils
`date +%s`.  If you want to provide results on multiple platforms that
is okay too.

Preferred file names are something like jikesrvm-mauve-<date>.txt or
jikesrvm-<platform>-mauve-<date>.txt but of course I can manipulate
this by hand if need be.

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



From MAILER-DAEMON Fri Feb 28 15:54:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18orWA-0006Hn-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 15:54:06 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18orVd-0005wp-00
	for classpath@gnu.org; Fri, 28 Feb 2003 15:53:33 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18orUy-0005ni-00
	for classpath@gnu.org; Fri, 28 Feb 2003 15:52:53 -0500
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18orUm-0005nI-00
	for classpath@gnu.org; Fri, 28 Feb 2003 15:52:40 -0500
Received: from fleche.redhat.com (tf0101.peakpeak.com [204.144.239.101])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id NAA19833;
	Fri, 28 Feb 2003 13:52:29 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 982DA4F8610; Fri, 28 Feb 2003 13:43:41 -0700 (MST)
To: Classpath Discussion Mailing List <classpath@gnu.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: ..I'll make you an ASHTRAY!!
Date: 28 Feb 2003 13:43:41 -0700
Message-ID: <87y9402l1e.fsf@fleche.redhat.com>
Lines: 6
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: removing gcj workarounds
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 20:54:03 -0000

There are currently some workarounds in the tree to let us build
classpath with gcj.  Some of these won't be necessary with gcj 3.3.
When should I remove them?  I assume sometime after 3.3 is released --
but how long after?

Tom



From MAILER-DAEMON Fri Feb 28 15:57:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18orXb-0007UQ-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 15:55:35 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18orWP-0006V3-00
	for classpath@gnu.org; Fri, 28 Feb 2003 15:54:21 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18orWK-0006M9-00
	for classpath@gnu.org; Fri, 28 Feb 2003 15:54:17 -0500
Received: from mail00.svc.cra.dublin.eircom.net ([159.134.118.16])
	by monty-python.gnu.org with smtp (Exim 4.10.13)
	id 18orPD-0003PY-00
	for classpath@gnu.org; Fri, 28 Feb 2003 15:46:55 -0500
Received: (qmail 70275 messnum 922480 invoked from
	network[194.125.175.231/ts14-231.dublin.indigo.ie]); 28 Feb 2003 20:46:39
	-0000
Received: from ts14-231.dublin.indigo.ie (HELO ?192.168.0.3?)
	(194.125.175.231)
	by mail00.svc.cra.dublin.eircom.net (qp 70275) with SMTP;
	28 Feb 2003 20:46:39 -0000
From: John Leuner <jewel@pixie.co.za>
To: classpath@gnu.org
In-Reply-To: <87r89tusa8.fsf@fleche.redhat.com>
References: <20030227220656.GA27040@urbanophile.com>
	 <87r89tusa8.fsf@fleche.redhat.com>
Content-Type: text/plain
Organization: 
Message-Id: <1046464721.387.29.camel@cmalu>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.0 
Date: 28 Feb 2003 20:38:41 +0000
Content-Transfer-Encoding: 7bit
Subject: Re: The Road to 1.0
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 20:55:32 -0000

I think it makes sense to release Classpath 1.0 when AWT is complete and
we provide most of Java 1.1.

The important part is not the version number though, it's filling in the
missing pieces and debugging them.

It would be nice if someone could write a TODO for the AWT and GTK peers
code.

John Leuner

On Fri, 2003-02-28 at 01:07, Tom Tromey wrote:
> >>>>> "Aaron" == Aaron M Renn <arenn@urbanophile.com> writes:
> 
> Aaron> I think it is truly amazing how far Classpath has come in that time.
> Aaron> While Paul and I haven't exactly been major contributors over the last
> Aaron> year and a half, other folks have really stepped up to the plate.
> 
> If the originators can take an extended leave, and the project
> continues, then you know it is successful.  Congratulations -- you've
> managed to do something that is difficult and rare.
> 
> Aaron> o Get AWT working right and fix any other major holes in Java 1.1
> Aaron>   support, increment the version to something like 0.9, then start
> Aaron>   debugging towards 1.0
> 
> Outside of AWT, I suspect there won't be too much debugging to do.
> We've actually done a substantial amount of that, since people are
> already using Classpath for applications.
> 
> I took a quick look at classpath-vs-1.1 on the japi page.  We are
> really shockingly close; all those green bars are delightful.  The
> real question is how many of the comparison reports are there for
> compliance against some later JDK.  We'd have to tweak japi to do a
> 3-way diff to find out, I guess.
> 
> AWT really needs a lot of love.  There are parts missing (notably
> GridBagLayout -- maybe we can take Acunia's implementation though).
> There are known systemic bugs (there are many places that should
> acquire the tree lock that don't).  The peers aren't finished, and the
> parts that are there need to be ported to the latest Gtk (you can't
> even compile against Gtk 2) and are buggy besides.  The bright side is
> that enough works to play around with it.
> 
> Aaron> The original thought was always that we'd target Java 1.1 as
> Aaron> our 1.0 release.  However, going into real release mode would
> Aaron> make it trickier to do development because of the implied
> Aaron> stability contract with users.
> 
> When we get close enough, we can make a release branch with different
> rules.  For instance, we can promise VM-level API stability for all
> the releases in a given sequence (1.0, 1.1, 1.2, etc).
> 
> I'd rather not ever shut down the trunk.  There's no telling when
> someone will implement a package.  For instance, Michael Koch has been
> doing a lot of libgcj work lately.  Having a separate release branch
> means we can still accept his patches at a pretty high rate; the less
> certain of these can be put on the trunk only.
> 
> Tom
> 
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
-- 
John Leuner <jewel@pixie.co.za>




From MAILER-DAEMON Fri Feb 28 17:21:59 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18ost0-0006zr-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 17:21:46 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18ossu-0006pr-00
	for classpath@gnu.org; Fri, 28 Feb 2003 17:21:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18osso-0006bV-00
	for classpath@gnu.org; Fri, 28 Feb 2003 17:21:35 -0500
Received: from ms-smtp-02.southeast.rr.com ([24.93.67.83])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18ossj-0006OJ-00
	for classpath@gnu.org; Fri, 28 Feb 2003 17:21:29 -0500
Received: from mail5.nc.rr.com (fe5 [24.93.67.52])h1SMK1o5012462;
	Fri, 28 Feb 2003 17:20:01 -0500 (EST)
Received: from lyta.haphazard.org ([66.57.9.48]) by mail5.nc.rr.com  with
	Microsoft SMTPSVC(5.5.1877.757.75);	 Fri, 28 Feb 2003 17:19:20 -0500
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 78291BEA92; Fri, 28 Feb 2003 17:21:20 -0500 (EST)
Sender: cbj@haphazard.org
To: tromey@redhat.com
References: <87y9402l1e.fsf@fleche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 28 Feb 2003 17:21:20 -0500
In-Reply-To: <87y9402l1e.fsf@fleche.redhat.com>
Message-ID: <m3heaocahr.fsf@lyta.haphazard.org>
Lines: 13
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: Classpath Discussion Mailing List <classpath@gnu.org>
Subject: Re: removing gcj workarounds
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 22:21:44 -0000

Tom Tromey <tromey@redhat.com> writes:

> There are currently some workarounds in the tree to let us build
> classpath with gcj.  Some of these won't be necessary with gcj 3.3.
> When should I remove them?  I assume sometime after 3.3 is released --
> but how long after?

You could do it now, for it is CVS after all... or you could wait till
GCC 3.3 is released...

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



From MAILER-DAEMON Fri Feb 28 17:24:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18osvN-0003TX-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 17:24:13 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18orb6-0003DC-00
	for classpath@gnu.org; Fri, 28 Feb 2003 15:59:12 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oraz-00039Z-00
	for classpath@gnu.org; Fri, 28 Feb 2003 15:59:06 -0500
Received: from ftp.precisionio.com ([65.192.41.225] helo=dns.precisionio.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oray-0002xK-00
	for classpath@gnu.org; Fri, 28 Feb 2003 15:59:04 -0500
Received: from archie1.precisionio.com (archie1.precisionio.com
	[172.16.0.241])
	by dns.precisionio.com (8.12.6/8.12.6) with ESMTP id h1SKx1M9009903;
	Fri, 28 Feb 2003 12:59:01 -0800 (PST)
	(envelope-from archie@precisionio.com)
Received: from archie1.precisionio.com (localhost [127.0.0.1])
	h1SKwo1c000824;	Fri, 28 Feb 2003 12:58:50 -0800 (PST)
	(envelope-from archie@archie1.precisionio.com)
Received: (from archie@localhost)
	by archie1.precisionio.com (8.12.6/8.12.6/Submit) id h1SKwoAN000823;
	Fri, 28 Feb 2003 12:58:50 -0800 (PST)
	(envelope-from archie)
From: Archie Cobbs <archie@precisionio.com>
Message-Id: <200302282058.h1SKwoAN000823@archie1.precisionio.com>
In-Reply-To: <8765r45hn2.fsf@fleche.redhat.com>
To: tromey@redhat.com
Date: Fri, 28 Feb 2003 12:58:50 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
X-Mailman-Approved-At: Fri, 28 Feb 2003 17:24:11 -0500
cc: classpath@gnu.org
Subject: Re: Method.equals() question
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 20:59:13 -0000

Tom Tromey wrote:
> Archie> -  [ lots of code ]
> Archie> +      return this == o;
> Archie>    }
>  
> I don't think there's a guarantee that every call to Class will return
> an identical Method.  You have to look at the fields somehow.

If two different Method objects are equal according to the specification
of Method.equals(), then that implies that a class declares two
distinct methods with identical names, parameter types, and return
types... is that possible?? Wouldn't such a class fail verification?

I'm assuming here that the VM guarantees that only one Method object
will ever be created for each declared method in a class.

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Precision I/O      *     http://www.precisionio.com



From MAILER-DAEMON Fri Feb 28 18:16:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18otjv-00025X-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 18:16:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18otjj-0001jW-00
	for classpath@gnu.org; Fri, 28 Feb 2003 18:16:15 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18otjT-0001PS-00
	for classpath@gnu.org; Fri, 28 Feb 2003 18:16:00 -0500
Received: from mail-out1.apple.com ([17.254.0.52])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oti4-0000xD-00
	for classpath@gnu.org; Fri, 28 Feb 2003 18:14:32 -0500
Received: from mailgate2.apple.com (A17-129-100-225.apple.com
	[17.129.100.225])
	by mail-out1.apple.com (8.12.3/8.12.3) with ESMTP id h1SNEUg7026328
	for <classpath@gnu.org>; Fri, 28 Feb 2003 15:14:30 -0800 (PST)
Received: from scv2.apple.com (scv2.apple.com) by mailgate2.apple.com
	<T60b1685b12118164e1708@mailgate2.apple.com>;
	Fri, 28 Feb 2003 15:14:26 -0800
Received: from bothner.com (il0102b-dhcp93.apple.com [17.201.26.143])
	by scv2.apple.com (8.11.3/8.11.3) with ESMTP id h1SNEQQ16770;
	Fri, 28 Feb 2003 15:14:26 -0800 (PST)
Message-ID: <3E5FE7F9.4050705@bothner.com>
Date: Fri, 28 Feb 2003 14:51:37 -0800
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Archie Cobbs <archie@precisionio.com>
References: <200302282058.h1SKwoAN000823@archie1.precisionio.com>
In-Reply-To: <200302282058.h1SKwoAN000823@archie1.precisionio.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
cc: classpath@gnu.org
Subject: Re: Method.equals() question
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Fri, 28 Feb 2003 23:16:25 -0000

Archie Cobbs wrote:
> I'm assuming here that the VM guarantees that only one Method object
> will ever be created for each declared method in a class.

Why are you assuming this?  It is possible the VM internal
data structures are unrelated to java.lang.reflect.Method,
and so it may make sense to create a new one each time it
is requested than try to cache it.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/




From MAILER-DAEMON Fri Feb 28 23:34:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 18oyhr-0004wC-00
	for mharc-classpath@gnu.org; Fri, 28 Feb 2003 23:34:39 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 18oyho-0004n1-00
	for classpath@gnu.org; Fri, 28 Feb 2003 23:34:36 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 18oyhm-0004mC-00
	for classpath@gnu.org; Fri, 28 Feb 2003 23:34:35 -0500
Received: from pop2a.ripco.com ([209.100.227.25])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 18oyhl-0004ez-00
	for classpath@gnu.org; Fri, 28 Feb 2003 23:34:34 -0500
Received: (from arenn@localhost)
	by pop2a.ripco.com (8.11.0/8.11.0) id h214YpD16133
	for classpath@gnu.org; Fri, 28 Feb 2003 22:34:51 -0600 (CST)
Date: Fri, 28 Feb 2003 22:34:51 -0600
From: "Aaron M. Renn" <arenn@urbanophile.com>
To: classpath@gnu.org
Message-ID: <20030301043451.GA15439@urbanophile.com>
Mail-Followup-To: "Aaron M. Renn" <arenn@urbanophile.com>,
	classpath@gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Organization: GNU's Not Unix!
Subject: JNI/CNI Revisited
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
 <classpath.gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 01 Mar 2003 04:34:37 -0000

I want to throw out a couple random thoughts to stimulate discussion.  I
see this as two separate issues:

1.  What native methods ought to exist (it is different in CP and GCJ today)
2.  How to implement those methods (JNI or CNI)

Like Tom, I'm skeptical of the machine translation of CNI to JNI and I'm
not sure that trying to have a single native implementation is even
desirable.  I see this as something almost akin to the VM interface.  There
is a defined interface and a set of "reference" classes (ie, the Classpath
Unix JNI libraries).  But other JVM implementors or people porting to
other platforms might need to implement native libraries specific to
their platform.  The Red Hat guys do this because their CNI library is
super-fast compared to JNI.

This is sort of brain storming, but what I'm thinking is that we should
try to get agreement on the set of native methods, their signatures,
etc. and forget about trying to merge CNI and JNI implementations.  Let
the GCJ build process build its own native libraries and Classpath 
supply its own Unix type JNI libraries.  (A win32 JVM might have its
own libraries - much as there seem to be Unix and Win versions of CNI
within gcc)

Looking at native methods used to implement FileDescriptor, FileInputStream,
FileOutputStream, and RandomAccessFile (as well as a quick glance at
FileChannel in NIO), I pulled together a quick list of potential 
methods as a sort of provider interface that would do everything but
File stuff (so far).  I'll attach it below.  Because NIO does a lot
of the same stuff as java.io, perhaps sticking this somewhere under
the gnu.java hierarchy would allow both java.io and java.nio to share
it.  Because I pass the FD as the first parameter (to avoid gratutious
field lookups in JNI), these could probably all be static methods.

Comments?

Needed for java.io (except File)
--------------------------------
  void nativeInit(); // For any required initialization

  void nativeSync(long fd) throws SyncFailedException
  boolean nativeValid(long fd)
  long nativeOpen(String path, int mode) throws IOException // returns fd
  long nativeClose(long fd) throws IOException
  long nativeWrite(long fd, int byte) throws IOException
  long nativeWrite(long fd, byte[] buf, int offset, int len) throws IOException
  long nativeGetLength(long fd) throws IOException
  void nativeSetLength(long fd, long len) throws IOException
  long nativeSeek(long fd, long offset, int whence, eof_trunc) throws IOE
  long nativeGetFilePointer(long fd) throws IOException
  int nativeRead(long fd) throws IOException
  long nativeRead(long fd, byte[] buf, long offset, long len) throws IOException  long nativeAvailable(long fd) throws IOException

Needed for NIO FileChannel
--------------------------
  long nativeLock(long fd, long pos, long size, boolean shared) throws IOE
  long nativeUnlock(long fd) throws IOException
  long nativeMmap(???????????)
  long nativeMunmap(???????????)
  long nativeTruncate(long fd, long pos) throws IOException ??

The immediate problem I see is that gcj uses an instance variable in
FileDescriptor called position to track the current file position. 
If we are able to wipe that, or assume you'll store all of your state
using the fd handle, then that is solved.

If these sat in a gnu.java class, we could probably drop the native prefix
and still avoid confusion.

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




