From MAILER-DAEMON Mon Sep 01 09:02:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19to7B-0008BB-ER
	for mharc-classpath@gnu.org; Mon, 01 Sep 2003 08:49:01 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19to49-0007Tu-Jl
	for classpath@gnu.org; Mon, 01 Sep 2003 08:45:53 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19tnxJ-0005dJ-I9
	for classpath@gnu.org; Mon, 01 Sep 2003 08:38:50 -0400
Received: from [196.2.45.76] (helo=quake.mweb.co.za)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19tnu3-0004nn-Hk
	for classpath@gnu.org; Mon, 01 Sep 2003 08:35:27 -0400
Received: from pta-dial-196-31-186-232.mweb.co.za ([196.31.186.232]:32807)
	by quake.mweb.co.za with esmtp (Exim 4.01)
	id 19tnk1-00019b-00; Mon, 01 Sep 2003 14:25:06 +0200
From: John Leuner <jewel@pixie.co.za>
To: Stephen Crawley <crawley@dstc.edu.au>
In-Reply-To: <200309010252.h812qMMx000004@piglet.dstc.edu.au>
References: <200309010252.h812qMMx000004@piglet.dstc.edu.au>
Content-Type: text/plain
Organization: 
Message-Id: <1062419461.373.1.camel@cmalu>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 01 Sep 2003 13:31:02 +0100
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org, "Aaron M. Renn" <arenn@urbanophile.com>
Subject: Re: Kissme and Classpath CVS
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Sep 2003 12:48:59 -0000

> The Kissme in CVS and in the Kissme 0.0.31 release are currently
> incompatible with the latest Classpath in CVS.  The breakage happened
> when the new versions of java/lang/Thread.java and vm/reference/java/
> lang/VMThread.java were checked in, changing the native method APIs for
> threads.  [Yeah ... I know we were warned ...]

Unfortunately I also forgot to make a CVS tag when I released kissme
0.0.31. 

> Compatibility should be restored in a day or so.  In the meantime, you
> could either manually back out the java.lang.Thread/VMThread changes in
> your Classpath CVS sandbox, or use the Classpath 0.0.6 tarball.

...

-- 
John Leuner <jewel@pixie.co.za>




From MAILER-DAEMON Mon Sep 01 14:45:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19ttBa-0007oj-S9
	for mharc-classpath@gnu.org; Mon, 01 Sep 2003 14:13:54 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19tsu5-0003Lt-TZ
	for classpath@gnu.org; Mon, 01 Sep 2003 13:55:49 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19tsf1-0007sL-Qt
	for classpath@gnu.org; Mon, 01 Sep 2003 13:40:17 -0400
Received: from [12.235.103.239] (helo=12-235-103-239.client.attbi.com)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19tsZH-000643-Ra
	for classpath@gnu.org; Mon, 01 Sep 2003 13:34:20 -0400
Received: from dexter ([192.168.0.2])
	by 12-235-103-239.client.attbi.com with esmtp (Exim 3.35 #1 (Debian))
	id 19tsZF-0007gk-00
	for <classpath@gnu.org>; Mon, 01 Sep 2003 10:34:17 -0700
Received: by dexter (Postfix, from userid 1000)
	id CFD06B98; Mon,  1 Sep 2003 10:34:16 -0700 (PDT)
Date: Mon, 1 Sep 2003 10:34:16 -0700
From: Casey Marshall <rsdio@metastatic.org>
To: Classpath <classpath@gnu.org>
Message-ID: <20030901173416.GA32283@metastatic.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="bp/iNruPH9dso1Pn"
Content-Disposition: inline
User-Agent: Mutt/1.4i
Subject: RSA and encoded keys
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Sep 2003 18:07:22 -0000


--bp/iNruPH9dso1Pn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

Hi,

I've recently been working on some improvements to the certificates and
signature algorithms in Classpath, and the attached patch does the
following:

   * Adds RSA (PKCS #1 v1.5) signatures for MD5 and SHA-1 (and,
     optionally, MD2 and MD4 if some other library provides them).
   * Adds key factories for encoded keys (PKCS#8 and X.509) and for RSA
     keys.
   * Tightens up the X.509 certificate parsing and adds more helpful
     string representations returned by toString.

With this, Classpath's security provider can handle the most common
certificate types that exist in the wild. This, incidentally, provides
enough functionality such that the SSL implementation I am working on
<http://metastatic.org/source/jessie/> can run on a totally free
platform.

Changelog follows:

2003-09-01  Casey Marshall  <rsdio@metastatic.org>

	* gnu/java/security/der/DERReader.java
	  (skip): new method.

	* gnu/java/security/provider/EncodedKeyFactory.java
	  new file.

	* gnu/java/security/provider/Gnu.java
	  (<init>): added entries for new algorithms.

	* gnu/java/security/provider/GnuDSAPrivateKey.java
	  updated copyright years.
	  (getFormat): return "PKCS#8" instead of null to reflect the
	    encoded form returned.
	  (getEncoded): create and return a PrivateKeyInfo ASN.1 structure
	    from PKCS#8, instead of nothing.

	* gnu/java/security/provider/GnuDSAPublicKey.java
	  (getFormat): return "X.509" instead of null to reflect the
	    encoded form returned.
	  (getEncoded): create and return a SubjectPublicKey ASN.1
	    structure from X.509, instead of nothing.
	  (toString): check for null values.

	* gnu/java/security/provider/DSAKeyFactory.java
	  (engineGeneratePrivate): now accept PKCS8EncodedKeySpec
	    via EncodedKeyFactory.
	  (engineGeneratePublic): now accept X509EncodedKeySpec.
	  (engineGetKeySpec): return PKCS#8 and X.509 key specs as
	    appropriate.

	* gnu/java/security/provider/X509CertificateFactory.java
	  (engineGenerateCertPath): new methods.
	  (engineGetCertPathEncodings): new method.

	* gnu/java/security/provider/RSA.java
	  new file.

	* gnu/java/security/provider/MD5withRSA.java
	  new file.

	* gnu/java/security/provider/MD4withRSA.java
	  new file.

	* gnu/java/security/provider/MD2withRSA.java
	  new file.

	* gnu/java/security/provider/SHA1withRSA.java
	  new file.

	* gnu/java/security/provider/GnuRSAPublicKey.java
	  new file.

	* gnu/java/security/provider/RSAKeyFactory.java
	  new file.

	* gnu/java/security/provider/GnuRSAPrivateKey.java
	  new file.

	* gnu/java/security/provider/Makefile.am
	  added new files to EXTRA_DIST.

	* gnu/java/security/x509/X500DistinguishedName.java
	  (setAttribute): ignore case when accepting types.

	* gnu/java/security/x509/X509Certificate.java
	  (toString): return a more helpful representation.
	  (parse): use EncodedKeyFactory to parse public keys.

	* gnu/java/security/x509/Util.java
	  new file.

	* gnu/java/security/x509/X509CertPath.java
	  new file.

	* gnu/java/security/x509/Makefile.am
	  added new files to EXTRA_DIST.

- -- 
Casey Marshall || rsdio@metastatic.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/U4JvgAuWMgRGsWsRApFmAJ95C2ACmDA5TOroccheug/tNZLV2gCdHoQn
kxL/L+qvwisyhNCpoTLwaRw=
=H+Fn
-----END PGP SIGNATURE-----

--bp/iNruPH9dso1Pn
Content-Type: application/x-gunzip
Content-Disposition: attachment; filename="rsa-and-encoded.patch.gz"
Content-Transfer-Encoding: base64

H4sICLp9Uz8AA3JzYS1hbmQtZW5jb2RlZC5wYXRjaADsPf1327auP89/BZd7To9cK4rtOGmb
tL118zXfpUlmp9v6dnZ2FJtxdCNLjiQn9evt//4AkqJIfTtJd7u9ZmtiSwAIgAAIkqA08Cb0
4w6ZeouNf9u39kZIx4vAiZYbExps7B8Mh9SGTxbea7x6+E9juDcil45Ld8jG+DYMfD/aGLt2
GM7t6Er5VIcf87YR0Chw6K3jTUkAf0LH90jH6jQmzuUlWV+Q9TuyHsAFkpJkfX29lsjfdTdJ
fx6Qbru9Sbrdna3OTm+brLfh5ztsp9Vq1aOz2SH9xZTTaQOR3k6nx+k03rwh653nbXObtPBP
p0PevGkQ/AHpFoFHbm13QXfx0ucGabQImS8uXGdMbn1nQsJrZ244XkRc6jVJdBX4dyEZnB58
HNN5BOpA+E/4ixDHsxg0Qu7ipc+NFlLd2CCndx6Z0ejKn4SWuLT+SD/A8qDIxuaBf+ugtg68
sT+hkx/p8tAeR36w/BIGt3r73IxO7oGJBgZ2cLvhLVz3uw75lw2G+eJZm7TbO+x/0fn5BlRB
Pc+athRrapttsCWzC6YKptTaeEry6UAfE8rvkGu6JJfiHjOXPX++DJzpVUSMvSZv6jCglIz8
y+jODig59BfexEYbM8nAGwNWo3V+5YRM2wT+zu0gIv4lOTp5T/Ziz2Zg2hUEvUTKoaC8S5b+
goxBYwGdOCF4+MUiAooRsb3Jhh+QmQ8ds2y04AqwQAMwe0oiGsxCbA6/YANH1KOB7ZIz7i3H
zph6ISV2yP0nvAKpL4AKwhdJtkuoA/cDcksDFly6JgEGDDtCHgPiMx9rNlq2tySuHSWQ+XIm
4kzAHRmrV/4cmL8CiiDOneO65IKSRUgvF65JALLR+mVw/sPp+3PSP/lAfukPh/2T8w+7AAru
uogIvaWckDObuw7QBREC24uWoItG693BcO8HQOi/HRwPzj8g84eD85OD0Ygcng5Jn5z1h+e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kQzCYFcdw3GkWqZ9NxhsXmypZOqZnu3GhXyMPx5QsN9yAtY0Bf9oy
XvQ3whiJ7P4mmYiFEU/GgwuAhxZCKvCT6U3ax0hDQFUH2693u4dHsAx+vbVk4ob8esvKT2Ll
BJEf7+0cPHWfO5gKQ71sBQNxL4XeYuO+YfD/A+GTE0KpaAEA

--bp/iNruPH9dso1Pn--



From MAILER-DAEMON Mon Sep 01 17:44:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19twTY-00052s-0G
	for mharc-classpath@gnu.org; Mon, 01 Sep 2003 17:44:40 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19twSv-0004Xn-NG
	for classpath@gnu.org; Mon, 01 Sep 2003 17:44:01 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19twRz-0003tU-Qz
	for classpath@gnu.org; Mon, 01 Sep 2003 17:43:05 -0400
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19twRO-000374-Fl
	for classpath@gnu.org; Mon, 01 Sep 2003 17:42:26 -0400
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 19twRE-0002D6-00; Mon, 01 Sep 2003 23:42:16 +0200
From: Mark Wielaard <mark@klomp.org>
To: Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
In-Reply-To: <200308290658.h7T6wba04478@sm1.hitachi-cable.co.jp>
References: <200307280543.h6S5hok19170@sm1.hitachi-cable.co.jp>
	<1061990296.667.49.camel@localhost>
	<200308280121.h7S1Kvf15488@sm1.hitachi-cable.co.jp>
	<200308290658.h7T6wba04478@sm1.hitachi-cable.co.jp>
Content-Type: multipart/mixed; boundary="=-PIFo332QV9/oYfo/9zLF"
Message-Id: <1062452540.1023.103.camel@elsschot>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4 
Date: Mon, 01 Sep 2003 23:42:20 +0200
Cc: classpath@gnu.org
Subject: Re: Bug report: java.util.GregorianCalendar
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Sep 2003 21:44:36 -0000


--=-PIFo332QV9/oYfo/9zLF
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

On Fri, 2003-08-29 at 08:58, Ito Kazumitsu wrote:
> In message "Re: Bug report: java.util.GregorianCalendar"
>     on 03/08/28, Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp> writes:
> 
> > And I have found another bug shown by the attached program.
> > This bug seems to have something to do with leap yeas.
> > If this bug is fixed, my patch about the WEEK_OF_MONTH will
> > work.
> 
> This is my patch for this bug.

Thanks again!
I added your observation about the first day of the month to the test.
But Jochen his email indicated that for Julian dates we also need to
correct some things. So I also added tests for that. The resulting Mauve
tests is attached. And the results with your patches applied gives:

FAIL: gnu.testlet.java.util.GregorianCalendar.first: day 1-12-1400 (number 1)
got 2 but expected 1
FAIL: gnu.testlet.java.util.GregorianCalendar.first: week 1-12-1400 (number 1)
got 2 but expected 1
FAIL: gnu.testlet.java.util.GregorianCalendar.first: day 1-12-1404 (number 1)
got 2 but expected 1
3 of 312 tests failed

Cheers,

Mark

--=-PIFo332QV9/oYfo/9zLF
Content-Disposition: attachment; filename=first.java
Content-Type: text/x-java; name=first.java; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

// Tags: JDK1.1

// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Mark Wielaard (mark@klomp.org)

// This file is part of Mauve.

// Mauve is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or (at your option)
// any later version.

// Mauve is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Mauve; see the file COPYING.  If not, write to
// the Free Software Foundation, 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.

package gnu.testlet.java.util.GregorianCalendar;

import gnu.testlet.Testlet;
import gnu.testlet.TestHarness;
import java.util.*;

/**
 * Checks that the first day of the month is day one and that the
 * first week is week one.
 */
public class first implements Testlet
{
  private TestHarness harness;

  public void test (TestHarness harness)
  {
    this.harness = harness;

    // Julian dates.
    testYears(1400);

    // Gregorian dates.
    testYears(2000);
  }

  private void testYears(int startYear)
  {
    for (int year = startYear; year <= startYear + 5; year++)
      for (int month = 0; month <= 12; month++)
	{
	  GregorianCalendar cal = new GregorianCalendar(year, month, 1);
	  harness.check(cal.get(Calendar.DAY_OF_MONTH), 1,
			"day 1-" + month + "-" + year);
	  harness.check(cal.get(Calendar.WEEK_OF_MONTH), 1,
			"week 1-" + month + "-" + year);
	}
  }
}

--=-PIFo332QV9/oYfo/9zLF--




From MAILER-DAEMON Mon Sep 01 21:04:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19tz9e-0000Yb-Lz
	for mharc-classpath@gnu.org; Mon, 01 Sep 2003 20:36:18 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19tz8N-0007q9-2q
	for classpath@gnu.org; Mon, 01 Sep 2003 20:34:59 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19tz76-00075A-Be
	for classpath@gnu.org; Mon, 01 Sep 2003 20:33:42 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19tz5O-00068s-3z
	for classpath@gnu.org; Mon, 01 Sep 2003 20:31:54 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.9/8.12.9) with ESMTP id h820VUX8019056;
	Tue, 2 Sep 2003 10:31:30 +1000 (EST)
Message-Id: <200309020031.h820VUX8019056@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: John Leuner <jewel@pixie.co.za>
In-Reply-To: Message from John Leuner <jewel@pixie.co.za> 
	of "01 Sep 2003 13:31:02 +0100." <1062419461.373.1.camel@cmalu> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 02 Sep 2003 10:31:46 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: Stephen Crawley <crawley@dstc.edu.au>, classpath@gnu.org,
	"Aaron M. Renn" <arenn@urbanophile.com>
Subject: Re: Kissme and Classpath CVS 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Sep 2003 00:36:12 -0000


> Unfortunately I also forgot to make a CVS tag when I released kissme
> 0.0.31. 

... and I've checked in some bug fixes since 0.0.31 :-(

I think we can fix this though.  For example, "cvs rtag" with the -D 
option looks like it would do the trick.  If that fails, we could 
tag the head revisions, and then carefully move the tags for those
files that have changed since 0.0.31.

BTW: this doesn't affect Aaron and other people trying to use Kissme
right now.  He/they need to checkout the older version of Classpath, 
not Kissme.

BTW2: I think I'm close to getting Kissme to work with the new Thread
classes anyway.

-- Steve




From MAILER-DAEMON Tue Sep 02 17:44:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19uIZI-0007Iw-UI
	for mharc-classpath@gnu.org; Tue, 02 Sep 2003 17:20:04 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19uHAx-0004Fv-A3
	for classpath@gnu.org; Tue, 02 Sep 2003 15:50:51 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19uH5v-0002xP-UQ
	for classpath@gnu.org; Tue, 02 Sep 2003 15:45:40 -0400
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19uG2Z-0003uK-OY
	for classpath@gnu.org; Tue, 02 Sep 2003 14:38:07 -0400
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 19uF9o-0004D7-00; Tue, 02 Sep 2003 19:41:32 +0200
From: Mark Wielaard <mark@klomp.org>
To: Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
In-Reply-To: <1062452540.1023.103.camel@elsschot>
References: <200307280543.h6S5hok19170@sm1.hitachi-cable.co.jp>
	<1061990296.667.49.camel@localhost>
	<200308280121.h7S1Kvf15488@sm1.hitachi-cable.co.jp>
	<200308290658.h7T6wba04478@sm1.hitachi-cable.co.jp>
	<1062452540.1023.103.camel@elsschot>
Content-Type: text/plain
Message-Id: <1062524497.1005.22.camel@elsschot>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4 
Date: Tue, 02 Sep 2003 19:41:37 +0200
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org
Subject: Re: Bug report: java.util.GregorianCalendar
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Sep 2003 21:20:03 -0000

Hi,

On Mon, 2003-09-01 at 23:42, Mark Wielaard wrote:
> I added your observation about the first day of the month to the test.
> But Jochen his email indicated that for Julian dates we also need to
> correct some things. So I also added tests for that. The resulting Mauve
> tests is attached. And the results with your patches applied gives:
> 
> FAIL: gnu.testlet.java.util.GregorianCalendar.first: day 1-12-1400 (number 1)
> got 2 but expected 1
> FAIL: gnu.testlet.java.util.GregorianCalendar.first: week 1-12-1400 (number 1)
> got 2 but expected 1
> FAIL: gnu.testlet.java.util.GregorianCalendar.first: day 1-12-1404 (number 1)
> got 2 but expected 1
> 3 of 312 tests failed

It seems that email to the classpath mailinglist is very slow again (I
didn't got this message back through the list yet) but I already found
my own thinko:

    for (int year = startYear; year <= startYear + 5; year++)
      for (int month = 0; month <= 12; month++)

month <= 12, should be month < 12.

With that your patches make GregorianCalendar pass all these tests.
We still need to look at tests for overflow/roll-over for days and
months since that should actually work correctly. But if you are
confident that these changes are correct then we can check these in now.

BTW. We can accept small one-liners like the above without worrying
about copyrights. But if you want to contribute bigger changes, please
see http://www.gnu.org/software/classpath/docs/hacking.html#SEC2 and/or
contact me off-list so we can make sure all your contributions can be
easily and quickly accepted.

Thanks,

Mark




From MAILER-DAEMON Tue Sep 02 21:10:29 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19uM7Y-0001u0-0x
	for mharc-classpath@gnu.org; Tue, 02 Sep 2003 21:07:40 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19uLfy-0003rD-4B
	for classpath@gnu.org; Tue, 02 Sep 2003 20:39:10 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19uLZc-00021f-Ps
	for classpath@gnu.org; Tue, 02 Sep 2003 20:32:42 -0400
Received: from [80.91.224.249] (helo=main.gmane.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19uLSX-0008HM-Gx
	for classpath@gnu.org; Tue, 02 Sep 2003 20:25:17 -0400
Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19uLT3-0008Nk-00
	for <classpath@gnu.org>; Wed, 03 Sep 2003 02:25:49 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: classpath@gnu.org
Received: from sea.gmane.org ([80.91.224.252])
	by main.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 19uLT2-0008NR-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Wed, 03 Sep 2003 02:25:48 +0200
Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19uLSU-0007S7-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Wed, 03 Sep 2003 02:25:14 +0200
From: graydon hoare <graydon@redhat.com>
Date: 02 Sep 2003 20:25:19 -0400
Lines: 16
Message-ID: <87isoa3ehc.fsf@dub.venge.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@sea.gmane.org
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
Sender: news <news@sea.gmane.org>
Subject: request for comment on java2d stuff
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Sep 2003 01:07:34 -0000

hi,

I recently posted some new files to the java-patches list of the gcj
project, containing the beginnings of my cairo java2d
implementation. I was wondering if anyone here had comments on the
work.

the messages are linked here:

http://gcc.gnu.org/ml/java-patches/2003-q3/msg00493.html
http://gcc.gnu.org/ml/java-patches/2003-q3/msg00494.html
http://gcc.gnu.org/ml/java-patches/2003-q3/msg00495.html

thanks,

-graydon




From MAILER-DAEMON Tue Sep 02 21:12:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19uM6g-0001hZ-BN
	for mharc-classpath@gnu.org; Tue, 02 Sep 2003 21:06:46 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19uJnn-0008UL-2L
	for classpath@gnu.org; Tue, 02 Sep 2003 18:39:07 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19uJdr-00060s-OI
	for classpath@gnu.org; Tue, 02 Sep 2003 18:28:52 -0400
Received: from [196.2.45.78] (helo=starcraft.mweb.co.za)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19uJX3-0004Fc-G3
	for classpath@gnu.org; Tue, 02 Sep 2003 18:21:49 -0400
Received: from pta-dial-196-31-186-164.mweb.co.za ([196.31.186.164]:33197)
	by starcraft.mweb.co.za with esmtp (Exim 4.10)
	id 19uJWl-0008QF-00; Wed, 03 Sep 2003 00:21:32 +0200
From: John Leuner <jewel@pixie.co.za>
To: Stephen Crawley <crawley@dstc.edu.au>
In-Reply-To: <200309020031.h820VUX8019056@piglet.dstc.edu.au>
References: <200309020031.h820VUX8019056@piglet.dstc.edu.au>
Content-Type: text/plain
Organization: 
Message-Id: <1062541036.2283.22.camel@cmalu>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 02 Sep 2003 23:17:16 +0100
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org, "Aaron M. Renn" <arenn@urbanophile.com>
Subject: Re: Kissme and Classpath CVS
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Sep 2003 01:06:44 -0000

On Tue, 2003-09-02 at 01:31, Stephen Crawley wrote:
> > Unfortunately I also forgot to make a CVS tag when I released kissme
> > 0.0.31. 
> 
> ... and I've checked in some bug fixes since 0.0.31 :-(
> 
> I think we can fix this though.  For example, "cvs rtag" with the -D 
> option looks like it would do the trick.  If that fails, we could 
> tag the head revisions, and then carefully move the tags for those
> files that have changed since 0.0.31.

I don't think it's too important, people can use -D if they want to
retrieve a "release" from CVS that matches the released classpath 0.06.

> 
> BTW: this doesn't affect Aaron and other people trying to use Kissme
> right now.  He/they need to checkout the older version of Classpath, 
> not Kissme.

Yes.

> BTW2: I think I'm close to getting Kissme to work with the new Thread
> classes anyway.

I did CVS checkouts earlier and everything seems to work perfectly, are
your changes finished?

-- 
John Leuner <jewel@pixie.co.za>




From MAILER-DAEMON Tue Sep 02 21:26:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19uLno-0005qU-P2
	for mharc-classpath@gnu.org; Tue, 02 Sep 2003 20:47:16 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19uLjw-0004rt-OY
	for classpath@gnu.org; Tue, 02 Sep 2003 20:43:16 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19uL6Z-0002og-MQ
	for classpath@gnu.org; Tue, 02 Sep 2003 20:02:37 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19uKr7-0007SN-4a
	for classpath@gnu.org; Tue, 02 Sep 2003 19:46:37 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19uKq2-0006Hw-U6
	for classpath@gnu.org; Tue, 02 Sep 2003 19:45:31 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.9/8.12.9) with ESMTP id h82Nj2WN018477;
	Wed, 3 Sep 2003 09:45:02 +1000 (EST)
Message-Id: <200309022345.h82Nj2WN018477@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: John Leuner <jewel@pixie.co.za>
In-Reply-To: Message from John Leuner <jewel@pixie.co.za> 
	of "02 Sep 2003 23:17:16 +0100." <1062541036.2283.22.camel@cmalu> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 03 Sep 2003 09:45:18 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: crawley@piglet.dstc.edu.au, Stephen Crawley <crawley@dstc.edu.au>,
	classpath@gnu.org, "Aaron M. Renn" <arenn@urbanophile.com>
Subject: Re: Kissme and Classpath CVS 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Sep 2003 00:46:54 -0000


> > BTW2: I think I'm close to getting Kissme to work with the new Thread
> > classes anyway.
>
> I did CVS checkouts earlier and everything seems to work perfectly, are
> your changes finished?

I'm surprised to hear that.  I haven't checked in any of the relevant 
Kissme changes yet!

-- Steve




From MAILER-DAEMON Wed Sep 03 00:16:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19uP3y-0007pB-4s
	for mharc-classpath@gnu.org; Wed, 03 Sep 2003 00:16:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19uP3g-0007gH-HY
	for classpath@gnu.org; Wed, 03 Sep 2003 00:15:52 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19uP2H-0007Bl-JD
	for classpath@gnu.org; Wed, 03 Sep 2003 00:14:28 -0400
Received: from [132.206.3.88] (helo=relay10.cs.mcgill.ca)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19uP0d-0006lb-PQ
	for classpath@gnu.org; Wed, 03 Sep 2003 00:12:43 -0400
Received: from pinto.cs.mcgill.ca (pinto.CS.McGill.CA [132.206.3.79])
	by relay10.cs.mcgill.ca (Postfix) with ESMTP id E1CFA536F35;
	Wed,  3 Sep 2003 00:12:42 -0400 (EDT)
Received: from pinto.cs.mcgill.ca (dbelan2@localhost [127.0.0.1])
	by pinto.cs.mcgill.ca (8.12.3/8.12.3/Debian-6.4) with ESMTP id
	h834CgQa008026; Wed, 3 Sep 2003 00:12:42 -0400
Received: (from dbelan2@localhost)
	by pinto.cs.mcgill.ca (8.12.3/8.12.3/Debian-6.4) id h834CgkO008024;
	Wed, 3 Sep 2003 00:12:42 -0400
Date: Wed, 3 Sep 2003 00:12:42 -0400
From: David =?iso-8859-1?Q?B=E9langer?= <dbelan2@cs.mcgill.ca>
To: sablevm-developer@lists.sourceforge.net, classpath@gnu.org
Message-ID: <20030903041242.GC7793@pinto.cs.mcgill.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
Content-Transfer-Encoding: quoted-printable
Cc: 
Subject: SableVM and Classpath 0.06
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Sep 2003 04:16:08 -0000


Classpath and SableVM developers,

I started merging Classpath 0.06 with SableVM.  My goal is to
minimize the number of changes required in Classpath and SableVM.

In the next few days / weeks, I will start giving some feedback to the
Classpath team.  (I couldn't wait to announce it!)

Most work is currently done.  As a test, I was able to run Ant with Sable=
VM
/ Classpath 0.06 to build successfully SableCC.

People interested in using/testing SableVM/Classpath 0.06 may get it from
the SableVM svn repository.  Note that it is still experimental.  It
will get much stable in the next few weeks.

It is located in:
/developers/belanger/sandbox/sablevm-classpath/

Info on how to access the svn repository is here:
http://sourceforge.net/mailarchive/forum.php?thread_id=3D2629744&forum_id=
=3D4154

SableVM is built as before.
Look at
/developers/belanger/sandbox/sablevm-classpath/bin/build_classpath
to know how to build classpath for SableVM.
You will have to do symlinks to map Classpath library names to
SableVM library names.  Look at:
/developers/belanger/sandbox/sablevm-classpath/bin/make_symlinks


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 Wed Sep 03 00:48:46 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19uPYV-0001Fz-3c
	for mharc-classpath@gnu.org; Wed, 03 Sep 2003 00:47:43 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19uPXK-000107-4I
	for classpath@gnu.org; Wed, 03 Sep 2003 00:46:30 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19uPWb-0000pL-1V
	for classpath@gnu.org; Wed, 03 Sep 2003 00:45:46 -0400
Received: from [216.218.240.193] (helo=pogo.kaffe.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19uPVj-0000fJ-KL
	for classpath@gnu.org; Wed, 03 Sep 2003 00:44:51 -0400
Received: from adsl-63-205-167-26.dsl.snfc21.pacbell.net ([63.205.167.26]
	helo=localhost) by pogo.kaffe.org with asmtp (Exim 3.35 #1 (Debian))
	id 19uPXH-0004KO-00; Tue, 02 Sep 2003 21:46:27 -0700
Date: Tue, 2 Sep 2003 21:43:16 -0700
From: Jim Pick <jim@kaffe.org>
To: Jim Pick <jim@kaffe.org>
Message-Id: <20030902214316.747742b2.jim@kaffe.org>
In-Reply-To: <20030902194938.326fe4ab.jim@kaffe.org>
References: <E19mi9k-0003Da-00@pogo.kaffe.org>
	<20030829181400.487c5704.jim@kaffe.org>
	<20030902194938.326fe4ab.jim@kaffe.org>
X-Mailer: Sylpheed version 0.8.2 (GTK+ 1.2.10; i386-redhat-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: hkraemer@freenet.de, classpath@gnu.org, kaffe@kaffe.org
Subject: Re: [kaffe] Bug Report: StackOverflowError and Collections
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Sep 2003 04:47:26 -0000

On Tue, 2 Sep 2003 19:49:38 -0700
Jim Pick <jim@kaffe.org> wrote:

> On Fri, 29 Aug 2003 18:14:00 -0700
> "Jim Pick" <jim@kaffe.org> wrote:
> 
> > Hi,
> > 
> > I'm running into problems building ant from CVS (4/28/2003 00:00 UTC),
> > on an x86 Linux machine with the defaults (jthreads/jit3).  It fails
> > like this:
> > 
> > ... Building Ant Distribution
> > Buildfile: build.xml
> > 
> > BUILD FAILED
> > java.lang.StackOverflowError
> >    <<No stacktrace available>>
> > 
> > Total time: 0 seconds
> > java.lang.StackOverflowError
> >    <<No stacktrace available>>
> > ... Failed Building Ant Distribution !
> > 
> > It used to work.  I chased it down to this particular change (the
> > Classpath Collections merge).  I tried increasing the stack size using
> > the -ss option, but it didn't seem to help.
> > 
> > I'll try to debug this when I get time, but I thought I'd report it
> > first.
> 
> Okay, I did some more legwork, and it appears that the problem appears
> because Ant creates a subclass of Hashtable called
> org.apache.tools.ant.util.LazyHashtable, which worked nicely with our
> old implementation of Hashtable, but not with the new Classpath-based
> implementation of Hashtable.
> 
> Basically, LazyHashtable.contains(Object value) calls
> super.contains(Object value) in Hashtable, which in Classpath's
> implementation, calls Hashtable.containsValue(Object value).
> Unfortunately, LazyHashTable.containsValue(Ojbect value) overrides that,
> just calling calling LazyHashTable.contains(Object value) again, and we
> have a loop.
> 
> I'd post a snippet of the stack trace, but I had to use gdb and
> -Xxdebug, so all the symbols are mangled and it's ugly.  :-)
> 
> The old Kaffe implementation of Hashtable didn't have the problem, since
> it used a private HashMap, compare below:
> 
> LazyHashtable:
> 
> http://cvs.apache.org/viewcvs/ant/src/main/org/apache/tools/ant/util/LazyHashtable.java?rev=1.6&content-type=text/vnd.viewcvs-markup
> 
> Classpath's Hashtable
> 
> http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/java/util/Hashtable.java?rev=1.28&content-type=text/vnd.viewcvs-markup
> 
> Our old Hashtable:
> 
> http://www.kaffe.org/cgi-bin/viewcvs.cgi/kaffe/libraries/javalib/java/util/Hashtable.java?rev=1.26&content-type=text/vnd.viewcvs-markup
> 
> I don't know if Kaffe's old Hashtable implementation is more proper or
> not, but at least it worked.  :-)
> 
> I'll cc: this to the classpath list.

Oops, I must have left off the cc:, trying again.

Cheers,

 - Jim



From MAILER-DAEMON Thu Sep 04 12:06:32 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19uwbE-0002z4-4w
	for mharc-classpath@gnu.org; Thu, 04 Sep 2003 12:04:44 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19uwYM-0001tP-8R
	for classpath@gnu.org; Thu, 04 Sep 2003 12:01:46 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19uwW5-0001DY-7w
	for classpath@gnu.org; Thu, 04 Sep 2003 11:59:30 -0400
Received: from [196.2.45.78] (helo=starcraft.mweb.co.za)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19uwW1-0001BP-71
	for classpath@gnu.org; Thu, 04 Sep 2003 11:59:21 -0400
Received: from pta-dial-196-31-187-9.mweb.co.za ([196.31.187.9]:32785)
	by starcraft.mweb.co.za with esmtp (Exim 4.10)
	id 19uwVj-0002Qo-00; Thu, 04 Sep 2003 17:59:04 +0200
From: John Leuner <jewel@pixie.co.za>
To: Stephen Crawley <crawley@dstc.edu.au>
In-Reply-To: <200309022345.h82Nj2WN018477@piglet.dstc.edu.au>
References: <200309022345.h82Nj2WN018477@piglet.dstc.edu.au>
Content-Type: text/plain
Organization: 
Message-Id: <1062680254.2815.3.camel@cmalu>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 04 Sep 2003 17:54:42 +0200
Content-Transfer-Encoding: 7bit
Cc: kissme-general@lists.sf.net, crawley@piglet.dstc.edu.au, classpath@gnu.org
Subject: Re: Kissme and Classpath CVS
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Sep 2003 16:04:39 -0000

I've been burned by this mistake before.

To configure kissme I had:

./configure --with-gnu-classpath-install-dir=xxx

but configure ignores an unsupported option, the real option is:

./configure --with-classpath-install-dir=xxx

Because I had classpath 0.06 installed in /usr/lib/classpath etc it was
finding and using that.

Now I get the expected failure:

cmalu% ./useful_scripts/kissme
helloworld                                                                               Kissme Internal Error: Unknown native method called: java/lang/VMThread.currentThread()Ljava/lang/Thread; java/lang/VMThread
Kissme assertion 'hMainThread' failed: vm/startup.c line 383
Attempting to dump core
zsh: abort      ./useful_scripts/kissme helloworld

John Leuner

On Wed, 2003-09-03 at 01:45, Stephen Crawley wrote:
> > > BTW2: I think I'm close to getting Kissme to work with the new Thread
> > > classes anyway.
> >
> > I did CVS checkouts earlier and everything seems to work perfectly, are
> > your changes finished?
> 
> I'm surprised to hear that.  I haven't checked in any of the relevant 
> Kissme changes yet!
> 
> -- Steve
> 
> 
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
-- 
John Leuner <jewel@pixie.co.za>




From MAILER-DAEMON Thu Sep 04 14:55:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19uzGN-0007I6-Od
	for mharc-classpath@gnu.org; Thu, 04 Sep 2003 14:55:23 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19uxjn-0003tY-AR
	for classpath@gnu.org; Thu, 04 Sep 2003 13:17:39 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19uxjk-0003sa-2j
	for classpath@gnu.org; Thu, 04 Sep 2003 13:17:37 -0400
Received: from [213.250.81.202] (helo=mbox1.netikka.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19uxjj-0003q2-3Y
	for classpath@gnu.org; Thu, 04 Sep 2003 13:17:35 -0400
Received: from ogorod.dielocalwarez.com (fk86.netikka.fi [81.209.126.86])
	by mbox1.netikka.net (Postfix) with SMTP id E024349C065
	for <classpath@gnu.org>; Thu,  4 Sep 2003 20:17:27 +0300 (EEST)
Date: Thu, 4 Sep 2003 20:17:05 +0300
From: Markus =?ISO-8859-15?Q?Niemist=F6?= <markus.niemisto@iki.fi>
To: classpath@gnu.org
Message-Id: <20030904201705.5d92dbff.markus.niemisto@iki.fi>
Organization: -=Die LocalWarez=-
X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i386-unknown-freebsd5.1)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Thu, 04 Sep 2003 14:55:22 -0400
Subject: Problems when running autoconf
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Sep 2003 17:17:40 -0000

Hi

I just checked out the latest code from CVS. When I try to run autoconf
it complains about errors and does not produce a working configure
script. I am using FreeBSD as my os.

log:

maku@ogorod:~/programming> cvs -z9
-d:pserver:anoncvs@subversions.gnu.org:/cvsroot/classpath co classpath
.
.
.
maku@ogorod:~/programming> cd classpath/
maku@ogorod:~/programming/classpath> autoconf
configure.in:115: warning: AC_CANONICAL_HOST invoked multiple times
configure.in:116: warning: AC_CANONICAL_HOST invoked multiple times
configure.in:17: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use
m4_pattern_allow.      See the Autoconf documentation.
configure.in:19: error: possibly undefined macro: AM_CONFIG_HEADER
configure.in:65: error: possibly undefined macro: AM_CONDITIONAL
configure.in:88: error: possibly undefined macro: AC_DISABLE_STATIC
configure.in:89: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.in:140: error: possibly undefined macro: AM_PATH_LIBART
configure.in:178: error: possibly undefined macro: AM_MAINTAINER_MODE
maku@ogorod:~/programming/classpath> ./configure --prefix=3D/usr/own
checking build system type... i386-unknown-freebsd5.1
checking host system type... i386-unknown-freebsd5.1
checking target system type... i386-unknown-freebsd5.1
expr: syntax error
./configure: line 1402: AM_INIT_AUTOMAKE: command not found
./configure: line 1404: syntax error near unexpected token
`include/config.h'./configure: line 1404:
`AM_CONFIG_HEADER(include/config.h)'
maku@ogorod:~/programming/classpath> autoconf --version
autoconf (GNU Autoconf) 2.57
Written by David J. MacKenzie and Akim Demaille.

Copyright 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
maku@ogorod:~/programming/classpath> automake --version
automake (GNU automake) 1.7.6
Written by Tom Tromey <tromey@redhat.com>.

Copyright 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
maku@ogorod:~/programming/classpath> uname -a
FreeBSD ogorod.dielocalwarez.com 5.1-CURRENT FreeBSD 5.1-CURRENT #83:
Thu Sep  4 07:04:22 EEST 2003   =20
maku@ogorod.dielocalwarez.com:/usr/src/sys/i386/compile/-=3DDLW=3D-  i386
maku@ogorod:~/programming/classpath>

Other configure.in:s I've tried work. Any ideas?

I am not on this list so, please, answer me directly.

Thanks,
	Markus Niemist=F6



From MAILER-DAEMON Thu Sep 04 22:32:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19v6O8-0008Dx-6v
	for mharc-classpath@gnu.org; Thu, 04 Sep 2003 22:31:52 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19v6Nc-0007js-9H
	for classpath@gnu.org; Thu, 04 Sep 2003 22:31:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19v6MT-0006Hj-Vs
	for classpath@gnu.org; Thu, 04 Sep 2003 22:30:13 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19v6MK-0005pv-W3
	for classpath@gnu.org; Thu, 04 Sep 2003 22:30:01 -0400
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19v6M9-0005VH-FE
	for classpath@gnu.org; Thu, 04 Sep 2003 22:29:49 -0400
Received: from slauerhoff.wildebeest.org
	([192.168.1.27] helo=localhost ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 19v6Lg-0001Zn-00; Fri, 05 Sep 2003 04:29:20 +0200
Received: from mark by localhost with local (Exim 3.36 #1 (Debian))
	id 19v6Lk-0000pG-00; Fri, 05 Sep 2003 04:29:24 +0200
From: Mark Wielaard <mark@klomp.org>
To: John Leuner <jewel@pixie.co.za>
In-Reply-To: <1062680254.2815.3.camel@cmalu>
References: <200309022345.h82Nj2WN018477@piglet.dstc.edu.au>
	<1062680254.2815.3.camel@cmalu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Message-Id: <1062728963.707.4.camel@localhost>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4 
Date: Fri, 05 Sep 2003 04:29:23 +0200
Sender: Mark Wielaard <mark@slauerhoff>
Cc: kissme-general@lists.sf.net, Stephen Crawley <crawley@dstc.edu.au>,
	crawley@piglet.dstc.edu.au, classpath@gnu.org
Subject: Re: Kissme and Classpath CVS
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Sep 2003 02:31:37 -0000

Hi,

On Thu, 2003-09-04 at 17:54, John Leuner wrote:
> Now I get the expected failure:
> 
> cmalu% ./useful_scripts/kissme
> helloworld                                                                               Kissme Internal Error: Unknown native method called: java/lang/VMThread.currentThread()Ljava/lang/Thread; java/lang/VMThread
> Kissme assertion 'hMainThread' failed: vm/startup.c line 383
> Attempting to dump core
> zsh: abort      ./useful_scripts/kissme helloworld

You probably already found out, but for other readers of the list that
try to get Classpath CVS working with Kissme for now you have to remove
vm/reference/java/lang/VMThread.java and java/lang/Thread.java and
revert to the original Thread.java by doing:
cvs update -r 1.28 vm/reference/java/lang/Thread.java

Cheers,

Mark



From MAILER-DAEMON Fri Sep 05 01:14:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19v8vE-0000nP-AK
	for mharc-classpath@gnu.org; Fri, 05 Sep 2003 01:14:12 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19v8uu-0000Kh-WA
	for classpath@gnu.org; Fri, 05 Sep 2003 01:13:53 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19v8uF-00084Y-KB
	for classpath@gnu.org; Fri, 05 Sep 2003 01:13:14 -0400
Received: from [212.6.122.116] (helo=mail2.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19v8p8-0005Q8-Jp
	for classpath@gnu.org; Fri, 05 Sep 2003 01:07:54 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-74-150.ewetel.net
	[80.228.74.150])
	by mail2.ewetel.de (8.12.1/8.12.9) with ESMTP id h8557emK019313;
	Fri, 5 Sep 2003 07:07:41 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 19v8ou-0002g2-00; Fri, 05 Sep 2003 07:07:40 +0200
From: Michael Koch <konqueror@gmx.de>
To: Markus =?iso-8859-15?q?Niemist=F6?= <markus.niemisto@iki.fi>,
	classpath@gnu.org
Date: Fri, 5 Sep 2003 07:09:00 +0200
User-Agent: KMail/1.5.2
References: <20030904201705.5d92dbff.markus.niemisto@iki.fi>
In-Reply-To: <20030904201705.5d92dbff.markus.niemisto@iki.fi>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Description: clearsigned data
Content-Disposition: inline
Message-Id: <200309050709.04103.konqueror@gmx.de>
X-CheckCompat: OK
Cc: 
Subject: Re: Problems when running autoconf
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Sep 2003 05:14:08 -0000

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

Am Donnerstag, 4. September 2003 19:17 schrieb Markus Niemist=F6:
> Hi
>
> I just checked out the latest code from CVS. When I try to run
> autoconf it complains about errors and does not produce a working
> configure script. I am using FreeBSD as my os.
>
> log:
>
> maku@ogorod:~/programming> cvs -z9
> -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/classpath co
> classpath .
> .
> .
> maku@ogorod:~/programming> cd classpath/
> maku@ogorod:~/programming/classpath> autoconf
> configure.in:115: warning: AC_CANONICAL_HOST invoked multiple times
> configure.in:116: warning: AC_CANONICAL_HOST invoked multiple times
> configure.in:17: error: possibly undefined macro: AM_INIT_AUTOMAKE
>       If this token and others are legitimate, please use
> m4_pattern_allow.      See the Autoconf documentation.
> configure.in:19: error: possibly undefined macro: AM_CONFIG_HEADER
> configure.in:65: error: possibly undefined macro: AM_CONDITIONAL
> configure.in:88: error: possibly undefined macro: AC_DISABLE_STATIC
> configure.in:89: error: possibly undefined macro: AC_PROG_LIBTOOL
> configure.in:140: error: possibly undefined macro: AM_PATH_LIBART
> configure.in:178: error: possibly undefined macro:
> AM_MAINTAINER_MODE maku@ogorod:~/programming/classpath> ./configure
> --prefix=3D/usr/own checking build system type...
> i386-unknown-freebsd5.1
> checking host system type... i386-unknown-freebsd5.1
> checking target system type... i386-unknown-freebsd5.1
> expr: syntax error
> /configure: line 1402: AM_INIT_AUTOMAKE: command not found
> /configure: line 1404: syntax error near unexpected token
> `include/config.h'./configure: line 1404:
> `AM_CONFIG_HEADER(include/config.h)'
> maku@ogorod:~/programming/classpath> autoconf --version
> autoconf (GNU Autoconf) 2.57
> Written by David J. MacKenzie and Akim Demaille.
>
> Copyright 2002 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.=20
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> maku@ogorod:~/programming/classpath> automake --version
> automake (GNU automake) 1.7.6
> Written by Tom Tromey <tromey@redhat.com>.
>
> Copyright 2003 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.=20
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> maku@ogorod:~/programming/classpath> uname -a
> FreeBSD ogorod.dielocalwarez.com 5.1-CURRENT FreeBSD 5.1-CURRENT
> #83: Thu Sep  4 07:04:22 EEST 2003
> maku@ogorod.dielocalwarez.com:/usr/src/sys/i386/compile/-=3DDLW=3D-=20
> i386 maku@ogorod:~/programming/classpath>
>
> Other configure.in:s I've tried work. Any ideas?
>
> I am not on this list so, please, answer me directly.

You have to do more then just "autoconf". The following commands in=20
this order should work:

aclocal
autoheader
autoconf
automake


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

iD8DBQE/WBpvWSOgCCdjSDsRAii5AKCN1nihTft/nXXmWqqSlMPURXaoSgCfaAoZ
sm7kbK6jtiEtzA4QlsAj3yo=3D
=3DJXDm
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Tue Sep 09 12:26:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19wlJg-0002Xx-Ms
	for mharc-classpath@gnu.org; Tue, 09 Sep 2003 12:26:08 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19wlJ3-0002Dk-E0
	for classpath@gnu.org; Tue, 09 Sep 2003 12:25:29 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19wlIY-0001eZ-JF
	for classpath@gnu.org; Tue, 09 Sep 2003 12:25:02 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19wlCQ-0006uv-VP
	for classpath@gnu.org; Tue, 09 Sep 2003 12:18:39 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id KAA15845;
	Tue, 9 Sep 2003 10:18:23 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id AA63F4F898E; Tue,  9 Sep 2003 10:11:27 -0600 (MDT)
To: Jim Pick <jim@kaffe.org>
References: <E19mi9k-0003Da-00@pogo.kaffe.org>
	<20030829181400.487c5704.jim@kaffe.org>
	<20030902194938.326fe4ab.jim@kaffe.org>
	<20030902214316.747742b2.jim@kaffe.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: .. I have a VISION! It's a RANCID double-FISHWICH on an ENRICHED BUN!!
Date: 09 Sep 2003 10:11:27 -0600
In-Reply-To: <20030902214316.747742b2.jim@kaffe.org>
Message-ID: <87iso26ixc.fsf@fleche.redhat.com>
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: hkraemer@freenet.de, classpath@gnu.org, kaffe@kaffe.org
Subject: Re: [kaffe] Bug Report: StackOverflowError and Collections
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Sep 2003 16:26:06 -0000

>> Basically, LazyHashtable.contains(Object value) calls
>> super.contains(Object value) in Hashtable, which in Classpath's
>> implementation, calls Hashtable.containsValue(Object value).
>> Unfortunately, LazyHashTable.containsValue(Ojbect value) overrides that,
>> just calling calling LazyHashTable.contains(Object value) again, and we
>> have a loop.

It isn't clear to me that this is definitively a Classpath bug.  Who's
to say there isn't currently-working code out there that does the
opposite?  The JDK docs certainly don't specify this sort of thing.

I think it would be easy to change ant to be robust in the face of any
implementation of Hashtable.


What version of ant is this?  I don't see this file in the ant in rhug
(1.5).

Tom



From MAILER-DAEMON Tue Sep 09 13:23:32 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19wmBG-0002vc-K1
	for mharc-classpath@gnu.org; Tue, 09 Sep 2003 13:21:30 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19wm9x-0002YE-Lu
	for classpath@gnu.org; Tue, 09 Sep 2003 13:20:09 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19wm5h-0001Xo-Bb
	for classpath@gnu.org; Tue, 09 Sep 2003 13:15:47 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19wm5T-0001SH-6y
	for classpath@gnu.org; Tue, 09 Sep 2003 13:15:31 -0400
Received: from [216.218.240.193] (helo=pogo.kaffe.org)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19wlou-0003LP-5J
	for classpath@gnu.org; Tue, 09 Sep 2003 12:58:24 -0400
Received: from adsl-63-205-167-26.dsl.snfc21.pacbell.net ([63.205.167.26]
	helo=localhost) by pogo.kaffe.org with asmtp (Exim 3.35 #1 (Debian))
	id 19wlq2-0003vH-00; Tue, 09 Sep 2003 09:59:35 -0700
Date: Tue, 9 Sep 2003 09:57:25 -0700
From: Jim Pick <jim@kaffe.org>
To: tromey@redhat.com
Message-Id: <20030909095725.2c9f8cf8.jim@kaffe.org>
In-Reply-To: <87iso26ixc.fsf@fleche.redhat.com>
References: <E19mi9k-0003Da-00@pogo.kaffe.org>
	<20030829181400.487c5704.jim@kaffe.org>
	<20030902194938.326fe4ab.jim@kaffe.org>
	<20030902214316.747742b2.jim@kaffe.org>
	<87iso26ixc.fsf@fleche.redhat.com>
X-Mailer: Sylpheed version 0.8.2 (GTK+ 1.2.10; i386-redhat-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: hkraemer@freenet.de, classpath@gnu.org, kaffe@kaffe.org
Subject: Re: [kaffe] Bug Report: StackOverflowError and Collections
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Sep 2003 17:21:28 -0000

On 09 Sep 2003 10:11:27 -0600
Tom Tromey <tromey@redhat.com> wrote:

> >> Basically, LazyHashtable.contains(Object value) calls
> >> super.contains(Object value) in Hashtable, which in Classpath's
> >> implementation, calls Hashtable.containsValue(Object value).
> >> Unfortunately, LazyHashTable.containsValue(Ojbect value) overrides that,
> >> just calling calling LazyHashTable.contains(Object value) again, and we
> >> have a loop.
> 
> It isn't clear to me that this is definitively a Classpath bug.  Who's
> to say there isn't currently-working code out there that does the
> opposite?  The JDK docs certainly don't specify this sort of thing.

I think it depends on how you define "what is a bug".

Sure, it's not in the spec, but Sun implemented it a certain way, and
that gets exposed, and code (eg. Ant, and probably others) depends on
the way it was implemented.

Since it's unlikely that any Java(tm) branded JVM is going to use an
alternate implementation, people are going to unwittingly rely on these
hidden dependencies.

It's going to be really difficult to try to mount a campaign to try to
convince people to code to the spec (if you can call the Javadocs a
spec), vs. coding to the implementation, especially when only 0.0001% of
Java developers use ours.  It might be easier to just admit defeat, and
change our implementation when it doesn't match.

> I think it would be easy to change ant to be robust in the face of any
> implementation of Hashtable.
> 
> 
> What version of ant is this?  I don't see this file in the ant in rhug
> (1.5).

I stumbled across it in Ant from CVS dated '4/28/2003 00:00 UTC' (the
newer CVS stuff doesn't work for me yet because of nio).  I'm trying to
build a regression test based on Jakarta Gump (2gigs of code!).

Cheers,

 - Jim



From MAILER-DAEMON Tue Sep 09 13:26:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19wmFv-0004IU-Me
	for mharc-classpath@gnu.org; Tue, 09 Sep 2003 13:26:19 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19wlNx-00048O-6B
	for classpath@gnu.org; Tue, 09 Sep 2003 12:30:33 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19wlND-0003jf-5v
	for classpath@gnu.org; Tue, 09 Sep 2003 12:29:48 -0400
Received: from [216.136.128.120] (helo=web10009.mail.yahoo.com)
	by monty-python.gnu.org with smtp (Exim 4.22) id 19wlLH-00036d-G4
	for classpath@gnu.org; Tue, 09 Sep 2003 12:27:47 -0400
Message-ID: <20030909162745.52822.qmail@web10009.mail.yahoo.com>
Received: from [139.19.20.8] by web10009.mail.yahoo.com via HTTP;
	Tue, 09 Sep 2003 09:27:45 PDT
Date: Tue, 9 Sep 2003 09:27:45 -0700 (PDT)
From: Dalibor Topic <robilad@yahoo.com>
To: tromey@redhat.com, Jim Pick <jim@kaffe.org>
In-Reply-To: <87iso26ixc.fsf@fleche.redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Tue, 09 Sep 2003 13:26:17 -0400
Cc: hkraemer@freenet.de, classpath@gnu.org, kaffe@kaffe.org
Subject: Re: [kaffe] Bug Report: StackOverflowError and Collections
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Sep 2003 16:31:18 -0000


--- Tom Tromey <tromey@redhat.com> wrote:
> >> Basically, LazyHashtable.contains(Object value) calls
> >> super.contains(Object value) in Hashtable, which in Classpath's
> >> implementation, calls Hashtable.containsValue(Object value).
> >> Unfortunately, LazyHashTable.containsValue(Ojbect value) overrides that,
> >> just calling calling LazyHashTable.contains(Object value) again, and we
> >> have a loop.
> 
> It isn't clear to me that this is definitively a Classpath bug.  Who's
> to say there isn't currently-working code out there that does the
> opposite?  The JDK docs certainly don't specify this sort of thing.

this is a typical java library bug, and I've both produced and fixed a couple
of those myself ;) You get an infinite recursion through calling overridden
methods. Class A in library implements public methods b and c, where b
internally (and of course undocumentedly ;) calls c. Class B from some user of
the library extends A and overrides c to call b. When the user calls the method
b of class B it goes straight into an infinite loop.

The fix is to avoid calling overridable methods from overridable methods, and
to delegate those calls to internal, non-overridable versions of the methods.

cheers,
dalibor topic

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



From MAILER-DAEMON Tue Sep 09 19:46:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19wsBE-0005Ii-UD
	for mharc-classpath@gnu.org; Tue, 09 Sep 2003 19:45:52 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19wsAs-0004tC-Sl
	for classpath@gnu.org; Tue, 09 Sep 2003 19:45:30 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19wsAE-0003tT-2P
	for classpath@gnu.org; Tue, 09 Sep 2003 19:44:55 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19ws9w-0003RP-9J
	for classpath@gnu.org; Tue, 09 Sep 2003 19:44:32 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.9/8.12.9) with ESMTP id h89NhuKf005004;
	Wed, 10 Sep 2003 09:43:56 +1000 (EST)
Message-Id: <200309092343.h89NhuKf005004@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: Jim Pick <jim@kaffe.org>
In-Reply-To: Message from Jim Pick <jim@kaffe.org> of "Tue,
	09 Sep 2003 09:57:25 MST." <20030909095725.2c9f8cf8.jim@kaffe.org> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 10 Sep 2003 09:44:12 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: tromey@redhat.com, hkraemer@freenet.de, crawley@piglet.dstc.edu.au,
	classpath@gnu.org, kaffe@kaffe.org
Subject: Re: [kaffe] Bug Report: StackOverflowError and Collections 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Sep 2003 23:45:47 -0000


Jim Pick <jim@kaffe.org> wrote:
> Tom Tromey <tromey@redhat.com> wrote:
> > It isn't clear to me that this is definitively a Classpath bug.  Who's
> > to say there isn't currently-working code out there that does the
> > opposite?  The JDK docs certainly don't specify this sort of thing.

> I think it depends on how you define "what is a bug".
> 
> Sure, it's not in the spec, but Sun implemented it a certain way, and
> that gets exposed, and code (eg. Ant, and probably others) depends on
> the way it was implemented.

I agree with Jim.  From what I recall, Sun conformance testing takes the
approach that the "gold standard" for Java is not the JavaDoc but the
behaviour of their JDK reference implementations.  Assuming that we want 
to "conformant", we should follow Sun's definition of what this means.

Besides, it is unrealistic to expecting people to code applications to
assume >>only<< what the JavaDocs says.  Most people don't write code
with the JavaDoc.  If they tried to, they'd probably fail because:

  1)  the javadoc is often incomplete, occasionally misleading and
      sometimes plain wrong, and

  2)  your average joe programmer has difficulty reading/comprehending
      precise specifications.

So, this sounds like a real bug.  The way to be sure would be to distill
it onto a Mauve testcase so that it can be run against various Sun JDKs.

-- Steve





From MAILER-DAEMON Wed Sep 10 01:41:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19wxjL-0002VT-OJ
	for mharc-classpath@gnu.org; Wed, 10 Sep 2003 01:41:27 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19wxjI-0002UF-KF
	for classpath@gnu.org; Wed, 10 Sep 2003 01:41:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19wxjG-0002Ta-3Z
	for classpath@gnu.org; Wed, 10 Sep 2003 01:41:22 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19wxjF-0002R9-Qy
	for classpath@gnu.org; Wed, 10 Sep 2003 01:41:21 -0400
Received: from [80.91.224.249] (helo=main.gmane.org)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19wxiX-0001aS-CG
	for classpath@gnu.org; Wed, 10 Sep 2003 01:40:37 -0400
Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19wxiT-0007qX-00
	for <classpath@gnu.org>; Wed, 10 Sep 2003 07:40:33 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: classpath@gnu.org
Received: from sea.gmane.org ([80.91.224.252])
	by main.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 19wxiS-0007qN-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Wed, 10 Sep 2003 07:40:32 +0200
Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19wxiU-0005Pg-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Wed, 10 Sep 2003 07:40:34 +0200
From: graydon hoare <graydon@redhat.com>
Date: 10 Sep 2003 01:36:53 -0400
Lines: 37
Message-ID: <87oextb3wq.fsf@dub.venge.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@sea.gmane.org
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
Sender: news <news@sea.gmane.org>
Subject: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Sep 2003 05:41:25 -0000

hi,

I would like to attach some extra methods to a singleton object of
some sort -- something like Toolkit or GraphicsEnvironment, or a
classpath-specific subclass of these -- to produce peer or peer-like
(native-assisted subclass) objects for use in java2d. in particular:

   - a factory method for producing a "peer" font (or some native
     state, whether or not you call it a peer) using the constructor
     parameters of the java2d "new font model": attribute maps, face
     and family name. as I've already posted, I have a pango-backed
     GdkFont object which does this, but alas you can currently only
     construct it by name. calling new Font(...) doesn't do it.

   - some methods for obtaining precise feedback from the path
     rasterizer, such as hit detection or stroke conversion. 

I know the java designers have currently decided that these things
ought to all be done in "pure java" -- though they appear to be
changing their minds yet again and moving over to hardware openGL --
but I feel it is currently quite restrictive that, for example, we can
have any sort of native-backed Graphics2D we like, on a
toolkit-by-toolkit basis, but we must have only one class in all of
classpath which is built when you ask for a new Font(...).

it would be much nicer if Font's constructor called a factory method
to build an optional peer for the Font. of course, if null is returned
then we can expect the Font to either work in pure java or fail -- as
it currently does -- on certain operations. but the presence of a
peer-like reference and a static factory somewhere would permit
switching around the *entire* java2d vocabulary (paths, images, fonts,
etc), not just the Graphics2D class.

I think these sort of changes will help manage the increasing variety
of java2d implementations we are seeing. do they sound acceptable?

-graydon




From MAILER-DAEMON Wed Sep 10 04:17:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19x0AI-0004xa-33
	for mharc-classpath@gnu.org; Wed, 10 Sep 2003 04:17:26 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19x0AE-0004uZ-9Q
	for classpath@gnu.org; Wed, 10 Sep 2003 04:17:22 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19x09u-0004hr-CO
	for classpath@gnu.org; Wed, 10 Sep 2003 04:17:03 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19x09h-0004dc-Q7
	for classpath@gnu.org; Wed, 10 Sep 2003 04:16:49 -0400
Received: from [217.8.192.20] (helo=smtp1.mail.ch.easynet.net)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19wzyQ-0004Rf-Ip
	for classpath@gnu.org; Wed, 10 Sep 2003 04:05:10 -0400
Received: from [192.168.1.33] (unknown [217.8.218.134])
	by smtp1.mail.ch.easynet.net (Postfix) with ESMTP id 2A6E149F9E
	for <classpath@gnu.org>; Wed, 10 Sep 2003 10:05:07 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Wed, 10 Sep 2003 10:04:44 +0200
Message-Id: <20030910080444.1329@smtp.mail.ch.easynet.net>
In-Reply-To: <87oextb3wq.fsf@dub.venge.net>
References: <87oextb3wq.fsf@dub.venge.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Re: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Sep 2003 08:17:24 -0000

graydon hoare <graydon@redhat.com> wrote on Wed, 10 Sep 2003 01:36:53 -0400:

>I would like to attach some extra methods to a singleton object of
>some sort -- something like Toolkit or GraphicsEnvironment, or a
>classpath-specific subclass of these -- to produce peer or peer-like
>(native-assisted subclass) objects for use in java2d.

I think this is an excellent idea. I guess it comes to the following:

- gnu.java.awt.peer -- abstract, platform-independent classes
- gnu.java.awt.peer.gtk -- your GTK/Cairo implementation
- gnu.java.awt.peer.(xxx) -- other implementations

package gnu.java.awt.peer;
abstract class GeneralGraphicsEnvironment
  // should this be "ClasspathGraphicsEnvironment"?
  // "CPGraphicsEnvironment"? "GNUGraphicsEnvironment"?
  extends java.awt.GraphicsEnvironment
{
  abstract GeneralFontPeer createFontPeer(java.awt.Font awtFont, double
size, ...);
}

package gnu.java.awt.peer.foo;
class FooGraphicsEnvironment
  extends gnu.java.awt.peer.GeneralGraphicsEnvironment
{
  GeneralFontPeer createFontPeer(...) { return new FooFontPeer(...); }
}

By the way, there are now some GDK/GTK-related classes in
gnu.java.awt.image. Could/should these move to gnu.java.awt.peer.gtk as well?

How will methods like java.awt.GraphicsEnvironment.getLocalEnvironment()
know about the right peers?
A test program for dumping System.getProperties() on Sun's J2SE 1.4.1
lists the following properties that sound related to graphics:

java.awt.graphicsenv = "sun.awt.X11GraphicsEnvironment"
java.awt.printerjob = "sun.print.PSPrinterJob"
sun.java2d.fontpath = ""

If we use the same system property 'java.awt.graphicsenv', where should
it get set?

>I know the java designers have currently decided that these things
>ought to all be done in "pure java" -- though they appear to be
>changing their minds yet again and moving over to hardware openGL --
>but I feel it is currently quite restrictive that, for example, we can
>have any sort of native-backed Graphics2D we like, on a
>toolkit-by-toolkit basis, but we must have only one class in all of
>classpath which is built when you ask for a new Font(...).

I fully agree with you.


>it would be much nicer if Font's constructor called a factory method
>to build an optional peer for the Font. of course, if null is returned
>then we can expect the Font to either work in pure java or fail -- as
>it currently does -- on certain operations.

Actually, I'd propose that the factory should always return a peer
object. This would make the delegating code (like java.awt.Font) simpler,
because it would not have to support a peerless case. This is not a
problem for those who want to do things in pure Java, or in an
environment that does not support C (like Jaos). Those people still can
define their peers in whatever way they want to.

>I think these sort of changes will help manage the increasing variety
>of java2d implementations we are seeing. do they sound acceptable?

I think they are very reasonable. From your first posting, I assumed that
your proposal was that everyone should switch to GTK+. So, I'm very glad
that we seem to be able to come up with a structure that allows for
multiple backends.

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 






From MAILER-DAEMON Wed Sep 10 11:17:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19x6j8-0004zP-UX
	for mharc-classpath@gnu.org; Wed, 10 Sep 2003 11:17:50 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19x6j5-0004xV-7p
	for classpath@gnu.org; Wed, 10 Sep 2003 11:17:47 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19x6j2-0004wJ-Cq
	for classpath@gnu.org; Wed, 10 Sep 2003 11:17:45 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19x6j2-0004v6-06
	for classpath@gnu.org; Wed, 10 Sep 2003 11:17:44 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19x6ij-0001Jl-1p
	for classpath@gnu.org; Wed, 10 Sep 2003 11:17:25 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 19x6i7-0006QR-00
	for <classpath@gnu.org>; Wed, 10 Sep 2003 17:16:47 +0200
Received: from mpiat2000.ag2.mpi-sb.mpg.de
	([139.19.20.8] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 19x6i4-0006Nq-00; Wed, 10 Sep 2003 17:16:44 +0200
Message-ID: <3F5F405B.1080001@kaffe.org>
Date: Wed, 10 Sep 2003 17:16:43 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Sascha Brawer <brawer@dandelis.ch>
References: <87oextb3wq.fsf@dub.venge.net>
	<20030910080444.1329@smtp.mail.ch.easynet.net>
In-Reply-To: <20030910080444.1329@smtp.mail.ch.easynet.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Sep 2003 15:17:48 -0000

Hallo Sascha,

Sascha Brawer wrote:
> graydon hoare <graydon@redhat.com> wrote on Wed, 10 Sep 2003 01:36:53 -0400:
> 
> 
>>I would like to attach some extra methods to a singleton object of
>>some sort -- something like Toolkit or GraphicsEnvironment, or a
>>classpath-specific subclass of these -- to produce peer or peer-like
>>(native-assisted subclass) objects for use in java2d.
> 
> 
> I think this is an excellent idea. I guess it comes to the following:
> 
> - gnu.java.awt.peer -- abstract, platform-independent classes
> - gnu.java.awt.peer.gtk -- your GTK/Cairo implementation
> - gnu.java.awt.peer.(xxx) -- other implementations
> 
> package gnu.java.awt.peer;
> abstract class GeneralGraphicsEnvironment
>   // should this be "ClasspathGraphicsEnvironment"?
>   // "CPGraphicsEnvironment"? "GNUGraphicsEnvironment"?
>   extends java.awt.GraphicsEnvironment
> {
>   abstract GeneralFontPeer createFontPeer(java.awt.Font awtFont, double
> size, ...);
> }
> 
> package gnu.java.awt.peer.foo;
> class FooGraphicsEnvironment
>   extends gnu.java.awt.peer.GeneralGraphicsEnvironment
> {
>   GeneralFontPeer createFontPeer(...) { return new FooFontPeer(...); }
> }
> 
> By the way, there are now some GDK/GTK-related classes in
> gnu.java.awt.image. Could/should these move to gnu.java.awt.peer.gtk as well?
> 
> How will methods like java.awt.GraphicsEnvironment.getLocalEnvironment()
> know about the right peers?

What about having Classpath Graphics Environments that support the font 
peer factory interface imlement such an interface?

package gnu.java.awt.peer;

/* Here goes documentation about the FontPeerFactory interface */
public interface FontPeerFactory {
	GeneralFontPeer createFontPeer(java.awt.Font awtFont, double size, ...);
}

import gnu.java.awt.peer.FontPeerFactory;

package gnu.java.awt.peer;
abstract class GeneralGraphicsEnvironment
    // should this be "ClasspathGraphicsEnvironment"?
    // "CPGraphicsEnvironment"? "GNUGraphicsEnvironment"?
    extends java.awt.GraphicsEnvironment
    implements FontPeerFactory
  {
  }

Then getLocalEnvironment() could check if a GraphicsEnvironment 
instanceof FontPeerFactory.

cheers,
dalibor topic




From MAILER-DAEMON Wed Sep 10 11:51:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19x7FM-000075-1b
	for mharc-classpath@gnu.org; Wed, 10 Sep 2003 11:51:08 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19x7DR-0007Tq-Fn
	for classpath@gnu.org; Wed, 10 Sep 2003 11:49:09 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19x7D5-0007Ln-Lt
	for classpath@gnu.org; Wed, 10 Sep 2003 11:48:50 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19x7Ct-000796-W0
	for classpath@gnu.org; Wed, 10 Sep 2003 11:48:36 -0400
Received: from [207.219.125.105] (helo=touchme.toronto.redhat.com)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19x7CG-0004eJ-5y
	for classpath@gnu.org; Wed, 10 Sep 2003 11:47:56 -0400
Received: from tortoise.toronto.redhat.com (tortoise.toronto.redhat.com
	[172.16.14.92]) by touchme.toronto.redhat.com (Postfix) with ESMTP
	id 99425800348; Wed, 10 Sep 2003 11:47:49 -0400 (EDT)
From: Thomas Fitzsimmons <fitzsim@redhat.com>
To: graydon hoare <graydon@redhat.com>
In-Reply-To: <87oextb3wq.fsf@dub.venge.net>
References: <87oextb3wq.fsf@dub.venge.net>
Content-Type: text/plain
Message-Id: <1063208869.20789.12.camel@tortoise.toronto.redhat.com>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4 (1.4.4-1) 
Date: Wed, 10 Sep 2003 11:47:49 -0400
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org
Subject: Re: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Sep 2003 15:51:06 -0000

On Wed, 2003-09-10 at 01:36, graydon hoare wrote:

> I think these sort of changes will help manage the increasing variety
> of java2d implementations we are seeing. do they sound acceptable?
> 

Yes, this sounds like a good design.  Michael Koch and I did something
similar, but on a smaller scale, with the EmbeddedWindow class in
libgcj.  You may want to have a look at that.

Tom





From MAILER-DAEMON Wed Sep 10 15:57:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xB5M-0005Bv-RB
	for mharc-classpath@gnu.org; Wed, 10 Sep 2003 15:57:04 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xB5F-00057P-HL
	for classpath@gnu.org; Wed, 10 Sep 2003 15:56:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xB5C-00055D-IF
	for classpath@gnu.org; Wed, 10 Sep 2003 15:56:55 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19xB5B-0004zA-26
	for classpath@gnu.org; Wed, 10 Sep 2003 15:56:53 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id NAA12736;
	Wed, 10 Sep 2003 13:56:42 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id F01114F8244; Wed, 10 Sep 2003 13:14:36 -0600 (MDT)
To: graydon hoare <graydon@redhat.com>
References: <87brtsa83r.fsf@dub.venge.net>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: Did YOU find a DIGITAL WATCH in YOUR box of VELVEETA?
Date: 10 Sep 2003 13:14:36 -0600
In-Reply-To: <87brtsa83r.fsf@dub.venge.net>
Message-ID: <87d6e8317n.fsf@fleche.redhat.com>
Lines: 16
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, java-patches@gcc.gnu.org
Subject: Re: [patch] some geometry fixes
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Sep 2003 19:57:03 -0000

>>>>> "graydon" == graydon hoare <graydon@redhat.com> writes:

graydon> these two patches fix some problems in geometry: AffineTransform was
graydon> mis-transforming points in some cases, and Arc2D wasn't returning a
graydon> path iterator which approximated an arc segment very well. 
graydon> ok to commit?

Yes, thanks.
One little note...

graydon> +      else if (e <= 90 * (Math.PI / 180))

I think it would be a bit cleaner to just write `e <= Math.PI / 2',
i.e., reduce the fractions.

Tom



From MAILER-DAEMON Thu Sep 11 05:58:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xODH-0008Pj-43
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 05:58:07 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xODC-0008PQ-He
	for classpath@gnu.org; Thu, 11 Sep 2003 05:58:02 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xODA-0008P5-B4
	for classpath@gnu.org; Thu, 11 Sep 2003 05:58:01 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19xOD9-0008Oh-Kh
	for classpath@gnu.org; Thu, 11 Sep 2003 05:57:59 -0400
Received: from [192.168.1.33] (unknown [217.8.218.191])
	by smtp2.mail.ch.easynet.net (Postfix) with ESMTP
	id 2346C645D8; Thu, 11 Sep 2003 11:57:55 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: graydon hoare <graydon@redhat.com>
Date: Thu, 11 Sep 2003 11:57:33 +0200
Message-Id: <20030911095733.23377@smtp.mail.ch.easynet.net>
In-Reply-To: <87isoa3ehc.fsf@dub.venge.net>
References: <87isoa3ehc.fsf@dub.venge.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: request for comment on java2d stuff
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Sep 2003 09:58:03 -0000

Hi Graydon,

you wrote on Tue, 2 Sep 2003 20:25:19 -0400:

> I recently posted some new files to the java-patches list of the gcj
> project, containing the beginnings of my cairo java2d
> implementation. I was wondering if anyone here had comments on the
> work.

>From a coarse view, I'd say your code looks really good. I've just a few
remarks:

(1) In GdkGraphics2D.walkPath(PathIterator), the treatment of quadratic
splines is almost, but not entirely correct. The page

  http://pfaedit.sourceforge.net/bezier.html

describes how to convert quadratic splines into cubic ones (they call
them "TrueType" and "PostScript", respectively). In case you find this a
useful reference, you might want to include a comment in the code that
points to that page.



(2) Strokes that are not a BasicStroke: The drawing methods could check
whether the value of the stroke field is an instance of BasicStroke. If
not, they would not directly call into Cairo. For example,
GdkGraphics2D.draw(Shape) could look as follows:

public void draw(Shape s)
{
  if (!(stroke instanceof BasicStroke))
  {
    fill(stroke.createStrokedShape(s));
    return;
  }

  /* here comes your current implementation */
}


Methods like GdkGraphics2D.drawRect(int, int, int, int) would need
adjustments:

public void drawRect(int x, int y, int width, int height)
{
  if (!(stroke instanceof BasicStroke))
  {
    draw(new Rectangle(x, y, width, height));
    return;
  }

  /* here comes your current implementation */
}


When GdkGraphics2D.setStroke(Stroke) gets passed a non-BasicStroke, it
would just store the stroke without calling into Cairo.



(3) When GdkGraphics2D.drawImage gets passed a BufferedImage, you now
copy all pixels into a freshly allocated int[]. This has the advantage
that it works for all pixel formats, but it is inefficient for large
images. The problem is that copying pixel data is an expensive operation,
which should be avoided whenever possible.

To increase performance, you could check whether the image is in a format
that is directly supported by Cairo, such as TYPE_INT_ARGB with an sRGB
ColorSpace. If this is the case, you could retrieve the underlying
DataBufferInt (via getRaster().getDataBuffer()) and directly pass its
int[] to GdkGraphics2D.drawPixels.



(4) Methods like GdkGraphics2D.drawRenderedImage can be implemented by
fetching a Raster from the RenderedImage and proceeding as with
BufferedImage. My proposal would be to define a private drawRaster method
that gets called by the various public image drawing methods.



(5) It might be worth extending the native method
GdkGraphics2D.drawPixels to include an offset into the int[]. This might
be useful for cases where pixel (0,0) is not at index 0 of the int[] that
belongs to the DataBuffer.



(6) You could further avoid copying pixel data by slightly changing the
native implementation of GdkGraphics2D.drawPixels. Instead of
GetIntArrayElements, I'd recommend using GetPrimitiveArrayCritical and
ReleasePrimitiveArrayCritical. See

  http://java.sun.com/j2se/1.4.2/docs/guide/jni/jni-
12.html#GetPrimitiveArrayCritical

(It depends on the JVM whether or not this makes a difference).

Like the above, this is not a micro-optimization. It is likely to make a
noticeable difference whether several megabytes of pixel data are
accessed in place, or copied several times.



(7) As of how to implement Font.getFamily(java.util.Locale) etc., (you
have FIXMEs in that code), I've written some Java code for parsing the
'name' table of TrueType or OpenType fonts.  Of course, you'll need a
means to retrieve the contents of font tables -- but this is anyway a
necessity for supporting java.awt.font.OpenType.

See http://www.dandelis.ch/development/fonts/doc/. (It may be confusing
that private classes/methods are also listed). Only one class is relevant
here, namely gnu.java.awt.font.opentype.NameDecoder with the method

  public static String getName(java.nio.ByteBuffer nameTable,
                               int name, java.util.Locale locale);

For the "name" parameter, you'd pass e.g. NameDecoder.NAME_FAMILY.

The NameDecoder is actually quite independent from the rest of my code,
so you could use just that part. You would not have to include a large
code base just for the font names. We could also put the name decoding
into another package.


(8) Maybe you could have a look at the interface which is described at

  http://www.dandelis.ch/development/fonts/doc/gnu/java/awt/font/
FontDelegate.html

Maybe we can use an extended version of this interface for the FontPeers
that you've proposed in your recent e-mail. (The getGlyphName method is
not needed for Java2D, but it would be necessary if someone wanted to
write a decent PostScript or PDF provider for javax.print.)

Best regards,

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Thu Sep 11 08:19:32 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xQQ5-00084B-GB
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 08:19:29 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xQPz-00082G-Qd
	for classpath@gnu.org; Thu, 11 Sep 2003 08:19:23 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xQPw-00081R-PB
	for classpath@gnu.org; Thu, 11 Sep 2003 08:19:21 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19xQPu-0007nq-29
	for classpath@gnu.org; Thu, 11 Sep 2003 08:19:18 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19xQLy-0001wi-U5
	for classpath@gnu.org; Thu, 11 Sep 2003 08:15:15 -0400
Received: from [192.168.1.33] (unknown [217.8.218.191])
	by smtp2.mail.ch.easynet.net (Postfix) with ESMTP id 52C4A645AE
	for <classpath@gnu.org>; Thu, 11 Sep 2003 14:15:10 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Thu, 11 Sep 2003 14:14:44 +0200
Message-Id: <20030911121444.13457@smtp.mail.ch.easynet.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Declaring RuntimeExceptions?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Sep 2003 12:19:27 -0000

Hi all,

if the signature of a JDK method declares to throw some RuntimeException,
should the Classpath do so, too?

For example, java.awt.Toolkit.createButton declares to throw
java.awt.HeadlessException in the JDK, but not in Classpath.
HeadlessException extends java.lang.RuntimeException.

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 






From MAILER-DAEMON Thu Sep 11 08:54:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xQy1-00068n-6L
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 08:54:33 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xQxw-00067H-DQ
	for classpath@gnu.org; Thu, 11 Sep 2003 08:54:28 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xQsH-00054E-Aa
	for classpath@gnu.org; Thu, 11 Sep 2003 08:48:37 -0400
Received: from [24.93.67.84] (helo=ms-smtp-03.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19xQmA-0003kR-Gk
	for classpath@gnu.org; Thu, 11 Sep 2003 08:42:18 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-03.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8BCe14R020369; Thu, 11 Sep 2003 08:40:06 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 7DEA9BE641; Thu, 11 Sep 2003 08:39:32 -0400 (EDT)
Sender: cbj@haphazard.org
To: Sascha Brawer <brawer@dandelis.ch>
References: <87oextb3wq.fsf@dub.venge.net>
	<20030910080444.1329@smtp.mail.ch.easynet.net>
From: Brian Jones <cbj@gnu.org>
Date: 11 Sep 2003 08:39:32 -0400
In-Reply-To: <20030910080444.1329@smtp.mail.ch.easynet.net>
Message-ID: <m3ad9b7b3v.fsf@lyta.haphazard.org>
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: GNU Classpath <classpath@gnu.org>
Subject: Re: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Sep 2003 12:54:29 -0000

Sascha Brawer <brawer@dandelis.ch> writes:

> java.awt.graphicsenv = "sun.awt.X11GraphicsEnvironment"
> java.awt.printerjob = "sun.print.PSPrinterJob"
> sun.java2d.fontpath = ""

I believe there used to be a system property which told the Sun JVM
which peers to use, so for example if everything was implemented in
this unpublished peer interface you could plug these into Sun's JVM.
In that sense, the java.awt.peer classes act as the public facade to
internal private peer implementations such as the GTK peers we have
today.

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



From MAILER-DAEMON Thu Sep 11 09:06:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xQw1-0005na-Dg
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 08:52:29 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xQvl-0005kb-Se
	for classpath@gnu.org; Thu, 11 Sep 2003 08:52:13 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xQvh-0005ji-Oj
	for classpath@gnu.org; Thu, 11 Sep 2003 08:52:10 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19xQtJ-0005ET-LO
	for classpath@gnu.org; Thu, 11 Sep 2003 08:49:41 -0400
Received: from [24.93.67.82] (helo=ms-smtp-01.southeast.rr.com)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19xQrU-0005If-OP
	for classpath@gnu.org; Thu, 11 Sep 2003 08:47:48 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-01.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8BCeS0Q008439; Thu, 11 Sep 2003 08:40:32 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 6B00EBE641; Thu, 11 Sep 2003 08:45:04 -0400 (EDT)
Sender: cbj@haphazard.org
To: Sascha Brawer <brawer@dandelis.ch>
References: <20030911121444.13457@smtp.mail.ch.easynet.net>
From: Brian Jones <cbj@gnu.org>
Date: 11 Sep 2003 08:45:04 -0400
In-Reply-To: <20030911121444.13457@smtp.mail.ch.easynet.net>
Message-ID: <m365jz7aun.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>
Subject: Re: Declaring RuntimeExceptions?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Sep 2003 12:52:19 -0000

Sascha Brawer <brawer@dandelis.ch> writes:

> Hi all,
> 
> if the signature of a JDK method declares to throw some RuntimeException,
> should the Classpath do so, too?
> 
> For example, java.awt.Toolkit.createButton declares to throw
> java.awt.HeadlessException in the JDK, but not in Classpath.
> HeadlessException extends java.lang.RuntimeException.

It's not necessary to use a 'throws' clause with RuntimeException or
subclasses.

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



From MAILER-DAEMON Thu Sep 11 09:07:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xRAj-00008l-Ty
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 09:07:41 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xR9D-0008Di-Iy
	for classpath@gnu.org; Thu, 11 Sep 2003 09:06:07 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xQyj-0006O2-Hq
	for classpath@gnu.org; Thu, 11 Sep 2003 08:55:18 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19xQyi-0006JD-LQ
	for classpath@gnu.org; Thu, 11 Sep 2003 08:55:16 -0400
Received: from [212.227.126.186] (helo=moutng.kundenserver.de)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19xQvy-0005o3-Nd
	for classpath@gnu.org; Thu, 11 Sep 2003 08:52:26 -0400
Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de)
	by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
	id 19xQvw-0007tC-00
	for classpath@gnu.org; Thu, 11 Sep 2003 14:52:24 +0200
Received: from [212.126.196.45] (helo=aicas.com)
	by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1)
	id 19xQtv-0007TX-00
	for classpath@gnu.org; Thu, 11 Sep 2003 14:50:19 +0200
Message-ID: <3F606F8B.3010502@aicas.com>
Date: Thu, 11 Sep 2003 14:50:19 +0200
From: =?ISO-8859-1?Q?Ingo_Pr=F6tel?= <proetel@aicas.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: GNU Classpath <classpath@gnu.org>
References: <20030911121444.13457@smtp.mail.ch.easynet.net>
In-Reply-To: <20030911121444.13457@smtp.mail.ch.easynet.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: Declaring RuntimeExceptions?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Sep 2003 13:07:40 -0000

Hi Sascha,

I think Classpath should also declare RuntimeExceptions if JDK does so.

If you do a getExceptionTypes() on java.lang.reflect.Method you will get
all declared Throwables. This includes RuntimeExceptions and Errors that
are declared to be thrown by a method (also for constructors).

So, to keep the runtime-behavoir of such objects consistent we need to
declare such Exceptions even if the compiler does require it.

--ingo

Sascha Brawer wrote:
> Hi all,
> 
> if the signature of a JDK method declares to throw some RuntimeException,
> should the Classpath do so, too?
> 
> For example, java.awt.Toolkit.createButton declares to throw
> java.awt.HeadlessException in the JDK, but not in Classpath.
> HeadlessException extends java.lang.RuntimeException.
> 
> -- Sascha
> 
> Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 
> 
> 
> 
> 
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
> 




From MAILER-DAEMON Thu Sep 11 09:18:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xRKj-00028o-Sb
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 09:18:01 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xRKc-00026y-8m
	for classpath@gnu.org; Thu, 11 Sep 2003 09:17:54 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xRKY-00024u-GF
	for classpath@gnu.org; Thu, 11 Sep 2003 09:17:51 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19xRKT-00021Y-MV; Thu, 11 Sep 2003 09:17:45 -0400
Received: from [81.5.129.62] (helo=tangency.co.uk)
	by mx20.gnu.org with esmtp (Exim 4.22)
	id 19xRJ1-0008Ck-AN; Thu, 11 Sep 2003 09:16:15 -0400
Received: from tangency.co.uk (localhost [127.0.0.1])
	by outgoing.tangency.co.uk (Postfix) with ESMTP
	id CF32E605FC; Thu, 11 Sep 2003 14:13:19 +0100 (BST)
Received: from localhost ([127.0.0.1])
	by tangency.co.uk (MailMonitor for SMTP v1.2.2 ) ;
	Thu, 11 Sep 2003 14:13:19 +0100 (BST)
Received: from Draboof (hide.retek.com [64.238.64.1])
	(using TLSv1 with cipher RC4-MD5 (128/128 bits))
	(No client certificate requested)
	by tangency.co.uk (Postfix) with ESMTP
	id 024EE605FC; Thu, 11 Sep 2003 14:13:17 +0100 (BST)
From: "Stephane Meslin-Weber" <twiun@adorphuye.com>
To: "'Brian Jones'" <cbj@gnu.org>
Date: Thu, 11 Sep 2003 14:16:04 +0100
Message-ID: <000001c37866$df476020$9401080a@Draboof>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4024
In-Reply-To: <m3ad9b7b3v.fsf@lyta.haphazard.org>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Cc: 'GNU Classpath' <classpath@gnu.org>
Subject: RE: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Sep 2003 13:17:56 -0000

That property still exists, it's "awt.toolkit" and I use it for fbAWT
and qteAWT... Note that PJA also uses it.

I'm also all for extended peers, fbAWT currently uses the font renderer
from PJA (bitmapped fonts) and I was planning on making the font engine
pluggable (perhaps using the www.fonteditor.org TTF renderer).

So we have, conceptually:

(Toolkit.java)
public Toolkit getDefaultToolkit()
{
	...
	theToolkit =
Class.forName(System.getProperty("awt.toolkit","some.default.toolkit"));
	...
	return theToolkit;
}

One of the hurdles I've come across when using the property under the
J2ME RI from Sun is that 'they' did something quite nasty:

public Toolkit getDefaultToolkit()
{
	...
	theToolkit =
(sun.something.Toolkit)Class.forName(System.getProperty("awt.toolkit","s
ome.default.toolkit"));
	...
	return theToolkit;
}

Notice the difference? Using the bootclasspath can get around this issue
but it add maintenance headaches... I suppose that if Classpath's AWT
can be used standalone I could just scrap Sun's whole implementation :)

Steph.

-----Original Message-----
From: classpath-bounces+twiun=adorphuye.com@gnu.org
[mailto:classpath-bounces+twiun=adorphuye.com@gnu.org] On Behalf Of
Brian Jones
Sent: 11 September 2003 13:40
To: Sascha Brawer
Cc: GNU Classpath
Subject: Re: extended peers


Sascha Brawer <brawer@dandelis.ch> writes:

> java.awt.graphicsenv = "sun.awt.X11GraphicsEnvironment" 
> java.awt.printerjob = "sun.print.PSPrinterJob" sun.java2d.fontpath = 
> ""

I believe there used to be a system property which told the Sun JVM
which peers to use, so for example if everything was implemented in this
unpublished peer interface you could plug these into Sun's JVM. In that
sense, the java.awt.peer classes act as the public facade to internal
private peer implementations such as the GTK peers we have today.

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


_______________________________________________
Classpath mailing list
Classpath@gnu.org http://mail.gnu.org/mailman/listinfo/classpath


-----Original Message-----
From: classpath-bounces+twiun=adorphuye.com@gnu.org
[mailto:classpath-bounces+twiun=adorphuye.com@gnu.org] On Behalf Of
Brian Jones
Sent: 11 September 2003 13:40
To: Sascha Brawer
Cc: GNU Classpath
Subject: Re: extended peers


Sascha Brawer <brawer@dandelis.ch> writes:

> java.awt.graphicsenv = "sun.awt.X11GraphicsEnvironment" 
> java.awt.printerjob = "sun.print.PSPrinterJob" sun.java2d.fontpath = 
> ""

I believe there used to be a system property which told the Sun JVM
which peers to use, so for example if everything was implemented in this
unpublished peer interface you could plug these into Sun's JVM. In that
sense, the java.awt.peer classes act as the public facade to internal
private peer implementations such as the GTK peers we have today.

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


_______________________________________________
Classpath mailing list
Classpath@gnu.org http://mail.gnu.org/mailman/listinfo/classpath






From MAILER-DAEMON Thu Sep 11 09:38:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xRe9-0007OR-1k
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 09:38:05 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xRe5-0007MP-Mr
	for classpath@gnu.org; Thu, 11 Sep 2003 09:38:01 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xRe2-0007L1-JC
	for classpath@gnu.org; Thu, 11 Sep 2003 09:37:59 -0400
Received: from [216.109.118.88] (helo=web60109.mail.yahoo.com)
	by monty-python.gnu.org with smtp (Exim 4.22) id 19xRe0-0007Jc-NM
	for classpath@gnu.org; Thu, 11 Sep 2003 09:37:56 -0400
Message-ID: <20030911133755.79763.qmail@web60109.mail.yahoo.com>
Received: from [150.162.66.149] by web60109.mail.yahoo.com via HTTP;
	Thu, 11 Sep 2003 14:37:55 BST
Date: Thu, 11 Sep 2003 14:37:55 +0100 (BST)
From: =?iso-8859-1?q?Otavio=20Pereira?= <otaviofp@yahoo.com.br>
To: GNU Classpath <classpath@gnu.org>
In-Reply-To: <3F606F8B.3010502@aicas.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Subject: Re: Declaring RuntimeExceptions?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Sep 2003 13:38:03 -0000

Hi, 
I do agree with Ingo, the methods should report any exception that may be throw
explicitly. Of course, methods won't declare the well know
NullPointerException, or ArrayIndexOutOfBounds... etc. but exceptions that are
trhown, such as the HeadlessException, should be reported, not only 'cos the
sun does so, but I think it is a good practise, I mean, anyone who looks at the
method signature will notice that it can trhow that kind of exception, without
looking at the code. And there's also the reflection... so I guess it's better
to declare them, as this will still keep backward and "sideward"(does this word
exists?) compatibility...

-- otavio

 --- Ingo_Prötel <proetel@aicas.com> wrote: > Hi Sascha,
> 
> I think Classpath should also declare RuntimeExceptions if JDK does so.
> 
> If you do a getExceptionTypes() on java.lang.reflect.Method you will get
> all declared Throwables. This includes RuntimeExceptions and Errors that
> are declared to be thrown by a method (also for constructors).
> 
> So, to keep the runtime-behavoir of such objects consistent we need to
> declare such Exceptions even if the compiler does require it.
> 
> --ingo
> 
> Sascha Brawer wrote:
> > Hi all,
> > 
> > if the signature of a JDK method declares to throw some RuntimeException,
> > should the Classpath do so, too?
> > 
> > For example, java.awt.Toolkit.createButton declares to throw
> > java.awt.HeadlessException in the JDK, but not in Classpath.
> > HeadlessException extends java.lang.RuntimeException.
> > 
> > -- Sascha


________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk



From MAILER-DAEMON Thu Sep 11 15:09:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xWpB-0005IX-Oa
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 15:09:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xWo8-00050R-GK
	for classpath@gnu.org; Thu, 11 Sep 2003 15:08:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xWo2-000505-S5
	for classpath@gnu.org; Thu, 11 Sep 2003 15:08:39 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19xWo2-0004zr-Ff
	for classpath@gnu.org; Thu, 11 Sep 2003 15:08:38 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id NAA05702;
	Thu, 11 Sep 2003 13:08:31 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 126D64F8778; Thu, 11 Sep 2003 13:01:28 -0600 (MDT)
To: =?iso-8859-15?q?Ingo_Pr=F6tel?= <proetel@aicas.com>
References: <20030911121444.13457@smtp.mail.ch.easynet.net>
	<3F606F8B.3010502@aicas.com>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: ..  My pants just went on a wild rampage through
	a Long Island Bowling Alley!!
Date: 11 Sep 2003 13:01:28 -0600
In-Reply-To: <3F606F8B.3010502@aicas.com>
Message-ID: <87ad9bkv3r.fsf@fleche.redhat.com>
Lines: 21
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: Declaring RuntimeExceptions?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Sep 2003 19:09:48 -0000

>>>>> "Ingo" == Ingo Prötel <proetel@aicas.com> writes:

Ingo> If you do a getExceptionTypes() on java.lang.reflect.Method you will get
Ingo> all declared Throwables. This includes RuntimeExceptions and Errors that
Ingo> are declared to be thrown by a method (also for constructors).

Let me offer a contrarian view.  I think declaring these exceptions is
a bit ugly.  It is unnecessary.  I've always viewed the cases where
Sun has done this as simple mistakes on their part.

Second, I doubt there is any program out there that actually relies on
this.  So while this is a theoretical difference, in practice I think
it will affect nothing.  Plus, we have a good argument that code
relying on this is incorrect anyway.  Sun could easily remove these
declarations in a future version; after all, it affects neither source
nor binary compatibility.

We are already not reflection-compatible at other places.  For
instance, we don't always implement the same overloads that Sun does.

Tom



From MAILER-DAEMON Thu Sep 11 17:14:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xYjf-00018K-8H
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 17:12:15 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xYjE-0000mz-CI
	for classpath@gnu.org; Thu, 11 Sep 2003 17:11:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xYik-0000VL-G0
	for classpath@gnu.org; Thu, 11 Sep 2003 17:11:19 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19xYgo-0006WW-SM
	for classpath@gnu.org; Thu, 11 Sep 2003 17:09:18 -0400
Received: from [80.91.224.249] (helo=main.gmane.org)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19xYWU-0001kO-2Y
	for classpath@gnu.org; Thu, 11 Sep 2003 16:58:38 -0400
Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19xYWJ-0003aH-00
	for <classpath@gnu.org>; Thu, 11 Sep 2003 22:58:27 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: classpath@gnu.org
Received: from sea.gmane.org ([80.91.224.252])
	by main.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 19xYWI-0003a9-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Thu, 11 Sep 2003 22:58:26 +0200
Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19xYWN-0003K6-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Thu, 11 Sep 2003 22:58:31 +0200
From: graydon hoare <graydon@redhat.com>
Date: 11 Sep 2003 16:54:47 -0400
Lines: 75
Message-ID: <87ekyn2gh4.fsf@dub.venge.net>
References: <87isoa3ehc.fsf@dub.venge.net>
	<20030911095733.23377@smtp.mail.ch.easynet.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@sea.gmane.org
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
Sender: news <news@sea.gmane.org>
Subject: Re: request for comment on java2d stuff
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Sep 2003 21:12:11 -0000

Sascha Brawer <brawer@dandelis.ch> writes:

> (1) In GdkGraphics2D.walkPath(PathIterator), the treatment of quadratic
> splines is almost, but not entirely correct. The page
> 
>   http://pfaedit.sourceforge.net/bezier.html

great! you know, I actually did dig through pfaedit's source code, but
was too thick-headed to realize clearly what I was seeing. I have now
made this change.

> (2) Strokes that are not a BasicStroke: The drawing methods could
> check whether the value of the stroke field is an instance of
> BasicStroke. If not, they would not directly call into Cairo. For
> example, GdkGraphics2D.draw(Shape) could look as follows:

hm, yes, this is plausible. I will make this change too.

> To increase performance, you could check whether the image is in a
> format that is directly supported by Cairo, such as TYPE_INT_ARGB
> with an sRGB ColorSpace. If this is the case, you could retrieve the
> underlying DataBufferInt (via getRaster().getDataBuffer()) and
> directly pass its int[] to GdkGraphics2D.drawPixels.

ok, easy enough.

> (4) Methods like GdkGraphics2D.drawRenderedImage can be implemented
> by fetching a Raster from the RenderedImage and proceeding as with
> BufferedImage. My proposal would be to define a private drawRaster
> method that gets called by the various public image drawing methods.

ok.

> (5) It might be worth extending the native method
> GdkGraphics2D.drawPixels to include an offset into the int[]. This
> might be useful for cases where pixel (0,0) is not at index 0 of the
> int[] that belongs to the DataBuffer.

ok.

> (6) You could further avoid copying pixel data by slightly changing
> the native implementation of GdkGraphics2D.drawPixels. Instead of
> GetIntArrayElements, I'd recommend using GetPrimitiveArrayCritical
> and ReleasePrimitiveArrayCritical. See
> 
>   http://java.sun.com/j2se/1.4.2/docs/guide/jni/jni-
> 12.html#GetPrimitiveArrayCritical

I would prefer not to do this for now. I can't say for certain that
cairo won't make system calls that other java threads are aware of or
possibly involved in. cairo *does* produce outgoing X traffic,
possibly some traffic which will interact with the traffic the GDK
peer threads are generating / receiving.

> (7) As of how to implement Font.getFamily(java.util.Locale) etc.,
> (you have FIXMEs in that code)

actually the FIXME is from previous authors. I have subsequently
implemented the font model as described by the JDK documentation
(property maps, logical, family and face name, etc.) and this is no
longer a problem.

> Maybe we can use an extended version of this interface for the
> FontPeers that you've proposed in your recent e-mail. (The
> getGlyphName method is not needed for Java2D, but it would be
> necessary if someone wanted to write a decent PostScript or PDF
> provider for javax.print.)

yes, that interface looks like about all I need to support the pango
font backend. perhaps a couple more methods, if I find any. shall I
modify Font to use such a delegate, and place factory methods in
Toolkit? (and shall we settle on the word "delegate" to denote
peer-like things which our extended factory methods will produce?)

-graydon




From MAILER-DAEMON Thu Sep 11 19:17:05 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xagP-0001eK-PL
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 19:17:01 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xagJ-0001aq-CJ
	for classpath@gnu.org; Thu, 11 Sep 2003 19:16:55 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xagE-0001Vy-84
	for classpath@gnu.org; Thu, 11 Sep 2003 19:16:51 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19xagD-0001TQ-O1
	for classpath@gnu.org; Thu, 11 Sep 2003 19:16:49 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19xaeD-0001b8-8o
	for classpath@gnu.org; Thu, 11 Sep 2003 19:14:45 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8BMv7UU045784
	for <classpath@gnu.org>; Fri, 12 Sep 2003 08:57:07 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "GNU Classpath" <classpath@gnu.org>
Date: Fri, 12 Sep 2003 09:01:41 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCAEBGDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <20030911133755.79763.qmail@web60109.mail.yahoo.com>
Importance: Normal
Subject: RE: Declaring RuntimeExceptions?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Sep 2003 23:16:59 -0000

Standard practice - as epoused by various books and articles from
various source related to Sun - is to not declare RuntimeExceptions on
a throws clause. Such exceptions should be documented in the javadoc
only.

However, the reflection issue is not something I was aware of. If
indeed reflection returns all declared throwables whether runtime
exceptions or not, then there will be a behavioural difference -
though not one that anybody should ever be relying upon.

This situation is also clouded by the default rules for inheriting
@throws documentation comments, which will only inherit comments for
exceptions that are listed in the throws clause. The way around this
is to not declare the exception but instead to the use @inheritDoc to
force the inheritance of the doc comment eg:

   @throws someRuntimeException {@inheritDoc}

but some people may start declaring the runtime exceptions just to
inherit the doc comments.

David Holmes




From MAILER-DAEMON Thu Sep 11 19:56:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xbIH-00030v-2e
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 19:56:09 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xbIB-00030D-34
	for classpath@gnu.org; Thu, 11 Sep 2003 19:56:03 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xbI9-0002zt-D9
	for classpath@gnu.org; Thu, 11 Sep 2003 19:56:02 -0400
Received: from [216.148.227.85] (helo=rwcrmhc12.comcast.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19xbI8-0002zW-Vg
	for classpath@gnu.org; Thu, 11 Sep 2003 19:56:01 -0400
Received: from byu.net (12-209-128-39.client.attbi.com[12.209.128.39])
	by comcast.net (rwcrmhc12) with SMTP id <2003091123555401400t4eeie>
	(Authid: ericblake); Thu, 11 Sep 2003 23:55:54 +0000
Message-ID: <3F610B8A.4070002@byu.net>
Date: Thu, 11 Sep 2003 17:55:54 -0600
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: David Holmes <dholmes@dltech.com.au>
References: <NFBBKALFDCPFIDBNKAPCAEBGDHAA.dholmes@dltech.com.au>
In-Reply-To: <NFBBKALFDCPFIDBNKAPCAEBGDHAA.dholmes@dltech.com.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: Declaring RuntimeExceptions?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Sep 2003 23:56:03 -0000

I agree with Tom that we should not declare unneeded exceptions, even when Sun 
does.

Not all compilers emit RuntimeExceptions into the .class file to begin with. 
Reflection data is not guaranteed to be the same between two compilers, even 
if you DO declare the RuntimeExceptions, because compilers have the right to 
optimize for size and omit wasting the space on the useless declaration 
information.  Therefore, code relying on the declared RuntimeExceptions 
returned by reflection is just asking for problems.

David Holmes wrote:
> Standard practice - as epoused by various books and articles from
> various source related to Sun - is to not declare RuntimeExceptions on
> a throws clause. Such exceptions should be documented in the javadoc
> only.
> 
> However, the reflection issue is not something I was aware of. If
> indeed reflection returns all declared throwables whether runtime
> exceptions or not, then there will be a behavioural difference -
> though not one that anybody should ever be relying upon.
> 
> This situation is also clouded by the default rules for inheriting
> @throws documentation comments, which will only inherit comments for
> exceptions that are listed in the throws clause. The way around this
> is to not declare the exception but instead to the use @inheritDoc to
> force the inheritance of the doc comment eg:
> 
>    @throws someRuntimeException {@inheritDoc}
> 
> but some people may start declaring the runtime exceptions just to
> inherit the doc comments.
> 
> David Holmes
> 
> 
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
> 

-- 
Someday, I might put a cute statement here.

Eric Blake             ebb9@byu.net




From MAILER-DAEMON Thu Sep 11 20:37:57 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xbwi-0005Ny-OD
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 20:37:56 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xbwf-0005Nh-UN
	for classpath@gnu.org; Thu, 11 Sep 2003 20:37:53 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xbwe-0005NX-G3
	for classpath@gnu.org; Thu, 11 Sep 2003 20:37:52 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19xbwe-0005NO-5C
	for classpath@gnu.org; Thu, 11 Sep 2003 20:37:52 -0400
Received: from [192.168.1.33] (196.134.dyn-adsl.customer.ch.easynet.net
	[217.8.196.134])
	by smtp2.mail.ch.easynet.net (Postfix) with ESMTP id 781C164678
	for <classpath@gnu.org>; Fri, 12 Sep 2003 02:37:50 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Fri, 12 Sep 2003 02:37:22 +0200
Message-Id: <20030912003722.18608@smtp.mail.ch.easynet.net>
In-Reply-To: <3F610B8A.4070002@byu.net>
References: <3F610B8A.4070002@byu.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Re: Declaring RuntimeExceptions?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 00:37:54 -0000

So, should a java compiler accept the following?

// java.awt.HeadlessException
//   extends java.lang.UnsupportedOperationException
//     extends java.lang.RuntimeException

class Foo
{
  void meth() throws java.awt.HeadlessException { }
}

class Bar
  extends Foo
{
  void meth() { }
}

javac 1.4.1 compiles this code, but gcj 3.2 complains about the throws
clause (of *Foo*.meth, which is a bit misleading).

Note that Foo may be a JDK class, and Bar some user class. If the above
code does not conform to the language specification, i.e. gcj is right,
our Foos must declare exactly the same exceptions as the JDK, or existing
user code may not compile with Classpath.

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Thu Sep 11 21:03:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xcLa-0004pd-Um
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 21:03:38 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xcLY-0004pV-Kf
	for classpath@gnu.org; Thu, 11 Sep 2003 21:03:36 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xcLX-0004pG-6K
	for classpath@gnu.org; Thu, 11 Sep 2003 21:03:35 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19xcLW-0004oH-Ef
	for classpath@gnu.org; Thu, 11 Sep 2003 21:03:34 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.9/8.12.9) with ESMTP id h8C136Kf014454;
	Fri, 12 Sep 2003 11:03:06 +1000 (EST)
Message-Id: <200309120103.h8C136Kf014454@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: Sascha Brawer <brawer@dandelis.ch>
In-Reply-To: Message from Sascha Brawer <brawer@dandelis.ch> of "Fri,
	12 Sep 2003 02:37:22 +0200."
	<20030912003722.18608@smtp.mail.ch.easynet.net> 
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Date: Fri, 12 Sep 2003 11:03:22 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: crawley@piglet.dstc.edu.au, GNU Classpath <classpath@gnu.org>
Subject: Re: Declaring RuntimeExceptions? 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 01:03:37 -0000


Sascha,

> So, should a java compiler accept the following?
> =

> // java.awt.HeadlessException
> //   extends java.lang.UnsupportedOperationException
> //     extends java.lang.RuntimeException
> =

> class Foo
> {
>   void meth() throws java.awt.HeadlessException { }
> }
> =

> class Bar
>   extends Foo
> {
>   void meth() { }
> }

Yes it should.

Refer to the JLS Section 8.4.4.  The last two paragraphs read as follows:=


  A method that overrides or hides another method (=A78.4.6), including
  methods that implement abstract methods defined in interfaces, may =

  not be declared to throw more checked exceptions than the overridden =

  or hidden method.

  More precisely, suppose that B is a class or interface, and A is a
  superclass or superinterface of B, and a method declaration n in B =

  overrides or hides a method declaration m in A. If n has a throws =

  clause that mentions any checked exception types, then m must have =

  a throws clause, and for every checked exception type listed in the
  throws clause of n, that same exception class or one of its superclasse=
s
  must occur in the throws clause of m; otherwise, a compile-time error =

  occurs.

Note that these rules are for >>checked<< exceptions only; i.e. exception=

classes that are NOT subtypes of Error or RuntimeException.

> javac 1.4.1 compiles this code, but gcj 3.2 complains about the throws
> clause (of *Foo*.meth, which is a bit misleading).

gcj 3.2 is clearly wrong, IMO.

-- Steve





From MAILER-DAEMON Thu Sep 11 21:22:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xceC-0007G0-Fk
	for mharc-classpath@gnu.org; Thu, 11 Sep 2003 21:22:52 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xceA-0007Fm-AV
	for classpath@gnu.org; Thu, 11 Sep 2003 21:22:50 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xce6-0007FM-Vj
	for classpath@gnu.org; Thu, 11 Sep 2003 21:22:49 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19xce6-0007FA-7n
	for classpath@gnu.org; Thu, 11 Sep 2003 21:22:46 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8C11QUU055691;
	Fri, 12 Sep 2003 11:01:27 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "Sascha Brawer" <brawer@dandelis.ch>, "GNU Classpath" <classpath@gnu.org>
Date: Fri, 12 Sep 2003 11:06:02 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCEEBKDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <20030912003722.18608@smtp.mail.ch.easynet.net>
Importance: Normal
Cc: 
Subject: RE: Declaring RuntimeExceptions?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 01:22:50 -0000

> So, should a java compiler accept the following?
>
> // java.awt.HeadlessException
> //   extends java.lang.UnsupportedOperationException
> //     extends java.lang.RuntimeException
>
> class Foo
> {
>   void meth() throws java.awt.HeadlessException { }
> }
>
> class Bar
>   extends Foo
> {
>   void meth() { }
> }

The code is valid in that its okay for a subclass to declare fewer
exceptions on an overriding method - checked or unchecked. Hence
Bar.meth is correctly defined and must be accepted by any compiler.

However, a compiler could complain that Foo.meth can never throw the
declared HeadlessException (as it should for a checked exception) and
refuse to compile it. I think it would be a bit over-zealous, though
not "illegal", to do so.

David Holmes




From MAILER-DAEMON Fri Sep 12 03:47:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xieF-00048L-LF
	for mharc-classpath@gnu.org; Fri, 12 Sep 2003 03:47:19 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xieC-00045p-DO
	for classpath@gnu.org; Fri, 12 Sep 2003 03:47:16 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xieA-00045W-Nu
	for classpath@gnu.org; Fri, 12 Sep 2003 03:47:15 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 19xie9-00044Z-3e; Fri, 12 Sep 2003 03:47:13 -0400
Received: from [192.168.1.33] (196.134.dyn-adsl.customer.ch.easynet.net
	[217.8.196.134]) by smtp2.mail.ch.easynet.net (Postfix) with ESMTP
	id 5A3D964657; Fri, 12 Sep 2003 09:47:09 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Fri, 12 Sep 2003 09:46:42 +0200
Message-Id: <20030912074642.14751@smtp.mail.ch.easynet.net>
In-Reply-To: <000001c37866$df476020$9401080a@Draboof>
References: <000001c37866$df476020$9401080a@Draboof>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: Brian Jones <cbj@gnu.org>, Stephane Meslin-Weber <twiun@adorphuye.com>,
	graydon hoare <graydon@redhat.com>
Subject: RE: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 07:47:17 -0000

Brian Jones <cbj@gnu.org> wrote on Thu, 11 Sep 2003 08:39:32 -0400:

>I believe there used to be a system property which told the Sun JVM
>which peers to use, so for example if everything was implemented in this
>unpublished peer interface you could plug these into Sun's JVM. In that
>sense, the java.awt.peer classes act as the public facade to internal
>private peer implementations such as the GTK peers we have today.

Stephane Meslin-Weber <twiun@adorphuye.com> wrote on Thu, 11 Sep
2003 14:16:04 +0100:

>That property still exists, it's "awt.toolkit" and I use it for fbAWT
>and qteAWT... Note that PJA also uses it.

Actually, Classpath is also using the same property in the implementation
of java.awt.Toolkit.getDefaultToolkit().  So, here's another proposal:

package gnu.java.awt;

import java.awt.GraphicsEnvironment;
import java.awt.Toolkit;
import java.nio.ByteBuffer;
import gnu.java.awt.peer.ClasspathFontPeer;

/**
 * FIXME: Javadoc.
 *
 * <p><b>Thread Safety:</b> The methods of this class
 * may safely be called without external synchronization.
 * This also holds for any inherited {@link Toolkit} methods.
 */
public abstract class ClasspathToolkit
  extends Toolkit
{
  /**
   * Returns a shared instance of the platform-specific graphics
   * environment.
   * 
   * <p>Called by {@link
   * GraphicsEnvironment#getLocalGraphicsEnvironment()}.
   */
  public abstract GraphicsEnvironment getLocalGraphicsEnvironment();
  
  // inherited from java.awt.Toolkit:
  // public abstract java.awt.peer.FontPeer getFontPeer(String name, int
style);
  //
  // ClasspathToolkits must return an object that implements ClasspathFontPeer
  // in addition to FontPeer. Unfortunately, it is not (yet?) possible to
express
  // such restrictions in Java.

  public abstract ClasspathFontPeer getFontPeer(ByteBuffer buf);
}



package gnu.java.awt.peer;

import java.awt.peer.FontPeer;

public interface ClasspathFontPeer
  extends FontPeer
{
  // FIXME: Methods to be defined.
  // Is the name ok? "Peer" is shorter than "delegate", and "peer" is
  // the usual AWT lingo. "ClasspathFontPeer" also makes clear that it
  // extends "FontPeer".
}



package java.awt;

import java.awt.Toolkit;
import gnu.java.awt.ClasspathToolkit;

public abstract class GraphicsEnvironment
{
  private static GraphicsEnvironment localGraphicsEnvironment;

  public static synchronized getLocalGraphicsEnvironment()
  {
    if (localGraphicsEnvironment == null)
    {
      ClasspathToolkit ctk;

      ctk = (ClasspathToolkit) Toolkit.getDefaultToolkit();
      localGraphicsEnvironment = ctk.getLocalGraphicsEnvironment();
    }

    return localGraphicsEnvironment;
  }
}



This would have the side effect that retrieving the local
GraphicsEnvironment indirectly loads the Toolkit. I think this is desirable.

Also, there is some real code that could go into ClasspathToolkit.  An
example is maintaining the cache for Toolkit.getImage(String) and
Toolkit.getImage(URL), which (in contrast to the createImage methods) is
not platform dependent.

A disadvantage is that people cannot use Toolkits that are not
ClasspathToolkits. I don't think this is a serious problem, though.  But
we then should modify Toolkit.getDefaultToolkit() to check for this, so
errors get thrown early, not at some place deep in the graphics code.

Comments?

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Fri Sep 12 04:46:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xjZV-0003KT-TI
	for mharc-classpath@gnu.org; Fri, 12 Sep 2003 04:46:29 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xjZS-0003J3-Qv
	for classpath@gnu.org; Fri, 12 Sep 2003 04:46:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xjZQ-0003IR-Sh
	for classpath@gnu.org; Fri, 12 Sep 2003 04:46:25 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19xjZQ-0003I7-Kg
	for classpath@gnu.org; Fri, 12 Sep 2003 04:46:24 -0400
Received: from [81.5.129.62] (helo=tangency.co.uk)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19xjYC-0003nH-QO
	for classpath@gnu.org; Fri, 12 Sep 2003 04:45:09 -0400
Received: from tangency.co.uk (localhost [127.0.0.1])
	by outgoing.tangency.co.uk (Postfix) with ESMTP
	id 74D8D605FF; Fri, 12 Sep 2003 09:42:12 +0100 (BST)
Received: from localhost ([127.0.0.1])
	by tangency.co.uk (MailMonitor for SMTP v1.2.2 ) ;
	Fri, 12 Sep 2003 09:42:12 +0100 (BST)
Received: from Draboof (hide.retek.com [64.238.64.1])
	(using TLSv1 with cipher RC4-MD5 (128/128 bits))
	(No client certificate requested)
	by tangency.co.uk (Postfix) with ESMTP
	id 9F232605FF; Fri, 12 Sep 2003 09:42:10 +0100 (BST)
From: "Stephane Meslin-Weber" <twiun@adorphuye.com>
To: "'Sascha Brawer'" <brawer@dandelis.ch>
Date: Fri, 12 Sep 2003 09:45:00 +0100
Message-ID: <000201c3790a$29e2f740$9401080a@Draboof>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4024
In-Reply-To: <20030912074642.14751@smtp.mail.ch.easynet.net>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Cc: 'GNU Classpath' <classpath@gnu.org>
Subject: RE: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 08:46:27 -0000

> This would have the side effect that retrieving the local 
> GraphicsEnvironment indirectly loads the Toolkit. I think 
> this is desirable.

I agree, any indirect access to the Toolkit should cause it to load
although I don't know how much overhead this would add (I'm thinking
embedded devices here not full desktops)

> Also, there is some real code that could go into 
> ClasspathToolkit.  An example is maintaining the cache for 
> Toolkit.getImage(String) and Toolkit.getImage(URL), which (in 
> contrast to the createImage methods) is not platform dependent.
> 
> A disadvantage is that people cannot use Toolkits that are 
> not ClasspathToolkits. I don't think this is a serious 
> problem, though.  But we then should modify 
> Toolkit.getDefaultToolkit() to check for this, so errors get 
> thrown early, not at some place deep in the graphics code.

Whilst I agree that it's not a serious problem, I think that such
casting using implementation-specific classes shouldn't really occur in
the main java.* packages. This is because it makes things difficult for
anyone wanting to provide their own AWT implementations on top of
Classpath's core packages. This is a part where I think we have an
opportunity to avoid (another) of Sun's mistakes.

Stephane





From MAILER-DAEMON Fri Sep 12 05:35:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xkKg-0007Vv-46
	for mharc-classpath@gnu.org; Fri, 12 Sep 2003 05:35:14 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xkKd-0007V0-J7
	for classpath@gnu.org; Fri, 12 Sep 2003 05:35:11 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xkKa-0007U4-0Z
	for classpath@gnu.org; Fri, 12 Sep 2003 05:35:09 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19xkKZ-0007Tn-CR
	for classpath@gnu.org; Fri, 12 Sep 2003 05:35:07 -0400
Received: from [192.168.1.33] (196.134.dyn-adsl.customer.ch.easynet.net
	[217.8.196.134]) by smtp2.mail.ch.easynet.net (Postfix) with ESMTP
	id E60C864652; Fri, 12 Sep 2003 11:35:04 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Fri, 12 Sep 2003 11:34:41 +0200
Message-Id: <20030912093441.20202@smtp.mail.ch.easynet.net>
In-Reply-To: <000201c3790a$29e2f740$9401080a@Draboof>
References: <000201c3790a$29e2f740$9401080a@Draboof>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: Stephane Meslin-Weber <twiun@adorphuye.com>
Subject: RE: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 09:35:12 -0000

Stephane Meslin-Weber <twiun@adorphuye.com> wrote on Fri, 12 Sep
2003 09:45:00 +0100:

>> This would have the side effect that retrieving the local 
>> GraphicsEnvironment indirectly loads the Toolkit. I think 
>> this is desirable.
>
>I agree, any indirect access to the Toolkit should cause it to load
>although I don't know how much overhead this would add (I'm thinking
>embedded devices here not full desktops)

I'm not sure whether I fully understand your comment. Why would this
be an overhead? Do you mean that we should allow for local
GraphicsEnvironments without any toolkit? Couldn't you define a very
lightweight toolkit for such environments?

Or are you concerned that the call to
GraphicsEnvironment.getLocalGraphicsEnvironment() would become too
expensive? That's why I'd propose to cache the environment using
the "localGraphicsEnvironment" variable.  It would be nice to do
without the synchronization, but there's the problem with
'double-checked locking' (see the list archive of 2003-07-29/30,
"Avoiding Locks").

>> A disadvantage is that people cannot use Toolkits that are 
>> not ClasspathToolkits. I don't think this is a serious 
>> problem, though.  But we then should modify 
>> Toolkit.getDefaultToolkit() to check for this, so errors get 
>> thrown early, not at some place deep in the graphics code.
>
>Whilst I agree that it's not a serious problem, I think that such
>casting using implementation-specific classes shouldn't really occur in
>the main java.* packages. This is because it makes things difficult for
>anyone wanting to provide their own AWT implementations on top of
>Classpath's core packages. This is a part where I think we have an
>opportunity to avoid (another) of Sun's mistakes.

Actually, the intention would be to make it _easier_ to write custom
toolkits...

People could still write their own AWT implementations on top of
classpath's core packages. They 'just' had to subclass ClasspathToolkit
instead of java.awt.Toolkit. This means that it would not be possible
to write a toolkit that plugs into both Sun's and our framework. However,
you said that this would not be possible anyway (because Sun casts the
toolkit to some private class "sun.something.Toolkit"). We could provide
an empty class with the same name, and let ClasspathToolkit extend that
class. But I doubt that our AWT code would ever be so similar to the Sun
implementation that this would work. And since there are no specification
documents for sun.something.Toolkit, we cannot know what it's supposed
to do anyway... 

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Fri Sep 12 09:04:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xnbd-0002xk-9B
	for mharc-classpath@gnu.org; Fri, 12 Sep 2003 09:04:57 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xnba-0002vp-1G
	for classpath@gnu.org; Fri, 12 Sep 2003 09:04:54 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xnaf-0002oQ-LE
	for classpath@gnu.org; Fri, 12 Sep 2003 09:03:58 -0400
Received: from [24.93.67.83] (helo=ms-smtp-02.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19xnYT-0002eq-40
	for classpath@gnu.org; Fri, 12 Sep 2003 09:01:41 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-02.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8CCvapM013851; Fri, 12 Sep 2003 08:57:41 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id B415DBE641; Fri, 12 Sep 2003 08:58:29 -0400 (EDT)
Sender: cbj@haphazard.org
To: Sascha Brawer <brawer@dandelis.ch>
References: <000001c37866$df476020$9401080a@Draboof>
	<20030912074642.14751@smtp.mail.ch.easynet.net>
From: Brian Jones <cbj@gnu.org>
Date: 12 Sep 2003 08:58:29 -0400
In-Reply-To: <20030912074642.14751@smtp.mail.ch.easynet.net>
Message-ID: <m3vfry5fka.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: Stephane Meslin-Weber <twiun@adorphuye.com>,
	GNU Classpath <classpath@gnu.org>, graydon hoare <graydon@redhat.com>
Subject: Re: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 13:04:55 -0000

Sascha Brawer <brawer@dandelis.ch> writes:

> package java.awt;
> 
> import java.awt.Toolkit;
> import gnu.java.awt.ClasspathToolkit;
> 
> public abstract class GraphicsEnvironment
> {
>   private static GraphicsEnvironment localGraphicsEnvironment;
> 
>   public static synchronized getLocalGraphicsEnvironment()
>   {
>     if (localGraphicsEnvironment == null)
>     {
>       ClasspathToolkit ctk;
> 
>       ctk = (ClasspathToolkit) Toolkit.getDefaultToolkit();
>       localGraphicsEnvironment = ctk.getLocalGraphicsEnvironment();
>     }
> 
>     return localGraphicsEnvironment;
>   }
> }

I think you can store the reference as a Toolkit only.  What parts of
our code would rely upon having a ClasspathToolkit with the additional
Font related stuff?

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



From MAILER-DAEMON Fri Sep 12 09:32:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xo2L-0007oB-Q4
	for mharc-classpath@gnu.org; Fri, 12 Sep 2003 09:32:33 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xo2I-0007nP-T7
	for classpath@gnu.org; Fri, 12 Sep 2003 09:32:30 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xo2H-0007mq-22
	for classpath@gnu.org; Fri, 12 Sep 2003 09:32:29 -0400
Received: from [217.8.192.20] (helo=smtp1.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19xnzv-0007DE-01
	for classpath@gnu.org; Fri, 12 Sep 2003 09:30:03 -0400
Received: from [192.168.1.33] (196.134.dyn-adsl.customer.ch.easynet.net
	[217.8.196.134]) by smtp1.mail.ch.easynet.net (Postfix) with ESMTP
	id 6426B49FA0; Fri, 12 Sep 2003 15:29:47 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: <cbj@haphazard.org>
Date: Fri, 12 Sep 2003 15:29:21 +0200
Message-Id: <20030912132921.10054@smtp.mail.ch.easynet.net>
In-Reply-To: <m3vfry5fka.fsf@lyta.haphazard.org>
References: <m3vfry5fka.fsf@lyta.haphazard.org>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: Stephane Meslin-Weber <twiun@adorphuye.com>,
	GNU Classpath <classpath@gnu.org>, graydon hoare <graydon@redhat.com>
Subject: Re: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 13:32:31 -0000

Brian Jones <cbj@gnu.org> wrote on Fri, 12 Sep 2003 08:58:29 -0400:

>Sascha Brawer <brawer@dandelis.ch> writes:
>
>> package java.awt;
>> 
>> import java.awt.Toolkit;
>> import gnu.java.awt.ClasspathToolkit;
>> 
>> public abstract class GraphicsEnvironment
>> {
>>   private static GraphicsEnvironment localGraphicsEnvironment;
>> 
>>   public static synchronized getLocalGraphicsEnvironment()
>>   {
>>     if (localGraphicsEnvironment == null)
>>     {
>>       ClasspathToolkit ctk;
>> 
>>       ctk = (ClasspathToolkit) Toolkit.getDefaultToolkit();
>>       localGraphicsEnvironment = ctk.getLocalGraphicsEnvironment();
>>     }
>> 
>>     return localGraphicsEnvironment;
>>   }
>> }
>
>I think you can store the reference as a Toolkit only.  What parts of
>our code would rely upon having a ClasspathToolkit with the additional
>Font related stuff?

You mean "storing" in the local variable ctk? One also could write

  localGraphicsEnvironment =
    ((ClasspathToolkit) Toolkit.getDefaultToolkit())
    .getLocalGraphicsEnvironment();

but this seems a bit less legible. The cast is needed because the method
to create a concrete GraphicsEnvironment is introduced by
ClasspathToolkit, not by Toolkit.

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Fri Sep 12 09:57:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xoQW-0002g4-Tn
	for mharc-classpath@gnu.org; Fri, 12 Sep 2003 09:57:32 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xoQT-0002dL-LK
	for classpath@gnu.org; Fri, 12 Sep 2003 09:57:29 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xoQQ-0002bK-O2
	for classpath@gnu.org; Fri, 12 Sep 2003 09:57:27 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19xoOv-0001js-NK
	for classpath@gnu.org; Fri, 12 Sep 2003 09:55:53 -0400
Received: from [32.97.182.103] (helo=e3.ny.us.ibm.com)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19xoIP-0005IB-9e
	for classpath@gnu.org; Fri, 12 Sep 2003 09:49:09 -0400
Received: from northrelay02.pok.ibm.com (northrelay02.pok.ibm.com
	[9.56.224.150])
	by e3.ny.us.ibm.com (8.12.9/8.12.2) with ESMTP id h8CDmbof434664
	for <classpath@gnu.org>; Fri, 12 Sep 2003 09:48:37 -0400
Received: from d01ml604.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216])
	by northrelay02.pok.ibm.com (8.12.9/NCO/VER6.6) with ESMTP id
	h8CDmafd190506
	for <classpath@gnu.org>; Fri, 12 Sep 2003 09:48:36 -0400
To: classpath@gnu.org
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 6.0 September 26, 2002
From: David P Grove <groved@us.ibm.com>
Message-ID: <OF7E999028.97486B91-ON85256D9F.004B0F98-85256D9F.004BCFA2@us.ibm.com>
Date: Fri, 12 Sep 2003 09:48:34 -0400
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Build
	V65_08252003|August 25, 2003) at 09/12/2003 09:48:36,
	Serialize complete at 09/12/2003 09:48:36
Content-Type: multipart/alternative;
	boundary="=_alternative 004BCE7185256D9F_="
Subject: --enable-portable-native-sync
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 13:57:30 -0000

This is a multipart message in MIME format.
--=_alternative 004BCE7185256D9F_=
Content-Type: text/plain; charset="US-ASCII"

Because of its m-to-n threading model, Jikes RVM relies on 
--enable-portable-native-sync to run AWT code.  This worked in classpath 
0.05 but fails in classpath 0.06 with the following error message:

GThread-ERROR **: The supplied thread function vector is invalid.
aborting...
Abort

Was this an intentional change, or an unhappy accident since 
portable-native-sync is not the default configuration? 

thanks,

--dave
--=_alternative 004BCE7185256D9F_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Because of its m-to-n threading model,
Jikes RVM relies on --enable-portable-native-sync to run AWT code. &nbsp;This
worked in classpath 0.05 but fails in classpath 0.06 with the following
error message:</font>
<br>
<br><font size=2 face="sans-serif">GThread-ERROR **: The supplied thread
function vector is invalid.</font>
<br><font size=2 face="sans-serif">aborting...</font>
<br><font size=2 face="sans-serif">Abort</font>
<br>
<br><font size=2 face="sans-serif">Was this an intentional change, or an
unhappy accident since portable-native-sync is not the default configuration?
&nbsp;</font>
<br>
<br><font size=2 face="sans-serif">thanks,</font>
<br>
<br><font size=2 face="sans-serif">--dave</font>
--=_alternative 004BCE7185256D9F_=--



From MAILER-DAEMON Fri Sep 12 10:39:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xp5L-0000fs-Qf
	for mharc-classpath@gnu.org; Fri, 12 Sep 2003 10:39:43 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xozE-0007RP-Qm
	for classpath@gnu.org; Fri, 12 Sep 2003 10:33:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xoz3-0007Q2-J3
	for classpath@gnu.org; Fri, 12 Sep 2003 10:33:14 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19xoqo-00055o-Ak
	for classpath@gnu.org; Fri, 12 Sep 2003 10:24:42 -0400
Received: from [196.2.45.79] (helo=kknd.mweb.co.za)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19xoqa-0000ag-P5
	for classpath@gnu.org; Fri, 12 Sep 2003 10:24:29 -0400
Received: from pta-dial-196-31-186-119.mweb.co.za ([196.31.186.119]:33131)
	by kknd.mweb.co.za with esmtp (Exim 4.01)
	id 19xofa-0001yM-00; Fri, 12 Sep 2003 16:13:07 +0200
From: John Leuner <jewel@pixie.co.za>
To: David P Grove <groved@us.ibm.com>
In-Reply-To: <OF7E999028.97486B91-ON85256D9F.004B0F98-85256D9F.004BCFA2@us.ibm.com>
References: <OF7E999028.97486B91-ON85256D9F.004B0F98-85256D9F.004BCFA2@us.ibm.com>
Content-Type: text/plain
Organization: 
Message-Id: <1063376368.421.1075.camel@cmalu>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 12 Sep 2003 16:19:28 +0200
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org
Subject: Re: --enable-portable-native-sync
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 14:39:42 -0000

Did this perhaps break during the change from using GTK 1 to GTK 2?

Perhaps the required function vector has changed?

John Leuner

On Fri, 2003-09-12 at 15:48, David P Grove wrote:
> Because of its m-to-n threading model, Jikes RVM relies on
> --enable-portable-native-sync to run AWT code.  This worked in
> classpath 0.05 but fails in classpath 0.06 with the following error
> message:
> 
> GThread-ERROR **: The supplied thread function vector is invalid.
> aborting...
> Abort
> 
> Was this an intentional change, or an unhappy accident since
> portable-native-sync is not the default configuration?  
> 
> thanks,
> 
> --dave
> 
> ______________________________________________________________________
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
-- 
John Leuner <jewel@pixie.co.za>




From MAILER-DAEMON Fri Sep 12 18:05:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xw2e-0005oQ-I0
	for mharc-classpath@gnu.org; Fri, 12 Sep 2003 18:05:24 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xw2b-0005nH-DK
	for classpath@gnu.org; Fri, 12 Sep 2003 18:05:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xw2Z-0005mc-78
	for classpath@gnu.org; Fri, 12 Sep 2003 18:05:20 -0400
Received: from [32.97.182.104] (helo=e4.ny.us.ibm.com)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19xw2Y-0005mC-KD
	for classpath@gnu.org; Fri, 12 Sep 2003 18:05:18 -0400
Received: from northrelay02.pok.ibm.com (northrelay02.pok.ibm.com
	[9.56.224.150])
	by e4.ny.us.ibm.com (8.12.9/8.12.2) with ESMTP id h8CM5G5d364636;
	Fri, 12 Sep 2003 18:05:16 -0400
Received: from d01ml604.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216])
	by northrelay02.pok.ibm.com (8.12.9/NCO/VER6.6) with ESMTP id
	h8CM50fd223918; Fri, 12 Sep 2003 18:05:15 -0400
In-Reply-To: <1063376368.421.1075.camel@cmalu>
To: John Leuner <jewel@pixie.co.za>
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 6.0 September 26, 2002
From: David P Grove <groved@us.ibm.com>
Message-ID: <OFCF7573E2.C809B67E-ON85256D9F.00792E2B-85256D9F.007941AE@us.ibm.com>
Date: Fri, 12 Sep 2003 18:04:57 -0400
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Build
	V65_08252003|August 25, 2003) at 09/12/2003 18:05:15,
	Serialize complete at 09/12/2003 18:05:15
Content-Type: multipart/alternative;
	boundary="=_alternative 0079405085256D9F_="
Cc: classpath@gnu.org
Subject: Re: --enable-portable-native-sync
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 22:05:22 -0000

This is a multipart message in MIME format.
--=_alternative 0079405085256D9F_=
Content-Type: text/plain; charset="US-ASCII"

That makes sense.  I didn't realize that there was a GTK version switch.

thanks,

--dave





John Leuner <jewel@pixie.co.za>
09/12/2003 10:19 AM
 
        To:     David P Grove/Watson/IBM@IBMUS
        cc:     classpath@gnu.org
        Subject:        Re: --enable-portable-native-sync


Did this perhaps break during the change from using GTK 1 to GTK 2?

Perhaps the required function vector has changed?

John Leuner

On Fri, 2003-09-12 at 15:48, David P Grove wrote:
> Because of its m-to-n threading model, Jikes RVM relies on
> --enable-portable-native-sync to run AWT code.  This worked in
> classpath 0.05 but fails in classpath 0.06 with the following error
> message:
> 
> GThread-ERROR **: The supplied thread function vector is invalid.
> aborting...
> Abort
> 
> Was this an intentional change, or an unhappy accident since
> portable-native-sync is not the default configuration? 
> 
> thanks,
> 
> --dave
> 
> ______________________________________________________________________
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
-- 
John Leuner <jewel@pixie.co.za>



--=_alternative 0079405085256D9F_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">That makes sense. &nbsp;I didn't realize
that there was a GTK version switch.</font>
<br>
<br><font size=2 face="sans-serif">thanks,</font>
<br>
<br><font size=2 face="sans-serif">--dave</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>John Leuner &lt;jewel@pixie.co.za&gt;</b></font>
<p><font size=1 face="sans-serif">09/12/2003 10:19 AM</font>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To:
&nbsp; &nbsp; &nbsp; &nbsp;David P Grove/Watson/IBM@IBMUS</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc:
&nbsp; &nbsp; &nbsp; &nbsp;classpath@gnu.org</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject:
&nbsp; &nbsp; &nbsp; &nbsp;Re: --enable-portable-native-sync</font></table>
<br>
<br>
<br><font size=2><tt>Did this perhaps break during the change from using
GTK 1 to GTK 2?<br>
<br>
Perhaps the required function vector has changed?<br>
<br>
John Leuner<br>
<br>
On Fri, 2003-09-12 at 15:48, David P Grove wrote:<br>
&gt; Because of its m-to-n threading model, Jikes RVM relies on<br>
&gt; --enable-portable-native-sync to run AWT code. &nbsp;This worked in<br>
&gt; classpath 0.05 but fails in classpath 0.06 with the following error<br>
&gt; message:<br>
&gt; <br>
&gt; GThread-ERROR **: The supplied thread function vector is invalid.<br>
&gt; aborting...<br>
&gt; Abort<br>
&gt; <br>
&gt; Was this an intentional change, or an unhappy accident since<br>
&gt; portable-native-sync is not the default configuration? &nbsp;<br>
&gt; <br>
&gt; thanks,<br>
&gt; <br>
&gt; --dave<br>
&gt; <br>
&gt; ______________________________________________________________________<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Classpath mailing list<br>
&gt; Classpath@gnu.org<br>
&gt; http://mail.gnu.org/mailman/listinfo/classpath<br>
-- <br>
John Leuner &lt;jewel@pixie.co.za&gt;<br>
<br>
</tt></font>
<br>
--=_alternative 0079405085256D9F_=--



From MAILER-DAEMON Fri Sep 12 18:29:46 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19xwQE-0004OV-Bl
	for mharc-classpath@gnu.org; Fri, 12 Sep 2003 18:29:46 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19xwQB-0004Nn-OW
	for classpath@gnu.org; Fri, 12 Sep 2003 18:29:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19xwQA-0004Na-FL
	for classpath@gnu.org; Fri, 12 Sep 2003 18:29:42 -0400
Received: from [24.93.67.84] (helo=ms-smtp-03.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19xwOi-0004Dh-06
	for classpath@gnu.org; Fri, 12 Sep 2003 18:28:12 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-03.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8CMPI4R020827; Fri, 12 Sep 2003 18:25:52 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 72A70BE641; Fri, 12 Sep 2003 18:24:17 -0400 (EDT)
Sender: cbj@haphazard.org
To: John Leuner <jewel@pixie.co.za>
References: <OF7E999028.97486B91-ON85256D9F.004B0F98-85256D9F.004BCFA2@us.ibm.com>
	<1063376368.421.1075.camel@cmalu>
From: Brian Jones <cbj@gnu.org>
Date: 12 Sep 2003 18:24:17 -0400
In-Reply-To: <1063376368.421.1075.camel@cmalu>
Message-ID: <m3pti563xq.fsf@lyta.haphazard.org>
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: classpath@gnu.org
Subject: Re: --enable-portable-native-sync
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Sep 2003 22:29:44 -0000

John Leuner <jewel@pixie.co.za> writes:

> Did this perhaps break during the change from using GTK 1 to GTK 2?
> 
> Perhaps the required function vector has changed?

That is correct, it broke then and the person working on this over in
GCJ land was going to rework/rewrite the threading stuff anyway so no
one has looked into it other than we want to make this option the
default eventually.

> > --enable-portable-native-sync to run AWT code.  This worked in
> > classpath 0.05 but fails in classpath 0.06 with the following error
> > message:
> > 
> > GThread-ERROR **: The supplied thread function vector is invalid.
> > aborting...
> > Abort
> > 
-- 
Brian Jones <cbj@gnu.org>



From MAILER-DAEMON Sun Sep 14 11:52:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19yZAQ-00065c-Iv
	for mharc-classpath@gnu.org; Sun, 14 Sep 2003 11:52:02 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19yZAN-00063z-IC
	for classpath@gnu.org; Sun, 14 Sep 2003 11:51:59 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19yZAM-00061c-0H
	for classpath@gnu.org; Sun, 14 Sep 2003 11:51:58 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 19yZAG-0005kr-Oy; Sun, 14 Sep 2003 11:51:52 -0400
Received: from [192.168.1.33] (199.2.dyn-adsl.customer.ch.easynet.net
	[217.8.199.2]) by smtp2.mail.ch.easynet.net (Postfix) with ESMTP
	id 3D94C645F5; Sun, 14 Sep 2003 17:51:45 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Sun, 14 Sep 2003 17:51:18 +0200
Message-Id: <20030914155118.19874@smtp.mail.ch.easynet.net>
In-Reply-To: <m3vfry5fka.fsf@lyta.haphazard.org>
References: <m3vfry5fka.fsf@lyta.haphazard.org>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="==_20030914155118.1218-1_=="
Cc: Brian Jones <cbj@gnu.org>, Stephane Meslin-Weber <twiun@adorphuye.com>,
	graydon hoare <graydon@redhat.com>
Subject: Re: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 14 Sep 2003 15:52:00 -0000

--==_20030914155118.1218-1_==
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Brian Jones <cbj@gnu.org> wrote on Fri, 12 Sep 2003 08:58:29 -0400:

>What parts of our code would rely upon having a ClasspathToolkit
>with the additional Font related stuff?

The JavaDoc of the enclosed classes "ClasspathToolkit" and
"ClasspathFontPeer" explains the expected uses.

Would those two classes be suitable for eventual inclusion into Classpath?

Graydon, would this FontPeer be ok, or would you like to see things done
differently?

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 

--==_20030914155118.1218-1_==
Content-Type: multipart/mixed; boundary="==_20030914155118.1218-2_=="

--==_20030914155118.1218-2_==
Content-Type: text/plain; name="ClasspathToolkit.java";
	x-mac-type="00000000"; x-mac-creator="00000000"
Content-Disposition: attachment
Content-Transfer-Encoding: base64

LyogQ2xhc3NwYXRoVG9vbGtpdC5qYXZhIC0tIEFic3RyYWN0IHN1cGVyY2xhc3MgZm9yIENs
YXNzcGF0aCB0b29sa2l0cy4KICAgQ29weXJpZ2h0IChDKSAyMDAzIEZyZWUgU29mdHdhcmUg
Rm91bmRhdGlvbiwgSW5jLgoKVGhpcyBmaWxlIGlzIHBhcnQgb2YgR05VIENsYXNzcGF0aC4K
CkdOVSBDbGFzc3BhdGggaXMgZnJlZSBzb2Z0d2FyZTsgeW91IGNhbiByZWRpc3RyaWJ1dGUg
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VkVVJMRXhjZXB0aW9uIG11ZXgpCiAgICB7CiAgICAgIHRocm93IChJ
bGxlZ2FsQXJndW1lbnRFeGNlcHRpb24pIG5ldyBJbGxlZ2FsQXJndW1lbnRFeGNlcHRpb24o
cGF0aCkKICAgICAgICAuaW5pdENhdXNlKG11ZXgpOwogICAgfQogIH0KfQo=
--==_20030914155118.1218-2_==
Content-Type: text/plain; name="ClasspathFontPeer.java";
	x-mac-type="00000000"; x-mac-creator="00000000"
Content-Disposition: attachment
Content-Transfer-Encoding: base64

LyogQ2xhc3NwYXRoRm9udFBlZXIuamF2YSAtLSBGb250IHBlZXIgdXNlZCBieSBHTlUgQ2xh
c3NwYXRoLgogICBDb3B5cmlnaHQgKEMpIDIwMDMgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9u
LCBJbmMuCgpUaGlzIGZpbGUgaXMgcGFydCBvZiBHTlUgQ2xhc3NwYXRoLgoKR05VIENsYXNz
cGF0aCBpcyBmcmVlIHNvZnR3YXJlOyB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3Ig
bW9kaWZ5Cml0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExp
Y2Vuc2UgYXMgcHVibGlzaGVkIGJ5CnRoZSBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb247IGVp
dGhlciB2ZXJzaW9uIDIsIG9yIChhdCB5b3VyIG9wdGlvbikKYW55IGxhdGVyIHZlcnNpb24u
CgpHTlUgQ2xhc3NwYXRoIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2ls
bCBiZSB1c2VmdWwsIGJ1dApXSVRIT1VUIEFOWSBXQVJSQU5UWTsgd2l0aG91dCBldmVuIHRo
ZSBpbXBsaWVkIHdhcnJhbnR5IG9mCk1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBB
IFBBUlRJQ1VMQVIgUFVSUE9TRS4gIFNlZSB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ZSBpbXBsZW1lbnRhdGlvbiBmb3Ige0BsaW5rCiAgICogZ251LmphdmEuYXd0LkNsYXNzcGF0
aFRvb2xraXQjZ2V0Rm9udE1ldHJpY3MoRm9udCl9LCB3aGljaCBpcyBhbgogICAqIGFic3Ry
YWN0IG1ldGhvZCBpbnRyb2R1Y2VkIGJ5IHtAbGluayBqYXZhLmF3dC5Ub29sa2l0fS4KICAg
KgogICAqIEBwYXJhbSBmb250IHRoZSBmb250IHdob3NlIG1ldHJpY3MgYXJlIHJldHJpZXZl
ZC4KICAgKi8KICBGb250TWV0cmljcyBnZXRGb250TWV0cmljcyhGb250IGZvbnQpOwp9Cg==

--==_20030914155118.1218-2_==--
--==_20030914155118.1218-1_==--




From MAILER-DAEMON Mon Sep 15 10:29:00 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19yuLc-0007CB-6s
	for mharc-classpath@gnu.org; Mon, 15 Sep 2003 10:29:00 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19yGWx-0000pG-3I
	for classpath@gnu.org; Sat, 13 Sep 2003 15:58:03 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19yGWv-0000mn-Gn
	for classpath@gnu.org; Sat, 13 Sep 2003 15:58:02 -0400
Received: from [213.90.36.45] (helo=octopussy.utanet.at)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19yGWv-0000jo-3W
	for classpath@gnu.org; Sat, 13 Sep 2003 15:58:01 -0400
Received: from pam.utanet.at ([213.90.36.6])
	by octopussy.utanet.at with esmtp (Exim 4.12) id 19yGWs-0005Uj-00
	for classpath@gnu.org; Sat, 13 Sep 2003 21:57:58 +0200
Received: from linzu5-100-41.utaonline.at ([62.218.100.41] helo=web.de)
	by pam.utanet.at with esmtp (Exim 4.12) id 19yGWs-0004kx-00
	for classpath@gnu.org; Sat, 13 Sep 2003 21:57:58 +0200
Message-ID: <3F637642.9000000@web.de>
Date: Sat, 13 Sep 2003 21:55:46 +0200
From: Clemens Eisserer <linuxhippy@web.de>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: classpath@gnu.org
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Mon, 15 Sep 2003 10:28:58 -0400
Subject: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Sep 2003 19:58:03 -0000

Hi there!

Does anybody know a useable html-rendering engine completly written 
using Java and 100% free Software (e.g. GPL, LGPL)...
I want to port such a library from AWT/SWING to SWT.

All libraries I found were proprietary, so they arent useful at all for 
me :-(

lg Clemens




From MAILER-DAEMON Tue Sep 16 00:43:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19z7g5-0006Ij-SI
	for mharc-classpath@gnu.org; Tue, 16 Sep 2003 00:43:01 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19z7g3-0006HX-Cz
	for classpath@gnu.org; Tue, 16 Sep 2003 00:42:59 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19z7g1-0006EF-44
	for classpath@gnu.org; Tue, 16 Sep 2003 00:42:57 -0400
Received: from [24.93.67.83] (helo=ms-smtp-02.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19z7g0-0006Cy-FD
	for classpath@gnu.org; Tue, 16 Sep 2003 00:42:56 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-02.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8G4d9pM028476; Tue, 16 Sep 2003 00:39:10 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 1B4E9BE641; Tue, 16 Sep 2003 00:39:15 -0400 (EDT)
Sender: cbj@haphazard.org
To: Clemens Eisserer <linuxhippy@web.de>
References: <3F637642.9000000@web.de>
From: Brian Jones <cbj@gnu.org>
Date: 16 Sep 2003 00:39:15 -0400
In-Reply-To: <3F637642.9000000@web.de>
Message-ID: <m3ekyh5ouk.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: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Sep 2003 04:43:00 -0000

Clemens Eisserer <linuxhippy@web.de> writes:

> Hi there!
> 
> Does anybody know a useable html-rendering engine completly written
> using Java and 100% free Software (e.g. GPL, LGPL)...
> I want to port such a library from AWT/SWING to SWT.
> 
> All libraries I found were proprietary, so they arent useful at all
> for me :-(

There might be something useful in the Jazilla project archive at
mozilla.org.

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



From MAILER-DAEMON Tue Sep 16 04:17:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zB22-0005ca-HA
	for mharc-classpath@gnu.org; Tue, 16 Sep 2003 04:17:54 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zB1y-0005bI-V0
	for classpath@gnu.org; Tue, 16 Sep 2003 04:17:50 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zB1v-0005Zp-Tq
	for classpath@gnu.org; Tue, 16 Sep 2003 04:17:48 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19zB1v-0005ZV-7O
	for classpath@gnu.org; Tue, 16 Sep 2003 04:17:47 -0400
Received: from [212.101.4.135] (helo=mail01.solnet.ch)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19zB1B-0005ln-LY
	for classpath@gnu.org; Tue, 16 Sep 2003 04:17:01 -0400
Received: from localhost (localhost [127.0.0.1])
	by mail01.solnet.ch (Postfix) with ESMTP
	id 75A9B622EF; Tue, 16 Sep 2003 08:17:00 +0000 (GMT)
Received: from localhost ([127.0.0.1])
	by localhost (mail01.solnet.ch [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 10485-09; Tue, 16 Sep 2003 08:16:58 +0000 (GMT)
Received: from reali.dnsalias.net (adsl-212-41-64-213.solnet.ch
	[212.41.64.213]) by mail01.solnet.ch (Postfix) with ESMTP
	id 1AC78622E0; Tue, 16 Sep 2003 08:16:58 +0000 (GMT)
Received: from pcprr (unknown [193.72.144.232])
	by reali.dnsalias.net (Postfix) with SMTP
	id 896EB3E808; Tue, 16 Sep 2003 10:09:24 +0200 (CEST)
Message-ID: <001001c37c2a$e2e428e0$360a280a@elca.ch>
From: "Patrik Reali" <reali@acm.org>
To: <classpath@gnu.org>
References: <3F637642.9000000@web.de>
Date: Tue, 16 Sep 2003 10:16:52 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Virus-Scanned: by SolNet
Cc: Clemens Eisserer <linuxhippy@web.de>
Subject: Re: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Patrik Reali <reali@acm.org>
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Sep 2003 08:17:52 -0000

Hi Clemens,

XBrowser (http://xbrowser.sourceforge.net/) ist a Web Browser completely
written in Java, so I guess it must contain a rendering engine. It is
released under the SISSL licence.

-Patrik

----- Original Message ----- 
From: "Clemens Eisserer" <linuxhippy@web.de>
To: <classpath@gnu.org>
Sent: Saturday, September 13, 2003 9:55 PM
Subject: HTML-Rendering engine written in Java?


> Hi there!
>
> Does anybody know a useable html-rendering engine completly written
> using Java and 100% free Software (e.g. GPL, LGPL)...
> I want to port such a library from AWT/SWING to SWT.
>
> All libraries I found were proprietary, so they arent useful at all for
> me :-(
>
> lg Clemens
>
>
>
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
>
>




From MAILER-DAEMON Tue Sep 16 13:44:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zJsB-00084t-Cx
	for mharc-classpath@gnu.org; Tue, 16 Sep 2003 13:44:19 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zIjX-0007WO-13
	for classpath@gnu.org; Tue, 16 Sep 2003 12:31:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zIjQ-0007Qg-Af
	for classpath@gnu.org; Tue, 16 Sep 2003 12:31:12 -0400
Received: from [213.90.36.45] (helo=octopussy.utanet.at)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19zIjA-0007B3-BE
	for classpath@gnu.org; Tue, 16 Sep 2003 12:30:56 -0400
Received: from pam.utanet.at ([213.90.36.6])
	by octopussy.utanet.at with esmtp (Exim 4.12) id 19zIiz-0007q3-00
	for classpath@gnu.org; Tue, 16 Sep 2003 18:30:45 +0200
Received: from linzu2-213-75.utaonline.at ([212.152.213.75] helo=web.de)
	by pam.utanet.at with esmtp (Exim 4.12) id 19zIiy-0006iw-00
	for classpath@gnu.org; Tue, 16 Sep 2003 18:30:45 +0200
Message-ID: <3F673A2D.9000706@web.de>
Date: Tue, 16 Sep 2003 18:28:29 +0200
From: Clemens Eisserer <linuxhippy@web.de>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: classpath@gnu.org
References: <3F637642.9000000@web.de> <001001c37c2a$e2e428e0$360a280a@elca.ch>
In-Reply-To: <001001c37c2a$e2e428e0$360a280a@elca.ch>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Tue, 16 Sep 2003 13:44:17 -0400
Subject: Re: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Sep 2003 16:31:56 -0000

Hi Patrik Reali !

>XBrowser (http://xbrowser.sourceforge.net/) ist a Web Browser completely
>written in Java, so I guess it must contain a rendering engine. It is
>released under the SISSL licence.
>
XBrowser is mostly based on SWING-Classes (also for rendeing / parsing) 
and is extremly slow, nearly unuseable :-(

lg Clemens





From MAILER-DAEMON Tue Sep 16 14:07:29 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zKEb-0007Bb-8u
	for mharc-classpath@gnu.org; Tue, 16 Sep 2003 14:07:29 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zK0o-0001LQ-UZ
	for classpath@gnu.org; Tue, 16 Sep 2003 13:53:14 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zK0m-0001KX-Is
	for classpath@gnu.org; Tue, 16 Sep 2003 13:53:13 -0400
Received: from [164.121.249.101] (helo=fdpnmailgw2.mailgws.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zK0l-0001K0-PH
	for classpath@gnu.org; Tue, 16 Sep 2003 13:53:11 -0400
Received: from 164.121.15.20 by fdpnmailgw2.mailgws.com with ESMTP (MMS
	SMTP Relay (MMS v5.5.3)); Tue, 16 Sep 2003 12:53:04 -0500
Received: from edxbridge2.jdnet.deere.com ([164.121.15.62]) by
	edxgw2.jdnet.deere.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 16
	Sep 2003 12:53:03 -0500
Received: from edxmb2.jdnet.deere.com ([164.121.15.171]) by
	edxbridge2.jdnet.deere.com with Microsoft SMTPSVC(5.0.2195.5329); Tue,
	16 Sep 2003 12:53:03 -0500
Received: from edxmb5.jdnet.deere.com ([164.121.13.194]) by
	edxmb2.jdnet.deere.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 16
	Sep 2003 12:53:03 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Tue, 16 Sep 2003 12:53:02 -0500
Message-ID: <80FF42A334253C4393F2527DE0E6DD9F0F0AC9@edxmb5.jdnet.deere.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: HTML-Rendering engine written in Java?
Thread-Index: AcN8euUQUefsv1dkQ0aFsLo/6/NprgAAFLEA
From: "Regier Avery J" <RegierAveryJ@JohnDeere.com>
To: "Clemens Eisserer" <linuxhippy@web.de>,
	classpath@gnu.org
X-OriginalArrivalTime: 16 Sep 2003 17:53:03.0246 (UTC)
	FILETIME=[602672E0:01C37C7B]
X-WSS-ID: 1379918A639136-01-01
Content-Type: text/plain;
 charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Tue, 16 Sep 2003 14:07:27 -0400
Cc: 
Subject: RE: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Sep 2003 17:53:18 -0000


> XBrowser is mostly based on SWING-Classes (also for rendeing / =
parsing)=20
> and is extremly slow, nearly unuseable :-(
>=20
> lg Clemens

Well, that means that with a port to SWT you could show just how much it =
speeds it up!

-Avery




From MAILER-DAEMON Tue Sep 16 17:44:00 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zNc2-0002mQ-Nw
	for mharc-classpath@gnu.org; Tue, 16 Sep 2003 17:43:54 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zNbr-0002Zz-HU
	for classpath@gnu.org; Tue, 16 Sep 2003 17:43:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zNbV-0002Dj-0o
	for classpath@gnu.org; Tue, 16 Sep 2003 17:43:21 -0400
Received: from [80.91.224.249] (helo=main.gmane.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zNYV-0001Dd-3n
	for classpath@gnu.org; Tue, 16 Sep 2003 17:40:15 -0400
Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19zNYE-0000yu-00
	for <classpath@gnu.org>; Tue, 16 Sep 2003 23:39:58 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: classpath@gnu.org
Received: from sea.gmane.org ([80.91.224.252])
	by main.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 19zNYD-0000ym-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Tue, 16 Sep 2003 23:39:57 +0200
Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19zNYS-0007Vc-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Tue, 16 Sep 2003 23:40:12 +0200
From: graydon hoare <graydon@redhat.com>
Date: 16 Sep 2003 17:40:36 -0400
Lines: 41
Message-ID: <87fziwwgx7.fsf@dub.venge.net>
References: <m3vfry5fka.fsf@lyta.haphazard.org>
	<20030914155118.19874@smtp.mail.ch.easynet.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@sea.gmane.org
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
Sender: news <news@sea.gmane.org>
Subject: Re: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Sep 2003 21:43:53 -0000

Sascha Brawer <brawer@dandelis.ch> writes:

> Brian Jones <cbj@gnu.org> wrote on Fri, 12 Sep 2003 08:58:29 -0400:
> 
> >What parts of our code would rely upon having a ClasspathToolkit
> >with the additional Font related stuff?
> 
> The JavaDoc of the enclosed classes "ClasspathToolkit" and
> "ClasspathFontPeer" explains the expected uses.
> 
> Would those two classes be suitable for eventual inclusion into Classpath?
> 
> Graydon, would this FontPeer be ok, or would you like to see things done
> differently?

In principle I like the direction, but I would make two changes to
these interfaces:

First, the font-related factory method on the toolkit should produce a
ClasspathFontPeer, not a java.awt.Font. The factory method will be
called *from* a java.awt.Font constructor in user code, thus has no
opportunity to influence the identity of the Font object being
constructed.

Second, I think the ClasspathFontPeer should not be passed
java.awt.Font objects as arguments to its methods. This practise
implies an 'instanceof' operation, and (possibly failing) downcast on
every operation, or at least some sort of hashtable lookup.

Instead, I think the ClasspathFontPeer should hold state itself, or at
least be the object identified with state (whether internal or
external -- a singleton is still possible, just using static methods
within a subclass keyed to the identity of the ClasspathFontPeer in
question, not the Font). This approach is theoretically equivalent to
yours, but saves the downcasting / hashing, and associated possibility
of runtime failure. I figure a 1:1 relationship between Font and
ClasspathFontPeer objects is likely anyways.

Do you object to these suggestions?

-graydon




From MAILER-DAEMON Tue Sep 16 17:59:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zNrA-000219-Of
	for mharc-classpath@gnu.org; Tue, 16 Sep 2003 17:59:32 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zNr6-0001vY-WB
	for classpath@gnu.org; Tue, 16 Sep 2003 17:59:28 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zNr3-0001tG-JI
	for classpath@gnu.org; Tue, 16 Sep 2003 17:59:26 -0400
Received: from [80.91.224.249] (helo=main.gmane.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zNr2-0001ss-TV
	for classpath@gnu.org; Tue, 16 Sep 2003 17:59:25 -0400
Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19zNqn-000196-00
	for <classpath@gnu.org>; Tue, 16 Sep 2003 23:59:09 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: classpath@gnu.org
Received: from sea.gmane.org ([80.91.224.252])
	by main.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 19zNqm-00018y-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Tue, 16 Sep 2003 23:59:08 +0200
Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19zNr0-0008KP-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Tue, 16 Sep 2003 23:59:22 +0200
From: graydon hoare <graydon@redhat.com>
Date: 16 Sep 2003 17:59:44 -0400
Lines: 65
Message-ID: <8765jswg1b.fsf@dub.venge.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@sea.gmane.org
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
Sender: news <news@sea.gmane.org>
Cc: java-patches@gcc.gnu.org
Subject: [patch] fix to BufferedImage
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Sep 2003 21:59:30 -0000

Hi,

java.awt.image.BufferedImage has a small bug, where it assumes that
its sample model is a ComponentSampleModel when copying blocks of
pixels. This is not always true. The attached patch fixes this
problem.

ok to commit?

-graydon


2003-09-16  Graydon Hoare  <graydon@redhat.com>

	* java/awt/BufferedImage.java (setData): Support non-component
	sample models.
	(getData): Same.


--- java/awt/image/BufferedImage.java
+++ java/awt/image/BufferedImage.java
@@ -267,9 +267,17 @@
       raster.createWritableChild(x, y, w, h, x, y,
 				 null  // same bands
 				 );
-    
-    // Refer to ComponentDataBlitOp for optimized data blitting:
-    ComponentDataBlitOp.INSTANCE.filter(src, dest);
+    if (src.getSampleModel () instanceof ComponentSampleModel &&
+        dest.getSampleModel () instanceof ComponentSampleModel)
+      // Refer to ComponentDataBlitOp for optimized data blitting:
+      ComponentDataBlitOp.INSTANCE.filter(src, dest);
+    else
+      {
+        // slower path
+        int samples[] = null;
+        samples = src.getPixels (x, y, w, h, samples);
+        dest.setPixels (x, y, w, h, samples);
+      }
     return dest;
   }
 
@@ -540,9 +548,19 @@
       raster.createWritableChild(x, y, w, h, x, y,
 				 null  // same bands
 				 );
-    
-    // Refer to ComponentDataBlitOp for optimized data blitting:
-    ComponentDataBlitOp.INSTANCE.filter(src, dest);
+
+    if (src.getSampleModel () instanceof ComponentSampleModel &&
+        dest.getSampleModel () instanceof ComponentSampleModel)
+
+      // Refer to ComponentDataBlitOp for optimized data blitting:
+      ComponentDataBlitOp.INSTANCE.filter(src, dest);
+    else
+      {
+        // slower path
+        int samples[] = null;
+        samples = src.getPixels (x, y, w, h, samples);
+        dest.setPixels (x, y, w, h, samples);
+      }
   }
 
   public void setRGB(int x, int y, int argb)




From MAILER-DAEMON Wed Sep 17 05:16:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zYQ1-0006bh-6T
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 05:16:13 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zYPy-0006bX-Sd
	for classpath@gnu.org; Wed, 17 Sep 2003 05:16:10 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zYPv-0006bK-9D
	for classpath@gnu.org; Wed, 17 Sep 2003 05:16:08 -0400
Received: from [217.8.192.20] (helo=smtp1.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zYPu-0006bA-LV
	for classpath@gnu.org; Wed, 17 Sep 2003 05:16:06 -0400
Received: from [192.168.1.33] (197.10.dyn-adsl.customer.ch.easynet.net
	[217.8.197.10]) by smtp1.mail.ch.easynet.net (Postfix) with ESMTP
	id 931A149F6B; Wed, 17 Sep 2003 11:16:02 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: graydon hoare <graydon@redhat.com>
Date: Wed, 17 Sep 2003 11:15:38 +0200
Message-Id: <20030917091538.31760@smtp.mail.ch.easynet.net>
In-Reply-To: <87fziwwgx7.fsf@dub.venge.net>
References: <87fziwwgx7.fsf@dub.venge.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 09:16:11 -0000

Hi Graydon,

>> [ClasspathToolkit, ClasspathFontPeer]
>
>In principle I like the direction, but I would make two changes to
>these interfaces:
>
>First, the font-related factory method on the toolkit should produce a
>ClasspathFontPeer, not a java.awt.Font. The factory method will be
>called *from* a java.awt.Font constructor in user code, thus has no
>opportunity to influence the identity of the Font object being
>constructed.

Would you say that Font.createFont and Font.deriveFont should be fully
implemented by java.awt.Font, so that they would construct the new Font
without calling the Toolkit? I'd agree with this, although it makes
things even more complicated.

If the toolkit produces ClasspathFontPeers instead of java.awt.Fonts, the
implementations of java.awt.Font.createFont and deriveFont somehow need
to know whether the constructed Font should implement the
java.awt.font.[OpenType, MultipleMaster] interfaces. What do you think
about the following proposal, which puts a special key for "pre-created
peers" into the attribute Map?

package java.awt;
import ...;
public class Font
{
  private Map attributes;
  private ClasspathFontPeer peer;

  public Font(Map attrs)
  {
    init((Map) attrs.clone());
  }
  // The other Font constructors create a Map and pass it to init.

  private void init(Map attrs)
  {
    peer = getPeer(attrs);

    attributes = attrs;
    attributes.remove("CLASSPATH_FONT_PEER");
  }


  /**
   * Retrieves a ClasspathFontPeer that is suitable for the specified
   * attributes. If attrs contains a key "CLASSPATH_FONT_PEER", the
   * corresponding value is retrieved and returned. Otherwise, the
   * toolkit is asked for a font peer for the attributes,
   * and the peer is stored in attrs under "CLASSPATH_FONT_PEER"
   * before being returned.
   */
  private static ClasspathFontPeer getPeer(Map attrs)
  {
    ClasspathFontPeer peer;

    peer = attrs.get("CLASSPATH_FONT_PEER");
    if (peer == null)
    {
      peer = ((ClasspathToolkit) Toolkit.getDefaultToolkit())
        .getFontPeer(attrs);
      attrs.put("CLASSPATH_FONT_PEER", peer);
    }

    return peer;
  }


  public static Font getFont(Map attrs)
  {
    ClasspathFontPeer peer;

    peer = getPeer(attrs);

    if (peer.isOpenType())
      f = new ClasspathOpenTypeFont(attrs);
    else if (peer.getNumDesignAxes() > 0)
      return new ClasspathMultipleMasterFont(attrs);
    else
      return new Font(attrs);
  }


  public static Font createFont(int format, InputStream stream)
    throws FontFormatException, IOException
  {
    ClasspathFontPeer peer;

    peer = ((ClasspathToolkit) Toolkit.getDefaultToolkit())
      .createFontPeer(format, stream));
    attrs = new HashMap();
    attrs.put("CLASSPATH_FONT_PEER", peer);
    return getFont(attrs);
  }


  public Font deriveFont(float size)
  {
    // Retrieve a clone of this font's attribute map.
    Map attrs = getAttributes();
    attrs.put(TextAttribute.SIZE, new Float(size));
    return getFont(attrs);
  }

  // the other deriveFont methods are similar to deriveFont(float)
}


package gnu.java.awt.font;
import java.util.Map;
import gnu.java.awt.peer;

public class ClasspathOpenTypeFont
  extends java.awt.Font
  implements java.awt.font.OpenType
{
  public ClasspathOpenTypeFont(Map attrs)
  {
    super(attrs);
  }

  ... OpenType methods delegated to peer
}

public class ClasspathMultipleMasterFont
  extends java.awt.Font
  implements java.awt.font.MultipleMaster
{
  public ClasspathMultipleMasterFont(Map attrs)
  {
    super(attrs);
  }

  ... MultipleMaster methods delegated to peer
}


ClasspathOpenTypeMultipleMasterFont is left as an exercise to the reader
:-) The ClasspathXXXFont classes could also be made private static inner
classes of java.awt.Font.

This is terribly complicated. But do you see an easier way that would
allow createFont and deriveFont to return a Font that implements a
certain interface, such as java.awt.font.OpenType?


>Second, I think the ClasspathFontPeer should not be passed
>java.awt.Font objects as arguments to its methods. This practise
>implies an 'instanceof' operation, and (possibly failing) downcast on
>every operation, or at least some sort of hashtable lookup.

Hm, I guess we'll have something like the following:

package java.awt;
import gnu.java.awt.peer.ClasspathFontPeer;

public class Font
{
  protected ClasspathFontPeer peer;

  public float getItalicAngle()
  {
    // float ClasspathFontPeer.getItalicAngle(java.awt.Font)
    return peer.getItalicAngle(this);
  }
}

Would you mind explaining where exactly the cast is performed?

>I figure a 1:1 relationship between Font and
>ClasspathFontPeer objects is likely anyways.

Some toolkits might have a peer for each unscaled font (i.e., before
scaling or the application of affine transformations). In this case,
there would be a peer object for the 'Univers' font, which gets shared
e.g. between 10-point and (13-point, 30-degree slanted) Univers. For this
platform, the peer's getItalicAngle method would be something like the
following:

  public float getItalicAngle(Font font)
  {
    float angle = ...;

    if (font.isTransformed())
    {
      // Retrieve a clone of the font's transform.
      AffineTransform tx = font.getTransform();
      angle = someFunction(tx, angle);
    }

    return angle;
  }

I thought it would not hurt to allow that a single font peer is shared
between scaled/transformed fonts.  On the other hand, if you think that
passing the Font to the peer's methods is bad, I wouldn't have a problem
to omit that argument.

If we let ClasspathToolkit return ClasspathFontPeers instead of Fonts, as
you suggested, a singleton-peer-for-all-fonts variant wouldn't work. So,
what would you think about keeping the Font argument in those peer
methods where the result is influenced by scaling and transforming (e.g.
getItalicAngle or getFontMetrics), but removing it from the others (such
as getFamilyName, getNumGlyphs, getMissingGlyphCode, isOpenType, etc.)?

About the 'getGlyphName' method that I had proposed for
ClasspathFontPeer: On a second thought, it seems better to omit this
until someone actually writes a PDF/PostScript stream provider. The beast
is already hairy enough.

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Wed Sep 17 10:20:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zdA8-00038r-W5
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 10:20:08 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zcyP-0000tw-J1
	for classpath@gnu.org; Wed, 17 Sep 2003 10:08:01 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zcyN-0000sp-Qb
	for classpath@gnu.org; Wed, 17 Sep 2003 10:08:00 -0400
Received: from [146.87.255.104] (helo=pan.salford.ac.uk)
	by monty-python.gnu.org with smtp (Exim 4.22) id 19zcyN-0000sR-0I
	for classpath@gnu.org; Wed, 17 Sep 2003 10:07:59 -0400
Received: (qmail 60471 invoked by uid 85); 17 Sep 2003 13:54:53 -0000
Received: from ricky_clarkson@yahoo.com by pan.salford.ac.uk by uid 401 with
	qmail-scanner-1.16 
	(uvscan: v4.2.40/v4292. spamassassin: 2.55.  Clear:. 
	Processed in 0.805663 secs); 17 Sep 2003 13:54:53 -0000
X-Qmail-Scanner-Mail-From: ricky_clarkson@yahoo.com via pan.salford.ac.uk
X-Qmail-Scanner: 1.16 (Clear:. Processed in 0.805663 secs)
Received: (ofmipd 146.87.133.141); 17 Sep 2003 13:54:51 -0000
Received: from ricky by debian with local (Exim 3.36 #1 (Debian))
	id 19zKdK-0000Vm-00; Tue, 16 Sep 2003 19:33:02 +0100
Date: 16 Sep 2003 19:33:02 +0100
Message-ID: <20030916183302.GA1963@yahoo.com>
From: "Ricky Clarkson" <ricky_clarkson@yahoo.com>
To: arenn@urbanophile.com
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="HlL+5n6rz5pIUxbD"
Content-Disposition: inline
User-Agent: Mutt/1.5.4i
X-Mailman-Approved-At: Wed, 17 Sep 2003 10:20:06 -0400
Cc: classpath@gnu.org
Subject: Classpath java/applet/AppletContext.java minor documentation patch.
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 14:08:02 -0000


--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

I was browsing AppletContext.java, and found an incredibly minor
grammatical error, and was feeling pretty bored at the time, so here's a
patch.

See the attached file 'diff' for the output of diff <original
AppletContext.java> <my AppletContext.java> and 'diff_minus_u' for the
output of diff -u <original AppletContext.java> <my AppletContext.java>

Regards,

Ricky.

--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff

147,148c147,148
<    * Iterate over all keys that have associated streams. Stream associated
<    * are local to the applet context, for security purposes.
---
>    * Iterate over all keys that have associated streams. The associated
>    * streams are local to the applet context, for security purposes.

--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff_minus_u

--- classpath/java/applet/AppletContext.java	2002-11-13 03:48:51.000000000 +0000
+++ AppletContext.java	2003-09-16 19:29:10.000000000 +0100
@@ -144,8 +144,8 @@
   InputStream getStream(String key);
 
   /**
-   * Iterate over all keys that have associated streams. Stream associated
-   * are local to the applet context, for security purposes.
+   * Iterate over all keys that have associated streams. The associated
+   * streams are local to the applet context, for security purposes.
    *
    * @return an iterator over the association keys
    * @since 1.4

--HlL+5n6rz5pIUxbD--



From MAILER-DAEMON Wed Sep 17 10:20:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zdA9-000396-Jk
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 10:20:09 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zcya-0000vw-2C
	for classpath@gnu.org; Wed, 17 Sep 2003 10:08:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zcyS-0000uy-I3
	for classpath@gnu.org; Wed, 17 Sep 2003 10:08:05 -0400
Received: from [146.87.255.104] (helo=pan.salford.ac.uk)
	by monty-python.gnu.org with smtp (Exim 4.22) id 19zcyR-0000uN-VD
	for classpath@gnu.org; Wed, 17 Sep 2003 10:08:04 -0400
Received: (qmail 60597 invoked by uid 85); 17 Sep 2003 13:54:57 -0000
Received: from ricky_clarkson@yahoo.com by pan.salford.ac.uk by uid 401 with
	qmail-scanner-1.16 
	(uvscan: v4.2.40/v4292. spamassassin: 2.55.  Clear:. 
	Processed in 1.294667 secs); 17 Sep 2003 13:54:57 -0000
X-Qmail-Scanner-Mail-From: ricky_clarkson@yahoo.com via pan.salford.ac.uk
X-Qmail-Scanner: 1.16 (Clear:. Processed in 1.294667 secs)
Received: (ofmipd 146.87.133.141); 17 Sep 2003 13:54:54 -0000
Received: from ricky by debian with local (Exim 3.36 #1 (Debian))
	id 19zKnp-0000Wd-00; Tue, 16 Sep 2003 19:43:53 +0100
Date: 16 Sep 2003 19:43:53 +0100
Message-ID: <20030916184353.GA2012@yahoo.com>
From: "Ricky Clarkson" <ricky_clarkson@yahoo.com>
To: warrenl@cygnus.com, arenn@urbanophile.com
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="G4iJoqBmSsgzjUCe"
Content-Disposition: inline
User-Agent: Mutt/1.5.4i
X-Mailman-Approved-At: Wed, 17 Sep 2003 10:20:06 -0400
Cc: classpath@gnu.org
Subject: Classpath java/awt/AWTEvent.java minor documentation patch.
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 14:08:13 -0000


--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

I was browsing AWTEvent.java, and came across a couple of tiny
grammatical errors.

Please see the attached files 'diff', which is the output of diff
<original AWTEvent.java> <my AWTEvent.java>, and 'diff_minus_u', which
is the output of diff -u <original AWTEvent.java> <my AWTEvent.java>.

Regards,

Ricky.

--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff

75c75
<    * Indicates if the event has been consumed. False mean it is passed to
---
>    * Indicates whether the event has been consumed. False means it is passed to
266c266
<    * Tests whether not not this event has been consumed. A consumed event
---
>    * Tests whether or not this event has been consumed. A consumed event

--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff_minus_u

--- classpath/java/awt/AWTEvent.java	2002-05-06 03:43:17.000000000 +0100
+++ AWTEvent.java	2003-09-16 19:41:56.000000000 +0100
@@ -72,7 +72,7 @@
   protected int id;
 
   /**
-   * Indicates if the event has been consumed. False mean it is passed to
+   * Indicates whether the event has been consumed. False means it is passed to
    * the peer, true means it has already been processed. Semantic events
    * generated by low-level events always have the value true.
    *
@@ -263,7 +263,7 @@
   }
 
   /**
-   * Tests whether not not this event has been consumed. A consumed event
+   * Tests whether or not this event has been consumed. A consumed event
    * is not processed in the default manner.
    *
    * @return true if this event has been consumed

--G4iJoqBmSsgzjUCe--



From MAILER-DAEMON Wed Sep 17 11:35:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zeKP-0007Wk-B8
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 11:34:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zeK8-0006uR-QV
	for classpath@gnu.org; Wed, 17 Sep 2003 11:34:32 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zeJr-0006SS-3r
	for classpath@gnu.org; Wed, 17 Sep 2003 11:34:17 -0400
Received: from [80.91.224.249] (helo=main.gmane.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zeJi-0006BR-AB
	for classpath@gnu.org; Wed, 17 Sep 2003 11:34:06 -0400
Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19zeJR-0007s4-00
	for <classpath@gnu.org>; Wed, 17 Sep 2003 17:33:49 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: classpath@gnu.org
Received: from sea.gmane.org ([80.91.224.252])
	by main.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 19zeJQ-0007rw-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Wed, 17 Sep 2003 17:33:48 +0200
Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian))
	id 19zeJg-0006J5-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Wed, 17 Sep 2003 17:34:04 +0200
From: graydon hoare <graydon@redhat.com>
Date: 17 Sep 2003 11:34:26 -0400
Lines: 290
Message-ID: <87r82fton1.fsf@dub.venge.net>
References: <87fziwwgx7.fsf@dub.venge.net>
	<20030917091538.31760@smtp.mail.ch.easynet.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@sea.gmane.org
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
Sender: news <news@sea.gmane.org>
Subject: Re: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 15:34:46 -0000

Sascha Brawer <brawer@dandelis.ch> writes:

> Would you say that Font.createFont and Font.deriveFont should be fully
> implemented by java.awt.Font, so that they would construct the new Font
> without calling the Toolkit? I'd agree with this, although it makes
> things even more complicated.

the situation is somewhat less complicated than it looks; the general
problem is just that there are 3 distinct routes to arriving at a new
font:

(1) Font constructors

        must be implemented in Font, since can't change identity of
        the object being constructed.

(2) Font.createFont, Font.decode, Font.getFont

        static, can be implemented in Font or Toolkit (or a mixture,
        since decode and some createFont variants are trivially
        translated to getFont(Map) calls).

(3) Font.deriveFont

        method of Font, can be implemented in Font, or Toolkit, or
        ClasspathFontPeer (since deriveFont is a method of an object
        which already *has* a peer)

my inclination is to call peer-returning factory methods on the
Toolkit in case (1), call Font-returning factory methods on the
Toolkit in case (2), and to call a method *on the peer* in case (3).

> If the toolkit produces ClasspathFontPeers instead of java.awt.Fonts, the
> implementations of java.awt.Font.createFont and deriveFont somehow need
> to know whether the constructed Font should implement the
> java.awt.font.[OpenType, MultipleMaster] interfaces. 

I think it is again instructive to look at these 3 cases
separately. in case (1), there is no possibility for the returned Font
to implement OpenType or MultipleMaster, because the user is asking
for a specific class (Font) and that class has a known signature in
java.awt which does not include 'implements OpenType' or 'implements
MultipleMaster'. So we can ignore this case.

in case (2), the toolkit can return a Font subclass implementing
OpenType or MultipleMaster as it likes, possibly never, but it's up to
the Toolkit. I think this is right since some toolkits will probably
never support MultipleMaster.

in case (3), the font already *knows* which subclass it is (and
whether or not it implements MultipleMaster or OpenType) so can have a
hard-coded means to derive a new peer (of the appropriate peer
subclass) from its existing peer.

> What do you think about the following proposal, which puts a special
> key for "pre-created peers" into the attribute Map?

mm, seems a little odd. I don't understand exactly why you've done
this, nor whether it fully solves the problem. 

> This is terribly complicated. But do you see an easier way that
> would allow createFont and deriveFont to return a Font that
> implements a certain interface, such as java.awt.font.OpenType?

Yes, I think it can be done by arranging for override opportunities at
key points in the call chain. here is the collection of classes that I
propose (and will happily implement in their entirety):


public abstract class ClasspathToolkit
{
  public Font getFont (Map attrs) 
  {

    // note: you can override this method if you want to 
    // return an object which implements OpenType or 
    // MultipleMaster

    return new Font (attrs);
  }

  // no default implementation for these two
  public abstract Font getFont (int fontFormat, InputStream is);
  public abstract ClasspathFontPeer getPeer (Map attrs);  
}

public abstract class ClasspathFontPeer
{
  // derivation methods
  public Font deriveFont (float size)

    // note: you can override this method in a peer which
    // wishes to derive fonts in some other fashion.

    Map newAttrs = new HashMap (attrs);
    newAttrs.put (TextAttribute.SIZE, new Float(size));
    return Font.getFont (newAttrs);
  }
  // ... other default derivation policies are similar

  // accessors for peer font state
  public abstract String getFamilyName ();
  public abstract float getItalicAngle ();
  public abstract LineMetrics getLineMetrics (...);
  // ...
}

public class Font
{
  protected ClasspathFontPeer peer;

  public Font (Map attributes)
  {
    this.peer = ((ClasspathToolkit) Toolkit.getDefaultToolkit())
                .getPeer(attributes);
  }

  public static Font getFont (Map attrs)
  {
    return ((ClasspathToolkit) Toolkit.getDefaultToolkit())
           .getFont(attrs);    
  }

  public static Font getFont (String property)
  {
    // implement by translation to Toolkit.getFont() via decode
    String propval = System.getProperty (propname);    
    if (propval != null)
      return decode (propval);
    else
      return null;
  }

  public static Font createFont (int fontFormat, InputStream is) 
  {
    return ((ClasspathToolkit) Toolkit.getDefaultToolkit())
           .getFont(fontFormat, is);
  }

  public static Font decode (string fontspec)
  {
    // implement by translation to Toolkit.getFont() via decode
    Map attrs = new HashMap ();
    // decode fontspec into attrs; I've already got code to do this
    return getFont (attrs);
  }

  public Font deriveFont (float size)
  {
    return peer.deriveFont (size);
  }            
  // ...

  // normal methods delegate to peer
  public String getFamilyName ()
  {
    return peer.getFamilyName ();
  }
}

public class GdkToolkit 
{
  public Font getFont (int fontFormat, InputStream is)
  {
    // GdkToolkit doesn't know how to do this, sorry
    throw new UnsupportedOperationException ();
  }

  public ClasspathFontPeer getPeer (Map attrs)
  {    
    return new GdkFontPeer (attrs);
  }
}

public class GdkFontPeer extends ClasspathFontPeer
{
  // peer state
  private Map attrs;
  private String familyName;
  private String faceName;
  private float size;
  // ...

  public GdkFontPeer (Map attrs)
  {
    // decode attrs
    init(familyName, faceName, size);        
  }

  public void finalize()
  {
    dispose ();
  }

  // derivation methods
  // ...

  // state accessors, used as delegates from Font
  public String getFamilyName ()
  {
    return familyName;
  }
  // ...  

  // remainder is native interface to pango
  static 
  {
    if (Configuration.INIT_LOAD_LIBRARY)
      {
        System.loadLibrary("gtkpeer");
      }
    initStaticState ();
  }
  private native static void initStaticState ();
  private final int native_state = GtkGenericPeer.getUniqueInteger ();
  private native init (String familyName, 
                       String faceName, 
                       float size);
  private native dispose ();
  // ...
}


> I thought it would not hurt to allow that a single font peer is shared
> between scaled/transformed fonts.  On the other hand, if you think that
> passing the Font to the peer's methods is bad, I wouldn't have a problem
> to omit that argument.

the benefit of this approach is that it places all the decisions about
a font's behavior purely in the realm of the specific Toolkit and Peer
subclasses, along with any choices you make about state representation. 
the Font has no policy of its own; you store all state in the peer,
where all policy is. imo it improves flexibility quite a bit.

> public class Font
> {
>   protected ClasspathFontPeer peer;
> 
>   public float getItalicAngle()
>   {
>     // float ClasspathFontPeer.getItalicAngle(java.awt.Font)
>     return peer.getItalicAngle(this);
>   }
> }
> 
> Would you mind explaining where exactly the cast is performed?

well, how are you going to implement peer.getItalicAngle(), if the
italic angle state is stored in the Font rather than the peer? 


  public class GdkFontPeer extends ClasspathFontPeer
  {
    public float getItalicAngle (Font f)
    {
      // XXX can't do this, it causes infintie recursion
      return f.getItalicAngle (); 

      // how about this:
      if (f instanceof GdkFont)
      {
         GdkFont gf = (GdkFont)f;
         return gf.getGdkItalicAngle ();
      } 
      else
        throw new UnsupportedOperationException ();
    }
  }


I don't mean this facetiously; it's the exact problem I ran into when
I copied the classes out of your email and started implementing them.
unless the Font is just used as a key into some sort of Hashtable
stored in the FontPeer, these methods all require some kind of
downcast, or some other way of "digging back into the Font", to get at
its state in a way which doesn't wind up calling the peer back again.

> If we let ClasspathToolkit return ClasspathFontPeers instead of
> Fonts, as you suggested, a singleton-peer-for-all-fonts variant
> wouldn't work.

well, you can still do a singleton, of sorts: just split the peer in
two pieces, one which holds whatever amount of shared state you have
(kept in a shared hashtable) and one which holds whatever amount of
non-shared state you have (say, transformation and scale). I feel that
this is an implementation issue for the toolkit and peer to address; I
don't want to force a particular arrangement of splitting in the
interface between Font and peer.

-graydon




From MAILER-DAEMON Wed Sep 17 12:09:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zesJ-000363-F8
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 12:09:51 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zesH-00035R-CD
	for classpath@gnu.org; Wed, 17 Sep 2003 12:09:49 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zesF-00034w-MJ
	for classpath@gnu.org; Wed, 17 Sep 2003 12:09:48 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zesF-000346-3o
	for classpath@gnu.org; Wed, 17 Sep 2003 12:09:47 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id KAA05600;
	Wed, 17 Sep 2003 10:09:37 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 5C9A54F836F; Wed, 17 Sep 2003 10:01:46 -0600 (MDT)
To: graydon hoare <graydon@redhat.com>
References: <8765jswg1b.fsf@dub.venge.net>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: This is a NO-FRILLS flight -- hold th' CANADIAN BACON!!
Date: 17 Sep 2003 10:01:37 -0600
In-Reply-To: <8765jswg1b.fsf@dub.venge.net>
Message-ID: <873cevv1y6.fsf@fleche.redhat.com>
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, java-patches@gcc.gnu.org
Subject: Re: [patch] fix to BufferedImage
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 16:09:49 -0000

>>>>> "graydon" == graydon hoare <graydon@redhat.com> writes:

graydon> 2003-09-16  Graydon Hoare  <graydon@redhat.com>
graydon> 	* java/awt/BufferedImage.java (setData): Support non-component
graydon> 	sample models.
graydon> 	(getData): Same.

This is ok.  There's a couple style nits though.

graydon> +        // slower path
graydon> +        int samples[] = null;
graydon> +        samples = src.getPixels (x, y, w, h, samples);

The `null' here is redundant; there are a couple of these.
I'd either do the assignment and declaration at once, or just not
initialize samples.  (In java this is always safe due to the definite
assignment rules.)

Tom



From MAILER-DAEMON Wed Sep 17 12:24:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zf6f-00070x-Rv
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 12:24:41 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zf6d-0006zr-7i
	for classpath@gnu.org; Wed, 17 Sep 2003 12:24:39 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zf6b-0006yt-4Z
	for classpath@gnu.org; Wed, 17 Sep 2003 12:24:37 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zexD-0004gO-FL
	for classpath@gnu.org; Wed, 17 Sep 2003 12:14:55 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id KAA07175;
	Wed, 17 Sep 2003 10:14:50 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id CD8904F836F; Wed, 17 Sep 2003 10:07:23 -0600 (MDT)
To: graydon hoare <graydon@redhat.com>
References: <8765jswg1b.fsf@dub.venge.net>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: Nice decor!
Date: 17 Sep 2003 10:07:23 -0600
In-Reply-To: <8765jswg1b.fsf@dub.venge.net>
Message-ID: <87llsntn44.fsf@fleche.redhat.com>
Lines: 13
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, java-patches@gcc.gnu.org
Subject: Re: [patch] fix to BufferedImage
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 16:24:40 -0000

>>>>> "graydon" == graydon hoare <graydon@redhat.com> writes:

I just remember the other style nit, which I somehow forgot to
mention in my last message.

graydon> +    if (src.getSampleModel () instanceof ComponentSampleModel &&
graydon> +        dest.getSampleModel () instanceof ComponentSampleModel)

Operators go after the line break, not before.

BTW, with the style changes, the patch is ok, please commit.

Tom



From MAILER-DAEMON Wed Sep 17 12:25:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zf76-0007Bc-06
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 12:25:08 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zf72-0007AD-L9
	for classpath@gnu.org; Wed, 17 Sep 2003 12:25:04 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zf6z-00078g-DV
	for classpath@gnu.org; Wed, 17 Sep 2003 12:25:02 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19zf6y-00077S-2h
	for classpath@gnu.org; Wed, 17 Sep 2003 12:25:00 -0400
Received: from [66.187.233.200] (helo=lacrosse.corp.redhat.com)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19zf6a-0006uE-Iy
	for classpath@gnu.org; Wed, 17 Sep 2003 12:24:36 -0400
Received: from dub.venge.net (sebastian-int.corp.redhat.com [172.16.52.221])
	by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id h8HGOOk04739; 
	Wed, 17 Sep 2003 12:24:24 -0400
Sender: graydon@dub.venge.net
To: classpath@gnu.org, java-patches@gcc.gnu.org
References: <8765jswg1b.fsf@dub.venge.net> <873cevv1y6.fsf@fleche.redhat.com>
From: graydon hoare <graydon@redhat.com>
Date: 17 Sep 2003 12:24:47 -0400
In-Reply-To: <873cevv1y6.fsf@fleche.redhat.com>
Message-ID: <873cevtmb4.fsf@dub.venge.net>
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: 
Subject: Re: [patch] fix to BufferedImage
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 16:25:05 -0000

Tom Tromey <tromey@redhat.com> writes:

> graydon> +        // slower path
> graydon> +        int samples[] = null;
> graydon> +        samples = src.getPixels (x, y, w, h, samples);
> 
> The `null' here is redundant; there are a couple of these.
> I'd either do the assignment and declaration at once, or just not
> initialize samples.  (In java this is always safe due to the definite
> assignment rules.)

yeah, I'm aware that the null initialization is redundant in java;
that's probably just a C++ habit leaking through. I'll remove that.

the assignment however cannot coincide with the declaration, because
this is one of those "efficiency oriented" java APIs (pass in null if
you want the callee to allocate the array), and writing a literal
"null" in position of the "samples" argument degrades the type of the
argument to Object, which ambiguates the call: there's an overload for
each of int[], double[] and float[].

-graydon




From MAILER-DAEMON Wed Sep 17 12:33:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zfF4-0000bn-4v
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 12:33:22 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zfF1-0000b4-83
	for classpath@gnu.org; Wed, 17 Sep 2003 12:33:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zfEz-0000aE-9P
	for classpath@gnu.org; Wed, 17 Sep 2003 12:33:17 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zf7t-0007UB-SU
	for classpath@gnu.org; Wed, 17 Sep 2003 12:25:57 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id KAA10375;
	Wed, 17 Sep 2003 10:25:55 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id D47D74F836F; Wed, 17 Sep 2003 10:18:29 -0600 (MDT)
To: Clemens Eisserer <linuxhippy@web.de>
References: <3F637642.9000000@web.de>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I'm a nuclear submarine under the polar ice cap and I need a Kleenex!
Date: 17 Sep 2003 10:18:29 -0600
In-Reply-To: <3F637642.9000000@web.de>
Message-ID: <877k47tmlm.fsf@fleche.redhat.com>
Lines: 10
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: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 16:33:20 -0000

>>>>> "Clemens" == Clemens Eisserer <linuxhippy@web.de> writes:

Clemens> Does anybody know a useable html-rendering engine completly written
Clemens> using Java and 100% free Software (e.g. GPL, LGPL)...
Clemens> I want to port such a library from AWT/SWING to SWT.

Eclipse 3.0 includes an HTML renderer, doesn't it?  I don't remember
if this component is in SWT or some other plugin.

Tom



From MAILER-DAEMON Wed Sep 17 12:34:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zfGZ-00017m-9O
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 12:34:55 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zfED-0000RB-BU
	for classpath@gnu.org; Wed, 17 Sep 2003 12:32:29 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zfEB-0000Qo-He
	for classpath@gnu.org; Wed, 17 Sep 2003 12:32:28 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zf9j-0007z9-DI
	for classpath@gnu.org; Wed, 17 Sep 2003 12:27:51 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id KAA10878;
	Wed, 17 Sep 2003 10:27:49 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 77B1C4F836F; Wed, 17 Sep 2003 10:20:22 -0600 (MDT)
To: graydon hoare <graydon@redhat.com>
References: <8765jswg1b.fsf@dub.venge.net> <873cevv1y6.fsf@fleche.redhat.com>
	<873cevtmb4.fsf@dub.venge.net>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: This is PLEASANT!
Date: 17 Sep 2003 10:20:22 -0600
In-Reply-To: <873cevtmb4.fsf@dub.venge.net>
Message-ID: <873cevtmih.fsf@fleche.redhat.com>
Lines: 15
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, java-patches@gcc.gnu.org
Subject: Re: [patch] fix to BufferedImage
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 16:34:53 -0000

>>>>> "graydon" == graydon hoare <graydon@redhat.com> writes:

graydon> the assignment however cannot coincide with the declaration, because
graydon> this is one of those "efficiency oriented" java APIs (pass in null if
graydon> you want the callee to allocate the array), and writing a literal
graydon> "null" in position of the "samples" argument degrades the type of the
graydon> argument to Object, which ambiguates the call: there's an overload for
graydon> each of int[], double[] and float[].

Sorry, I didn't read carefully enough.  In that case you'll need
either `(int[]) null' or you'll have to keep the initialization (only
fields are initialized...).  Our style, as far as I know, says nothing
about this situation, so it's up to you.

Tom



From MAILER-DAEMON Wed Sep 17 12:40:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zfLz-0002hX-Lm
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 12:40:31 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zfLx-0002gz-BQ
	for classpath@gnu.org; Wed, 17 Sep 2003 12:40:29 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zfLv-0002gf-S3
	for classpath@gnu.org; Wed, 17 Sep 2003 12:40:28 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19zfJa-00025T-Mz
	for classpath@gnu.org; Wed, 17 Sep 2003 12:38:02 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19zf6g-0006v0-Pi
	for classpath@gnu.org; Wed, 17 Sep 2003 12:24:42 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id KAA09994;
	Wed, 17 Sep 2003 10:24:30 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 4E91E4F836F; Wed, 17 Sep 2003 10:17:04 -0600 (MDT)
To: Sascha Brawer <brawer@dandelis.ch>
References: <3F610B8A.4070002@byu.net>
	<20030912003722.18608@smtp.mail.ch.easynet.net>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I feel like I'm in a Toilet Bowl with a thumbtack in my forehead!!
Date: 17 Sep 2003 10:17:03 -0600
In-Reply-To: <20030912003722.18608@smtp.mail.ch.easynet.net>
Message-ID: <87brtjtmo0.fsf@fleche.redhat.com>
Lines: 12
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: GNU Classpath <classpath@gnu.org>
Subject: Re: Declaring RuntimeExceptions?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 16:40:29 -0000

>>>>> "Sascha" == Sascha Brawer <brawer@dandelis.ch> writes:

Sascha> So, should a java compiler accept the following?
Sascha> [ ... ]

Sascha> javac 1.4.1 compiles this code, but gcj 3.2 complains about the throws
Sascha> clause (of *Foo*.meth, which is a bit misleading).

BTW, this bug is gone in current cvs.  It might also be fixed in 3.3,
but I didn't try it to see.

Tom



From MAILER-DAEMON Wed Sep 17 13:31:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zg90-0001RU-Ge
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 13:31:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zdMI-0005fv-Ly
	for classpath@gnu.org; Wed, 17 Sep 2003 10:32:42 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zdLH-0005YE-0a
	for classpath@gnu.org; Wed, 17 Sep 2003 10:31:40 -0400
Received: from [146.87.255.104] (helo=pan.salford.ac.uk)
	by monty-python.gnu.org with smtp (Exim 4.22) id 19zcmx-0006NB-DY
	for classpath@gnu.org; Wed, 17 Sep 2003 09:56:11 -0400
Received: (qmail 60149 invoked by uid 85); 17 Sep 2003 13:54:46 -0000
Received: from ricky_clarkson@yahoo.com by pan.salford.ac.uk by uid 401 with
	qmail-scanner-1.16 
	(uvscan: v4.2.40/v4292. spamassassin: 2.55.  Clear:. 
	Processed in 0.619771 secs); 17 Sep 2003 13:54:46 -0000
X-Qmail-Scanner-Mail-From: ricky_clarkson@yahoo.com via pan.salford.ac.uk
X-Qmail-Scanner: 1.16 (Clear:. Processed in 0.619771 secs)
Received: (ofmipd 146.87.133.141); 17 Sep 2003 13:54:45 -0000
Received: from ricky by debian with local (Exim 3.36 #1 (Debian))
	id 19zL2q-0000XN-00; Tue, 16 Sep 2003 19:59:24 +0100
Date: 16 Sep 2003 19:59:24 +0100
Message-ID: <20030916185924.GA2059@yahoo.com>
From: "Ricky Clarkson" <ricky_clarkson@yahoo.com>
To: arenn@urbanophile.com, ebb9@email.byu.edu
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="UugvWAfsgieZRqgk"
Content-Disposition: inline
User-Agent: Mutt/1.5.4i
X-Mailman-Approved-At: Wed, 17 Sep 2003 13:31:06 -0400
Cc: classpath@gnu.org
Subject: Classpath java.awt.AWTEventMulticaster minor documentation patch.
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 14:32:43 -0000


--UugvWAfsgieZRqgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

As you've probably guessed by now from previous emails, I'm bored,
there's nothing on TV, so I'm browsing some Classpath source.  Once I
can get it to configure and make properly I'll probably concentrate more
on contributing source and fixing bugs than docs, but at least I know
(hope) the docs will compile ok :)

Please find attached the following files:
	diff: output of diff <original AWTEventMulticaster.java> <my
	AWTEventMulticaster.java>
	
	diff_minus_u: output of diff -u <original
	AWTEventMulticaster.java> <my AWTEventMulticaster.java>

Regards,

Ricky.

--UugvWAfsgieZRqgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff

82c82
<  * assume are firing <code>AdjustmentEvent</code>'s.  However, this
---
>  * assume you are firing <code>AdjustmentEvent</code>s.  However, this
98c98
<  * <p>When it come time to process an event, simply call <code>al</code>,
---
>  * <p>When it comes time to process an event, simply call <code>al</code>,
163c163
<     // If a and/or b are Multicaster's, search them recursively.
---
>     // If a and/or b are Multicasters, search them recursively.
650c650
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
662c662
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
674c674
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
686c686
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
698c698
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
710c710
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
723c723
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
735c735
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
749c749
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
763c763
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
775c775
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
787c787
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
800c800
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
812c812
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
826c826
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
839c839
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
853c853
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain
1087c1087
<    * @return latest entry in the chain
---
>    * @return the latest entry in the chain

--UugvWAfsgieZRqgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff_minus_u

--- classpath/java/awt/AWTEventMulticaster.java	2002-03-31 03:05:37.000000000 +0100
+++ AWTEventMulticaster.java	2003-09-16 19:53:33.000000000 +0100
@@ -79,7 +79,7 @@
  * This class is used to implement a chain of event handlers.  Dispatching
  * using this class is thread safe.  Here is a quick example of how to
  * add and delete listeners using this class.  For this example, we will
- * assume are firing <code>AdjustmentEvent</code>'s.  However, this
+ * assume you are firing <code>AdjustmentEvent</code>s.  However, this
  * same approach is useful for all events in the <code>java.awt.event</code>
  * package, and more if this class is subclassed.
  *
@@ -95,7 +95,7 @@
  * }
  * </code>
  *
- * <p>When it come time to process an event, simply call <code>al</code>,
+ * <p>When it comes time to process an event, simply call <code>al</code>,
  * assuming it is not <code>null</code>, and all listeners in the chain will
  * be fired.
  *
@@ -160,7 +160,7 @@
       return b;
     if (b == oldl)
       return a;
-    // If a and/or b are Multicaster's, search them recursively.
+    // If a and/or b are Multicasters, search them recursively.
     if (a instanceof AWTEventMulticaster)
       {
         EventListener newa = ((AWTEventMulticaster) a).remove(oldl);
@@ -647,7 +647,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   public static ComponentListener add(ComponentListener a, ComponentListener b)
   {
@@ -659,7 +659,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   public static ContainerListener add(ContainerListener a, ContainerListener b)
   {
@@ -671,7 +671,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   public static FocusListener add(FocusListener a, FocusListener b)
   {
@@ -683,7 +683,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   public static KeyListener add(KeyListener a, KeyListener b)
   {
@@ -695,7 +695,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   public static MouseListener add(MouseListener a, MouseListener b)
   {
@@ -707,7 +707,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   public static MouseMotionListener add(MouseMotionListener a,
                                         MouseMotionListener b)
@@ -720,7 +720,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null 
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   public static WindowListener add(WindowListener a, WindowListener b)
   {
@@ -732,7 +732,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null 
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    * @since 1.4
    */
   public static WindowStateListener add(WindowStateListener a,
@@ -746,7 +746,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null 
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    * @since 1.4
    */
   public static WindowFocusListener add(WindowFocusListener a,
@@ -760,7 +760,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   public static ActionListener add(ActionListener a, ActionListener b)
   {
@@ -772,7 +772,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   public static ItemListener add(ItemListener a, ItemListener b)
   {
@@ -784,7 +784,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   public static AdjustmentListener add(AdjustmentListener a,
                                        AdjustmentListener b)
@@ -797,7 +797,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   public static TextListener add(TextListener a, TextListener b)
   {
@@ -809,7 +809,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    * @since 1.2
    */
   public static InputMethodListener add(InputMethodListener a,
@@ -823,7 +823,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    * @since 1.3
    */
   public static HierarchyListener add(HierarchyListener a, HierarchyListener b)
@@ -836,7 +836,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    * @since 1.3
    */
   public static HierarchyBoundsListener add(HierarchyBoundsListener a,
@@ -850,7 +850,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    * @since 1.4
    */
   public static MouseWheelListener add(MouseWheelListener a,
@@ -1084,7 +1084,7 @@
    *
    * @param a the "a" listener, may be null
    * @param b the "b" listener, may be null 
-   * @return latest entry in the chain
+   * @return the latest entry in the chain
    */
   protected static EventListener addInternal(EventListener a, EventListener b)
   {

--UugvWAfsgieZRqgk--



From MAILER-DAEMON Wed Sep 17 13:31:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zg90-0001Rn-U5
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 13:31:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zfeN-00032v-0B
	for classpath@gnu.org; Wed, 17 Sep 2003 12:59:31 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zfeH-00031n-7H
	for classpath@gnu.org; Wed, 17 Sep 2003 12:59:25 -0400
Received: from [213.90.36.45] (helo=octopussy.utanet.at)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19zfeG-00030p-MB
	for classpath@gnu.org; Wed, 17 Sep 2003 12:59:24 -0400
Received: from plenty.utanet.at ([213.90.36.9])
	by octopussy.utanet.at with esmtp (Exim 4.12) id 19zfeD-0005WD-00
	for classpath@gnu.org; Wed, 17 Sep 2003 18:59:21 +0200
Received: from linzu3-219-205.utaonline.at ([212.152.219.205] helo=web.de)
	by plenty.utanet.at with esmtp (Exim 4.12) id 19zfeC-0003ll-00
	for classpath@gnu.org; Wed, 17 Sep 2003 18:59:21 +0200
Message-ID: <3F689268.4050107@web.de>
Date: Wed, 17 Sep 2003 18:57:12 +0200
From: Clemens Eisserer <linuxhippy@web.de>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: classpath@gnu.org
References: <3F637642.9000000@web.de> <877k47tmlm.fsf@fleche.redhat.com>
In-Reply-To: <877k47tmlm.fsf@fleche.redhat.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Wed, 17 Sep 2003 13:31:07 -0400
Subject: Re: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 16:59:32 -0000

Hi!

>Eclipse 3.0 includes an HTML renderer, doesn't it?  I don't remember
>if this component is in SWT or some other plugin.
>
Eclipse3 only uses a embedded Mozilla, which isnt really cool for only 
viewing help files and so on...

lg Clemens





From MAILER-DAEMON Wed Sep 17 19:39:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zltJ-00032p-Ds
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 19:39:21 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zltF-00031u-CH
	for classpath@gnu.org; Wed, 17 Sep 2003 19:39:17 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zlpU-00026n-Ml
	for classpath@gnu.org; Wed, 17 Sep 2003 19:35:55 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zlpQ-00026P-MI
	for classpath@gnu.org; Wed, 17 Sep 2003 19:35:20 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.9/8.12.9) with ESMTP id h8HNYsKf000455;
	Thu, 18 Sep 2003 09:34:54 +1000 (EST)
Message-Id: <200309172334.h8HNYsKf000455@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: graydon hoare <graydon@redhat.com>
In-Reply-To: Message from graydon hoare <graydon@redhat.com> 
	of "17 Sep 2003 12:24:47 -0400." <873cevtmb4.fsf@dub.venge.net> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 18 Sep 2003 09:35:12 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: crawley@piglet.dstc.edu.au, classpath@gnu.org, java-patches@gcc.gnu.org
Subject: Re: [patch] fix to BufferedImage 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Sep 2003 23:39:18 -0000


graydon@redhat.com said:
> the assignment however cannot coincide with the declaration, because
> this is one of those "efficiency oriented" java APIs (pass in null if
> you want the callee to allocate the array), and writing a literal
> "null" in position of the "samples" argument degrades the type of the
> argument to Object, which ambiguates 

Here's how you write the call to ensure that you get the correct 
overloaded method:

  samples = src.getPixels (x, y, w, h, (int[]) null);

-- Steve




From MAILER-DAEMON Wed Sep 17 20:02:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zmG6-0003tn-UI
	for mharc-classpath@gnu.org; Wed, 17 Sep 2003 20:02:54 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zmG4-0003sY-0g
	for classpath@gnu.org; Wed, 17 Sep 2003 20:02:52 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zmDb-0003DQ-Pq
	for classpath@gnu.org; Wed, 17 Sep 2003 20:00:51 -0400
Received: from [204.127.202.64] (helo=sccrmhc13.comcast.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zmDR-0002sJ-3C
	for classpath@gnu.org; Wed, 17 Sep 2003 20:00:09 -0400
Received: from byu.net (12-209-128-39.client.attbi.com[12.209.128.39])
	by comcast.net (sccrmhc13) with SMTP id <2003091800000701600m6gcme>
	(Authid: ericblake); Thu, 18 Sep 2003 00:00:07 +0000
Message-ID: <3F68F59C.7000608@byu.net>
Date: Wed, 17 Sep 2003 18:00:28 -0600
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Ricky Clarkson <ricky_clarkson@yahoo.com>
References: <20030916175659.GA952@yahoo.com>
In-Reply-To: <20030916175659.GA952@yahoo.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: Classpath list <classpath@gnu.org>, arenn@urbanophile.com
Subject: Re: Classpath java/applet/Applet.java minor documentation patch
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 00:02:52 -0000

Hmm - our HACKING file ought to be updated to show the preferred patch 
submission method.  At any rate, Classpath and gcj are closely tied together, 
so the best patch submissions just follow the instructions found on 
http://gcc.gnu.org/contribute.html (with any modifications appropriate for the 
Classpath directory):

  "If you are accessing the CVS repository at gcc.gnu.org, use "cvs update; 
cvs diff -c3p"; else, use "diff -c3p OLD NEW" or "diff -up OLD NEW". If your 
version of diff does not support these options, then get the latest version of 
GNU diff. Patches against current development (mainline CVS) are preferred to 
patches against releases, unless your patch is intended as a candidate for the 
release branch."

At any rate, doc patches are appreciated, and you may want to consider sending 
a group of them (instead of one email per file changed) since they are all 
related.  Also, don't forget Changelog entries.  Welcome to Classpath hacking!

Ricky Clarkson wrote:

> Hi,
> 
> I was idly browsing the Applet.java code and found a slight discrepancy.
> 
> Please find attached the file 'diff', which is the result of diff
> <original Applet.java> <my Applet.java>, and the file 'diff_minus_u',
> which is the result of diff -u <original Applet.java> <my Applet.java>
> and please let me know whether you prefer diff or diff -u for patches.
> 
> Regards,
> 
> Ricky.
> 
> 
> ------------------------------------------------------------------------
> 
> 127c127
> <    * @return the URL of the document this applet is embedded in
> ---
> 
>>   * @return the basename URL of the document this applet is embedded in
>>
>>
>>------------------------------------------------------------------------
>>
>>--- classpath/java/applet/Applet.java	2002-05-06 03:43:17.000000000 +0100
>>+++ Applet.java	2003-09-16 18:53:18.000000000 +0100
>>@@ -124,7 +124,7 @@
>>    * Returns the basename URL of the document this applet is embedded in. This
>>    * is everything up to the final '/'.
>>    *
>>-   * @return the URL of the document this applet is embedded in
>>+   * @return the basename URL of the document this applet is embedded in
>>    * @see #getCodeBase()
>>    */
>>   public URL getDocumentBase()

-- 
Someday, I might put a cute statement here.

Eric Blake             ebb9@byu.net




From MAILER-DAEMON Thu Sep 18 03:12:53 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zsyC-000325-O2
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 03:12:52 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zst7-000860-A5
	for classpath@gnu.org; Thu, 18 Sep 2003 03:07:37 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zst5-00085e-T2
	for classpath@gnu.org; Thu, 18 Sep 2003 03:07:36 -0400
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zst5-00085a-H6
	for classpath@gnu.org; Thu, 18 Sep 2003 03:07:35 -0400
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 19zssl-0003Jo-00; Thu, 18 Sep 2003 09:07:15 +0200
From: Mark Wielaard <mark@klomp.org>
To: GNU Classpath <classpath@gnu.org>, Kaffe OpenVM <kaffe@kaffe.org>,
	GNU Compiler for Java <java@gcc.gnu.org>
In-Reply-To: <20030812143434.16670@smtp.mail.ch.easynet.net>
References: <20030812143434.16670@smtp.mail.ch.easynet.net>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-4wJE5HGfO97r54UcvL4s"
Message-Id: <1063868849.5116.282.camel@elsschot>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4 
Date: Thu, 18 Sep 2003 09:07:29 +0200
X-Mailman-Approved-At: Thu, 18 Sep 2003 03:12:49 -0400
Cc: Martin Schulte <schulte@guug.de>, Keith Packard <keithp@keithp.com>,
	Adam Megacz <adam@megacz.com>,
	Jean-Daniel Fekete <Jean-Daniel.Fekete@inria.fr>,
	Sascha Brawer <brawer@dandelis.ch>, graydon hoare <graydon@redhat.com>,
	Jeroen Frijters <jeroen@sumatra.nl>, Tim Tyler <tim@bits.bris.ac.uk>
Subject: Workshop/BoF: Graphics in GNU Classpath
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 07:07:38 -0000


--=-4wJE5HGfO97r54UcvL4s
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi all,

As you might already know Sascha Brawer convinced the nice people of
Linux Kongress 2003 to let us have a GNU Classpath developers workshop
about graphics support. It will take place on Tuesday Oct 14th in
Saarbr=FCcken, Germany. And attending the workshop will be free. Much
thanks go to the Linux Kongress organizers! (*).

We now have two speakers. Jean-Daniel Fekete will give a talk about the
Agile2D OpenGL Renderer. And Mark Wielaard will talk about the GNU
Classpath VM interface issues. There is room for more presentations so
if you would like to give a presentation during the workshop or have
ideas for topics to discuss, please contact Sascha Brawer
(brawer@dandelis.ch).

More details (and some papers to discuss) can be found at:
http://www.linux-kongress.org/2003/bofs/index.html#classpath

Hope to see some of you there.

Cheers,

Mark

(*) The official 10th International Linux System Technology Conference
program costs money but the program is really nice. There will be onde
day of tutorials, two days of talks, a keysigning party, a social event
and a keynote by Red Hat's CTO Michael Tiemann. So you are encouraged to
participate. See: http://www.linux-kongress.org/2003/

--=-4wJE5HGfO97r54UcvL4s
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/aVmxxVhZCJWr9QwRAnX7AJ942iZKl/uv+BF7p9whjRdOSYqh+ACfQYB1
pZPjVgCJpTsUwckHdtBdRtQ=
=PRoW
-----END PGP SIGNATURE-----

--=-4wJE5HGfO97r54UcvL4s--




From MAILER-DAEMON Thu Sep 18 04:40:29 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zuKf-0003Sk-Gy
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 04:40:09 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zuKU-0003Ez-G4
	for classpath@gnu.org; Thu, 18 Sep 2003 04:39:58 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zuKO-0003Ci-34
	for classpath@gnu.org; Thu, 18 Sep 2003 04:39:53 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zuKL-0003BX-Ob
	for classpath@gnu.org; Thu, 18 Sep 2003 04:39:50 -0400
Received: from [192.168.1.33] (unknown [217.8.220.243])
	by smtp2.mail.ch.easynet.net (Postfix) with ESMTP
	id E688F645BB; Thu, 18 Sep 2003 10:39:45 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Thu, 18 Sep 2003 10:39:18 +0200
Message-Id: <20030918083918.6491@smtp.mail.ch.easynet.net>
In-Reply-To: <20030916185924.GA2059@yahoo.com>
References: <20030916185924.GA2059@yahoo.com>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: Ricky Clarkson <ricky_clarkson@yahoo.com>
Subject: Documentation
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 08:40:07 -0000

Ricky Clarkson <ricky_clarkson@yahoo.com> wrote on Tue, 16 Sep
2003 19:59:24 +0100:

>As you've probably guessed by now from previous emails, I'm bored,
>there's nothing on TV, so I'm browsing some Classpath source.  Once I
>can get it to configure and make properly I'll probably concentrate more
>on contributing source and fixing bugs than docs, but at least I know
>(hope) the docs will compile ok :)

It's very nice of you that you are doing this. IMHO, it is really
important to have legible and understandable documentation.

Do people on the list have an opinion about where reviewing/writing
documentation would be especially needed? A few random places might be:

- java.nio.charset.CharsetDecoder/CharsetEncoder
- java.util.logging.FileHandler (search for "FIXME: Javadoc missing");
- javax.swing.JComponent and its subclasses

Personally, I would find it especially helpful to have documentation
about java.awt.peer. However, this would be a bigger task, because one
would have to sift through the Classpath AWT code and find the call
sites. And since these interfaces are only used by AWT and concrete
toolkits, the audience would be rather small. On the other hand, it's a
package where no Sun documentation exists.

In any case, thanks for your contributions!

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Thu Sep 18 04:53:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zuXG-0008SF-7S
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 04:53:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zuXC-0008R5-31
	for classpath@gnu.org; Thu, 18 Sep 2003 04:53:06 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zuX9-0008QL-Q7
	for classpath@gnu.org; Thu, 18 Sep 2003 04:53:04 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19zuX9-0008Pt-F9
	for classpath@gnu.org; Thu, 18 Sep 2003 04:53:03 -0400
Received: from [212.6.122.96] (helo=mail0.ewetel.de)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19zuWw-00066C-0e
	for classpath@gnu.org; Thu, 18 Sep 2003 04:52:50 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-74-113.ewetel.net
	[80.228.74.113])
	by mail0.ewetel.de (8.12.1/8.12.9) with ESMTP id h8I8qejB001296;
	Thu, 18 Sep 2003 10:52:40 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 19zuWm-0001Tf-00; Thu, 18 Sep 2003 10:52:40 +0200
From: Michael Koch <konqueror@gmx.de>
To: graydon@redhat.com
Date: Thu, 18 Sep 2003 10:54:26 +0200
User-Agent: KMail/1.5.2
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Description: clearsigned data
Content-Disposition: inline
Message-Id: <200309181054.27077.konqueror@gmx.de>
X-CheckCompat: OK
Cc: GNU Classpath <classpath@gnu.org>
Subject: classpath CVS not buildable
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 08:53:08 -0000

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

Hi Graydon,


I saw that you commited gnu/java/awt/peer/gtk/GdkGraphics2D.java and=20
other files into classpath. Unortunately this file has references to=20
a class called GdkFont. But I can find no file defining the class=20
GdkFont. Can you please fix this ?


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

iD8DBQE/aXLDWSOgCCdjSDsRAgCwAJ4rsGC7O0D9i8fs0EBIpKA8nxF+0QCdFiNX
BucGOPKxWaQ2msnOoRYbKM4=3D
=3Dw6Jy
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Thu Sep 18 05:05:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zuik-0004eF-Ja
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 05:05:02 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zuig-0004dF-Uc
	for classpath@gnu.org; Thu, 18 Sep 2003 05:04:58 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zuif-0004cf-3y
	for classpath@gnu.org; Thu, 18 Sep 2003 05:04:57 -0400
Received: from [212.6.122.96] (helo=mail0.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zuie-0004cW-LZ
	for classpath@gnu.org; Thu, 18 Sep 2003 05:04:56 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-74-113.ewetel.net
	[80.228.74.113])
	by mail0.ewetel.de (8.12.1/8.12.9) with ESMTP id h8I94ljB007858;
	Thu, 18 Sep 2003 11:04:47 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 19zuiV-0001Nz-00; Thu, 18 Sep 2003 11:04:47 +0200
From: Michael Koch <konqueror@gmx.de>
To: graydon@redhat.com
Date: Thu, 18 Sep 2003 11:06:34 +0200
User-Agent: KMail/1.5.2
References: <200309181054.27077.konqueror@gmx.de>
In-Reply-To: <200309181054.27077.konqueror@gmx.de>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Description: clearsigned data
Content-Disposition: inline
Message-Id: <200309181106.34419.konqueror@gmx.de>
X-CheckCompat: OK
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: classpath CVS not buildable
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 09:05:00 -0000

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

Am Donnerstag, 18. September 2003 10:54 schrieb Michael Koch:
> Hi Graydon,
>
>
> I saw that you commited gnu/java/awt/peer/gtk/GdkGraphics2D.java
> and other files into classpath. Unortunately this file has
> references to a class called GdkFont. But I can find no file
> defining the class GdkFont. Can you please fix this ?

To be more exact I present here the jikes compiler output as there are=20
more errors then the described above:

=46ound 3 semantic errors compiling=20
"/home/mkoch/src/classpath/gnu/java/awt/peer/gtk/GdkGraphics2D.java":

    78.   private GdkFont font;
                  ^-----^
*** Semantic Error: Type gnu.java.awt.peer.gtk.GdkFont was not found.


  1135.     if (f instanceof GdkFont)
                             ^-----^
*** Semantic Error: A candidate for type "GdkFont" was found, but it=20
is invalid and needs to be fixed before this type will successfully=20
comp
ile.


  1138.       font =3D new GdkFont (f.getAttributes ());
                         ^-----^
*** Semantic Error: A candidate for type "GdkFont" was found, but it=20
is invalid and needs to be fixed before this type will successfully=20
comp
ile.

=46ound 2 semantic errors compiling=20
"/home/mkoch/src/classpath/gnu/java/awt/peer/gtk/GdkPixbufDecoder.java":

    50. public class GdkPixbufDecoder extends=20
gnu.java.awt.image.ImageDecoder
                     ^--------------^
*** Semantic Error: The abstract method "void produce(java.util.Vector=20
v, java.io.FileInputStream is) throws java.io.IOException;",=20
belonging
 to the superclass "gnu.java.awt.image.ImageDecoder", has default=20
access, so it is not inherited and cannot be implemented in this=20
package. T
herefore, class "gnu.java.awt.peer.gtk.GdkPixbufDecoder" must be=20
abstract.


   211.     BufferedImageBuilder bb =3D new BufferedImageBuilder ();
                                      ^-^
*** Semantic Error: An instance of=20
"gnu.java.awt.peer.gtk.GdkPixbufDecoder.this" is not accessible here.=20
In general, an enclosing instance is
 accessible only in the body of an instance method, constructor (after=20
the explicit constructor invocation, if any), initializer block, or=20
in
 the initializer expression of an instance variable.


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

iD8DBQE/aXWaWSOgCCdjSDsRAsV1AJ4jp5qm1BRlpmg+tNoR/jxiwNMlggCfQ4HK
AyDlzC9ghXtg9A8KWTZkFZs=3D
=3D91at
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Thu Sep 18 05:44:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zvKq-0004qs-KW
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 05:44:24 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zv6d-00062W-PD
	for classpath@gnu.org; Thu, 18 Sep 2003 05:29:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zv6a-00061d-K1
	for classpath@gnu.org; Thu, 18 Sep 2003 05:29:41 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 19zv6Y-00060h-US
	for classpath@gnu.org; Thu, 18 Sep 2003 05:29:38 -0400
Received: from [212.101.4.135] (helo=mail01.solnet.ch)
	by mx20.gnu.org with esmtp (Exim 4.22) id 19zuxq-0007dP-2B
	for classpath@gnu.org; Thu, 18 Sep 2003 05:20:38 -0400
Received: from localhost (localhost [127.0.0.1])
	by mail01.solnet.ch (Postfix) with ESMTP
	id BA6B26215D; Thu, 18 Sep 2003 09:20:34 +0000 (GMT)
Received: from localhost ([127.0.0.1])
	by localhost (mail01.solnet.ch [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 69052-02; Thu, 18 Sep 2003 09:20:33 +0000 (GMT)
Received: from reali.dnsalias.net (adsl-212-41-64-213.solnet.ch
	[212.41.64.213]) by mail01.solnet.ch (Postfix) with ESMTP
	id C1FDF620D6; Thu, 18 Sep 2003 09:20:30 +0000 (GMT)
Received: from pcprr (unknown [193.72.144.232])
	by reali.dnsalias.net (Postfix) with SMTP
	id 1592D3E805; Thu, 18 Sep 2003 11:12:47 +0200 (CEST)
Message-ID: <002c01c37dc6$158fd450$360a280a@elca.ch>
From: "Patrik Reali" <reali@acm.org>
To: "Mark Wielaard" <mark@klomp.org>,
	"GNU Classpath" <classpath@gnu.org>
References: <20030812143434.16670@smtp.mail.ch.easynet.net>
	<1063868849.5116.282.camel@elsschot>
Date: Thu, 18 Sep 2003 11:20:19 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Virus-Scanned: by SolNet
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Thu, 18 Sep 2003 05:44:22 -0400
Cc: Martin Schulte <schulte@guug.de>, Keith Packard <keithp@keithp.com>,
	Adam Megacz <adam@megacz.com>,
	Jean-Daniel Fekete <Jean-Daniel.Fekete@inria.fr>,
	Sascha Brawer <brawer@dandelis.ch>, graydon hoare <graydon@redhat.com>,
	Jeroen Frijters <jeroen@sumatra.nl>, Tim Tyler <tim@bits.bris.ac.uk>
Subject: Re: Workshop/BoF: Graphics in GNU Classpath
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Patrik Reali <reali@acm.org>
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 09:29:50 -0000

I will be in Saarbr=FCcken.

-Patrik
--------------------------
Patrik Reali
http://www.reali.ch/~patrik/
http://www.oberon.ethz.ch/jaos/
http://iiop-net.sourceforge.net/




From MAILER-DAEMON Thu Sep 18 09:44:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 19zz5V-0006su-UG
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 09:44:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 19zz5U-0006sY-0O
	for classpath@gnu.org; Thu, 18 Sep 2003 09:44:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zz5S-0006sE-5H
	for classpath@gnu.org; Thu, 18 Sep 2003 09:44:46 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 19zz2t-0006I7-Sp
	for classpath@gnu.org; Thu, 18 Sep 2003 09:42:08 -0400
Received: from [192.168.1.33] (unknown [217.8.220.243])
	by smtp2.mail.ch.easynet.net (Postfix) with ESMTP
	id D7C37645FB; Thu, 18 Sep 2003 15:41:58 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>,
	graydon hoare <graydon@redhat.com>
Date: Thu, 18 Sep 2003 15:41:28 +0200
Message-Id: <20030918134128.23500@smtp.mail.ch.easynet.net>
In-Reply-To: <87r82fton1.fsf@dub.venge.net>
References: <87r82fton1.fsf@dub.venge.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: 
Subject: Re: extended peers
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 13:44:48 -0000

Hi Graydon,

GH = graydon hoare <graydon@redhat.com> wrote:
SB = Sascha Brawer <brawer@dandelis.ch> wrote:

GH> [should Classpath have extended peers for java.awt.Font?]
SB> [proposal for ClasspathToolkit/ClasspathFontPeer]

GH> the font-related factory method on the toolkit should produce a
GH> ClasspathFontPeer, not a java.awt.Font.

SB> If the toolkit produces ClasspathFontPeers instead of java.awt.Fonts, the
SB> implementations of java.awt.Font.createFont and deriveFont somehow need
SB> to know whether the constructed Font should implement the
SB> java.awt.font.[OpenType, MultipleMaster] interfaces. 

GH> (1) Font constructors [...]
GH> (2) [static] Font.createFont, Font.decode, Font.getFont [...]
GH> (3) Font.deriveFont [...]
GH>
GH> my inclination is to call peer-returning factory methods on the
GH> Toolkit in case (1), call Font-returning factory methods on the
GH> Toolkit in case (2), and to call a method *on the peer* in case (3).

Case (1): Agreed.

Case (2): So, you're retracting the statement that font-related factory
methods should produce a ClasspathFontPeer instead of a java.awt.Font? I
think either way is fine. Presumably, producing Font might lead to a
cleaner code structure, while producing ClasspathFontPeer to less
duplication of code between toolkits. At the current stage, I'd prefer
simplicity (i.e., producing Fonts).

Case (3): I wonder whether this wouldn't make the peer interface
unnecessarily complicated. Since the static getFont(Map) method needs to
be supported anyway, I believe the following implementation for
deriveFont should do it. Or am I missing a reason why any toolkit would
want to override this?

package java.awt;
public class Font
{
  public static Font getFont(Map attrs)
  {
    // this assumes that ClasspathToolkit returns Font, see (2) above
    return ((ClasspathToolkit) Toolkit.getDefaultToolkit())
      .getFont(attrs);
  }

  public Font deriveFont(float size)
  {
    Map attrs = getAttributes(); // returns a clone
    attrs.put(TextAttribute.SIZE, new Float(size));
    return getFont(attrs);
  }

  // more deriveFont methods, all done in a similar way
}



SB> I thought it would not hurt to allow that a single font peer is shared
SB> between scaled/transformed fonts.  On the other hand, if you think that
SB> passing the Font to the peer's methods is bad, I wouldn't have a problem
SB> to omit that argument.

GH> the benefit of this approach is that it places all the decisions about
GH> a font's behavior purely in the realm of the specific Toolkit and Peer
GH> subclasses, along with any choices you make about state representation. 
GH> the Font has no policy of its own; you store all state in the peer,
GH> where all policy is. imo it improves flexibility quite a bit.

>>> [some code snippets]

GH> well, how are you going to implement peer.getItalicAngle(), if the
GH> italic angle state is stored in the Font rather than the peer? 

Ah, I didn't mean to suggest storing anything besides point size,
transform, attribute map and peer in the font. For example, the italic
angle for the unscaled/untransformed font would be retrieved via some
platform-specific font ID. That ID would be stored inside the peer, not
inside the font.

  // On the Foo platform, one FooFontPeer is shared among all
  // scaled/transformed variants of the same font. Other
  // platforms are free to do it in a different way.
  class FooFontPeer
    extends ClasspathFontPeer
  {
    protected long platID;

    private static native getUntransformedItalicAngle(long platID);

    public float getItalicAngle(Font font)
    {
      float angle = getUntransformedItalicAngle(platID);

      if (font.isTransformed())
      {
        // Retrieve a clone of the font's transform.
        AffineTransform tx = font.getTransform();
        angle = someFunction(tx, angle);
      }

      return angle;
    }
  }

As I said before, I wouldn't consider this to be very important. I think
it could be a nice optimization that might possibly be applicable in some
cases. Everywhere else, the "font" argument would be ignored. But if you
don't see the point, let's leave it away.

Best regards,

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Thu Sep 18 10:57:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A00DZ-0007xa-UM
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 10:57:13 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A00DU-0007wB-PA
	for classpath@gnu.org; Thu, 18 Sep 2003 10:57:08 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A00DR-0007vG-GV
	for classpath@gnu.org; Thu, 18 Sep 2003 10:57:06 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A00DQ-0007v2-D6
	for classpath@gnu.org; Thu, 18 Sep 2003 10:57:04 -0400
Received: from [192.168.1.33] (unknown [217.8.220.243])
	by smtp2.mail.ch.easynet.net (Postfix) with ESMTP
	id 6BA18645B2; Thu, 18 Sep 2003 16:56:59 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: graydon hoare <graydon@redhat.com>
Date: Thu, 18 Sep 2003 16:56:27 +0200
Message-Id: <20030918145627.28558@smtp.mail.ch.easynet.net>
In-Reply-To: <87isoa3ehc.fsf@dub.venge.net>
References: <87isoa3ehc.fsf@dub.venge.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: request for comment on java2d stuff
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 14:57:12 -0000

graydon hoare <graydon@redhat.com> wrote on Tue, 2 Sep 2003 20:25:19 -0400:

>http://gcc.gnu.org/ml/java-patches/2003-q3/msg00493.html

Another quick comment: Shouldn't setColor also store the passed color
into the paint field? From the Sun JavaDoc:

> The Graphics class defines only the setColor  method to control the
> color to be painted. Since the Java 2D API extends the Color object to
> implement the new Paint interface, the existing setColor method is now a
> convenience method for setting the current Paint attribute to a Color
> object. setColor(c) is equivalent to setPaint(c).

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Thu Sep 18 12:39:37 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A01oc-0004Gq-Ll
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 12:39:34 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A01k8-0003WP-5n
	for classpath@gnu.org; Thu, 18 Sep 2003 12:34:56 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A01gH-0002YV-Ue
	for classpath@gnu.org; Thu, 18 Sep 2003 12:30:58 -0400
Received: from [217.8.192.20] (helo=smtp1.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A01Zh-0001Ke-Rt
	for classpath@gnu.org; Thu, 18 Sep 2003 12:24:10 -0400
Received: from [192.168.1.33] (220.243.dyn-adsl.customer.ch.easynet.net
	[217.8.220.243]) by smtp1.mail.ch.easynet.net (Postfix) with ESMTP
	id 6151E49FC6; Thu, 18 Sep 2003 18:24:07 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: graydon hoare <graydon@redhat.com>
Date: Thu, 18 Sep 2003 18:23:37 +0200
Message-Id: <20030918162337.510@smtp.mail.ch.easynet.net>
In-Reply-To: <20030918145627.28558@smtp.mail.ch.easynet.net>
References: <20030918145627.28558@smtp.mail.ch.easynet.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: request for comment on java2d stuff
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 16:39:32 -0000

graydon hoare <graydon@redhat.com> wrote on Tue, 2 Sep 2003 20:25:19 -0400:

>http://gcc.gnu.org/ml/java-patches/2003-q3/msg00493.html

Yet another comment: With a little test program, I've noticed that Sun's
J2SE 1.4.1_01 (GNU/Linux, x86) sets the composite to
AlphaComposite.SrcOver when setPaintMode() is called, at least with the
Graphics2D implementation that is passed to JComponent.paint().

   public void setPaintMode () 
   { 
-    setComposite (java.awt.AlphaComposite.Xor); 
+    setComposite(java.awt.AlphaComposite.SrcOver); 
   }


Sorry for the mail flood. This will be the last message for a while.

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Thu Sep 18 13:17:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A02Mn-0003v6-Io
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 13:14:53 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A02Mc-0003rE-KQ
	for classpath@gnu.org; Thu, 18 Sep 2003 13:14:42 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A02M1-0003bo-FG
	for classpath@gnu.org; Thu, 18 Sep 2003 13:14:07 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A02Lz-0003Yy-Ar
	for classpath@gnu.org; Thu, 18 Sep 2003 13:14:03 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id LAA28178;
	Thu, 18 Sep 2003 11:13:51 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 3F4304F8325; Thu, 18 Sep 2003 11:06:20 -0600 (MDT)
To: Sascha Brawer <brawer@dandelis.ch>
References: <E19xUTq-00048v-Cy@subversions.gnu.org>
	<20030911212635.8803@smtp.mail.ch.easynet.net>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I've read SEVEN MILLION books!!
Date: 18 Sep 2003 11:06:20 -0600
In-Reply-To: <20030911212635.8803@smtp.mail.ch.easynet.net>
Message-ID: <87isnqni0j.fsf@fleche.redhat.com>
Lines: 20
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 Discussion Mailing List <classpath@gnu.org>
Subject: Re: [patch #1909] [awt] Check permission for system event queue
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 17:14:51 -0000

>>>>> "Sascha" == Sascha Brawer <brawer@dandelis.ch> writes:

Sascha> How did you apply this patch?

Bogusly, it appears :-/.

I use the appended script to grab patches from web pages.  This messed
up the html in the comments, I'm afraid.  Sorry about that.

Tom


#! /bin/sh

# Usage: wpatch URL
# Download URL and prep for patching.

url=$1

wget -O- $url | recode HTML..UTF-8 | fixpatch | clcleanup



From MAILER-DAEMON Thu Sep 18 19:54:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A08bp-0002In-Ol
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 19:54:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A08bn-0002IT-KN
	for classpath@gnu.org; Thu, 18 Sep 2003 19:54:47 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A08bj-0002Eh-R0
	for classpath@gnu.org; Thu, 18 Sep 2003 19:54:44 -0400
Received: from [66.187.233.200] (helo=lacrosse.corp.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A08bi-0002Av-4F
	for classpath@gnu.org; Thu, 18 Sep 2003 19:54:42 -0400
Received: from dub.venge.net (sebastian-int.corp.redhat.com [172.16.52.221])
	by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id h8INsOk07494; 
	Thu, 18 Sep 2003 19:54:25 -0400
Sender: graydon@dub.venge.net
To: Stephen Crawley <crawley@dstc.edu.au>
References: <200309172334.h8HNYsKf000455@piglet.dstc.edu.au>
From: graydon hoare <graydon@redhat.com>
Date: 18 Sep 2003 19:54:49 -0400
In-Reply-To: <200309172334.h8HNYsKf000455@piglet.dstc.edu.au>
Message-ID: <87ad913b5i.fsf@dub.venge.net>
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: crawley@piglet.dstc.edu.au, classpath@gnu.org, java-patches@gcc.gnu.org
Subject: Re: [patch] fix to BufferedImage
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 23:54:48 -0000

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

> Here's how you write the call to ensure that you get the correct 
> overloaded method:
> 
>   samples = src.getPixels (x, y, w, h, (int[]) null);

this is the version I committed. thanks.

-graydon




From MAILER-DAEMON Thu Sep 18 19:59:17 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A08g8-0003I2-6H
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 19:59:16 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A08g4-0003H2-US
	for classpath@gnu.org; Thu, 18 Sep 2003 19:59:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A08g3-0003Gn-CI
	for classpath@gnu.org; Thu, 18 Sep 2003 19:59:11 -0400
Received: from [66.187.233.200] (helo=lacrosse.corp.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A08g2-0003G1-Rz
	for classpath@gnu.org; Thu, 18 Sep 2003 19:59:10 -0400
Received: from dub.venge.net (sebastian-int.corp.redhat.com [172.16.52.221])
	by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id h8INx8k08035; 
	Thu, 18 Sep 2003 19:59:09 -0400
Sender: graydon@dub.venge.net
To: Sascha Brawer <brawer@dandelis.ch>
References: <87isoa3ehc.fsf@dub.venge.net>
	<20030918145627.28558@smtp.mail.ch.easynet.net>
From: graydon hoare <graydon@redhat.com>
Date: 18 Sep 2003 19:59:33 -0400
In-Reply-To: <20030918145627.28558@smtp.mail.ch.easynet.net>
Message-ID: <8765jp3axm.fsf@dub.venge.net>
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>
Subject: Re: request for comment on java2d stuff
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Sep 2003 23:59:14 -0000

Sascha Brawer <brawer@dandelis.ch> writes:

> Another quick comment: Shouldn't setColor also store the passed
> color into the paint field? From the Sun JavaDoc:

yup, and also:

>    public void setPaintMode () 
>    { 
> -    setComposite (java.awt.AlphaComposite.Xor); 
> +    setComposite(java.awt.AlphaComposite.SrcOver); 
>    }

yup. thanks for the sharp eyes, I guess I was thinking of the Xor
composite operator when I wrote that.

-graydon




From MAILER-DAEMON Thu Sep 18 20:23:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A0939-0006Ej-C0
	for mharc-classpath@gnu.org; Thu, 18 Sep 2003 20:23:03 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A0931-0006EM-S8
	for classpath@gnu.org; Thu, 18 Sep 2003 20:22:55 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A092y-0006Du-Bc
	for classpath@gnu.org; Thu, 18 Sep 2003 20:22:54 -0400
Received: from [80.91.224.249] (helo=main.gmane.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A092x-0006Dn-Vb
	for classpath@gnu.org; Thu, 18 Sep 2003 20:22:52 -0400
Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian))
	id 1A092d-0007ER-00
	for <classpath@gnu.org>; Fri, 19 Sep 2003 02:22:31 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: classpath@gnu.org
Received: from sea.gmane.org ([80.91.224.252])
	by main.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 1A092c-0007EJ-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Fri, 19 Sep 2003 02:22:30 +0200
Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian))
	id 1A092u-0006fb-00
	for <gmane-comp-java-classpath-devel@m.gmane.org>;
	Fri, 19 Sep 2003 02:22:48 +0200
From: graydon hoare <graydon@redhat.com>
Date: 18 Sep 2003 20:23:12 -0400
Lines: 21
Message-ID: <87vfrp1v9r.fsf@dub.venge.net>
References: <200309181054.27077.konqueror@gmx.de>
	<200309181106.34419.konqueror@gmx.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@sea.gmane.org
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
Sender: news <news@sea.gmane.org>
Subject: Re: classpath CVS not buildable
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Sep 2003 00:22:56 -0000

Michael Koch <konqueror@gmx.de> writes:

> Am Donnerstag, 18. September 2003 10:54 schrieb Michael Koch:
> > Hi Graydon,
> >
> >
> > I saw that you commited gnu/java/awt/peer/gtk/GdkGraphics2D.java
> > and other files into classpath. Unortunately this file has
> > references to a class called GdkFont. But I can find no file
> > defining the class GdkFont. Can you please fix this ?
> 
> To be more exact I present here the jikes compiler output as there are 
> more errors then the described above:

goodness! I'm sorry. I didn't realize files were built as soon as they
were added to classpath; I didn't touch the Makefile but it seems to
do wildcarding. those files are incomplete, I just added them so
others could see my work and play with it if curious. I've backed them
out now. sorry.

-graydon




From MAILER-DAEMON Fri Sep 19 02:17:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A0EZp-0005kP-Bl
	for mharc-classpath@gnu.org; Fri, 19 Sep 2003 02:17:09 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A0EZK-0005Kn-LY
	for classpath@gnu.org; Fri, 19 Sep 2003 02:16:38 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A0EYu-0004Tz-9R
	for classpath@gnu.org; Fri, 19 Sep 2003 02:16:18 -0400
Received: from [212.6.122.96] (helo=mail0.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0EYl-0003uY-8x
	for classpath@gnu.org; Fri, 19 Sep 2003 02:16:03 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-69-061.ewetel.net
	[80.228.69.61])
	by mail0.ewetel.de (8.12.1/8.12.9) with ESMTP id h8J6FrjB024653
	for <classpath@gnu.org>; Fri, 19 Sep 2003 08:15:54 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A0EYb-00008f-00
	for <classpath@gnu.org>; Fri, 19 Sep 2003 08:15:53 +0200
From: Michael Koch <konqueror@gmx.de>
To: GNU Classpath <classpath@gnu.org>
Date: Fri, 19 Sep 2003 08:17:54 +0200
User-Agent: KMail/1.5.2
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Description: clearsigned data
Content-Disposition: inline
Message-Id: <200309190817.57183.konqueror@gmx.de>
X-CheckCompat: OK
Subject: Fundamental changes in java.net
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Sep 2003 06:17:07 -0000

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

Hi list,


I commited a fundamental change in java.net. If you have problems with=20
the new code in java.net please contact me. I will try to resolve all=20
issues I dont found yet as fast as possible.


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

iD8DBQE/ap+UWSOgCCdjSDsRAvWfAJ9171VeOyiLlkctGl//VY3CAbkv4ACgjnMp
DscEj/ajTZnSUMX8L2wgkxc=3D
=3DUTWo
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Fri Sep 19 07:10:57 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A0JA6-0000tn-Tm
	for mharc-classpath@gnu.org; Fri, 19 Sep 2003 07:10:54 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A0J9t-0000rQ-Hc
	for classpath@gnu.org; Fri, 19 Sep 2003 07:10:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A0J9q-0000qg-T2
	for classpath@gnu.org; Fri, 19 Sep 2003 07:10:39 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0J9o-0000qF-VB
	for classpath@gnu.org; Fri, 19 Sep 2003 07:10:37 -0400
Received: from [192.168.1.33] (unknown [217.8.220.243])
	by smtp2.mail.ch.easynet.net (Postfix) with ESMTP
	id 87CC664601; Fri, 19 Sep 2003 13:10:31 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Fri, 19 Sep 2003 13:10:03 +0200
Message-Id: <20030919111003.27622@smtp.mail.ch.easynet.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="==_20030919111003.25805-1_=="
Cc: "Rolf W. Rasmussen" <rolfwr@ii.uib.no>, graydon hoare <graydon@redhat.com>
Subject: BitwiseXORComposite
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Sep 2003 11:10:42 -0000

--==_20030919111003.25805-1_==
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi,

what do people think about moving Graydon's
GdkGraphics2D.BitwiseXORComposite class into gnu.java.awt?  Emulating
bitwise XOR in a Composite could be useful for many Graphics
implementations, and the code does not depend on GDK.

A proposal is attached. I've taken the liberty to write a bit of JavaDoc
around Graydon's class, and I've made an optimization for INT_RGB
rasters, reducing execution time by about 90% in the common case. There's
also a small modification to Graydon's general-case code that saves 1-2%
execution time (search for "rpPix").

'BitwiseXORCompositeTest' is a benchmark/test application. Feel free to
include this into whatever other testing code there may be floating around.

I'd be quite glad if someone familiar with java.awt.image could review my
code, especially the IntContext.isSupported method at the very end of the
file "BitwiseXORComposite.java".

Best regards,

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 

--==_20030919111003.25805-1_==
Content-Type: multipart/mixed; boundary="==_20030919111003.25805-2_=="

--==_20030919111003.25805-2_==
Content-Type: text/plain; name="BitwiseXORComposite.java";
	x-mac-type="00000000"; x-mac-creator="00000000"
Content-Disposition: attachment
Content-Transfer-Encoding: base64

LyogQml0d2lzZVhPUkNvbXBvc2l0ZS5qYXZhIC0tIENvbXBvc2l0ZSBmb3IgZW11bGF0aW5n
IG9sZC1zdHlsZSBYT1IuCiAgIENvcHlyaWdodCAoQykgMjAwMyBGcmVlIFNvZnR3YXJlIEZv
dW5kYXRpb24sI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hPSBE
YXRhQnVmZmVyLlRZUEVfSU5UKQogICAgICAgIHJldHVybiBmYWxzZTsKCiAgICAgIHJldHVy
biB0cnVlOwogICAgfQogIH0KfQo=
--==_20030919111003.25805-2_==
Content-Type: image/png; name="BitwiseXORComposite-1.png";
	x-mac-type="00000000"; x-mac-creator="00000000"
Content-Disposition: attachment
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAAiEAAACKCAIAAADzMQ3UAAAABmJLR0QA/wD/AP+gvaeTAAAA
CXBIWXMAAA6cAAAOnAEHlFPdAAAAB3RJTUUH0wkTCDoBS3/hdgAAIABJREFUeNrtnXtcj+f/
x1+fCkn4NXI2fZtQI9RIcohlS3LKL3PMzGjN+TT2ZbYYYzMWloXN+TTEKDK+RJHmkIUi+/o2
p1J8+6ERnX5/1FKfruv+3PfncH/uz6f389Ef3Nf9ue/ruq/rvl/X4X2936ri4mIQBEEQhAGw
oEdAEARBkMYQBEEQpDEEQRAEQRpDEARBGBSrqllslUqlwFxJtb+gUlApqBTmWgrSGJNHaVWu
7YuhtIarqrot6pzCaqJL1W1Q5z50U1Qhumy4VGXfC5orIwiCIEhjqgDKHONTKagUVAoqBWkM
QRAEQRpDEARBkMYQBEEQBGkMQRAEQRpDEARBkMYQBEEQBGkMQRAEQRpDEARBkMYQBEEQBGkM
QRAEQRpDEARBVGF08rts0g54lJl5qblSmr/wkvxXzVKopppFi1LYe6HSqhRTPRRWDRuU/sE0
3DtI4xiCIAiCNIYgCIIgjSEIgiAI0hiCIAiCNIYgCIIgjSEIgiAI0hiCIAiCNIYgCIIgjSEI
giAI0hiCIAiCNIYgCIIgjSEIgiAI0hiCIAiCNIYgCIIgjSEIgiAI0hiCIAiCNIYgCIIgjSEI
giAI0hiCIAjCmFjRIyAIwtRp3BienujSBc2bY/hwfHcZ1nkoKgIACwvkWcMjA6uy0O4adsUg
8ShqNqZnJhOq4uJi7X+s0nNupOblxQsUFSEvD6mpyMhAVhbi4pCUhOvXNecdKNYuM3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hAEQRCkMQRBEARpDEEQBEGQxhAEQRDGQadYr8XFplpslQrKjL0o
KVcqlUJDkVbNUhSHKaxFddGqLhQZCFNqKcISlVWILib+waRxDEEQBEEaQxAEQZDGEARBEARp
DEEQBEEaQxAEQZDGEARBEARpDEEQBEEaQxAEQZDGEARBEARpDEEQBEEaQxAEQZDGEARBEARp
DEEQBEEaQxAEQRCAqrhK+ptWKdObPCCpOqgUVAoqhbmWwmywQpWkrLIV2xypFFQKKkVVLgWN
YwiCIAhCA7QeQxAEQZDGEARBEKbG/wMih0OTT9ul7gAAAABJRU5ErkJggg==
--==_20030919111003.25805-2_==
Content-Type: text/plain; name="BitwiseXORCompositeTest.java";
	x-mac-type="00000000"; x-mac-creator="00000000"
Content-Disposition: attachment
Content-Transfer-Encoding: base64

Ly8gRklYTUU6IEludG8gd2hpY2ggcGFja2FnZSBzaG91bGQgdGhpcyBnbz8KLy8gRklYTUU6
IFdoaWNoIGxpY2Vuc2UgaXMgYXBwcm9wcmlhdGUgZm9yIHN1Y2ggdGVzdCBjb2RlPwoKaW1w
b3J0IGdudS5qYXZhLmF3dC5CaXR3aXNlWE9SQ29tcG9zaXRlOwppbXBvcnQgamF2YS5hd3Qu
KjsKaW1wb3J0IGphdmEuYXd0LmV2ZW50Lio7CmltcG9ydCBqYXZhLmF3dC5pbWFnZS5CdWZm
ZXJlZEltYWdlOwoKCi8qKgogKiBBIGxpdHRsZSB0ZXN0IGFwcGxpY2F0aW9uIGZvciB0ZXN0
aW5nIHRoZSBHTlUgQml0d2lzZVhPUkNvbXBvc2l0ZQogKiBjbGFzcy4gVGhpcyBjb2RlIGlz
IGEgYml0IG1lc3N5LCBidXQgaXQgd291bGQgYmUgYmVzdCBjbGVhbmVkIHVwCiAqIG9uY2Ug
aXQgaXMgaW50ZWdyYXRlZCBpbnRvIGEgbGFyZ2VyIEphdmEyRCB0ZXN0aW5nIGFwcGxpY2F0
aW9uLgogKgogKiBAYXV0aG9yIFNhc2NoYSBCcmF3ZXIg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gICAgICAgICAgICArICIgdGltZXMuLi4iKTsKICAgIEJ1ZmZl
cmVkSW1hZ2UgaW1nID0gbmV3IEJ1ZmZlcmVkSW1hZ2UoMTAyNCwgMTAyNCwKICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQnVmZmVyZWRJbWFnZS5UWVBFX0lO
VF9SR0IpOwoKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgbnVtUnVuczsgaSsrKQogICAgewog
ICAgICBydW5zW2ldID0gZ2V0VGltZUZvclJ1bihpbWcpOwogICAgICBzdW0gKz0gcnVuc1tp
XTsKICAgIH0KICAgIGZvciAoaW50IGkgPSAwOyBpIDwgbnVtUnVuczsgaSsrKQogICAgICBT
eXN0ZW0ub3V0LnByaW50KCIgIiArIHJ1bnNbaV0pOwogICAgU3lzdGVtLm91dC5wcmludGxu
KCIsIGF2Zz0iICsgc3VtL251bVJ1bnMgKyAiIG1zIik7CiAgfQoKICBwdWJsaWMgc3RhdGlj
IHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKQogIHsKICAgIHJ1blRlc3RzKDEwKTsKCiAgICBG
cmFtZSBmID0gbmV3IEZyYW1lKCJCaXR3aXNlWE9SQ29tcG9zaXRlIik7CiAgICBDb21wb25l
bnQgeHQgPSBuZXcgWE9SVGVzdENvbXBvbmVudCgpOwogICAgZi5zZXRTaXplKG5ldyBEaW1l
bnNpb24oNTYwLDE2MCkpOwogICAgZi5hZGQoeHQpOwogICAgZi5hZGRXaW5kb3dMaXN0ZW5l
cihuZXcgV2luZG93QWRhcHRlcigpCiAgICB7CiAgICAgIHB1YmxpYyB2b2lkIHdpbmRvd0Ns
b3NpbmcoV2luZG93RXZlbnQgZSkKICAgICAgewogICAgICAgIFN5c3RlbS5leGl0KDApOwog
ICAgICB9CiAgICB9KTsKICAgIGYuc2V0VmlzaWJsZSh0cnVlKTsKICB9Cn0K
--==_20030919111003.25805-2_==--
--==_20030919111003.25805-1_==--




From MAILER-DAEMON Fri Sep 19 19:41:53 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A0Usp-0004y5-2b
	for mharc-classpath@gnu.org; Fri, 19 Sep 2003 19:41:51 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A0Usg-0004uG-Pb
	for classpath@gnu.org; Fri, 19 Sep 2003 19:41:42 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A0UsO-0004JC-Or
	for classpath@gnu.org; Fri, 19 Sep 2003 19:41:25 -0400
Received: from [24.93.67.84] (helo=ms-smtp-03.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0UsL-0004B2-2o
	for classpath@gnu.org; Fri, 19 Sep 2003 19:41:21 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-03.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8JNd64R019884; Fri, 19 Sep 2003 19:39:07 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 5F045BE641; Fri, 19 Sep 2003 19:41:03 -0400 (EDT)
Sender: cbj@haphazard.org
To: graydon hoare <graydon@redhat.com>
References: <200309181054.27077.konqueror@gmx.de>
	<200309181106.34419.konqueror@gmx.de> <87vfrp1v9r.fsf@dub.venge.net>
From: Brian Jones <cbj@gnu.org>
Date: 19 Sep 2003 19:41:03 -0400
In-Reply-To: <87vfrp1v9r.fsf@dub.venge.net>
Message-ID: <m3smms2vow.fsf@lyta.haphazard.org>
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: classpath CVS not buildable
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Sep 2003 23:41:44 -0000

graydon hoare <graydon@redhat.com> writes:

> Michael Koch <konqueror@gmx.de> writes:
> 
> > Am Donnerstag, 18. September 2003 10:54 schrieb Michael Koch:
> > > Hi Graydon,
> > >
> > >
> > > I saw that you commited gnu/java/awt/peer/gtk/GdkGraphics2D.java
> > > and other files into classpath. Unortunately this file has
> > > references to a class called GdkFont. But I can find no file
> > > defining the class GdkFont. Can you please fix this ?
> > 
> > To be more exact I present here the jikes compiler output as there are 
> > more errors then the described above:
> 
> goodness! I'm sorry. I didn't realize files were built as soon as they
> were added to classpath; I didn't touch the Makefile but it seems to
> do wildcarding. those files are incomplete, I just added them so
> others could see my work and play with it if curious. I've backed them
> out now. sorry.

It uses 'find' to build the class list.  You can add files you don't
want in the build by modifying lib/standard.omit.

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



From MAILER-DAEMON Sat Sep 20 12:13:53 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A0kMq-0003aH-Nz
	for mharc-classpath@gnu.org; Sat, 20 Sep 2003 12:13:52 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A0kMn-0003Vx-JH
	for classpath@gnu.org; Sat, 20 Sep 2003 12:13:49 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A0kMl-0003T5-US
	for classpath@gnu.org; Sat, 20 Sep 2003 12:13:48 -0400
Received: from [216.218.240.193] (helo=pogo.kaffe.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0kMl-0003RE-Ip
	for classpath@gnu.org; Sat, 20 Sep 2003 12:13:47 -0400
Received: from adsl-63-205-167-26.dsl.snfc21.pacbell.net ([63.205.167.26]
	helo=localhost) by pogo.kaffe.org with asmtp (Exim 3.35 #1 (Debian))
	id 1A0kP1-0005iw-00; Sat, 20 Sep 2003 09:16:07 -0700
Date: Sat, 20 Sep 2003 09:13:52 -0700
From: Jim Pick <jim@kaffe.org>
To: Clemens Eisserer <linuxhippy@web.de>
Message-Id: <20030920091352.0bd65312.jim@kaffe.org>
In-Reply-To: <3F637642.9000000@web.de>
References: <3F637642.9000000@web.de>
X-Mailer: Sylpheed version 0.8.2 (GTK+ 1.2.10; i386-redhat-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org
Subject: Re: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Sep 2003 16:13:50 -0000

On Sat, 13 Sep 2003 21:55:46 +0200
Clemens Eisserer <linuxhippy@web.de> wrote:

> Hi there!
> 
> Does anybody know a useable html-rendering engine completly written 
> using Java and 100% free Software (e.g. GPL, LGPL)...
> I want to port such a library from AWT/SWING to SWT.
> 
> All libraries I found were proprietary, so they arent useful at all for 
> me :-(

At Transvirtual, before it folded, we wrote a full web browser in Java,
and released it under the GPL as part of the "XOE" framework:

  http://www.kaffe.org/ftp/pub/packages/pocketlinux/

It requires some work though - it's got dependencies on the rest of the
PocketLinux framework, and Transvirtual's version of Kaffe (also in
the XOE release).

Subsequent to the XOE 1.0 release, Transvirtual ported it to run on any
JVM, but they never released that code (Transvirtual is no longer in
business).

It did a pretty spiffy job of rendering a lot of difficult web pages,
and it was reasonably fast too.

I'd love to see somebody take this orphaned code and clean it up and
make it into a standalone project.  A lot of the DOM, layout/rendering
and parsing code is probably worth preserving, as it took a lot of work
to get that to do a reasonably decent job.

Cheers,

 - Jim



From MAILER-DAEMON Sat Sep 20 16:07:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A0o1D-00014X-O0
	for mharc-classpath@gnu.org; Sat, 20 Sep 2003 16:07:47 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A0o1A-00012z-Ge
	for classpath@gnu.org; Sat, 20 Sep 2003 16:07:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A0o18-00012I-CS
	for classpath@gnu.org; Sat, 20 Sep 2003 16:07:42 -0400
Received: from [81.5.129.62] (helo=tangency.co.uk)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0o0j-0000v3-OB
	for classpath@gnu.org; Sat, 20 Sep 2003 16:07:17 -0400
Received: from tangency.co.uk (localhost [127.0.0.1])
	by outgoing.tangency.co.uk (Postfix) with ESMTP
	id 21DCA605FF; Sat, 20 Sep 2003 21:04:01 +0100 (BST)
Received: from localhost ([127.0.0.1])
	by tangency.co.uk (MailMonitor for SMTP v1.2.2 ) ;
	Sat, 20 Sep 2003 21:04:01 +0100 (BST)
Received: from Draboof (draboof.tangency.co.uk [192.168.1.254])
	(using TLSv1 with cipher RC4-MD5 (128/128 bits))
	(No client certificate requested)
	by tangency.co.uk (Postfix) with ESMTP
	id BE3D8605FF; Sat, 20 Sep 2003 21:04:00 +0100 (BST)
From: "Stephane Meslin-Weber" <twiun@adorphuye.com>
To: "'Jim Pick'" <jim@kaffe.org>
Date: Sat, 20 Sep 2003 21:07:09 +0100
Message-ID: <000001c37fb2$c5fdb2b0$fe01a8c0@Draboof>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4024
In-Reply-To: <20030920091352.0bd65312.jim@kaffe.org>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
Cc: classpath@gnu.org
Subject: RE: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Sep 2003 20:07:45 -0000

> Subsequent to the XOE 1.0 release, Transvirtual ported it to run on
any
> JVM, but they never released that code (Transvirtual is no longer in
> business).

Just out of curiousity, what's the status of that unreleased code? Has
the copyright/IP rights for that code been released to the developers or
is it in the hands of the creditors?

> It did a pretty spiffy job of rendering a lot of difficult web pages,
> and it was reasonably fast too.

Was it in generic Java 1.1 or were there native portions to speed things
up?

> I'd love to see somebody take this orphaned code and clean it up and
> make it into a standalone project.  A lot of the DOM, layout/rendering
> and parsing code is probably worth preserving, as it took a lot of
work
> to get that to do a reasonably decent job.

I agree, this would be really useful.

Stephane





From MAILER-DAEMON Sat Sep 20 16:23:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A0oGQ-000459-SZ
	for mharc-classpath@gnu.org; Sat, 20 Sep 2003 16:23:30 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A0oGO-00043V-FM
	for classpath@gnu.org; Sat, 20 Sep 2003 16:23:28 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A0oGM-000434-KC
	for classpath@gnu.org; Sat, 20 Sep 2003 16:23:26 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0oGL-00041I-KE
	for classpath@gnu.org; Sat, 20 Sep 2003 16:23:25 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A0oGG-00050H-00
	for <classpath@gnu.org>; Sat, 20 Sep 2003 22:23:20 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A0oGC-0004wX-00; Sat, 20 Sep 2003 22:23:16 +0200
Message-ID: <3F6CB734.1050001@kaffe.org>
Date: Sat, 20 Sep 2003 22:23:16 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Stephane Meslin-Weber <twiun@adorphuye.com>
References: <000001c37fb2$c5fdb2b0$fe01a8c0@Draboof>
In-Reply-To: <000001c37fb2$c5fdb2b0$fe01a8c0@Draboof>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: classpath@gnu.org, 'Jim Pick' <jim@kaffe.org>
Subject: Re: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Sep 2003 20:23:29 -0000

Hi Stephane,

Stephane Meslin-Weber wrote:
>>Subsequent to the XOE 1.0 release, Transvirtual ported it to run on
> 
> any
> 
>>JVM, but they never released that code (Transvirtual is no longer in
>>business).
> 
> 
> Just out of curiousity, what's the status of that unreleased code? Has
> the copyright/IP rights for that code been released to the developers or
> is it in the hands of the creditors?

GPL'd according to the COPYING file in 
http://www.kaffe.org/cgi-bin/viewcvs.cgi/pocketlinux/XOE_1.0/src/xoe/COPYING?rev=1.1.1.1&content-type=text/vnd.viewcvs-markup

IP would be with, uh, don't know, I guess whoever owns it now, some 
creditors who lost money on Transvirtual I assume.

>>It did a pretty spiffy job of rendering a lot of difficult web pages,
>>and it was reasonably fast too.
> 
> 
> Was it in generic Java 1.1 or were there native portions to speed things
> up?

They seem to have used html tidy to parse the document. I'd use JTidy in 
a HTML parser SPI, of course ;) I haven't browsed the other code.

cheers,
dalibor topic




From MAILER-DAEMON Sat Sep 20 17:17:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A0p6j-0005sv-39
	for mharc-classpath@gnu.org; Sat, 20 Sep 2003 17:17:33 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A0p6g-0005sm-Nq
	for classpath@gnu.org; Sat, 20 Sep 2003 17:17:30 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A0p6f-0005sb-BX
	for classpath@gnu.org; Sat, 20 Sep 2003 17:17:29 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0p6e-0005sY-Tt
	for classpath@gnu.org; Sat, 20 Sep 2003 17:17:29 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id PAA16015;
	Sat, 20 Sep 2003 15:17:26 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 2CA144F8305; Sat, 20 Sep 2003 15:09:45 -0600 (MDT)
To: Classpath Discussion Mailing List <classpath@gnu.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: Now KEN is having a MENTAL CRISIS because his "R.V." PAYMENTS are
	OVER-DUE!!
Date: 20 Sep 2003 15:09:44 -0600
Message-ID: <874qz7jhev.fsf@fleche.redhat.com>
Lines: 10
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: auto-formatting: no more jalopy
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Sep 2003 21:17:31 -0000

I was just looking at the jalopy lists for any sign of life, and I
found out that jalopy is going proprietary.  So unless someone starts
a free fork, I'm afraid we're left once again without a plausible way
of getting an auto-formatter.  Perhaps Etienne will write his now :-)

Link to the bad news:

https://sourceforge.net/mailarchive/forum.php?thread_id=2526002&forum_id=8775

Tom



From MAILER-DAEMON Sat Sep 20 19:51:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A0rR2-0004zX-QA
	for mharc-classpath@gnu.org; Sat, 20 Sep 2003 19:46:40 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A0mZA-0001iY-H7
	for classpath@gnu.org; Sat, 20 Sep 2003 14:34:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A0mZ7-0001hn-RQ
	for classpath@gnu.org; Sat, 20 Sep 2003 14:34:42 -0400
Received: from [213.90.36.45] (helo=octopussy.utanet.at)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A0mZ7-0001gr-GL
	for classpath@gnu.org; Sat, 20 Sep 2003 14:34:41 -0400
Received: from pam.utanet.at ([213.90.36.6])
	by octopussy.utanet.at with esmtp (Exim 4.12) id 1A0mZ4-0003gk-00
	for classpath@gnu.org; Sat, 20 Sep 2003 20:34:38 +0200
Received: from linzu1-207-139.utaonline.at ([212.152.207.139] helo=web.de)
	by pam.utanet.at with esmtp (Exim 4.12) id 1A0mZ4-0006bb-00
	for classpath@gnu.org; Sat, 20 Sep 2003 20:34:38 +0200
Message-ID: <3F6C9D3B.9030802@web.de>
Date: Sat, 20 Sep 2003 20:32:27 +0200
From: Clemens Eisserer <linuxhippy@web.de>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: classpath@gnu.org
References: <3F637642.9000000@web.de> <20030920091352.0bd65312.jim@kaffe.org>
In-Reply-To: <20030920091352.0bd65312.jim@kaffe.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Sat, 20 Sep 2003 19:46:38 -0400
Subject: Re: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Sep 2003 18:34:45 -0000

Hi!

>At Transvirtual, before it folded, we wrote a full web browser in Java,
>and released it under the GPL as part of the "XOE" framework:
>
>  http://www.kaffe.org/ftp/pub/packages/pocketlinux/
>
>It requires some work though - it's got dependencies on the rest of the
>PocketLinux framework, and Transvirtual's version of Kaffe (also in
>the XOE release).
>
>Subsequent to the XOE 1.0 release, Transvirtual ported it to run on any
>JVM, but they never released that code (Transvirtual is no longer in
>business).
>
>It did a pretty spiffy job of rendering a lot of difficult web pages,
>and it was reasonably fast too.
>
>I'd love to see somebody take this orphaned code and clean it up and
>make it into a standalone project.  A lot of the DOM, layout/rendering
>and parsing code is probably worth preserving, as it took a lot of work
>to get that to do a reasonably decent job.
>  
>
Thanks a lot, it seems that this is exactly what I was searching for.
Althought I dont have many time now,because of some commercial stuff 
that needs to be done until december...
But this seems the best thing available.

Thanks a lot, Clemens

PS: Greetings from J.Mehlitz,i talked with him by phone.




From MAILER-DAEMON Sun Sep 21 01:11:45 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A0wVd-0007ya-Kq
	for mharc-classpath@gnu.org; Sun, 21 Sep 2003 01:11:45 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A0wVZ-0007uI-SB
	for classpath@gnu.org; Sun, 21 Sep 2003 01:11:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A0wVW-0007oO-OB
	for classpath@gnu.org; Sun, 21 Sep 2003 01:11:39 -0400
Received: from [216.218.240.193] (helo=pogo.kaffe.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0wVW-0007mw-75
	for classpath@gnu.org; Sun, 21 Sep 2003 01:11:38 -0400
Received: from adsl-63-205-167-26.dsl.snfc21.pacbell.net ([63.205.167.26]
	helo=localhost) by pogo.kaffe.org with asmtp (Exim 3.35 #1 (Debian))
	id 1A0wXl-00076T-00; Sat, 20 Sep 2003 22:13:57 -0700
Date: Sat, 20 Sep 2003 22:11:30 -0700
From: Jim Pick <jim@kaffe.org>
To: Dalibor Topic <robilad@kaffe.org>
Message-Id: <20030920221130.4a564e98.jim@kaffe.org>
In-Reply-To: <3F6CB734.1050001@kaffe.org>
References: <000001c37fb2$c5fdb2b0$fe01a8c0@Draboof>
	<3F6CB734.1050001@kaffe.org>
X-Mailer: Sylpheed version 0.8.2 (GTK+ 1.2.10; i386-redhat-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org, twiun@adorphuye.com
Subject: Re: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Sep 2003 05:11:43 -0000

On Sat, 20 Sep 2003 22:23:16 +0200
Dalibor Topic <robilad@kaffe.org> wrote:

> Hi Stephane,
> 
> Stephane Meslin-Weber wrote:
> >>Subsequent to the XOE 1.0 release, Transvirtual ported it to run on
> > 
> > any
> > 
> >>JVM, but they never released that code (Transvirtual is no longer in
> >>business).
> > 
> > 
> > Just out of curiousity, what's the status of that unreleased code? Has
> > the copyright/IP rights for that code been released to the developers or
> > is it in the hands of the creditors?
> 
> GPL'd according to the COPYING file in 
> http://www.kaffe.org/cgi-bin/viewcvs.cgi/pocketlinux/XOE_1.0/src/xoe/COPYING?rev=1.1.1.1&content-type=text/vnd.viewcvs-markup
> 
> IP would be with, uh, don't know, I guess whoever owns it now, some 
> creditors who lost money on Transvirtual I assume.

Yes, that's right - I think they sold off the assets to various parties,
I really don't know who.

I think it's best to assume that the code that was written after the GPL
release is, for all intensive purposes, lost.  There wasn't that much
though, mostly just the port to the standard JDK.

> >>It did a pretty spiffy job of rendering a lot of difficult web pages,
> >>and it was reasonably fast too.
> > 
> > 
> > Was it in generic Java 1.1 or were there native portions to speed things
> > up?
> 
> They seem to have used html tidy to parse the document. I'd use JTidy in 
> a HTML parser SPI, of course ;) I haven't browsed the other code.

I took a peek, and the 1.0 release does use the native tidy library.  I
think they originally used JTidy, but then stuck in the native tidy
library for speed.  I could probably fish the old JTidy stuff out of my
backup of the CVS repository (which was public up until the 1.0 release)
if anybody wants it.

Cheers,

 - Jim



From MAILER-DAEMON Sun Sep 21 12:57:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A17Wl-0005Ly-3o
	for mharc-classpath@gnu.org; Sun, 21 Sep 2003 12:57:39 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A17Wj-0005KN-0h
	for classpath@gnu.org; Sun, 21 Sep 2003 12:57:37 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A17Wf-0005Hf-F2
	for classpath@gnu.org; Sun, 21 Sep 2003 12:57:34 -0400
Received: from [216.218.240.193] (helo=pogo.kaffe.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A17We-0005HO-Of
	for classpath@gnu.org; Sun, 21 Sep 2003 12:57:32 -0400
Received: from adsl-63-205-167-26.dsl.snfc21.pacbell.net ([63.205.167.26]
	helo=localhost) by pogo.kaffe.org with asmtp (Exim 3.35 #1 (Debian))
	id 1A17Yx-00066a-00; Sun, 21 Sep 2003 09:59:55 -0700
Date: Sun, 21 Sep 2003 09:57:37 -0700
From: Jim Pick <jim@kaffe.org>
To: Clemens Eisserer <linuxhippy@web.de>
Message-Id: <20030921095737.36e77d5f.jim@kaffe.org>
In-Reply-To: <3F6C9D3B.9030802@web.de>
References: <3F637642.9000000@web.de> <20030920091352.0bd65312.jim@kaffe.org>
	<3F6C9D3B.9030802@web.de>
X-Mailer: Sylpheed version 0.8.2 (GTK+ 1.2.10; i386-redhat-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org
Subject: Re: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Sep 2003 16:57:37 -0000

On Sat, 20 Sep 2003 20:32:27 +0200
Clemens Eisserer <linuxhippy@web.de> wrote:

> Thanks a lot, it seems that this is exactly what I was searching for.
> Althought I dont have many time now,because of some commercial stuff 
> that needs to be done until december...
> But this seems the best thing available.
> 
> Thanks a lot, Clemens

I've been playing with it a bit -- I used to have a "skin" for it that
only ran the web browser, and nothing else.

Unfortunately, the build system is really, really, incomprehensible.  I
think I'm going to spend a bit of time trying to cut it down and get it
to a sane state where somebody might be motivated to adopt it.  The way
it is currently, I don't think anybody will want to touch it, which is a
shame, since it does a better job on a lot of web pages than the Swing
widget.

> PS: Greetings from J.Mehlitz,i talked with him by phone.

 :-)

Cheers,

 - Jim



From MAILER-DAEMON Sun Sep 21 14:26:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A18uw-0007OA-8b
	for mharc-classpath@gnu.org; Sun, 21 Sep 2003 14:26:42 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A18ut-0007NZ-Gc
	for classpath@gnu.org; Sun, 21 Sep 2003 14:26:39 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A18us-0007N1-01
	for classpath@gnu.org; Sun, 21 Sep 2003 14:26:38 -0400
Received: from [216.218.240.193] (helo=pogo.kaffe.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A18ur-0007Mo-Lz
	for classpath@gnu.org; Sun, 21 Sep 2003 14:26:37 -0400
Received: from adsl-63-205-167-26.dsl.snfc21.pacbell.net ([63.205.167.26]
	helo=localhost) by pogo.kaffe.org with asmtp (Exim 3.35 #1 (Debian))
	id 1A18xA-0007Tc-00; Sun, 21 Sep 2003 11:29:00 -0700
Date: Sun, 21 Sep 2003 11:26:42 -0700
From: Jim Pick <jim@kaffe.org>
To: Jim Pick <jim@kaffe.org>
Message-Id: <20030921112642.1b9febed.jim@kaffe.org>
In-Reply-To: <20030921095737.36e77d5f.jim@kaffe.org>
References: <3F637642.9000000@web.de> <20030920091352.0bd65312.jim@kaffe.org>
	<3F6C9D3B.9030802@web.de> <20030921095737.36e77d5f.jim@kaffe.org>
X-Mailer: Sylpheed version 0.8.2 (GTK+ 1.2.10; i386-redhat-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: linuxhippy@web.de, classpath@gnu.org
Subject: Re: HTML-Rendering engine written in Java?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Sep 2003 18:26:40 -0000

On Sun, 21 Sep 2003 09:57:37 -0700
Jim Pick <jim@kaffe.org> wrote:

> On Sat, 20 Sep 2003 20:32:27 +0200
> Clemens Eisserer <linuxhippy@web.de> wrote:
> 
> > Thanks a lot, it seems that this is exactly what I was searching for.
> > Althought I dont have many time now,because of some commercial stuff 
> > that needs to be done until december...
> > But this seems the best thing available.
> > 
> > Thanks a lot, Clemens
> 
> I've been playing with it a bit -- I used to have a "skin" for it that
> only ran the web browser, and nothing else.
> 
> Unfortunately, the build system is really, really, incomprehensible.  I
> think I'm going to spend a bit of time trying to cut it down and get it
> to a sane state where somebody might be motivated to adopt it.  The way
> it is currently, I don't think anybody will want to touch it, which is a
> shame, since it does a better job on a lot of web pages than the Swing
> widget.

I managed to get my web-only shell for XOE working again.  I uploaded
some screenshots here:

  http://www.kaffe.org/~jim/xoe-web-screenshots/

This is a bit offtopic for Classpath - we should take the discussion
offline.  If anybody is interested, just send me email.  When I get the
makefiles done up, I'll upload it somewhere (maybe to GNU Savannah).

Cheers,

 - Jim



From MAILER-DAEMON Sun Sep 21 15:54:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1AI3-0000xl-Hx
	for mharc-classpath@gnu.org; Sun, 21 Sep 2003 15:54:39 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1AI0-0000vn-Mn
	for classpath@gnu.org; Sun, 21 Sep 2003 15:54:36 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1AHy-0000uv-U3
	for classpath@gnu.org; Sun, 21 Sep 2003 15:54:35 -0400
Received: from [24.93.67.83] (helo=ms-smtp-02.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1AHy-0000uT-If
	for classpath@gnu.org; Sun, 21 Sep 2003 15:54:34 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-02.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8LJobpM011147; Sun, 21 Sep 2003 15:50:46 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 91098BE641; Sun, 21 Sep 2003 15:53:40 -0400 (EDT)
Sender: cbj@haphazard.org
To: tromey@redhat.com
References: <874qz7jhev.fsf@fleche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 21 Sep 2003 15:53:40 -0400
In-Reply-To: <874qz7jhev.fsf@fleche.redhat.com>
Message-ID: <m3k7813ol7.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 Discussion Mailing List <classpath@gnu.org>
Subject: Re: auto-formatting: no more jalopy
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Sep 2003 19:54:37 -0000

Tom Tromey <tromey@redhat.com> writes:

> I was just looking at the jalopy lists for any sign of life, and I
> found out that jalopy is going proprietary.  So unless someone starts
> a free fork, I'm afraid we're left once again without a plausible way
> of getting an auto-formatter.  Perhaps Etienne will write his now :-)
> 
> Link to the bad news:
> 
> https://sourceforge.net/mailarchive/forum.php?thread_id=2526002&forum_id=8775

Looking at CVS now.  I don't care much about most of the editor
plugins.

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



From MAILER-DAEMON Sun Sep 21 18:42:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1CuX-0005NK-Dd
	for mharc-classpath@gnu.org; Sun, 21 Sep 2003 18:42:33 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1Cql-0003RY-J6
	for classpath@gnu.org; Sun, 21 Sep 2003 18:38:39 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1CkW-00016N-8I
	for classpath@gnu.org; Sun, 21 Sep 2003 18:32:12 -0400
Received: from [209.222.224.106] (helo=griffin.griffaction.ca)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1CkH-0000cO-Be
	for classpath@gnu.org; Sun, 21 Sep 2003 18:31:57 -0400
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by griffin.griffaction.ca with esmtp (Exim 3.36 #1 (Debian))
	id 1A1CkF-00046k-00
	for <classpath@gnu.org>; Sun, 21 Sep 2003 18:31:56 -0400
Message-ID: <3F6E26D9.2050704@uqam.ca>
Date: Sun, 21 Sep 2003 18:31:53 -0400
From: Etienne Gagnon <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.4) Gecko/20030908 Debian/1.4-4
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath Discussion Mailing List <classpath@gnu.org>
References: <874qz7jhev.fsf@fleche.redhat.com>
	<m3k7813ol7.fsf@lyta.haphazard.org>
In-Reply-To: <m3k7813ol7.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: auto-formatting: no more jalopy
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 21 Sep 2003 22:42:32 -0000

Hi Tom & Brian,

Jalopy seems to fill the needs, on the technical side.  We could take
the latest Free snapshot available before it becomes proprietary to
indent the code.

The only worry I have is that it is not obvious to me if all the 
licenses of the various parts of jalopy are compatible.

Have a look at:
http://jalopy.sourceforge.net/dependencies.html

This seems like a big legal mess, as some dependent modules are under 
the GNU GPL (without special exceptions, as far as I know), and others 
are under the Apache license.  We know that these two licenses are 
incompatible.


Etienne

PS:  I have failed to make any meaningful progress on the code indenter 
this last Summer; my other projects SableCC & SableVM took most of my 
time (and I took real vacations for the first time in years).  I will 
continue workinf on this indenter, but I think it would be wise for 
Classpath to investigate Jalopy for the time being.


Brian Jones wrote:
> Tom Tromey <tromey@redhat.com> writes:
> 
> 
>>I was just looking at the jalopy lists for any sign of life, and I
>>found out that jalopy is going proprietary.  So unless someone starts
>>a free fork, I'm afraid we're left once again without a plausible way
>>of getting an auto-formatter.  Perhaps Etienne will write his now :-)
>>
>>Link to the bad news:
>>
>>https://sourceforge.net/mailarchive/forum.php?thread_id=2526002&forum_id=8775
> 
> 
> Looking at CVS now.  I don't care much about most of the editor
> plugins.
> 
> Brian


-- 
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 Sep 22 00:14:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1I5V-0000Ia-E0
	for mharc-classpath@gnu.org; Mon, 22 Sep 2003 00:14:13 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1I5S-0000Hw-Vz
	for classpath@gnu.org; Mon, 22 Sep 2003 00:14:10 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1I5R-0000HZ-AB
	for classpath@gnu.org; Mon, 22 Sep 2003 00:14:09 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A1I5R-0000HU-22
	for classpath@gnu.org; Mon, 22 Sep 2003 00:14:09 -0400
Received: from [24.93.67.82] (helo=ms-smtp-01.southeast.rr.com)
	by mx20.gnu.org with esmtp (Exim 4.22) id 1A1HxD-00055K-AA
	for classpath@gnu.org; Mon, 22 Sep 2003 00:05:39 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-01.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8M3w40Q014525; Sun, 21 Sep 2003 23:58:12 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 89BCCBE641; Mon, 22 Sep 2003 00:04:28 -0400 (EDT)
Sender: cbj@haphazard.org
To: Etienne Gagnon <etienne.gagnon@uqam.ca>
References: <874qz7jhev.fsf@fleche.redhat.com>
	<m3k7813ol7.fsf@lyta.haphazard.org> <3F6E26D9.2050704@uqam.ca>
From: Brian Jones <cbj@gnu.org>
Date: 22 Sep 2003 00:04:28 -0400
In-Reply-To: <3F6E26D9.2050704@uqam.ca>
Message-ID: <m3fzip31v7.fsf@lyta.haphazard.org>
Lines: 26
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: auto-formatting: no more jalopy
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Sep 2003 04:14:11 -0000

Etienne Gagnon <etienne.gagnon@uqam.ca> writes:

> Hi Tom & Brian,
> 
> Jalopy seems to fill the needs, on the technical side.  We could take
> the latest Free snapshot available before it becomes proprietary to
> indent the code.
> 
> The only worry I have is that it is not obvious to me if all the
> licenses of the various parts of jalopy are compatible.
> 
> Have a look at:
> http://jalopy.sourceforge.net/dependencies.html

The page incorrectly lists getopt and aelfred as GPL, instead getopt
is released under the LGPL and aelfred under a license similar to BSD.

This is a link to a late May message about the "commercial" release.
August was a planned FCS but it's likely late.  Nothing has been
updated in available CVS since last November it appears to me.

http://sourceforge.net/mailarchive/forum.php?thread_id=2463425&forum_id=8775

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



From MAILER-DAEMON Mon Sep 22 00:56:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1IkU-0001rm-DZ
	for mharc-classpath@gnu.org; Mon, 22 Sep 2003 00:56:34 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1IkS-0001pk-SZ
	for classpath@gnu.org; Mon, 22 Sep 2003 00:56:32 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1IkR-0001mu-5u
	for classpath@gnu.org; Mon, 22 Sep 2003 00:56:31 -0400
Received: from [209.222.224.106] (helo=griffin.griffaction.ca)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1IkQ-0001lz-Ti
	for classpath@gnu.org; Mon, 22 Sep 2003 00:56:30 -0400
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by griffin.griffaction.ca with esmtp (Exim 3.36 #1 (Debian))
	id 1A1IkM-0008Sa-00
	for <classpath@gnu.org>; Mon, 22 Sep 2003 00:56:26 -0400
Message-ID: <3F6E80F8.2030105@uqam.ca>
Date: Mon, 22 Sep 2003 00:56:24 -0400
From: Etienne Gagnon <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.4) Gecko/20030908 Debian/1.4-4
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath Discussion Mailing List <classpath@gnu.org>
References: <874qz7jhev.fsf@fleche.redhat.com>	<m3k7813ol7.fsf@lyta.haphazard.org>
	<3F6E26D9.2050704@uqam.ca> <m3fzip31v7.fsf@lyta.haphazard.org>
In-Reply-To: <m3fzip31v7.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: auto-formatting: no more jalopy
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Sep 2003 04:56:33 -0000

Hi Brian & all,

So, given that there seem to be no licensing problem, we should 
definitely consider using "Jalopy" to indent the Classpath Java source 
code, and "GNU indent" to indent the C source code.

I do not know if any free jvm is currently able to run Jalopy, but I am 
sure they will quite soon.  [This would be a good benchmark for SableVM. 
:-)]

On an unrelated note: David Belanger has got SableVM to work with 
Classpath 0.06.  His working code is in SableVM's Subversion repository 
(http://subversion.tigris.org/).  If anybody is interested to play with 
it, do not hesitate to ask questions on the sablevm-developer mainling-list.

Etienne

Brian Jones wrote:
> Etienne Gagnon <etienne.gagnon@uqam.ca> writes:
>>The only worry I have is that it is not obvious to me if all the
>>licenses of the various parts of jalopy are compatible.
>>
>>Have a look at:
>>http://jalopy.sourceforge.net/dependencies.html
> 
> 
> The page incorrectly lists getopt and aelfred as GPL, instead getopt
> is released under the LGPL and aelfred under a license similar to BSD.
> 
> This is a link to a late May message about the "commercial" release.
> August was a planned FCS but it's likely late.  Nothing has been
> updated in available CVS since last November it appears to me.
> 
> http://sourceforge.net/mailarchive/forum.php?thread_id=2463425&forum_id=8775
> 
> Brian


-- 
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 Sep 22 01:12:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1Izj-0001lW-V2
	for mharc-classpath@gnu.org; Mon, 22 Sep 2003 01:12:19 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1Izi-0001l6-1h
	for classpath@gnu.org; Mon, 22 Sep 2003 01:12:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1Izf-0001kA-2a
	for classpath@gnu.org; Mon, 22 Sep 2003 01:12:16 -0400
Received: from [209.222.224.106] (helo=griffin.griffaction.ca)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1Ize-0001jj-PA
	for classpath@gnu.org; Mon, 22 Sep 2003 01:12:14 -0400
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by griffin.griffaction.ca with esmtp (Exim 3.36 #1 (Debian))
	id 1A1Izd-00009Z-00
	for <classpath@gnu.org>; Mon, 22 Sep 2003 01:12:14 -0400
Message-ID: <3F6E84AB.3030109@uqam.ca>
Date: Mon, 22 Sep 2003 01:12:11 -0400
From: Etienne Gagnon <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.4) Gecko/20030908 Debian/1.4-4
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath Discussion Mailing List <classpath@gnu.org>
References: <874qz7jhev.fsf@fleche.redhat.com>	<m3k7813ol7.fsf@lyta.haphazard.org>	<3F6E26D9.2050704@uqam.ca>
	<m3fzip31v7.fsf@lyta.haphazard.org> <3F6E80F8.2030105@uqam.ca>
In-Reply-To: <3F6E80F8.2030105@uqam.ca>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: auto-formatting: no more jalopy
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Sep 2003 05:12:18 -0000

Of course, we should keep around a copy of Jalopy's current CVS, in case 
  it becomes proprietary.  But, as far as I know, SourceForge should 
only be hosting non-proprietary versions, anyway.

Etienne

Etienne Gagnon wrote:
> Hi Brian & all,
> 
> So, given that there seem to be no licensing problem, we should 
> definitely consider using "Jalopy" to indent the Classpath Java source 
> code, and "GNU indent" to indent the C source code.
> 


-- 
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 Sep 22 04:20:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1LvZ-0007rG-01
	for mharc-classpath@gnu.org; Mon, 22 Sep 2003 04:20:13 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1LvW-0007qh-81
	for classpath@gnu.org; Mon, 22 Sep 2003 04:20:10 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1LvT-0007pc-Ti
	for classpath@gnu.org; Mon, 22 Sep 2003 04:20:08 -0400
Received: from [210.55.57.198] (helo=server.flinders.co.nz)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A1LvR-0007oj-OT
	for classpath@gnu.org; Mon, 22 Sep 2003 04:20:06 -0400
Received: from [192.168.0.191] by server.flinders.co.nz (AppleMailServer
	10.2.3.0) id 65896 via TCP with SMTP; Mon, 22 Sep 2003 20:27:49 +1200
Date: Mon, 22 Sep 2003 20:23:14 +1200
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
To: Ralph Loader <suckfish@ihug.co.nz>
From: Bryce McKinlay <bryce@mckinlay.net.nz>
In-Reply-To: <1064135206.31663.4.camel@localhost.localdomain>
Message-Id: <0316AE82-ECD6-11D7-9951-003065F97F7C@mckinlay.net.nz>
Content-Transfer-Encoding: 7bit
X-Mailer: Apple Mail (2.552)
Cc: Classpath List <classpath@gnu.org>, java-patches@gcc.gnu.org
Subject: Re: [patch] pr 12350, java.lang.StringBuffer.substring.
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Sep 2003 08:20:11 -0000

On Sunday, Sep 21, 2003, at 21:06 Pacific/Auckland, Ralph Loader wrote:

> java.lang.StringBuffer.substring is manipulating the shared flag on the
> StringBuffer object incorrectly, PR java/12350.
>
> The following patch fixes the bug and adds a test case.  It passes the
> libjava/testsuite on i686-pc-linux-gnu.

Thanks Ralph.

I am checking in a slightly modified patch to both libgcj and classpath.

Regards

Bryce.


2003-09-21  Ralph Loader  <suckfish@ihug.co.nz>

	PR java/12350:
	* java/lang/StringBuffer.java (substring): fix handling of shared flag.

Index: java/lang/StringBuffer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/StringBuffer.java,v
retrieving revision 1.15
diff -u -r1.15 StringBuffer.java
--- java/lang/StringBuffer.java 24 Mar 2003 00:50:18 -0000      1.15
+++ java/lang/StringBuffer.java 22 Sep 2003 08:10:44 -0000
@@ -564,8 +564,9 @@
        throw new StringIndexOutOfBoundsException();
      if (len == 0)
        return "";
-    // Share the char[] unless 3/4 empty.
-    shared = (len << 2) >= value.length;
+    // Share unless substring is smaller than 1/4 of the buffer.
+    if ((len << 2) >= value.length)
+      shared = true;
      // Package constructor avoids an array copy.
      return new String(value, beginIndex, len, shared);
    }





From MAILER-DAEMON Mon Sep 22 06:10:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1Nec-0006lE-Cf
	for mharc-classpath@gnu.org; Mon, 22 Sep 2003 06:10:50 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1NeU-0006fb-Co
	for classpath@gnu.org; Mon, 22 Sep 2003 06:10:42 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1Ndi-0005qZ-PA
	for classpath@gnu.org; Mon, 22 Sep 2003 06:10:00 -0400
Received: from [146.87.255.104] (helo=pan.salford.ac.uk)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A1Ndg-0005ly-NS
	for classpath@gnu.org; Mon, 22 Sep 2003 06:09:52 -0400
Received: (qmail 11760 invoked by uid 85); 22 Sep 2003 10:09:48 -0000
Received: from ricky_clarkson@yahoo.com by pan.salford.ac.uk by uid 401 with
	qmail-scanner-1.16 
	(uvscan: v4.2.40/v4294. spamassassin: 2.55.  Clear:. 
	Processed in 0.493892 secs); 22 Sep 2003 10:09:48 -0000
X-Qmail-Scanner-Mail-From: ricky_clarkson@yahoo.com via pan.salford.ac.uk
X-Qmail-Scanner: 1.16 (Clear:. Processed in 0.493892 secs)
Received: (ofmipd 146.87.133.141); 22 Sep 2003 10:09:47 -0000
Received: from ricky by debian with local (Exim 3.36 #1 (Debian))
	id 1A1Cuk-0000jc-00
	for <classpath@gnu.org>; Sun, 21 Sep 2003 23:42:46 +0100
Date: 21 Sep 2003 23:42:45 +0100
Message-ID: <20030921224245.GA2823@yahoo.com>
From: "Ricky Clarkson" <ricky_clarkson@yahoo.com>
To: classpath@gnu.org
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="jI8keyz6grp/JLjh"
Content-Disposition: inline
User-Agent: Mutt/1.5.4i
Subject: Classpath java.nio.charset.CharsetDecoder documentation.
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Sep 2003 10:10:45 -0000


--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

Please find attached a patch which is the result of diff -u <original
CharsetDecoder.java> <my CharsetDecoder.java>.

Also please find attached a similar patch for Changelog.

Feedback on this would be welcome, and would mean less time would be
wasted when I get around to CharsetEncoder and others.

Regards,

Ricky.

--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=CharsetDecoder_diff_minus_u

--- classpath-backup/java/nio/charset/CharsetDecoder.java	2003-09-20 11:40:54.000000000 +0100
+++ classpath/java/nio/charset/CharsetDecoder.java	2003-09-21 23:24:47.000000000 +0100
@@ -41,30 +41,198 @@
 import java.nio.CharBuffer;
 
 /**
+ * <code>CharsetDecoder</code> provides facilities to decode a sequence of 
+ * bytes (one or more {@link ByteBuffer}s) that are in a particular
+ * charset into a sequence of standard Java 16-bit Unicode characters (one or 
+ * more {@link CharBuffer}s).
+ * 
+ * <p>The input data are provided in a {@link ByteBuffer} or, by invoking 
+ * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)}
+ * repeatedly and passing a different {@link ByteBuffer} as a parameter each
+ * time, the data can be provided in a sequence of {@link ByteBuffer}s.
+ * 
+ * <p>The output data are written to a {@link CharBuffer} or, by invoking
+ * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)}
+ * repeatedly and altering the {@link CharBuffer} passed as a parameter each
+ * time, the data can be written to a sequence of {@link CharBuffer}s.
+ * 
+ * <p>Methods are normally invoked on a <code>CharsetDecoder</code> in a certain order:
+ *
+ * <p>1.  {@link #reset()} - invoke if the <code>CharsetDecoder</code> has
+ * been used before.
+ *
+ * <p>2.  {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)}
+ * - invoke repeatedly as long as there are {@link ByteBuffer}s to be decoded.
+ *
+ * <p><code>endOfInput</code> should be <code>false</code> until the
+ * current invocation of
+ * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)} is the
+ * last, i.e., pass <code>true</code> <em>only</em> when there are no more
+ * data to decode after the current invocation.
+ *
+ * <p>Each invocation of
+ * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)} decodes
+ * as many bytes as possible, and returns a {@link CoderResult} object to
+ * describe the reason for returning.  The invoker can examine this object to
+ * determine the reason and act accordingly, e.g., by filling the input
+ * {@link ByteBuffer}.
+ * 
+ * <p>3.  {@link #flush(CharBuffer out)} to ensure that the
+ * <code>CharsetDecoder</code> writes all data to the output
+ * {@link CharBuffer}.
+ *
+ * <p>If the input {@link ByteBuffer} does not contain a valid sequence of
+ * bytes for the specified {@link Charset} the input is malformed
+ * ({@link CoderResult#isMalformed()}).
+ *
+ * <p>If the input {@link ByteBuffer} is valid, but there is no equivalent
+ * Unicode character to map part of it to, the input has an unmappable
+ * character ({@link CoderResult#isUnmappable()}).
+ * 
+ * <p>The methods {@link #onMalformedInput(CodingErrorAction newAction)} and
+ * {@link #onUnmappableCharacter(CodingErrorAction newAction)} allow an
+ * action ({@link CodingErrorAction}) to be specified for the respective
+ * decoding errors.
+ *
+ * <p>The actions can be one of:
+ * <ul>
+ * <li>{@link CodingErrorAction#IGNORE} - specifies that the invalid input
+ * is to be ignored and that decoding should continue.</li>
+ * 
+ * <li>{@link CodingErrorAction#REPLACE} - specifies that the invalid
+ * input is to be ignored and that the decoder's replacement value is to be
+ * inserted (This is "\<!-- comment to stop Unicode interpolation -->uFFFD"
+ * unless {@link #replaceWith(String newReplacement)} has been invoked) and
+ * that decoding should continue.</li>
+ *
+ * <li>{@link CodingErrorAction#REPORT} - specifies that the error should
+ * be reported to the invoker of
+ * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)} via a
+ * {@link CoderResult} object, or by throwing a
+ * {@link CharacterCodingException}</li>
+ * </ul>
+ *
+ * <p>To implement a decoder for a specific charset, create a subclass of
+ * this class and implement the protected abstract method
+ * {@link #decodeLoop(ByteBuffer in, CharBuffer out)}.
+ * 
+ * <p>To ensure that any internal state in a subclass is cleared correctly, 
+ * also override {@link #flush(CharBuffer out)} and {@link #reset()}, but make
+ * sure that you invoke <code>super.flush(out)</code> and
+ * <code>super.reset()</code> in their respective methods.
+ * 
+ * Instances of this class are NOT threadsafe.
+ * 
  * @author Jesse Rosenstock
+ * @author Ricky Clarkson <ricky_clarkson@yahoo.com>
  * @since 1.4
  */
 public abstract class CharsetDecoder
 {
+  /**
+   * Flag meaning that the <code>CharsetDecoder</code> has been reset.
+   * 
+   * <p>See {@link #state}.
+   */
   private static final int STATE_RESET   = 0;
+
+  /**
+   * Flag meaning that the <code>CharsetDecoder</code> is currently decoding
+   * data.
+   * 
+   * <p>See {@link #state}.
+   */
   private static final int STATE_CODING  = 1;
+
+  /**
+   * Flag meaning that the <code>CharsetDecoder</code> has finished decoding
+   * data.
+   * 
+   * <p>See {@link #state}.
+   */
   private static final int STATE_END     = 2;
+
+  /**
+   * Flag meaning that the <code>CharsetDecoder</code> has been flushed.
+   * 
+   * <p>See {@link #state}.
+   */
   private static final int STATE_FLUSHED = 3;
 
+  /**
+   * The default value for {@link #replacement} before {link #replaceWith}
+   * is invoked. 
+   */
   private static final String DEFAULT_REPLACEMENT = "\uFFFD";
 
+  /**
+   * The {@link Charset} that instantiated this <code>CharsetDecoder</code>.
+   */
   private final Charset charset;
+
+  /**
+   * The expected average number of characters output per byte input.
+   * 
+   * <p>For example, if 3 bytes correspond to 1 character, this value will be
+   * equal to 1.0f/3.
+   */
   private final float averageCharsPerByte;
+
+  /**
+   * The maximum number of characters output per byte.
+   * 
+   * <p>For example, if between 2 and 5 bytes correspond to 1 character, this
+   * value will be 0.5f
+   */
   private final float maxCharsPerByte;
+
+  /**
+   * The {@link String} that will be inserted if a sequence of bytes is
+   * <em>unmappable</em> (see {@link CoderResult#isUnmappable()}).
+   * Set during construction and also by {@link #replaceWith()}.
+   */
+  //Is there any reason that this cannot be set to DEFAULT_REPLACEMENT
+  //here, and maybe DEFAULT_REPLACEMENT removed?
+  //Maybe removing DEFAULT_REPLACEMENT would cause Serialization problems.
   private String replacement;
 
+  /**
+   * The current state of the decoder.  One of:
+   * <ul>
+   * 	<li>{@link #STATE_RESET}</li>
+   * 	<li>{@link #STATE_CODING}</li>
+   * 	<li>{@link #STATE_END}</li>
+   * 	<li>{@link #STATE_FLUSHED}</li>
+   * </ul>
+   * At initialization time it is set to {@link #STATE_RESET}.
+   */
   private int state = STATE_RESET;
 
+  /**
+   * The action to be taken when malformed input is received.
+   * At initialization time it is set to
+   * {@link CodingErrorAction#REPORT}, i.e., so that the user of the class is
+   * informed about any malformed input.
+   */
   private CodingErrorAction malformedInputAction
     = CodingErrorAction.REPORT;
+
+  /**
+   * The action to be taken when a character that cannot be mapped to Unicode.
+   * At initialization time it is set to
+   * {@link CodingErrorAction#REPORT}, i.e., so that the user of the class is
+   * informed about any unmapped characaters.
+   */
   private CodingErrorAction unmappableCharacterAction
     = CodingErrorAction.REPORT;
 
+  /**
+   * Real implementation of constructor (the other constructor just invokes
+   * this one).
+   *
+   * The main docs are in the other constructor though, because it will appear
+   * in most Javadocs.
+   */
   private CharsetDecoder (Charset cs, float averageCharsPerByte,
                           float maxCharsPerByte, String replacement)
   {
@@ -82,22 +250,108 @@
     implReplaceWith (replacement);
   }
 
+  /**
+   * Constructs a <code>CharsetDecoder</code> for the specified
+   * {@link Charset}.
+   *
+   * <p>This is normally only invoked via {@link Charset#newDecoder()}.
+   * 
+   * <p>The method {@link #averageCharsPerByte()} will return the value
+   * passed as the parameter <code>averageCharsPerByte</code>.
+   *
+   * <p>The method {@link #maxCharsPerByte()} will return the value
+   * passed as the parameter <code>maxCharsPerByte</code>.
+   *
+   * <p>The replacement {@link String} will be set to
+   * "\<!-- comment just to prevent conversion to Unicode -->uFFFD".
+   * See {@link #replacement()}.
+   * 
+   * @param cs the {@link Charset} that instantiated this
+   * <code>CharsetDecoder</code>.
+   *
+   * @param averageCharsPerByte a positive value describing the expected
+   * average number of characters of output per byte of input.
+   *
+   * @param maxCharsPerByte a positive value describing the maximum
+   * number of characters of output per byte of input.
+   *
+   * @throws IllegalArgumentException if <code>averageCharsPerByte</code>
+   * or <code>maxCharsPerByte</code> are less than or equal to 0.
+   */
   protected CharsetDecoder (Charset cs, float averageCharsPerByte,
                             float maxCharsPerByte)
   {
     this (cs, averageCharsPerByte, maxCharsPerByte, DEFAULT_REPLACEMENT);
   }
 
+  /**
+   * Returns the average number of characters output per byte of input.
+   *
+   * <p>For example, if 3 bytes correspond to 1 character, this value will be
+   * equal to 1.0f/3.
+   *
+   * @return the average number of characters output per byte of input.
+   */
   public final float averageCharsPerByte ()
   {
     return averageCharsPerByte;
   }
 
+  /**
+   * Returns the {@link Charset} that instantiated this
+   * <code>CharsetDecoder</code>.
+   *
+   * @return the {@link Charset} that instantiated this
+   * <code>CharsetDecoder</code>.
+   */
   public final Charset charset ()
   {
     return charset;
   }
 
+  /**
+   * Decodes the input {@link ByteBuffer}, allocates a {@link CharBuffer}
+   * for output and places the decoded characters in the output
+   * {@link CharBuffer}.
+   *
+   * <p>This method probably should reset the <code>CharsetDecoder</code>, but
+   * instead throws an {@link IllegalStateException} if the
+   * <code>CharsetDecoder</code> has not already been reset. Sun's
+   * documentation conflicts with itself here, so it would be useful to run
+   * a test to find out what Sun's actual behavior is.
+   *
+   * <p>It then allocates a {@link CharBuffer} and populates it with decoded
+   * data, and invokes {@link #flush(CharBuffer out)}.
+   * 
+   * <p>This method should not be invoked between any invocations of
+   * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)} and
+   * {@link #reset()}, and after use {@link #reset()} should be invoked on it
+   * before invoking
+   * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)}.
+   * 
+   * <p>The current algorithm for this uses the value that
+   * {@link #maxCharsPerByte()} returns to allocate storage, so it is not 
+   * optimal in memory usage.
+   *
+   * @param in the input {@link ByteBuffer}.
+   * @return the new and populated {@link CharBuffer}, which is at position 0
+   * and is limited to the size of the data.
+   *
+   * @throws IllegalStateException if the <code>CharsetDecoder</code> has not
+   * been {@link #reset()}.
+   * 
+   * @throws MalformedInputException if the input is not valid for the
+   * {@link Charset} and the malformed input action is
+   * {@link CodingErrorAction#REPORT}.
+   * 
+   * @throws UnmappableCharacterException if the input contains a character
+   * for which there is no known mapping to Unicode and the unmappable
+   * character action is set to {@link CodingErrorAction#REPORT}.
+   *
+   * @throws CharacterCodingException because
+   * {@link CoderResult#throwException()} is declared to throw this kind of
+   * exception.
+   */
   public final CharBuffer decode (ByteBuffer in)
     throws CharacterCodingException
   {
@@ -133,6 +387,52 @@
     return out;
   }
 
+  /**
+   * Decodes the data passed in the input {@link ByteBuffer}
+   * and places the decoded characters in the output {@link CharBuffer}.
+   *
+   * <p>Make sure that <code>endOfInput</code> is true if and only if this
+   * invocation is the last invocation in this sequence of calls to
+   * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)}.
+   *
+   * <p>Both buffers are used starting at their current positions, i.e.,
+   * <code>rewind()</code> is NOT invoked on either.
+   *
+   * <p>This method will modify the current position, but will not affect the
+   * marks and limits.
+   *
+   * <p>Returns one of the following:
+   * <ul>
+   *   <li>
+   *     {@link CoderResult#UNDERFLOW} - this means that the input buffer is
+   *     exhausted, which indicates either that the <code>CharsetDecoder</code>
+   *     is ready for more input, or that the decoding has finished, depending
+   *     on whether the invoker has more data.
+   *   </li>
+   *   <li>
+   *     {@link CoderResult#OVERFLOW} - this means that the output
+   *     {@link CharBuffer} is exhausted and that the method should be invoked
+   *     again, but with a {@link CharBuffer} that is not full.
+   *   </li>
+   * </ul>
+   *
+   * @param in a buffer holding the sequence of bytes to decode.
+   * @param out a buffer to hold the sequence of decoded characters.
+   * 
+   * @param endOfInput a flag to describe whether the contents of
+   * <code>in</code> are the last data to be passed to this method.
+   *
+   * @return a {@link CoderResult} describing why the method returns.
+   *
+   * @throws IllegalStateException if the most recent method invocation
+   * (other than accessors and mutators) was not one of
+   * {@link #reset()} or
+   * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)} where
+   * <code>endOfInput</code> is <code>true</code>.
+   *
+   * @throws CoderMalfunctionError if {@link #decodeLoop} throws a non-checked
+   * exception.
+   */
   public final CoderResult decode (ByteBuffer in, CharBuffer out,
                                    boolean endOfInput)
   {
@@ -188,13 +488,72 @@
       }
   }
 
+  /**
+   * Decodes the bytes in the input {@link ByteBuffer} and puts the
+   * resulting characters in the output {@link CharBuffer}.
+   *
+   * <p>The buffers are not rewound (<code>rewind()</code> is not invoked on
+   * either), and the marks and limits are not set.  The positions will be
+   * modified.
+   *
+   * <p>Returns the same values as
+   * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)}.
+   *
+   * @param in a buffer holding the data to be decoded.
+   * @param out a buffer to hold the decoded data (characters).
+   * @return a {@link CoderResult} instance describing the reason for
+   * returning.
+   */
   protected abstract CoderResult decodeLoop (ByteBuffer in, CharBuffer out);
 
+  /**
+   * If a subclass is capable of detecting the {@link Charset} based on input
+   * data, it should override this.
+   *
+   * @return the detected {@link Charset}.
+   *
+   * @throws UnsupportedOperationException if detecting the {@link Charset}
+   * based on input data is not supported (this is the default).
+   *
+   * @throws IllegalStateException if not enough data have been processed yet
+   * to detect the {@link Charset}.
+   */
   public Charset detectedCharset ()
   {
     throw new UnsupportedOperationException ();
   }
-    
+  
+  /**
+   * Empties all buffers.
+   *
+   * <p>Some subclasses may need to be notified when decoding has finished,
+   * so that they can do some cleanup, such as releasing resources, or
+   * appending some characters to the end of the output.  This method does
+   * some housekeeping of its own, then invokes implFlush, which a subclass may
+   * override to do this cleanup.
+   *
+   * <p>The method returns one of two values:
+   * <ul>
+   *   <li>{@link CoderResult#UNDERFLOW} - this indicates success, i.e., that
+   *     the input (extra characters to be appended) is exhausted.
+   *   </li>
+   *   <li>{@link CoderResult#OVERFLOW} - this indicates failure, i.e., that
+   *     the output {@link CharBuffer} is exhausted before the input is
+   *     exhausted. If this happens, invoke {@link #flush} again with a
+   *     {@link CharBuffer} that isn't exhausted.
+   *   </li>
+   * </ul>
+   *
+   * <p>Note that this method can be invoked directly after {@link #reset}
+   * without
+   * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)}
+   * being invoked, so a subclass should probably check to see whether decode
+   * has been invoked, to decide what output to write.
+   *
+   * @param out the {@link CharBuffer} to write to.
+   * @return a {@link CoderResult} instance describing the success or failure
+   * state of the method.
+   */
   public final CoderResult flush (CharBuffer out)
   {
     // It seems weird that you can flush after reset, but Sun's javadoc
@@ -214,11 +573,34 @@
     return implFlush (out);
   }
 
+  /**
+   * Does any cleanup that subclasses need to do.
+   *
+   * <p>This method is intended to be subclassed to do any cleanup.
+   *
+   * See {@link #flush(CharBuffer out)}.
+   *
+   * @param out the {@link CharBuffer} to write to.
+   * @return a {@link CoderResult} instance describing whether the method
+   * succeeded or failed.
+   */
   protected CoderResult implFlush (CharBuffer out)
   {
     return CoderResult.UNDERFLOW;
   }
 
+  /**
+   * Sets the action to be taken when invalid input is received.
+   *
+   * <p>For details of the available actions, see {@link CodingErrorAction}.
+   * 
+   * @param newAction the action to be taken when invalid input is received.
+   * 
+   * @return the <code>CharsetDecoder</code> that this method was invoked on.
+   * 
+   * @throws IllegalArgumentException if <code>newAction</code> is
+   * <code>null</code>.
+   */
   public final CharsetDecoder onMalformedInput (CodingErrorAction newAction)
   {
     if (newAction == null)
@@ -229,46 +611,140 @@
     return this;
   }
 
+  /**
+   * Notifies a subclass when the invoker has changed the action to be taken
+   * when malformed input is received.
+   *
+   * <p>The default implementation does nothing; it is just intended to be
+   * overridden if required.
+   * 
+   * <p>This method is invoked by {@link #onMalformedInput}.
+   *
+   * @param newAction the action to be taken when malformed input is received.
+   */
   protected void implOnMalformedInput (CodingErrorAction newAction)
   {
     // default implementation does nothing
   }
 
+  /**
+   * Notifies a subclass when the invoker has changed the action to be taken
+   * when a sequence of bytes cannot be mapped to a Unicode character.
+   *
+   * <p>The default implementation does nothing; it is just intended to be
+   * overridden if required.
+   *
+   * <p>This method is invoked by {@link #onUnmappableCharacter}.
+   * 
+   * @param newAction the action to be taken when a sequence of bytes is
+   * received that cannot be mapped to a Unicode character.
+   */
   protected void implOnUnmappableCharacter (CodingErrorAction newAction)
   {
     // default implementation does nothing
   }
 
+  /**
+   * Notifies a subclass when the invoker has changed the replacement
+   * {@link String} (the sequence of characters to be output when a
+   * character is encountered that cannot be mapped to Unicode in the current
+   * {@link Charset}).
+   *
+   * <p>The default implementation does nothing; it is just intended to be 
+   * overridden if required.
+   *
+   * <p>This method is invoked by {@link #replaceWith}.
+   *
+   * @param newReplacement the new replacement String.
+   */
   protected void implReplaceWith (String newReplacement)
   {
     // default implementation does nothing
   }
 
+  /**
+   * Notifies a subclass when the invoker has invoked {@link #reset()}.
+   *
+   * <p>The default implementation does nothing; it is just intended to be
+   * overridden if required.
+   *
+   * <p>This method is invoked by {@link #reset()}.
+   */
   protected void implReset ()
   {
     // default implementation does nothing
   }
 
+  /**
+   * Determines whether this <code>CharsetDecoder</code> can work out how to
+   * decode data based on the actual data, i.e., whether it can auto-detect
+   * the charset.
+   *
+   * <p>The default implementation always returns true; subclasses should
+   * override it if they implement auto-detection.
+   * 
+   * @return <code>true</code> if this <code>CharsetDecoder</code> is
+   * auto-detecting, <code>false</code> otherwise.
+   */
   public boolean isAutoDetecting ()
   {
     return false;
   }
 
+  /**
+   * Determines whether or not an auto-detecting <code>CharsetDecoder</code>
+   * has yet detected the {@link Charset} of the data.
+   *
+   * @return <code>true</code> if the auto-detecting
+   * <code>CharsetDecoder</code> has detected the {@link Charset} of the
+   * data, <code>false</code> otherwise.  Note that a <code>false</code> value
+   * does not indicate that bytes have not been decoded, just that the
+   * <code>CharsetDecoder</code> has not detected the {@link Charset} of
+   * the data.
+   *
+   * @throws UnsupportedOperationException if the <code>CharsetDecoder</code>
+   * does not support auto-detection (this is the default).
+   */
   public boolean isCharsetDetected ()
   {
     throw new UnsupportedOperationException ();
   }
 
+  /**
+   * Returns the action to be taken when invalid data is received.
+   *
+   * @return the action to be taken when invalid data is received.
+   */
   public CodingErrorAction malformedInputAction ()
   {
     return malformedInputAction;
   }
 
+  /**
+   * Returns the maximum number of characters output per byte of input.
+   *
+   * <p>For example, if a character of output needs between 2 and 5 bytes,
+   * then this value will be 0.5f.
+   *
+   * @return the maximum number of characters output per byte of input.
+   */
   public final float maxCharsPerByte ()
   {
     return maxCharsPerByte;
   }
 
+  /**
+   * Changes the action to be taken when a character is received that does not
+   * map into Unicode in this {@link Charset}.
+   *
+   * @param newAction the action to be taken when a character is received that
+   * does not map into Unicode in this {@link Charset}.
+   *
+   * @return the <code>CharsetDecoder</code> that this method was invoked on,
+   * for convenience.
+   *
+   * @throws IllegalArgumentException if <code>newAction</code> is null.
+   */
   public final CharsetDecoder onUnmappableCharacter
     (CodingErrorAction newAction)
   {
@@ -280,11 +756,33 @@
     return this;
   }
 
+  /**
+   * Returns the sequence of characters used to replace a character that
+   * cannot be mapped to Unicode.
+   * 
+   * <p>The {@link String} returned always has some content, i.e., it is
+   * never <code>null</code> and it is never empty.
+   *
+   * @return the sequence of characters used to replace a character that
+   * cannot be mapped to Unicode.
+   */
   public final String replacement ()
   {
     return replacement;
   }
 
+  /**
+   * Changes the sequence of characters used to replace a character that
+   * cannot be mapped to Unicode.
+   *
+   * @param newReplacement the new sequence of characters to be used to
+   * replace characters that cannot be mapped to Unicode.
+   *
+   * @return the <code>CharsetDecoder</code> that this method was invoked on.
+   *
+   * @throws IllegalArgumentException if <code>newReplacement</code> is
+   * <code>null</code> or empty (a length of 0).
+   */
   public final CharsetDecoder replaceWith (String newReplacement)
   {
     if (newReplacement == null)
@@ -298,6 +796,15 @@
     return this;
   }
 
+  /**
+   * Resets this <code>CharsetDecoder</code>, ready for
+   * {@link #decode(ByteBuffer in, CharBuffer out, boolean endOfInput)}.
+   *
+   * <p>Invokes {@link #implReset} to ensure that any reset actions in the
+   * subclass are performed.
+   *
+   * @return the <code>CharsetDecoder</code> that this method was invoked on.
+   */
   public final CharsetDecoder reset ()
   {
     state = STATE_RESET;
@@ -305,6 +812,13 @@
     return this;
   }
 
+  /**
+   * Returns the action to be taken when a character is received that cannot
+   * be represented in Unicode.
+   *
+   * @return the action to be taken when a character is received that cannot
+   * be represented in Unicode.
+   */
   public CodingErrorAction unmappableCharacterAction ()
   {
     return unmappableCharacterAction;

--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=Changelog_diff_minus_u

--- classpath-backup/ChangeLog	2003-09-20 11:40:43.000000000 +0100
+++ classpath/ChangeLog	2003-09-21 23:37:08.000000000 +0100
@@ -1,3 +1,7 @@
+2003-09-23  Ricky Clarkson  <ricky_clarkson@yahoo.com>
+
+	* java/nio/charset/CharsetDecoder.java: Added documentation.
+
 2003-09-19  Michael Koch  <konqueror@gmx.de>
 
 	* java/net/DatagramSocket.java

--jI8keyz6grp/JLjh--



From MAILER-DAEMON Mon Sep 22 09:45:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1QvJ-0002DB-O3
	for mharc-classpath@gnu.org; Mon, 22 Sep 2003 09:40:17 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1QOH-0004Ub-1A
	for classpath@gnu.org; Mon, 22 Sep 2003 09:06:09 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1QMv-0004FR-J2
	for classpath@gnu.org; Mon, 22 Sep 2003 09:04:49 -0400
Received: from [24.93.67.84] (helo=ms-smtp-03.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1QD6-0002kQ-D1
	for classpath@gnu.org; Mon, 22 Sep 2003 08:54:36 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-03.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8MCqD4R015251
	for <classpath@gnu.org>; Mon, 22 Sep 2003 08:52:13 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id B3C46BE641; Mon, 22 Sep 2003 08:53:34 -0400 (EDT)
Sender: cbj@haphazard.org
To: GNU Classpath <classpath@gnu.org>
From: Brian Jones <cbj@gnu.org>
Date: 22 Sep 2003 08:53:34 -0400
Message-ID: <m3brtd2ddd.fsf@lyta.haphazard.org>
Lines: 330
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Subject: Fwd: Classpath docs/hacking.texinfo minor corrections.
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Sep 2003 13:40:15 -0000

--=-=-=

Another patch from Ricky.

Brian


--=-=-=
Content-Type: message/rfc822
Content-Disposition: inline

X-From-Line: ricky_clarkson@yahoo.com  Wed Sep 17 10:35:04 2003
Return-Path: <ricky_clarkson@yahoo.com>
Delivered-To: cbj@localhost.haphazard.org
Received: from localhost (localhost [127.0.0.1])
	by lyta.haphazard.org (Postfix) with ESMTP id 427B1BE641
	for <cbj@localhost>; Wed, 17 Sep 2003 10:35:04 -0400 (EDT)
Received: from pop-server.nc.rr.com [24.25.4.168]
	by localhost with POP3 (fetchmail-5.9.0)
	for cbj@localhost (single-drop); Wed, 17 Sep 2003 10:35:04 -0400 (EDT)
Received: from ms-mta-01-eri0 (ms-mta-01-qfe1 [10.10.5.70])
	by ms-mss-01.southeast.rr.com
	(iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003))
	with ESMTP id <0HLD00M1W4M5EX@ms-mss-01.southeast.rr.com> for
	cbj%nc.rr.com@ims-ms-daemon; Wed, 17 Sep 2003 10:37:26 -0400 (EDT)
Received: from ncmx03.mgw.rr.com (ncmx03.mgw.rr.com [24.25.4.97])
	by ms-mta-01.southeast.rr.com
	(iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003))
	with ESMTP id <0HLD00LCE4M7Q2@ms-mta-01.southeast.rr.com> for
	cbj@nc.rr.com
	(ORCPT cbj@nc.rr.com); Wed, 17 Sep 2003 10:37:19 -0400 (EDT)
Received: from fencepost.gnu.org (fencepost.gnu.org [199.232.76.164])
	by ncmx03.mgw.rr.com (8.12.8p1/8.12.8) with ESMTP id h8HEbF0W002254	for
	<cbj@nc.rr.com>; Wed, 17 Sep 2003 10:37:16 -0400 (EDT)
Received: from monty-python.gnu.org ([199.232.76.173])
	by fencepost.gnu.org with esmtp (Exim 4.20)
	id 19zdKb-0001ge-3h	for cbj@gnu.org; Wed, 17 Sep 2003 10:30:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 19zdLF-0005Xy-1q	for cbj@gnu.org; Wed, 17 Sep 2003 10:31:38 -0400
Received: from [146.87.255.104] (helo=pan.salford.ac.uk)
	by monty-python.gnu.org with smtp (Exim 4.22)
	id 19zcmx-0006NC-FT	for cbj@gnu.org; Wed, 17 Sep 2003 09:56:11 -0400
Received: (qmail 60285 invoked by uid 85); Wed, 17 Sep 2003 13:54:49 +0000
Received: from ricky_clarkson@yahoo.com by pan.salford.ac.uk by uid 401 with
	qmail-scanner-1.16
	(uvscan: v4.2.40/v4292. spamassassin: 2.55. Clear:. Processed in
	1.095647 secs); Wed, 17 Sep 2003 13:54:49 +0000
Received: (ofmipd 146.87.133.141); Wed, 17 Sep 2003 13:54:47 +0000
Received: from ricky by debian with local (Exim 3.36 #1 (Debian))
	id 19zJto-0000Dj-00	for <cbj@gnu.org>; Tue, 16 Sep 2003 18:46:00 +0100
Date: Tue, 16 Sep 2003 18:46:00 +0100
From: Ricky Clarkson <ricky_clarkson@yahoo.com>
Subject: Classpath docs/hacking.texinfo minor corrections.
To: cbj@gnu.org
Message-id: <20030916174600.GA841@yahoo.com>
Content-disposition: inline
User-Agent: Mutt/1.5.4i
X-Qmail-Scanner-Mail-From: ricky_clarkson@yahoo.com via pan.salford.ac.uk
X-Qmail-Scanner: 1.16 (Clear:. Processed in 1.095647 secs)
X-Spam-Status: No,
	hits=-1.1 required=5.0	tests=DATE_IN_PAST_12_24, FORGED_YAHOO_RCVD,
	PATCH_UNIFIED_DIFF, 
	QUOTED_EMAIL_TEXT,USER_AGENT_MUTT	version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
X-Virus-Scanned: Symantec AntiVirus Scan Engine
Original-recipient: rfc822;cbj@nc.rr.com
Lines: 277
Xref: lyta.haphazard.org mail.misc:18816
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===-=-="

--===-=-=
Content-Disposition: inline

Hi,

I was reading through the hacking.texinfo file and found a few odd uses
of English, and parts that didn't make sense.

I altered these, but I suggest that someone look through my
modifications to make sure I didn't lose any of the original meaning.

Please find attached the file 'diff', obtained by diff <original
hacking.texinfo> <my hacking.texinfo> and the filee 'diff_minus_u',
obtained by diff -u <original hacking.texinfo> <my hacking.texinfo>, and
also please let me know which of these two diff formats you or the
project as a whole would find most useful.

Regards,

Ricky.

--===-=-=
Content-Disposition: attachment; filename=diff

84c84
< * Decimal/Currency Formatting and Parsing::  Local specific number handling
---
> * Decimal/Currency Formatting and Parsing::  Locale specific number handling
93c93
< The Classpath Project is a dedicated to providing a 100% free, clean
---
> The Classpath Project is dedicated to providing a 100% free, clean
183c183
< of protocol handlers for different types of URL's.  Not all of these
---
> of protocol handlers for different types of URLs.  Not all of these
235,236c235,236
< Eventually we hope the Classpath will support all JVM's that provide JNI
< or CNI support.  However, the top priority is free JVM's.  A small, and
---
> Eventually we hope the Classpath will support all JVMs that provide JNI
> or CNI support.  However, the top priority is free JVMs.  A small, and
555c555
< Serialzation compatibility can be tested using tools provided with
---
> Serialization compatibility can be tested using tools provided with
734,735c734,735
< translaters that perform the actual conversion.  There are two types of
< converters, encoders and decoders.  Encoders are subclasses of
---
> translators that perform the actual conversion.  There are two types of
> converters; encoders and decoders.  Encoders are subclasses of
768c768
< property exists.  The value of that property is assumed to be the
---
> property exists, then the value of that property is assumed to be the
783c783
< used if we were looking for an encoder).  Then name name of the translator
---
> used if we were looking for an encoder).  Then the name of the translator
787c787
< @code{UnsupportedEncodingException}.
---
> @code{UnsupportedEncodingException} is thrown.
800c800
< implement all of the necessary methods.  All that is necessary to
---
> implement all of the necessary methods, and provide all that is necessary to
833c833
< * Decimal/Currency Formatting and Parsing::  Local specific number handling
---
> * Decimal/Currency Formatting and Parsing::  Locale specific number handling
856c856
< should name should have the name name as the variable.  Also, the value
---
> should have the same name as the variable.  Also, the value
858c858
< as the option name (unless a simple scalar value is used).  Here is an
---
> as the option (unless a simple scalar value is used).  Here is an
897c897
< and has a value that is a @code{Boolean} object wrappering the
---
> and has a value that is a @code{Boolean} object wrapping the
938c938
< @item BreakIterator - A @code{Boolean} wrappering @code{true} to indicate
---
> @item BreakIterator - A @code{Boolean} wrapping @code{true} to indicate
956c956
< io what the actual values should be):
---
> of what the actual values should be):
959c959
< @item DateFormatSymbols - A @code{Boolean} wrappering @code{true} to indicate
---
> @item DateFormatSymbols - A @code{Boolean} wrapping @code{true} to indicate
1009c1009
< @item DecimalFormatSymbols - A @code{Boolean} wrappering @code{true} to 
---
> @item DecimalFormatSymbols - A @code{Boolean} wrapping @code{true} to 
1037c1037
< be wrappered in a @code{String} at character position 0, not in a
---
> be wrapped in a @code{String} at character position 0, not in a

--===-=-=
Content-Disposition: attachment; filename=diff_minus_u

--- classpath/doc/hacking.texinfo	2003-02-02 06:07:21.000000000 +0000
+++ hacking.texinfo	2003-09-14 22:16:44.000000000 +0100
@@ -81,7 +81,7 @@
 * String Collation::            Sorting strings in different locales
 * Break Iteration::             Breaking up text into words, sentences, and lines
 * Date Formatting and Parsing::  Locale specific date handling
-* Decimal/Currency Formatting and Parsing::  Local specific number handling
+* Decimal/Currency Formatting and Parsing::  Locale specific number handling
 
 @end detailmenu
 @end menu
@@ -90,7 +90,7 @@
 @comment node-name, next, previous, up
 @chapter Introduction
 
-The Classpath Project is a dedicated to providing a 100% free, clean
+The Classpath Project is dedicated to providing a 100% free, clean
 room implementation of the standard Java class libraries which offer
 free software developers an alternative to Sun's proprietary
 libraries.  The Classpath Project was started in the Spring of 1998 as
@@ -180,7 +180,7 @@
 Without those classes, the public socket interface is useless.  But do
 not feel obligated to completely replace all of Sun's functionality at
 once.  For example, in the java.net package, there are different types
-of protocol handlers for different types of URL's.  Not all of these
+of protocol handlers for different types of URLs.  Not all of these
 need to be written at once.
 
 @item
@@ -232,8 +232,8 @@
 can shift depending on whether or not there is a volunteer to port
 Classpath to those platforms and to test releases.
 
-Eventually we hope the Classpath will support all JVM's that provide JNI
-or CNI support.  However, the top priority is free JVM's.  A small, and
+Eventually we hope the Classpath will support all JVMs that provide JNI
+or CNI support.  However, the top priority is free JVMs.  A small, and
 probably incomplete list is below.
 
 @enumerate
@@ -552,7 +552,7 @@
 have a .class file, its serial # is unique, and the computation will
 give the same result no matter what platform you execute on.
 
-Serialzation compatibility can be tested using tools provided with
+Serialization compatibility can be tested using tools provided with
 @uref{http://rainbow.netreach.net/~sballard/japi/,Japitools}.  These
 tools can test binary serialization compatibility and also provide
 information about unknown serialized formats by writing these in XML
@@ -731,8 +731,8 @@
 
 In Classpath, @code{InputStreamReader} and @code{OutputStreamWriter}
 rely on an internal class called @code{gnu.java.io.EncodingManager} to load
-translaters that perform the actual conversion.  There are two types of
-converters, encoders and decoders.  Encoders are subclasses of
+translators that perform the actual conversion.  There are two types of
+converters; encoders and decoders.  Encoders are subclasses of
 @code{gnu.java.io.encoder.Encoder}.  This type of converter takes a Java
 (Unicode) character stream or buffer and converts it to bytes using
 a specified encoding scheme.  Decoders are a subclass of 
@@ -765,7 +765,7 @@
 ''8859_1'' or ''ISO-8859-1''.  @code{EncodingManager} searches for 
 aliases by looking for the existence of a system property called
 @code{gnu.java.io.encoding_scheme_alias.<encoding name>}.  If such a
-property exists.  The value of that property is assumed to be the
+property exists, then the value of that property is assumed to be the
 canonical name of the encoding scheme, and a translator with that name is 
 looked up instead of one with the original name.
 
@@ -780,11 +780,11 @@
 searches the translator path, which is this example consists only of
 the default @code{gnu.java.io}.  The ''decoder'' package name is 
 appended since we are looking for a decoder.  (''encoder'' would be 
-used if we were looking for an encoder).  Then name name of the translator
+used if we were looking for an encoder).  Then the name of the translator
 is appended.  So @code{EncodingManager} attempts to load a translator
 class called @code{gnu.java.io.decoder.UTF8}.  If that class is found,
 an instance of it is returned.  If it is not found, a
-@code{UnsupportedEncodingException}.
+@code{UnsupportedEncodingException} is thrown.
 
 To write a new translator, it is only necessary to subclass 
 @code{Encoder} and/or @code{Decoder}.  Only a handful of abstract
@@ -797,7 +797,7 @@
 Writing a translator for these encodings is very easy.  There are 
 abstract translator classes @code{gnu.java.io.decode.DecoderEightBitLookup}
 and @code{gnu.java.io.encode.EncoderEightBitLookup}.  These classes
-implement all of the necessary methods.  All that is necessary to
+implement all of the necessary methods, and provide all that is necessary to
 create a lookup table array that maps bytes to Unicode characters and
 set the class variable @code{lookup_table} equal to it in a static
 initializer.  Also, a single constructor that takes an appropriate
@@ -830,7 +830,7 @@
 * String Collation::            Sorting strings in different locales
 * Break Iteration::             Breaking up text into words, sentences, and lines
 * Date Formatting and Parsing::  Locale specific date handling
-* Decimal/Currency Formatting and Parsing::  Local specific number handling
+* Decimal/Currency Formatting and Parsing::  Locale specific number handling
 @end menu
 
 In Classpath, all locale specific data is stored in a 
@@ -853,9 +853,9 @@
 
 As a standard, each option should be assigned a name that is a string.
 If the value is stored in a class or instance variable, then the option
-should name should have the name name as the variable.  Also, the value
+should have the same name as the variable.  Also, the value
 associated with each option should be a Java object with the same name
-as the option name (unless a simple scalar value is used).  Here is an
+as the option (unless a simple scalar value is used).  Here is an
 example:
 
 A class loads a value for the @code{format_string} variable from the
@@ -894,7 +894,7 @@
 of the specified entries for that area must be supplied.  In order to
 determine which functional areas are supported, there is a special key
 that is queried by the affected class or classes.  If this key exists, 
-and has a value that is a @code{Boolean} object wrappering the
+and has a value that is a @code{Boolean} object wrapping the
 @code{true} value, then full support is assumed.  Otherwise it is
 assumed that no support exists for this functional area.  Every class
 using resources for configuration must use this scheme and define a special
@@ -935,7 +935,7 @@
 and lines.  It is configured with the following resource bundle entries:
 
 @itemize @bullet
-@item BreakIterator - A @code{Boolean} wrappering @code{true} to indicate
+@item BreakIterator - A @code{Boolean} wrapping @code{true} to indicate
 that this functional area is supported.
 @item word_breaks - A @code{String} array of word break character sequences.
 @item sentence_breaks - A @code{String} array of sentence break character
@@ -953,10 +953,10 @@
 class.  That class simply reads properties from our locale specific
 resource bundle.  The following items are requiered (refer to the 
 documentation of the @code{java.text.DateFormatSymbols} class for details
-io what the actual values should be):
+of what the actual values should be):
 
 @itemize @bullet
-@item DateFormatSymbols - A @code{Boolean} wrappering @code{true} to indicate
+@item DateFormatSymbols - A @code{Boolean} wrapping @code{true} to indicate
 that this functional area is supported.
 @item months - A @code{String} array of month names.
 @item shortMonths - A @code{String} array of abbreviated month names.
@@ -1006,7 +1006,7 @@
 values for a locale from the resource bundle.  The required entries are:
 
 @itemize @bullet
-@item DecimalFormatSymbols - A @code{Boolean} wrappering @code{true} to 
+@item DecimalFormatSymbols - A @code{Boolean} wrapping @code{true} to 
 indicate that this functional area is supported.
 @item currencySymbol - The string representing the local currency.
 @item intlCurrencySymbol - The string representing the local currency in an
@@ -1034,7 +1034,7 @@
 @end itemize
 
 Note that several of these values are an individual character.  These should
-be wrappered in a @code{String} at character position 0, not in a
+be wrapped in a @code{String} at character position 0, not in a
 @code{Character} object.
 
 @bye

--===-=-=--

--=-=-=



-- 
Brian Jones <cbj@gnu.org>

--=-=-=--



From MAILER-DAEMON Mon Sep 22 12:56:00 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1Tyh-0007vN-UX
	for mharc-classpath@gnu.org; Mon, 22 Sep 2003 12:55:59 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1Tyf-0007v8-KY
	for classpath@gnu.org; Mon, 22 Sep 2003 12:55:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1Tyc-0007un-4a
	for classpath@gnu.org; Mon, 22 Sep 2003 12:55:56 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1Tyb-0007t5-H3
	for classpath@gnu.org; Mon, 22 Sep 2003 12:55:53 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id KAA26627;
	Mon, 22 Sep 2003 10:55:43 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id BA18E4F8320; Mon, 22 Sep 2003 10:47:55 -0600 (MDT)
To: Etienne Gagnon <etienne.gagnon@uqam.ca>
References: <874qz7jhev.fsf@fleche.redhat.com>
	<m3k7813ol7.fsf@lyta.haphazard.org> <3F6E26D9.2050704@uqam.ca>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: RHAPSODY in Glue!
Date: 22 Sep 2003 10:47:55 -0600
In-Reply-To: <3F6E26D9.2050704@uqam.ca>
Message-ID: <87llsghiro.fsf@fleche.redhat.com>
Lines: 24
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Cc: Classpath Discussion Mailing List <classpath@gnu.org>
Subject: Re: auto-formatting: no more jalopy
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Sep 2003 16:55:58 -0000

--=-=-=

>>>>> "Etienne" == Etienne Gagnon <etienne.gagnon@uqam.ca> writes:

Etienne> Jalopy seems to fill the needs, on the technical side.  We could take
Etienne> the latest Free snapshot available before it becomes proprietary to
Etienne> indent the code.

Actually, there are a few problems with it.  We'd like a blank line
before `package' (we can't use header insertion due to copyright
years), and jalopy doesn't support that.  Also I think it doesn't
handle indentation of method bodies the way we would like.  Or was it
`if' statement bodies?  I submitted a couple jalopy bug reports a few
months ago...

Of course we could just hack these features and have a "classpath
only" fork of jalopy.

I've attached the "GNU.jalopy" config file I made, way back.  It
should come pretty close to our style.  But not close enough to use
:-(

Tom


--=-=-=
Content-Type: application/octet-stream
Content-Disposition: attachment; filename=GNU.jalopy
Content-Transfer-Encoding: base64
Content-Description: GNU.jalopy

rO0ABXNyABFqYXZhLnV0aWwuSGFzaE1hcAUH2sHDFmDRAwACRgAKbG9hZEZhY3RvckkACXRocmVz
aG9sZHhwP0AAAAAAAR93CAAAAX8AAADpc3IAKmRlLmh1bnNpY2tlci5qYWxvcHkuc3RvcmFnZS5D
b252ZW50aW9uJEtleZpoYEKwfp3UAwAAeHB0ACFpbnNwZWN0b3IvdGlwcy9zdHJpbmdMaXRlcmFs
bEkxOG53BAjXVSt4dAAFZmFsc2VzcQB+AAJ0ACJwcmludGVyL2NvbW1lbnRzL3JlbW92ZS9zaW5n
bGVsaW5ldwR3KkZheHEAfgAFc3EAfgACdAAfcHJpbnRlci9ibGFua2xpbmVzL2FmdGVyL21ldGhv
ZHcE6OBO43h0AAExc3EAfgACdAAUcHJpbnRlci9iYWNrdXAvbGV2ZWx3BACe4Mx4dAABMHNxAH4A
AnQAIXByaW50ZXIvYWxpZ25tZW50L21ldGhvZENhbGxDaGFpbncEf3PpQXh0AAR0cnVlc3EAfgAC
dAAiaW5zcGVjdG9yL25hbWluZy9tZXRob2RzL3Byb3RlY3RlZHcE0Fbz4nh0AApbYS16XVtcd10r
c3EAfgACdAAQbWlzYy90aHJlYWRDb3VudHcEdJEIgnh0AAExc3EAfgACdAAjcHJpbnRlci93aGl0
ZXNwYWNlL2JlZm9yZS9jYXNlQ29sb253BMKbIFx4cQB+AAVzcQB+AAJ0AC9wcmludGVyL3doaXRl
c3BhY2UvYmVmb3JlL3BhcmVudGhlc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b3RlcncE3XkznXhxAH4AkHNxAH4AAnQAJmluc3BlY3Rvci9u
YW1pbmcvbWV0aG9kcy9kZWZhdWx0U3RhdGljdwT/+GpDeHEAfgATc3EAfgACdAAhaW5zcGVjdG9y
L3RpcHMvb2JleUNvbnRyYWN0RXF1YWxzdwS+PeI3eHEAfgAFc3EAfgACdAAfaW5zcGVjdG9yL25h
bWluZy9maWVsZHMvcHJpdmF0ZXcE/1QzfHhxAH4AE3NxAH4AAnQAHXByaW50ZXIvYnJhY2VzL2lu
c2VydC9kb3doaWxldwQJrGFKeHEAfgAFc3EAfgACdAAucHJpbnRlci93aGl0ZXNwYWNlL3BhZGRp
bmcvb3BlcmF0b3IvcmVsYXRpb25hbHcEEB5Nd3hxAH4AEHNxAH4AAnQAMHByaW50ZXIvY29tbWVu
dHMvamF2YWRvYy90ZW1wbGF0ZXMvbWV0aG9kL3JldHVybncEY9DgyXh0ABcgKiBAcmV0dXJuIERP
Q1VNRU5UIE1FIXNxAH4AAnQAK3ByaW50ZXIvY29tbWVudHMvc2VwYXJhdG9yL3RleHQvaW5pdGlh
bGl6ZXJ3BOXUDHB4dAAVSW5zdGFuY2UgaW5pdGlhbGl6ZXJzc3EAfgACdAAgcHJpbnRlci9ibGFu
a2xpbmVzL2FmdGVyL3BhY2thZ2V3BMoadoR4dAABMXg=
--=-=-=--



From MAILER-DAEMON Mon Sep 22 19:54:46 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1aVx-0002sN-Sg
	for mharc-classpath@gnu.org; Mon, 22 Sep 2003 19:54:45 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1aT9-0001wA-1q
	for classpath@gnu.org; Mon, 22 Sep 2003 19:51:51 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1aT1-0001ub-PU
	for classpath@gnu.org; Mon, 22 Sep 2003 19:51:44 -0400
Received: from [24.93.67.84] (helo=ms-smtp-03.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1aT0-0001tS-RZ
	for classpath@gnu.org; Mon, 22 Sep 2003 19:51:42 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-03.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8MNnM4R005408
	for <classpath@gnu.org>; Mon, 22 Sep 2003 19:49:29 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id D83EABE641; Mon, 22 Sep 2003 19:31:33 -0400 (EDT)
Sender: cbj@haphazard.org
To: GNU Classpath <classpath@gnu.org>
References: <874qz7jhev.fsf@fleche.redhat.com>
	<m3k7813ol7.fsf@lyta.haphazard.org> <3F6E26D9.2050704@uqam.ca>
	<87llsghiro.fsf@fleche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 22 Sep 2003 19:31:33 -0400
In-Reply-To: <87llsghiro.fsf@fleche.redhat.com>
Message-ID: <m37k402yei.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: auto-formatting: no more jalopy
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Sep 2003 23:54:42 -0000

Tom Tromey <tromey@redhat.com> writes:

> Actually, there are a few problems with it.  

Bug: Printer Java: GNU brace style does not indent beyond braces
http://sourceforge.net/tracker/index.php?func=detail&aid=716393&group_id=45216&atid=442212

I couldn't find any more.

> Of course we could just hack these features and have a "classpath
> only" fork of jalopy.

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



From MAILER-DAEMON Mon Sep 22 20:49:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1bMU-00058F-ML
	for mharc-classpath@gnu.org; Mon, 22 Sep 2003 20:49:02 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1bMP-00055b-Kk
	for classpath@gnu.org; Mon, 22 Sep 2003 20:48:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1bML-00054W-VD
	for classpath@gnu.org; Mon, 22 Sep 2003 20:48:54 -0400
Received: from [209.222.224.106] (helo=griffin.griffaction.ca)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1bMF-00053D-Mh
	for classpath@gnu.org; Mon, 22 Sep 2003 20:48:47 -0400
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by griffin.griffaction.ca with esmtp (Exim 3.36 #1 (Debian))
	id 1A1bM9-0005p0-00
	for <classpath@gnu.org>; Mon, 22 Sep 2003 20:48:41 -0400
Message-ID: <3F6F9869.5020103@uqam.ca>
Date: Mon, 22 Sep 2003 20:48:41 -0400
From: Etienne Gagnon <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.4) Gecko/20030908 Debian/1.4-4
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath Discussion Mailing List <classpath@gnu.org>
References: <874qz7jhev.fsf@fleche.redhat.com>	<m3k7813ol7.fsf@lyta.haphazard.org>
	<3F6E26D9.2050704@uqam.ca> <87llsghiro.fsf@fleche.redhat.com>
In-Reply-To: <87llsghiro.fsf@fleche.redhat.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: auto-formatting: no more jalopy
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 00:49:00 -0000

OK.

I will try to get some of my compiler course students to make a term 
project, out of it.  It should be fun for them, and they will get a wide 
community of testers. ;-)

Etienne

Tom Tromey wrote:
> Actually, there are a few problems with it.  We'd like a blank line
> before `package' (we can't use header insertion due to copyright
> years), and jalopy doesn't support that.  Also I think it doesn't
> handle indentation of method bodies the way we would like.  Or was it
> `if' statement bodies?  I submitted a couple jalopy bug reports a few
> months ago...
> 
> Of course we could just hack these features and have a "classpath
> only" fork of jalopy.
> 
> I've attached the "GNU.jalopy" config file I made, way back.  It
> should come pretty close to our style.  But not close enough to use
> :-(
> 
> Tom
> 


-- 
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 Sep 22 21:35:46 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1c5h-0004Bf-S9
	for mharc-classpath@gnu.org; Mon, 22 Sep 2003 21:35:45 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1c5e-0004BD-UL
	for classpath@gnu.org; Mon, 22 Sep 2003 21:35:42 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1bxN-0002HS-6c
	for classpath@gnu.org; Mon, 22 Sep 2003 21:27:09 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A1bwg-0001Xw-8l
	for classpath@gnu.org; Mon, 22 Sep 2003 21:26:26 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8N1FOPo054286
	for <classpath@gnu.org>; Tue, 23 Sep 2003 11:15:25 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "classpath" <classpath@gnu.org>
Date: Tue, 23 Sep 2003 11:17:04 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCCEHBDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
Subject: file.encoding  property
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 01:35:43 -0000

Hi everyone,

The EncodingManager expects the system property file.encoding to be
set but I couldn't find any indication of who was responsible for
setting this property, when and where. Is this something that would
just be set from the command-line? Or should it be determined by
native code somewhere in the VM startup process?

Thanks.

David Holmes




From MAILER-DAEMON Tue Sep 23 00:29:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1enq-0004SU-HK
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 00:29:30 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1eno-0004SO-7L
	for classpath@gnu.org; Tue, 23 Sep 2003 00:29:28 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1enm-0004S2-KG
	for classpath@gnu.org; Tue, 23 Sep 2003 00:29:27 -0400
Received: from [24.93.67.84] (helo=ms-smtp-03.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1enm-0004Rx-9x
	for classpath@gnu.org; Tue, 23 Sep 2003 00:29:26 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-03.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8N4R44R024212; Tue, 23 Sep 2003 00:27:05 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 6D885BE641; Tue, 23 Sep 2003 00:28:16 -0400 (EDT)
Sender: cbj@haphazard.org
To: David Holmes <dholmes@dltech.com.au>
References: <NFBBKALFDCPFIDBNKAPCCEHBDHAA.dholmes@dltech.com.au>
From: Brian Jones <cbj@gnu.org>
Date: 23 Sep 2003 00:28:16 -0400
In-Reply-To: <NFBBKALFDCPFIDBNKAPCCEHBDHAA.dholmes@dltech.com.au>
Message-ID: <m33ceo2knz.fsf@lyta.haphazard.org>
Lines: 37
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 <classpath@gnu.org>
Subject: Re: file.encoding  property
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 04:29:28 -0000

David Holmes <dholmes@dltech.com.au> writes:

> Hi everyone,
> 
> The EncodingManager expects the system property file.encoding to be
> set but I couldn't find any indication of who was responsible for
> setting this property, when and where. Is this something that would
> just be set from the command-line? Or should it be determined by
> native code somewhere in the VM startup process?

A grep through the source confirms many complaints about Sun not
documenting this or providing a standard means of getting at the
available encodings.  ;) I think a JVM is supposed to provide this if
they want.  If you do nothing it should still work, but you can
override the default if you want including using file.encoding.pkg to
prepend to the default of gnu.java.io for where we attempt to find
encoders/decoders.

gnu/java/io/EncodingManager uses System.getProperty("file.encoding",
"8859_1");

java/net/URLEncoder.java uses System.getProperty("file.encoding",
"8859_1");

java/util/logging/XMLFormatter.java uses
System.getProperty("file.encoding") and later defaults to "UTF-8" if
null, which seems to be an error either here or in the documentation
in java/io/InputStreamReader.java.  More confusingly we provide
DecoderUTF8 and EncoderUTF8 which implies the EncodingManager would
load on "UTF8" rather than "UTF-8".

There is a hacking guide reference in Chapter 11.  I can't connect to
gnu.org currently so I can't link it.

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



From MAILER-DAEMON Tue Sep 23 00:31:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1epf-00053F-Sd
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 00:31:23 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1epd-000531-OA
	for classpath@gnu.org; Tue, 23 Sep 2003 00:31:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1epa-00051k-C1
	for classpath@gnu.org; Tue, 23 Sep 2003 00:31:20 -0400
Received: from [24.93.67.83] (helo=ms-smtp-02.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1epa-00051O-0Q
	for classpath@gnu.org; Tue, 23 Sep 2003 00:31:18 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-02.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8N4RRpM019105; Tue, 23 Sep 2003 00:27:27 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 3BD72BE641; Tue, 23 Sep 2003 00:30:15 -0400 (EDT)
Sender: cbj@haphazard.org
To: Ricky Clarkson <ricky_clarkson@yahoo.com>
References: <20030916184353.GA2012@yahoo.com>
From: Brian Jones <cbj@gnu.org>
Date: 23 Sep 2003 00:30:14 -0400
In-Reply-To: <20030916184353.GA2012@yahoo.com>
Message-ID: <m3y8wg1609.fsf@lyta.haphazard.org>
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: GNU Classpath <classpath@gnu.org>
Subject: Re: Classpath java/awt/AWTEvent.java minor documentation patch.
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 04:31:22 -0000

Do we need paperwork to commit all of Ricky's documentation patches?

Thanks,
Brian

Ricky Clarkson <ricky_clarkson@yahoo.com> writes:

> Hi,
> 
> I was browsing AWTEvent.java, and came across a couple of tiny
> grammatical errors.
> 
> Please see the attached files 'diff', which is the output of diff
> <original AWTEvent.java> <my AWTEvent.java>, and 'diff_minus_u', which
> is the output of diff -u <original AWTEvent.java> <my AWTEvent.java>.
> 
> Regards,
> 
> Ricky.
> 
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath

-- 
Brian Jones <cbj@gnu.org>



From MAILER-DAEMON Tue Sep 23 01:19:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1faX-0005Lo-EF
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 01:19:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1faR-0005Bz-SK
	for classpath@gnu.org; Tue, 23 Sep 2003 01:19:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1fa9-0004bV-TA
	for classpath@gnu.org; Tue, 23 Sep 2003 01:19:32 -0400
Received: from [212.6.122.106] (helo=mail1.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A1fa2-0004Lm-UL; Tue, 23 Sep 2003 01:19:19 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-75-197.ewetel.net
	[80.228.75.197])
	by mail1.ewetel.de (8.12.1/8.12.9) with ESMTP id h8N5JFX1018724;
	Tue, 23 Sep 2003 07:19:15 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A1fZz-0007ai-00; Tue, 23 Sep 2003 07:19:15 +0200
From: Michael Koch <konqueror@gmx.de>
To: Brian Jones <cbj@gnu.org>, Ricky Clarkson <ricky_clarkson@yahoo.com>
Date: Tue, 23 Sep 2003 07:21:24 +0200
User-Agent: KMail/1.5.2
References: <20030916184353.GA2012@yahoo.com>
	<m3y8wg1609.fsf@lyta.haphazard.org>
In-Reply-To: <m3y8wg1609.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: <200309230721.29567.konqueror@gmx.de>
X-CheckCompat: OK
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: Classpath java/awt/AWTEvent.java minor documentation patch.
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 05:19:47 -0000

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

Am Dienstag, 23. September 2003 06:30 schrieb Brian Jones:
> Do we need paperwork to commit all of Ricky's documentation
> patches?

Yes, I think so. I already talked with him on IRC and he will do his=20
assignment stuff now as he plans to do more stuff (not only=20
documentation as I understood it). He will tell us when he finishes=20
it and then I can commit all of his stuff.


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

iD8DBQE/b9hYWSOgCCdjSDsRAlA8AJoDTVvEVDc7A2YR+0iQ9I5r3eiG7wCfQRyS
//SYqUPk9u7vDU6iUDDFsVM=3D
=3DZOX2
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Tue Sep 23 01:47:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1g19-0003J3-KJ
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 01:47:19 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1g17-0003IH-16
	for classpath@gnu.org; Tue, 23 Sep 2003 01:47:17 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1g15-0003H2-Bx
	for classpath@gnu.org; Tue, 23 Sep 2003 01:47:15 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A1g14-0003GB-C7; Tue, 23 Sep 2003 01:47:14 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8N5j3Po040767;
	Tue, 23 Sep 2003 15:45:03 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "Brian Jones" <cbj@gnu.org>
Date: Tue, 23 Sep 2003 15:46:45 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCCEHDDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
In-Reply-To: <m33ceo2knz.fsf@lyta.haphazard.org>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
Cc: classpath <classpath@gnu.org>
Subject: RE: file.encoding  property
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 05:47:17 -0000

Brian Jones wrote:
> A grep through the source confirms many complaints about Sun not
> documenting this or providing a standard means of getting at the
> available encodings.  ;) I think a JVM is supposed to
> provide this if they want.

I looked at the hacking guide and various other bits but didn't quite
see how a VM is expected to set this file.encoding value. I guess if
you never set it and your platform encoding is UTF-8 then things will
just magically work.

> More confusingly we provide
> DecoderUTF8 and EncoderUTF8 which implies the EncodingManager would
> load on "UTF8" rather than "UTF-8".

There's an alias to deal with this situation.

Thank.
David Holmes




From MAILER-DAEMON Tue Sep 23 03:57:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1i3J-00063t-UL
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 03:57:41 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1i3H-00062J-OD
	for classpath@gnu.org; Tue, 23 Sep 2003 03:57:39 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1i3G-00061x-Al
	for classpath@gnu.org; Tue, 23 Sep 2003 03:57:38 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1i3F-00061u-Ll
	for classpath@gnu.org; Tue, 23 Sep 2003 03:57:37 -0400
Received: from [192.168.1.33] (197.18.dyn-adsl.customer.ch.easynet.net
	[217.8.197.18]) by smtp2.mail.ch.easynet.net (Postfix) with ESMTP
	id 31752647BF; Tue, 23 Sep 2003 09:57:35 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>,
	Ricky Clarkson <ricky_clarkson@yahoo.com>
Date: Tue, 23 Sep 2003 09:56:59 +0200
Message-Id: <20030923075659.5077@smtp.mail.ch.easynet.net>
In-Reply-To: <20030921224245.GA2823@yahoo.com>
References: <20030921224245.GA2823@yahoo.com>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: 
Subject: Re: Classpath java.nio.charset.CharsetDecoder documentation.
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 07:57:40 -0000

Ricky Clarkson <ricky_clarkson@yahoo.com> wrote on Sun, 21 Sep
2003 23:42:45 +0100:

>Please find attached a patch which is the result of diff -u <original
>CharsetDecoder.java> <my CharsetDecoder.java>.
>
>Also please find attached a similar patch for Changelog.
>
>Feedback on this would be welcome, and would mean less time would be
>wasted when I get around to CharsetEncoder and others.

I find your documentation very legible. If someone wanted to contribute a
charset decoder to Classpath, they now should be able to do this just
from your docs. Very many thanks for your hard work!

Just a few minor remarks: The default implementation of
CharsetDecoder.isAutoDetecting() returns false, not true (line 683). The
'Copyright (C) 2002' should be changed to 'Copyright (C) 2002, 2003'
(line 2), and you'd want to include a <p> before "Instances of this
class..." (line 124).

Best regards, and thanks again,

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Tue Sep 23 04:07:41 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1iCz-0001Y5-8h
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 04:07:41 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1iCw-0001Ww-5B
	for classpath@gnu.org; Tue, 23 Sep 2003 04:07:38 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1iCt-0001WK-Rz
	for classpath@gnu.org; Tue, 23 Sep 2003 04:07:36 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A1iCq-0001Ux-UE; Tue, 23 Sep 2003 04:07:33 -0400
Received: from [192.168.1.33] (197.18.dyn-adsl.customer.ch.easynet.net
	[217.8.197.18]) by smtp2.mail.ch.easynet.net (Postfix) with ESMTP
	id 965896478D; Tue, 23 Sep 2003 10:07:30 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Tue, 23 Sep 2003 10:06:55 +0200
Message-Id: <20030923080655.16374@smtp.mail.ch.easynet.net>
In-Reply-To: <m33ceo2knz.fsf@lyta.haphazard.org>
References: <m33ceo2knz.fsf@lyta.haphazard.org>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: Brian Jones <cbj@gnu.org>
Subject: Re: file.encoding  property
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 08:07:39 -0000

Brian Jones <cbj@gnu.org> wrote on Tue, 23 Sep 2003 00:28:16 -0400:

>A grep through the source confirms many complaints about Sun not
>[...] providing a standard means of getting at the
>available encodings.

They have added this with 1.4. See

  http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Tue Sep 23 04:49:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1iru-0003dV-04
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 04:49:58 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1iny-0002qd-AM
	for classpath@gnu.org; Tue, 23 Sep 2003 04:45:54 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1inT-00024t-RP
	for classpath@gnu.org; Tue, 23 Sep 2003 04:45:24 -0400
Received: from [81.58.25.195] (helo=mx.tryllian.com)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A1in8-0001M4-T0; Tue, 23 Sep 2003 04:45:03 -0400
Received: from localhost (localhost [127.0.0.1])
	by mx.tryllian.com (Postfix) with ESMTP
	id 10F9793BCE; Tue, 23 Sep 2003 10:45:01 +0200 (CEST)
Received: from mx.tryllian.com ([81.58.25.195]) by localhost (mx.tryllian.com
	[127.0.0.1]) (amavisd-new) with ESMTP id 18056-06;
	Tue, 23 Sep 2003 10:45:00 -0000 (CEST)
Received: by mx.tryllian.com (Postfix, from userid 500)
	id 0C52C93B93; Tue, 23 Sep 2003 10:45:00 +0200 (CEST)
Received: from dogx200-015.intra.tryllian.net (office.tryllian.com
	[81.58.25.194]) by mx.tryllian.com (Postfix) with ESMTP
	id E3F4F93BC7; Tue, 23 Sep 2003 10:44:26 +0200 (CEST)
From: Mark Wielaard <mark@klomp.org>
To: Brian Jones <cbj@gnu.org>
In-Reply-To: <m3y8wg1609.fsf@lyta.haphazard.org>
References: <20030916184353.GA2012@yahoo.com> 
	<m3y8wg1609.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) 
Date: 23 Sep 2003 10:44:21 +0200
Message-Id: <1064306662.1151.24.camel@dogx200-015>
Mime-Version: 1.0
X-Virus-Scanned: by amavisd-new amavisd-new-20020630
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: Classpath java/awt/AWTEvent.java minor documentation patch.
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 08:49:56 -0000

Hi,

On Tue, 2003-09-23 at 06:30, Brian Jones wrote:
> Do we need paperwork to commit all of Ricky's documentation patches?

Yes, for all non-trivial contributions we require that.
I have already contacted Ricky about it.

Sorry for the bureaucracy, but we really want to prevent anyone ever
claiming that any part of GNU Classpath is not free software (not that
you can ever really protect yourself from dubious legal claims, see the
recent dubious claims of SCO, but we try to minimize the chance people
even try). People should feel that they will always be free to use FSF
distributed software. And having the FSF as main copyright holder also
makes it easier for the FSF to protect the copyleft parts of the
Classpath license terms.

For people interested into contributing to GNU Classpath, please see
http://www.gnu.org/software/classpath/docs/hacking.html#SEC2
If there are any questions about these requirements please feel free to
contact me about it.

Cheers,

Mark




From MAILER-DAEMON Tue Sep 23 07:49:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1lfi-0007hP-Fs
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 07:49:34 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1le3-00070s-EX
	for classpath@gnu.org; Tue, 23 Sep 2003 07:47:51 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1lWF-0004Hb-MM
	for classpath@gnu.org; Tue, 23 Sep 2003 07:39:48 -0400
Received: from [24.93.67.82] (helo=ms-smtp-01.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1lBU-0000IF-Q3
	for classpath@gnu.org; Tue, 23 Sep 2003 07:18:20 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-01.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8NBAk0Q019887; Tue, 23 Sep 2003 07:10:46 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 49449BE641; Tue, 23 Sep 2003 07:17:07 -0400 (EDT)
Sender: cbj@haphazard.org
To: Sascha Brawer <brawer@dandelis.ch>
References: <m33ceo2knz.fsf@lyta.haphazard.org>
	<20030923080655.16374@smtp.mail.ch.easynet.net>
From: Brian Jones <cbj@gnu.org>
Date: 23 Sep 2003 07:17:07 -0400
In-Reply-To: <20030923080655.16374@smtp.mail.ch.easynet.net>
Message-ID: <m3oexb21qk.fsf@lyta.haphazard.org>
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: GNU Classpath <classpath@gnu.org>
Subject: Re: file.encoding  property
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 11:49:33 -0000

Sascha Brawer <brawer@dandelis.ch> writes:

> Brian Jones <cbj@gnu.org> wrote on Tue, 23 Sep 2003 00:28:16 -0400:
> 
> >A grep through the source confirms many complaints about Sun not
> >[...] providing a standard means of getting at the
> >available encodings.
> 
> They have added this with 1.4. See
> 
>   http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html

Is there a reason to keep gnu.java.io.{encode,decode}.* around when it
looks like the nio versions could be used?

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



From MAILER-DAEMON Tue Sep 23 08:24:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1mDF-0001LA-Va
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 08:24:13 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1mDD-0001Ka-2b
	for classpath@gnu.org; Tue, 23 Sep 2003 08:24:11 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1mDB-0001KN-MB
	for classpath@gnu.org; Tue, 23 Sep 2003 08:24:10 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A1mDA-0001K0-I5; Tue, 23 Sep 2003 08:24:08 -0400
Received: from [192.168.1.33] (197.18.dyn-adsl.customer.ch.easynet.net
	[217.8.197.18]) by smtp2.mail.ch.easynet.net (Postfix) with ESMTP
	id BFE5E64805; Tue, 23 Sep 2003 14:24:06 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Tue, 23 Sep 2003 14:23:31 +0200
Message-Id: <20030923122331.25737@smtp.mail.ch.easynet.net>
In-Reply-To: <m3oexb21qk.fsf@lyta.haphazard.org>
References: <m3oexb21qk.fsf@lyta.haphazard.org>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: Brian Jones <cbj@gnu.org>
Subject: Re: file.encoding  property
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 12:24:11 -0000

Brian Jones <cbj@gnu.org> wrote on Tue, 23 Sep 2003 07:17:07 -0400:

>Is there a reason to keep gnu.java.io.{encode,decode}.* around when it
>looks like the nio versions could be used?

It probably would make sense to switch to java.nio.charset.

Some of us (Dalibor Topic; Mark Wielaard; Andy Walter; James Hunt; Ingo
Proetel; Sascha Brawer) had discussed this during our meeting at LinuxTag
in Germany.

Quoting from Mark's meeting minutes (http://mail.gnu.org/archive/html/
classpath/2003-07/msg00040.html):

> The plan for character encodings is to move to the java.nio.charset
> interface. We already have required encodings for this. But GNU
> Classpath and gcj both still also have their old implementations
> (which are actually used in most places). gcj also has a libiconv
> provider (but not as java.nio.charset provider). A java.nio.charset
> libiconv provider would be nice to have for those systems that
> have that library.

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Tue Sep 23 09:10:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1mw2-0001tU-4E
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 09:10:30 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1mvz-0001sE-Bc
	for classpath@gnu.org; Tue, 23 Sep 2003 09:10:27 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1mvx-0001ru-MM
	for classpath@gnu.org; Tue, 23 Sep 2003 09:10:26 -0400
Received: from [217.8.192.20] (helo=smtp1.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1mtM-0001MU-He
	for classpath@gnu.org; Tue, 23 Sep 2003 09:07:44 -0400
Received: from [192.168.1.33] (197.18.dyn-adsl.customer.ch.easynet.net
	[217.8.197.18]) by smtp1.mail.ch.easynet.net (Postfix) with ESMTP
	id ED1254A1C5; Tue, 23 Sep 2003 15:07:41 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: graydon hoare <graydon@redhat.com>
Date: Tue, 23 Sep 2003 15:07:07 +0200
Message-Id: <20030923130708.26@smtp.mail.ch.easynet.net>
In-Reply-To: <20030918162337.510@smtp.mail.ch.easynet.net>
References: <20030918162337.510@smtp.mail.ch.easynet.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: request for comment on java2d stuff
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 13:10:28 -0000

Hi Graydon,

graydon hoare <graydon@redhat.com> wrote on Tue, 2 Sep 2003 20:25:19 -0400:

>http://gcc.gnu.org/ml/java-patches/2003-q3/msg00493.html

Some more observations...

(1) Shouldn't rotate, scale & friends install new AffineTransforms if
transform == null? Otherwise, getTransform() will return wrong values.

Why don't you simply create an identity transform in the constructor? The
code would become cleaner (no checks for null transforms), and
constructing an AffineTransform should be a rather inexpensive operation.


(2) getTransform() should return a clone.


(3) setClip(Shape) should replace the current clip, while clip(Shape)
should set the new clip to the intersection of the current clip with the
specified shape. The current assignment 'clip = s' in clip(Shape) is not
correct.

public void clip(Shape s)
{
  Area area;

  area = new Area(s);
  if (clip != null)
    area.intersect(new Area(clip));
  setClip(area);
}

However, there is the unfortunate problem that Classpath does not yet
provide java.awt.geom.Area.


(4) clipRect can be implemented by passing a java.awt.Rectangle to
clip(Shape). The current implementation seems incorrect if the current
clip is not rectangular.

Best regards,

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Tue Sep 23 09:49:06 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1nXN-00047E-63
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 09:49:05 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1nXK-00046L-Lp
	for classpath@gnu.org; Tue, 23 Sep 2003 09:49:02 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1nXG-00045B-MF
	for classpath@gnu.org; Tue, 23 Sep 2003 09:48:59 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1nXE-000445-IV
	for classpath@gnu.org; Tue, 23 Sep 2003 09:48:56 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A1nX9-0003bY-00
	for <classpath@gnu.org>; Tue, 23 Sep 2003 15:48:51 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A1nX7-0003bA-00; Tue, 23 Sep 2003 15:48:49 +0200
Message-ID: <3F704F40.6090301@kaffe.org>
Date: Tue, 23 Sep 2003 15:48:48 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Sascha Brawer <brawer@dandelis.ch>
References: <m3oexb21qk.fsf@lyta.haphazard.org>
	<20030923122331.25737@smtp.mail.ch.easynet.net>
In-Reply-To: <20030923122331.25737@smtp.mail.ch.easynet.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: Brian Jones <cbj@gnu.org>, GNU Classpath <classpath@gnu.org>
Subject: Re: file.encoding  property
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 13:49:03 -0000

Sascha Brawer wrote:
> Brian Jones <cbj@gnu.org> wrote on Tue, 23 Sep 2003 07:17:07 -0400:
> 
> 
>>Is there a reason to keep gnu.java.io.{encode,decode}.* around when it
>>looks like the nio versions could be used?
> 
> 
> It probably would make sense to switch to java.nio.charset.
> 
> Some of us (Dalibor Topic; Mark Wielaard; Andy Walter; James Hunt; Ingo
> Proetel; Sascha Brawer) had discussed this during our meeting at LinuxTag
> in Germany.
> 
> Quoting from Mark's meeting minutes (http://mail.gnu.org/archive/html/
> classpath/2003-07/msg00040.html):
> 
> 
>>The plan for character encodings is to move to the java.nio.charset
>>interface. We already have required encodings for this. But GNU
>>Classpath and gcj both still also have their old implementations
>>(which are actually used in most places). gcj also has a libiconv
>>provider (but not as java.nio.charset provider). A java.nio.charset
>>libiconv provider would be nice to have for those systems that
>>have that library.

So I guess the first step would be to take the libiconv provider and 
make it work in the nio framework, and then to convert the rest to it as 
well, before switching, as it would make the switch most painless for 
the libgcj guys, I guess. For kaffe, switching to Classpath's style 
charsets also depends on the availability of libiconv based conververters.

cheers,
dalibor topic




From MAILER-DAEMON Tue Sep 23 10:56:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1oag-0008NK-5o
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 10:56:34 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1oac-0008L0-Hm
	for classpath@gnu.org; Tue, 23 Sep 2003 10:56:30 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1oaa-0008K8-1d
	for classpath@gnu.org; Tue, 23 Sep 2003 10:56:28 -0400
Received: from [212.227.126.171] (helo=moutng.kundenserver.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1oaZ-0008Jh-Hc
	for classpath@gnu.org; Tue, 23 Sep 2003 10:56:27 -0400
Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de)
	by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
	id 1A1oaW-0002Ct-00
	for classpath@gnu.org; Tue, 23 Sep 2003 16:56:24 +0200
Received: from [212.126.196.45] (helo=aicas.com)
	by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128)
	(Exim 3.35 #1) id 1A1oaW-0005Pr-00
	for classpath@gnu.org; Tue, 23 Sep 2003 16:56:25 +0200
Message-ID: <3F705F17.7060902@aicas.com>
Date: Tue, 23 Sep 2003 16:56:23 +0200
From: =?ISO-8859-1?Q?Ingo_Pr=F6tel?= <proetel@aicas.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Classpath Discussion Mailing List <classpath@gnu.org>
Content-Type: multipart/mixed; boundary="------------090408060103010307050309"
Subject: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 14:56:32 -0000

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

Hi,

I would like to again propose a standard NYIException to be used in 
Classpath.

I have taken earlier postings this list and copied them into a 
java-file. I have attached the result.

I would like your comments. If nobody complains I will put it in.

One open issue with this approach is that we are not able to 
differentiate between features of different Java releases.
To solve this we could have subclasses of this exception:

NYI14Exception -- new feature in release 1.4
NYI13Exception -- new feature in release 1.3
...

This would make a grep really easy.

--ingo

--------------090408060103010307050309
Content-Type: text/plain;
 name="NYIException.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="NYIException.java"

/* NYIException.java -- Exception signaling not yet implemented methods
   Copyright (C) 2003  Free Software Foundation

This file is part of GNU Classpath.

GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING.  If not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.

Linking this library statically or dynamically with other modules is
making a combined work based on this library.  Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.

As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module.  An independent module is a module which is not derived from
or based on this library.  If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so.  If you do not wish to do so, delete this
exception statement from your version. */
package gnu.org.classpath;

/**
 * This Exception is used to signal that a particular method has not 
 * been implemented yet. The use of a specific exception throught the
 * complete source code will help to localize and implement missing
 * functionality.<p>
 * Usage:
 * <code><pre>
 *  public notYetImplementeMethod()
 *    {
 *    throw new gnu.classpath.NYIException();
 *    }
 *  </pre></code>
 *
 */
public class NYIException extends UnsupportedOperationException 
{
	private static final String NYI =
		  "This method has not yet been implemented in GNU Classpath.\n\n"
		+ " The GNU Classpath project would appreciate receiving"
		+ " an implementation for it.\n"
		+ " If you intend to contribute, please take a look at"
		+ " http://www.gnu.org/software/classpath/docs/hacking.html and"
		+ " get in touch with other developers on classpath@gnu.org."; 
  
  /**
   * Create new NYIException.
   */
  public NYIException()
    {
	super(NYI);
    }

  /**
   * Create new NYIException with detailed message.
   * @param message more detailed description.
   */
  public NYIException(String message) 
    {
	super(message + "\n" + NYI);
    }
}


--------------090408060103010307050309--




From MAILER-DAEMON Tue Sep 23 11:48:46 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1pPC-0003n8-Jx
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 11:48:46 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1pPB-0003mf-1L
	for classpath@gnu.org; Tue, 23 Sep 2003 11:48:45 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1pP7-0003lv-E2
	for classpath@gnu.org; Tue, 23 Sep 2003 11:48:43 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A1pP5-0003kT-NN; Tue, 23 Sep 2003 11:48:39 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id JAA08918;
	Tue, 23 Sep 2003 09:48:33 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 1B1454F82EE; Tue, 23 Sep 2003 09:40:42 -0600 (MDT)
To: Brian Jones <cbj@gnu.org>
References: <NFBBKALFDCPFIDBNKAPCCEHBDHAA.dholmes@dltech.com.au>
	<m33ceo2knz.fsf@lyta.haphazard.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I'm in ATLANTIC CITY riding in a comfortable ROLLING CHAIR...
Date: 23 Sep 2003 09:40:41 -0600
In-Reply-To: <m33ceo2knz.fsf@lyta.haphazard.org>
Message-ID: <87zngvcy2u.fsf@fleche.redhat.com>
Lines: 17
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 <classpath@gnu.org>
Subject: Re: file.encoding  property
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 15:48:45 -0000

David> The EncodingManager expects the system property file.encoding
David> to be set but I couldn't find any indication of who was
David> responsible for setting this property, when and where.

I think the VM must set it during startup.  That's what libgcj does.

Brian> gnu/java/io/EncodingManager uses System.getProperty("file.encoding",
Brian> "8859_1");
Brian> java/net/URLEncoder.java uses System.getProperty("file.encoding",
Brian> "8859_1");
Brian> java/util/logging/XMLFormatter.java uses
Brian> System.getProperty("file.encoding") and later defaults to "UTF-8" if
Brian> null

I wonder if the default setting should be in gnu.classpath.Configuration.

Tom



From MAILER-DAEMON Tue Sep 23 16:37:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1tuh-0002G5-RC
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 16:37:35 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1tud-0002EL-3F
	for classpath@gnu.org; Tue, 23 Sep 2003 16:37:31 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1tua-0002Df-9E
	for classpath@gnu.org; Tue, 23 Sep 2003 16:37:29 -0400
Received: from [212.101.4.135] (helo=mail01.solnet.ch)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A1tuV-0002Bj-QC; Tue, 23 Sep 2003 16:37:23 -0400
Received: from localhost (localhost [127.0.0.1])
	by mail01.solnet.ch (Postfix) with ESMTP
	id 527F5622D4; Tue, 23 Sep 2003 20:37:22 +0000 (GMT)
Received: from localhost ([127.0.0.1])
	by localhost (mail01.solnet.ch [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 52330-01; Tue, 23 Sep 2003 20:37:21 +0000 (GMT)
Received: from reali.dnsalias.net (adsl-212-41-65-231.solnet.ch
	[212.41.65.231]) by mail01.solnet.ch (Postfix) with ESMTP
	id D8942622AC; Tue, 23 Sep 2003 20:37:20 +0000 (GMT)
Received: from cyclone
	(192-168-001-003-at-home-your-network.privateiprange.solnet.ch
	[192.168.1.3]) by reali.dnsalias.net (Postfix) with SMTP
	id B47563F12C; Tue, 23 Sep 2003 22:28:57 +0200 (CEST)
Message-ID: <00fe01c38212$96a4c9b0$0301a8c0@cyclone>
From: "Patrik Reali" <reali@acm.org>
To: "GNU Classpath" <classpath@gnu.org>
References: <m3oexb21qk.fsf@lyta.haphazard.org>
	<20030923122331.25737@smtp.mail.ch.easynet.net>
Date: Tue, 23 Sep 2003 22:38:03 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Virus-Scanned: by SolNet
Cc: Brian Jones <cbj@gnu.org>, Sascha Brawer <brawer@dandelis.ch>
Subject: Re: file.encoding  property
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 20:37:33 -0000

I think this makes sense (as long a java implementation is available).

I can see only one limitation at the moment: if someone wants to construct a
free J2ME (CLDC) API from Classpath.

The CLDC API contains only java.io; there, PrintStream writes to the
underlying stream according to the locale and VM configuration. There is no
explicit encoder (as far as I can see), but I guess it would rely on
something like the current encoders (maybe just hardcoded, because a generic
implementation it just too expensive on a small device).

-Patrik
--------
Patrik Reali
http://www.oberon.ethz.ch/jaos


> Brian Jones <cbj@gnu.org> wrote on Tue, 23 Sep 2003 07:17:07 -0400:
>
> >Is there a reason to keep gnu.java.io.{encode,decode}.* around when it
> >looks like the nio versions could be used?
>
> It probably would make sense to switch to java.nio.charset.
>
> Some of us (Dalibor Topic; Mark Wielaard; Andy Walter; James Hunt; Ingo
> Proetel; Sascha Brawer) had discussed this during our meeting at LinuxTag
> in Germany.
>
> Quoting from Mark's meeting minutes (http://mail.gnu.org/archive/html/
> classpath/2003-07/msg00040.html):
>
> > The plan for character encodings is to move to the java.nio.charset
> > interface. We already have required encodings for this. But GNU
> > Classpath and gcj both still also have their old implementations
> > (which are actually used in most places). gcj also has a libiconv
> > provider (but not as java.nio.charset provider). A java.nio.charset
> > libiconv provider would be nice to have for those systems that
> > have that library.
>
> -- Sascha
>
> Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/
>
>
>
>
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
>
>




From MAILER-DAEMON Tue Sep 23 16:56:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1uCt-0005w4-BQ
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 16:56:23 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1uCq-0005vK-Ss
	for classpath@gnu.org; Tue, 23 Sep 2003 16:56:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1uCn-0005u4-CB
	for classpath@gnu.org; Tue, 23 Sep 2003 16:56:18 -0400
Received: from [139.165.32.78] (helo=serv09.segi.ulg.ac.be)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1uCk-0005qn-3e
	for classpath@gnu.org; Tue, 23 Sep 2003 16:56:14 -0400
Received: (qmail 28268 invoked by uid 504); 23 Sep 2003 22:56:02 +0200
Received: from arnaud.vandyck@ulg.ac.be by serv09.segi.ulg.ac.be by uid 501
	with qmail-scanner-1.16 
	(clamscan: 0.60. spamassassin: 2.55.  Clear:. 
	Processed in 0.350464 secs); 23 Sep 2003 20:56:02 -0000
Received: from unknown (HELO localhost) ([139.165.77.48])
	(envelope-sender <arnaud.vandyck@ulg.ac.be>)
	by serv09.segi.ulg.ac.be (qmail-ldap-1.03) with SMTP
	for <kaffe@kaffe.org>; 23 Sep 2003 22:56:02 +0200
Date: Tue, 23 Sep 2003 22:56:02 +0200 (CEST)
Message-Id: <20030923.225602.108367757.arnaud.vandyck@ulg.ac.be>
To: kaffe@kaffe.org
From: Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
Organization: STE-Formations Informatiques, ULg
X-Fingerprint: 82F3 45D0 F1B2 D79E D0BE  5188 E2FC C566 EEB6 B4C2
X-URL: http://vbstefi60.fapse.ulg.ac.be/~arnaud/
X-Face: ".{A?<Dzy|V1IPZL0O-B-~G{n+`j%t7K$Y`:u[w54'>P>_0mS1E$Wn4RK&CR)_yvw`),0&;
	?-]upzJvA]->#pP:$si]X039T'Qrd}9t=!EstonSVE1F$dtgGsRC"lyQnP+H6/g:f^d:,0@)P#xCy9?MmW[8n{8B75hA_=]O7TRZ~r9SE6CL*xpR8k4'~!5B8"|u
X-Mailer: Mew version 4.0.58 on Emacs 21.3 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Cc: classpath@gnu.org
Subject: Kaffe and gjdoc
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 20:56:21 -0000

Hi everybody,

[I do Cc: classpath because I'm not on cp-tools but someone can maybe forward]

The good news:
--------------

kaffe can run ant and build something (but maybe everyone already know! ;))

The bad news:
-------------

gjdoc from cvs is broken because of java.util.jar.JarFile.OPEN_READ. 

Here is the log:
----------------

arnaud@vbstefi30:~/debian/gnu/gjdoc/src$ kaffe -classpath $CLASSPATH -Dant.home=/usr/share/ant -Dbuild.compiler=kjc org.apache.tools.ant.Main 
Buildfile: build.xml

init:
    [mkdir] Created dir: /home/arnaud/debian/gnu/gjdoc/tmp/build
    [mkdir] Created dir: /home/arnaud/debian/gnu/gjdoc/dist

compile:
    [javac] Compiling 64 source files to  /home/arnaud/debian/gnu/gjdoc/tmp/build
    [javac] /home/arnaud/debian/gnu/gjdoc/src/gnu/classpath/tools/gjdoc/ClassDocProxy.java:37: caution:Assignment of an expression to itself [KOPI]
    [javac] /home/arnaud/debian/gnu/gjdoc/src/gnu/classpath/tools/doclets/xmldoclet/FileSystemClassLoader.java:103: error:Cannot find type "java/util/jar/JarFile/OPEN_READ"
    [javac] /home/arnaud/debian/gnu/gjdoc/src/gnu/classpath/tools/doclets/xmldoclet/doctranslet/DocTranslet.java:294: error:Cannot find type "java/util/jar/JarFile/OPEN_READ"

BUILD FAILED
file:/home/arnaud/debian/gnu/gjdoc/src/build.xml:73: Compile failed; see
the compiler error output for details. 

Total time: 34 seconds
arnaud@vbstefi30:~/debian/gnu/gjdoc/src$ 

--

I'll re-try in some days... 

I think  integrating gjdoc in kaffe may  be a target for  1.1.2... if it
can be built! ;) sorry but I do not have so much time this month and the
next one... 

Cheers,

-- Arnaud Vandyck, STE fi, ULg
   Formateur Cellule Programmation.



From MAILER-DAEMON Tue Sep 23 19:22:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A1wUR-0005wF-6A
	for mharc-classpath@gnu.org; Tue, 23 Sep 2003 19:22:39 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A1wUO-0005vN-Bt
	for classpath@gnu.org; Tue, 23 Sep 2003 19:22:36 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A1wNQ-0004S5-7w
	for classpath@gnu.org; Tue, 23 Sep 2003 19:15:25 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A1wMD-0004Gh-4T; Tue, 23 Sep 2003 19:14:09 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id RAA20371;
	Tue, 23 Sep 2003 17:14:01 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id B71EF4F82EE; Tue, 23 Sep 2003 17:06:07 -0600 (MDT)
To: Brian Jones <cbj@gnu.org>
References: <874qz7jhev.fsf@fleche.redhat.com>
	<m3k7813ol7.fsf@lyta.haphazard.org> <3F6E26D9.2050704@uqam.ca>
	<87llsghiro.fsf@fleche.redhat.com> <m37k402yei.fsf@lyta.haphazard.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: OVER the undertow!  UNDER the overpass!  Around the FUTURE
	and BEYOND REPAIR!!
Date: 23 Sep 2003 17:06:06 -0600
In-Reply-To: <m37k402yei.fsf@lyta.haphazard.org>
Message-ID: <87d6dr14wx.fsf@fleche.redhat.com>
Lines: 11
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: GNU Classpath <classpath@gnu.org>
Subject: Re: auto-formatting: no more jalopy
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2003 23:22:37 -0000

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

Brian> Bug: Printer Java: GNU brace style does not indent beyond braces
Brian> http://sourceforge.net/tracker/index.php?func=detail&aid=716393&group_id=45216&atid=442212

I tried adding gnu-style indent to jalopy today.  Unfortunately the
result dies while trying to parse our javadoc.  So, I'm giving up.  I
can send my hack if somebody wants it.  The real "GNU.xml" style file
is attached to the above PR.

Tom



From MAILER-DAEMON Wed Sep 24 02:16:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A22xH-0003ff-CX
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 02:16:51 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A22xE-0003dZ-C2
	for classpath@gnu.org; Wed, 24 Sep 2003 02:16:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A22xC-0003bz-5Q
	for classpath@gnu.org; Wed, 24 Sep 2003 02:16:46 -0400
Received: from [210.55.57.198] (helo=server.flinders.co.nz)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A22x9-0003Xh-Nb
	for classpath@gnu.org; Wed, 24 Sep 2003 02:16:44 -0400
Received: from [192.168.0.191] by server.flinders.co.nz (AppleMailServer
	10.2.3.0) id 67001 via TCP with SMTP; Wed, 24 Sep 2003 18:24:37 +1200
Date: Wed, 24 Sep 2003 18:19:57 +1200
Content-Type: multipart/mixed; boundary=Apple-Mail-9-177852017
Mime-Version: 1.0 (Apple Message framework v552)
To: java-patches@gcc.gnu.org,
 Classpath List <classpath@gnu.org>
From: Bryce McKinlay <bryce@mckinlay.net.nz>
In-Reply-To: <1064220314.31663.31.camel@localhost.localdomain>
Message-Id: <1EEA8FD0-EE57-11D7-A799-003065F97F7C@mckinlay.net.nz>
X-Mailer: Apple Mail (2.552)
Cc: Ralph Loader <suckfish@ihug.co.nz>
Subject: StringBuffer.substring sharing
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 06:16:49 -0000


--Apple-Mail-9-177852017
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

After I checked in Ralph Loader's fix for StringBuffer.substring the 
other day, Ralph pointed out that my modification had changed the 
meaning of the patch slightly:

On Monday, Sep 22, 2003, at 20:45 Pacific/Auckland, Ralph Loader wrote:

> My interpretation of the original code was that it was meant to prevent
> the possibility that a small substring of a large StringBuffer would
> prevent the large array being gc'd.
>
> The patch you checked in breaks this.  Consider:
>
> String Foo()
> {
>   StringBuffer b = new StringBuffer();
>   ... put a megabyte of stuff into b ...
>   String ignored = b.toString(); // sets b.shared
>   return b.substring (0, 1);
> }
>
> The 1 character String returned from Foo now has it's contents stored 
> in
> a megabyte char[], and that array has no other references.
>
> Passing ((len << 2) >= value.length) rather than StringBuffer.shared to
> the String constructor prevented this.

Its hard to say what is optimal here, as you can also argue that if the 
string is already shared then its reasonable to share even if the 
substring is small. However, having to copy a small string 
unnecessarily doesn't seem as bad as potentially wasting a lot of 
memory in the scenario above. So, I'm checking in the following patch, 
which reverts to the behaviour of Ralph's original patch.


--Apple-Mail-9-177852017
Content-Disposition: attachment;
	filename=StringBuffer2.patch.txt
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	x-unix-mode=0644;
	name="StringBuffer2.patch.txt"

2003-09-24  Bryce McKinlay  <bryce@mckinlay.net.nz>

	* java/lang/StringBuffer.java (substring): Don't set `shared' on
	small Strings, even if buffer is already shared.

Index: StringBuffer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/StringBuffer.java,v
retrieving revision 1.16
diff -u -r1.16 StringBuffer.java
--- StringBuffer.java	22 Sep 2003 08:17:48 -0000	1.16
+++ StringBuffer.java	24 Sep 2003 06:02:00 -0000
@@ -564,11 +564,12 @@
       throw new StringIndexOutOfBoundsException();
     if (len == 0)
       return "";
-    // Share unless substring is smaller than 1/4 of the buffer.
-    if ((len << 2) >= value.length)
-      shared = true;
+    // Don't copy unless substring is smaller than 1/4 of the buffer.
+    boolean share_buffer = ((len << 2) >= value.length);
+    if (share_buffer)
+      this.shared = true;
     // Package constructor avoids an array copy.
-    return new String(value, beginIndex, len, shared);
+    return new String(value, beginIndex, len, share_buffer);
   }
 
   /**

--Apple-Mail-9-177852017
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed



Regards

Bryce.


--Apple-Mail-9-177852017--





From MAILER-DAEMON Wed Sep 24 07:22:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A27ia-0003bw-Oh
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 07:22:00 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A27iV-0003ah-Si
	for classpath@gnu.org; Wed, 24 Sep 2003 07:21:55 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A27iU-0003aL-5E
	for classpath@gnu.org; Wed, 24 Sep 2003 07:21:54 -0400
Received: from [146.87.255.104] (helo=pan.salford.ac.uk)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A27gw-0003Lx-H7
	for classpath@gnu.org; Wed, 24 Sep 2003 07:20:18 -0400
Received: (qmail 39613 invoked by uid 85); 24 Sep 2003 11:20:17 -0000
Received: from ricky_clarkson@yahoo.com by pan.salford.ac.uk by uid 401 with
	qmail-scanner-1.16 
	(uvscan: v4.2.40/v4294. spamassassin: 2.55.  Clear:. 
	Processed in 0.346214 secs); 24 Sep 2003 11:20:17 -0000
X-Qmail-Scanner-Mail-From: ricky_clarkson@yahoo.com via pan.salford.ac.uk
X-Qmail-Scanner: 1.16 (Clear:. Processed in 0.346214 secs)
Received: (ofmipd 146.87.133.141); 24 Sep 2003 11:20:16 -0000
Received: from ricky by debian with local (Exim 3.36 #1 (Debian))
	id 1A27fB-0000IB-00
	for <classpath@gnu.org>; Wed, 24 Sep 2003 12:18:29 +0100
Date: 24 Sep 2003 12:18:29 +0100
Message-ID: <20030924111829.GA1122@yahoo.com>
From: "Ricky Clarkson" <ricky_clarkson@yahoo.com>
To: classpath@gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.4i
Subject: Classpath - javax.sound implementation - which library?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 11:21:57 -0000

Hi,

I've been looking at tritonus, and its mixer capabilities are
ALSA-specific (hence Linux-specific).  Is there some other library that
would be viable for Classpath, such as SDL, that would be more portable?

I'm not sure of licensing issues around SDL or even tritonus, but
tritonus is LGPL, and the authors are apparently flexible on licensing.

Tritonus is at http://www.tritonus.org/

Regards,

Ricky.



From MAILER-DAEMON Wed Sep 24 09:55:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A29zh-0000Ld-Tx
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 09:47:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A29zY-0000Dd-J5
	for classpath@gnu.org; Wed, 24 Sep 2003 09:47:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A29zU-0000CO-MT
	for classpath@gnu.org; Wed, 24 Sep 2003 09:47:37 -0400
Received: from [209.92.1.31] (helo=newmx1.fast.net)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A29zU-0000B4-41
	for classpath@gnu.org; Wed, 24 Sep 2003 09:47:36 -0400
Received: (qmail 15305 invoked from network); 24 Sep 2003 13:47:34 -0000
Received: from unknown (HELO corp.fast.net) ([209.152.221.64])
	(envelope-sender <stuart.ballard@corp.fast.net>)
	by newmx1.fast.net (qmail-ldap-1.03) with SMTP
	for <classpath@gnu.org>; 24 Sep 2003 13:47:34 -0000
Message-ID: <3F71A075.9020405@corp.fast.net>
Date: Wed, 24 Sep 2003 09:47:33 -0400
From: Stuart Ballard <stuart.ballard@corp.fast.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.3.1) Gecko/20030527 Debian/1.3.1-2
X-Accept-Language: en
MIME-Version: 1.0
To: GNU Classpath <classpath@gnu.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 13:47:48 -0000

The HashMap putAll and putAllInternal (called from constructor) methods 
use size() to get the size of the map to be added, and then iterate over 
the iterator that many times to add elements. Instead, they should call 
hasNext() on the iterator.

I can make any number of arguments for why this should be the case, but 
if we're arguing on the merits, there are arguments against this change 
too, so I won't bother :)

Instead, I'll appeal to "Sun does it this way and we should be 
compatible". I've got actual code that breaks on Classpath due to this 
difference (I spent *ages* tracking it down, too).

I know that this means my Map classes aren't quite honoring the Map 
contract, by not returning the correct value for size(), but I have good 
reasons for that - and Sun's implementation doesn't care, so Classpath's 
shouldn't either.

I suspect this problem may be more pervasive - it only bit me on 
HashMap, but it may come up on *Map, *Set, and *List, Hashtable and 
Vector as well.

If Classpath makes this change, I believe I'll be able to post the code 
of my project onto Savannah (they wouldn't accept it until it ran on a 
free Java implementation).

Stuart.

-- 
Stuart Ballard, Senior Web Developer
FASTNET - Web Solutions
(215) 283-2300, ext. 126
www.fast.net




From MAILER-DAEMON Wed Sep 24 13:19:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2DIq-0001bk-Pd
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 13:19:48 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2DIo-0001bC-Km
	for classpath@gnu.org; Wed, 24 Sep 2003 13:19:46 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2DIn-0001ax-4U
	for classpath@gnu.org; Wed, 24 Sep 2003 13:19:45 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2DIm-0001ae-NX
	for classpath@gnu.org; Wed, 24 Sep 2003 13:19:44 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A2DIk-0000PW-00
	for <classpath@gnu.org>; Wed, 24 Sep 2003 19:19:42 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A2DIi-0000P8-00; Wed, 24 Sep 2003 19:19:40 +0200
Message-ID: <3F71D22C.9020308@kaffe.org>
Date: Wed, 24 Sep 2003 19:19:40 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Ricky Clarkson <ricky_clarkson@yahoo.com>
References: <20030924111829.GA1122@yahoo.com>
In-Reply-To: <20030924111829.GA1122@yahoo.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: Mark Wielaard <mark@klomp.org>, classpath@gnu.org
Subject: Re: Classpath - javax.sound implementation - which library?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 17:19:47 -0000

Hi Ricky,

Ricky Clarkson wrote:
> Hi,
> 
> I've been looking at tritonus, and its mixer capabilities are
> ALSA-specific (hence Linux-specific).  Is there some other library that
> would be viable for Classpath, such as SDL, that would be more portable?

Tritonus also supports ESD as it backed, I've merged in both into kaffe. 
  The tritonus developers were quite open minded about others 
contributing backends for other libraries when I spoke to them last time 
around (when the code was merged into kaffe).

And it works quite well, by the way ;)

> I'm not sure of licensing issues around SDL or even tritonus, but
> tritonus is LGPL, and the authors are apparently flexible on licensing.

I doubt LGPL will work with classpath as

a) LGPL can be transformed to GPL, which is not equal to GPL + linking 
exception that Classpath has

b) Tritonus developers would have to submit their copyrights for the 
code to the FSF anyway for the code to enter Classpath.

So the best course of action would seem to be to have Mark contact them 
about contributing their code to Classpath. I would fully support such a 
move.

cheers,
dalibor topic




From MAILER-DAEMON Wed Sep 24 14:06:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2E1l-0000ze-Kw
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 14:06:13 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2E1c-0000v4-Ti
	for classpath@gnu.org; Wed, 24 Sep 2003 14:06:04 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2E1Z-0000s7-Ui
	for classpath@gnu.org; Wed, 24 Sep 2003 14:06:02 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2E1Z-0000qu-1U
	for classpath@gnu.org; Wed, 24 Sep 2003 14:06:01 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A2E1Y-0000lT-00
	for <classpath@gnu.org>; Wed, 24 Sep 2003 20:06:00 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A2E1P-0000h4-00; Wed, 24 Sep 2003 20:05:51 +0200
Message-ID: <3F71DCFF.4020508@kaffe.org>
Date: Wed, 24 Sep 2003 20:05:51 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Guido Draheim <guidod-2003-@gmx.de>
References: <3F607252.6060609@gmx.de> <3F70B3BE.2070905@gmx.de>
In-Reply-To: <3F70B3BE.2070905@gmx.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: java@gnu.org, GNU Classpath <classpath@gnu.org>, libtool@gnu.org,
	visionaries@dotgnu.org, miguel@ximian.com,
	Ben Elliston <bje@wasabisystems.com>, mailing list kaffe <kaffe@kaffe.org>
Subject: Re: dotnet platform support / gnu config.sub (long)
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 18:06:07 -0000

Guido Draheim wrote:

> For the java machine, the term `jvm` is used universally. I do not
> remember there were any dependency on pointer lengths, it runs in
> managed mode always.

JVM, JDK, Java, etc. are all trade marks with associated conditions of 
use. http://www.sun.com/suntrademarks/#J . Are you sure you want/need to 
use them?

> Since ilvm64 may be run on a 32bit system, we do set the two
> cpu/vm types of "ilvm" and "ilvm32" for the dotnet binaries
> and libraries. Alongside we use "jvm" for jar binaries

A virtual machine capable of executing programs written in java 
programing language usually executes only classes stored in class files. 
Some virtual machines also have the capability of executing programs 
stored in zip archives, or jar archives. So 'jvm' is a misleading term here.

> Therefore, for jvm we do usually paste 'java' as interpreter and
> 'jdk' as basic service series. Likewise the dotnet binaries are
> given as 'ilrun' for the interpreter and 'mono' for the service
> series (or something alike).

Not all java interpreters are called 'java'. there is gij, sablevm, 
kaffe, wonka, and a ton of others, that don't necessarily fit into this 
naming scheme. While some of them provide java-named wrapper scripts, 
I'm not sure if all of them do.

> jvm-sun-java-jdk
> jvm-sun-java-j2me
> jvm-sun-java-j2se
> jvm-sun-java-j2ee

uh, what's that sun doing there? ;) what's the difference between 
jvm-sun-java-jdk and jvm-sun-java-j2se supposed to be? and so on ...

I believe it would be better if you got in touch with kaffe, gcj, 
sablevm, classpath, debian-java etc. developers before you try to push 
something as big as this through as some kind of a GNU convention. I 
don't know much about .net yet, and being a kaffe developer, I'm more 
focussed on the java side of things. AFAIK, similar definitions have 
been tried before on debian-java, and failed.

On the other hand, if the virtual machine implementors of varios GNU 
projects have already been consulted, and this is the concensual 
proposal, I'd like to have the reference to the mailing list threads ;) 
If that's not happended, then let's discuss this first, as it's a good 
idea, but it needs to be discussed in a broader, more realted audience, 
than the libtool mailing list, which, sincerely, doesn't seem like a 
good pick to debate the finer details of naming vm systems. ;)

cheers,
dalibor topic




From MAILER-DAEMON Wed Sep 24 14:54:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2EmQ-0005Z0-K2
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 14:54:26 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2EmN-0005YQ-R7
	for classpath@gnu.org; Wed, 24 Sep 2003 14:54:23 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2EmM-0005YA-9b
	for classpath@gnu.org; Wed, 24 Sep 2003 14:54:22 -0400
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2EmL-0005Wj-OK
	for classpath@gnu.org; Wed, 24 Sep 2003 14:54:22 -0400
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8OIsE113369
	for <classpath@gnu.org>; Wed, 24 Sep 2003 14:54:14 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8OIsDc21796
	for <classpath@gnu.org>; Wed, 24 Sep 2003 14:54:13 -0400
Received: from cuddles.cambridge.redhat.com
	(IDENT:lNG3zPuo5o564VTPiBwmdgrgM3jev1Qp@vpn50-14.rdu.redhat.com
	[172.16.50.14])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8OIsCeX025974; 
	Wed, 24 Sep 2003 14:54:12 -0400
Received: from cuddles.cambridge.redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	h8OIs9uv029018; Wed, 24 Sep 2003 19:54:10 +0100
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8/Submit) id
	h8OIs8YZ029012; Wed, 24 Sep 2003 19:54:08 +0100
From: Andrew Haley <aph@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16241.59472.356692.361675@cuddles.cambridge.redhat.com>
Date: Wed, 24 Sep 2003 19:54:08 +0100
To: Dalibor Topic <robilad@kaffe.org>
In-Reply-To: <3F71DCFF.4020508@kaffe.org>
References: <3F607252.6060609@gmx.de> <3F70B3BE.2070905@gmx.de>
	<3F71DCFF.4020508@kaffe.org>
X-Mailer: VM 7.14 under Emacs 21.2.1
Cc: GNU Classpath <classpath@gnu.org>, mailing list kaffe <kaffe@kaffe.org>
Subject: Re: dotnet platform support / gnu config.sub (long)
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 18:54:24 -0000

Dalibor, what message are you replying to?

Andrew.



From MAILER-DAEMON Wed Sep 24 15:21:38 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2FCk-0007wF-Br
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 15:21:38 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2FCi-0007w3-EQ
	for classpath@gnu.org; Wed, 24 Sep 2003 15:21:36 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2FCg-0007vk-TO
	for classpath@gnu.org; Wed, 24 Sep 2003 15:21:35 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2FCg-0007vb-DK
	for classpath@gnu.org; Wed, 24 Sep 2003 15:21:34 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A2FCf-0000Dk-00
	for <classpath@gnu.org>; Wed, 24 Sep 2003 21:21:33 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A2FCc-0000DN-00; Wed, 24 Sep 2003 21:21:30 +0200
Message-ID: <3F71EEBA.4090906@kaffe.org>
Date: Wed, 24 Sep 2003 21:21:30 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Andrew Haley <aph@redhat.com>
References: <3F607252.6060609@gmx.de>	<3F70B3BE.2070905@gmx.de>	<3F71DCFF.4020508@kaffe.org>
	<16241.59472.356692.361675@cuddles.cambridge.redhat.com>
In-Reply-To: <16241.59472.356692.361675@cuddles.cambridge.redhat.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: GNU Classpath <classpath@gnu.org>, mailing list kaffe <kaffe@kaffe.org>
Subject: Re: dotnet platform support / gnu config.sub (long)
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 19:21:37 -0000

Andrew Haley wrote:
> Dalibor, what message are you replying to?

One from the libtool mailing list, actually. I cross posted it to 
classpath and kaffe for reference, as it tried to define some java vm 
configure script recognition functionality. The original message is here:


http://mail.gnu.org/archive/html/libtool/2003-09/msg00109.html

cheers,
dalibor topic




From MAILER-DAEMON Wed Sep 24 16:27:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2GEM-00084F-A2
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 16:27:22 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2GEJ-00082i-EK
	for classpath@gnu.org; Wed, 24 Sep 2003 16:27:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2GEH-00081b-2N
	for classpath@gnu.org; Wed, 24 Sep 2003 16:27:17 -0400
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2GAd-0006py-VJ
	for classpath@gnu.org; Wed, 24 Sep 2003 16:23:32 -0400
Received: from fleche.redhat.com (tf0113.peakpeak.com [204.144.239.113])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id OAA21739;
	Wed, 24 Sep 2003 14:23:27 -0600
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id B9C604F8249; Wed, 24 Sep 2003 14:15:30 -0600 (MDT)
To: Classpath Discussion Mailing List <classpath@gnu.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: Sorry, wrong ZIP CODE!!
Date: 24 Sep 2003 14:15:29 -0600
Message-ID: <87d6dqx7ry.fsf@fleche.redhat.com>
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: VMClassLoader
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: tromey@redhat.com
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 20:27:20 -0000

I think the reference VMClassLoader is subtly incorrect.  Is anybody
using this code as-is?

In particular, I think VMClassLoader.getSystemClassLoader must try to
use the default system class loader to load the one specified in the
java.system.class.loader property.  Also, it should pass the default
system loader as the argument to this loader's constructor.

I base this on the Sun JDK docs for ClassLoader.getSystemClassLoader().

Any opinions?  I would check in a cleanup here, but I don't know how
I would test it...

Tom



From MAILER-DAEMON Wed Sep 24 17:16:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2GzX-00074g-7v
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 17:16:07 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2G7b-0005pt-SO
	for classpath@gnu.org; Wed, 24 Sep 2003 16:20:23 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2G7Z-0005pZ-S7
	for classpath@gnu.org; Wed, 24 Sep 2003 16:20:22 -0400
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A2G7Y-0005pP-Rc
	for classpath@gnu.org; Wed, 24 Sep 2003 16:20:21 -0400
Received: (qmail 29587 invoked by uid 65534); 24 Sep 2003 20:20:19 -0000
Received: from pD9E815DD.dip.t-dialin.net (EHLO gmx.de) (217.232.21.221)
	by mail.gmx.net (mp015) with SMTP; 24 Sep 2003 22:20:19 +0200
X-Authenticated: #670271
Message-ID: <3F71FD18.6090409@gmx.de>
Date: Wed, 24 Sep 2003 22:22:48 +0200
From: Guido Draheim <guidod-2003-@gmx.de>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Dalibor Topic <robilad@kaffe.org>
References: <3F607252.6060609@gmx.de> <3F70B3BE.2070905@gmx.de>
	<3F71DCFF.4020508@kaffe.org>
In-Reply-To: <3F71DCFF.4020508@kaffe.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Wed, 24 Sep 2003 17:16:05 -0400
Cc: java@gnu.org, GNU Classpath <classpath@gnu.org>, libtool@gnu.org,
	visionaries@dotgnu.org, miguel@ximian.com,
	Ben Elliston <bje@wasabisystems.com>, mailing list kaffe <kaffe@kaffe.org>
Subject: Re: dotnet platform support / gnu config.sub (long)
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 20:20:24 -0000



Dalibor Topic wrote:
> Guido Draheim wrote:
> 
>> For the java machine, the term `jvm` is used universally. I do not
>> remember there were any dependency on pointer lengths, it runs in
>> managed mode always.
> 
> 
> JVM, JDK, Java, etc. are all trade marks with associated conditions of 
> use. http://www.sun.com/suntrademarks/#J . Are you sure you want/need to 
> use them?

Yes. Actually, if the target is a java'ish machine then they will have to
take care of any of that legalese themselves. The config.sub thing is not
a java'ish thing itself here. - Furthermore, the use context is obviously
talking about compatiblity with a certain vm type and not identity, as
expressed in a lot of corners and we know that config.sub simply trying to
get a "canonic" variant of certain arguments given. jvm, java and similar
names _are_ the canonic variant of anything quite like it but not
the product (trademark!) itself.

That however points out a mistake in my attemps - it should not call for
"sun" as a default vendor vor any of the java lookalike targets. Still we
need to have some "canonic" name that software type, simply that it can
be used to autoconf'igure addon software.

> 
>> Since ilvm64 may be run on a 32bit system, we do set the two
>> cpu/vm types of "ilvm" and "ilvm32" for the dotnet binaries
>> and libraries. Alongside we use "jvm" for jar binaries
> 
> 
> A virtual machine capable of executing programs written in java 
> programing language usually executes only classes stored in class files. 
> Some virtual machines also have the capability of executing programs 
> stored in zip archives, or jar archives. So 'jvm' is a misleading term 
> here.

The "jvm" is in the place of the "processor", the packaging format
would be indicated in the last part around the OS-KERNEL type. That's
established use for other OS/EXE variants as well. My previous mail
was trying to indicate that strongly and differentiate between an
executable segment (jvm) and packaging exe format (jar) that can be
started by an interpreter (java). Sorry if it was not _that_ clear.

> 
>> Therefore, for jvm we do usually paste 'java' as interpreter and
>> 'jdk' as basic service series. Likewise the dotnet binaries are
>> given as 'ilrun' for the interpreter and 'mono' for the service
>> series (or something alike).
> 
> 
> Not all java interpreters are called 'java'. there is gij, sablevm, 
> kaffe, wonka, and a ton of others, that don't necessarily fit into this 
> naming scheme. While some of them provide java-named wrapper scripts, 
> I'm not sure if all of them do.

Correct. There may be no `java` (lowercased) wrapper script. However,
I expect that an autoconf script will detect a shellvar $JAVA to point
to it with the help of an ac_check_tool test. That test may include
other java wrapper names as tools to test for - probably testing for
a `java` wrapper first. That's why the canonic name is `java`, note
that the config.sub canonic name is always lowercase, unlike the
common form of a shellvar to point to a wrapper script.

> 
>> jvm-sun-java-jdk
>> jvm-sun-java-j2me
>> jvm-sun-java-j2se
>> jvm-sun-java-j2ee
> 
> 
> uh, what's that sun doing there? ;) what's the difference between 
> jvm-sun-java-jdk and jvm-sun-java-j2se supposed to be? and so on ...
> 
> I believe it would be better if you got in touch with kaffe, gcj, 
> sablevm, classpath, debian-java etc. developers before you try to push 
> something as big as this through as some kind of a GNU convention. I 
> don't know much about .net yet, and being a kaffe developer, I'm more 
> focussed on the java side of things. AFAIK, similar definitions have 
> been tried before on debian-java, and failed.
> 
> On the other hand, if the virtual machine implementors of varios GNU 
> projects have already been consulted, and this is the concensual 
> proposal, I'd like to have the reference to the mailing list threads ;) 
> If that's not happended, then let's discuss this first, as it's a good 
> idea, but it needs to be discussed in a broader, more realted audience, 
> than the libtool mailing list, which, sincerely, doesn't seem like a 
> good pick to debate the finer details of naming vm systems. ;)
> 

No, I've been trying to get a decent cc list for dotnet targets as it is
a platform target that can have C/C++ source code as input - IOW a target
that can be different than the primary target of that software. That's not
the same for java. - I was including java (and python) in the description in
an attempt to establish guidelines for (any) other VM-type target platforms.

Note that dotgnu has a compiler that can output an ilrun binary with a
jvm executable segment. They call the target -mjvm. The gcc has references
to java as well, lot's of them really. Surely one can have F/U/D about the
usage of java/jvm trademark stuff but I expect them invalid in this context
where we speak about a "canonic" name for a family of platforms, not any
product specifically. Creating a java compatible product however would need
to care about the trademark stuff, but here we do not have this case.

I'll update that patch and to erase the reference to 'sun' which is simply
incorrect. It may even give the wrong result associating the vendor to a
sub-platform that is not tied to this vendor. Thanks a lot for having a look
into the matter, Dalibor. :-)

more comments?
-- guido                                  http://google.de/search?q=guidod
GCS/E/S/P C++/++++$ ULHS L++w- N++@ d(+-) s+a- r+@>+++ y++ 5++X- (geekcode)




From MAILER-DAEMON Wed Sep 24 17:41:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2HO6-0000uo-Bo
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 17:41:30 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2HO2-0000rr-UT
	for classpath@gnu.org; Wed, 24 Sep 2003 17:41:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2HNz-0000q5-He
	for classpath@gnu.org; Wed, 24 Sep 2003 17:41:24 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2HLT-0008JK-Ei
	for classpath@gnu.org; Wed, 24 Sep 2003 17:38:47 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A2HLS-0000BC-00
	for <classpath@gnu.org>; Wed, 24 Sep 2003 23:38:46 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A2HLK-000077-00; Wed, 24 Sep 2003 23:38:38 +0200
Message-ID: <3F720EDE.7090404@kaffe.org>
Date: Wed, 24 Sep 2003 23:38:38 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Guido Draheim <guidod-2003-@gmx.de>
References: <3F607252.6060609@gmx.de> <3F70B3BE.2070905@gmx.de>
	<3F71DCFF.4020508@kaffe.org> <3F71FD18.6090409@gmx.de>
In-Reply-To: <3F71FD18.6090409@gmx.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: java@gnu.org, GNU Classpath <classpath@gnu.org>, libtool@gnu.org,
	visionaries@dotgnu.org, miguel@ximian.com,
	Ben Elliston <bje@wasabisystems.com>, mailing list kaffe <kaffe@kaffe.org>
Subject: Re: dotnet platform support / gnu config.sub (long)
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 21:41:29 -0000

Guido Draheim wrote:
> 
> 
> Dalibor Topic wrote:
> 
>> Guido Draheim wrote:
>>
>>> For the java machine, the term `jvm` is used universally. I do not
>>> remember there were any dependency on pointer lengths, it runs in
>>> managed mode always.
>>
>>
>>
>> JVM, JDK, Java, etc. are all trade marks with associated conditions of 
>> use. http://www.sun.com/suntrademarks/#J . Are you sure you want/need 
>> to use them?
> 
> 
> Yes. Actually, if the target is a java'ish machine then they will have to
> take care of any of that legalese themselves. The config.sub thing is not
> a java'ish thing itself here. - Furthermore, the use context is obviously
> talking about compatiblity with a certain vm type and not identity, as
> expressed in a lot of corners and we know that config.sub simply trying to
> get a "canonic" variant of certain arguments given. jvm, java and similar
> names _are_ the canonic variant of anything quite like it but not
> the product (trademark!) itself.

AFAIK sun has quite strict rules about claiming compatibility with any 
of their Java products. Basically, you can't do it, unless you shell out 
big bucks for a license to their code. But I may misunderstand what you 
want to say.

> No, I've been trying to get a decent cc list for dotnet targets as it is
> a platform target that can have C/C++ source code as input - IOW a target
> that can be different than the primary target of that software. That's not
> the same for java. - I was including java (and python) in the 
> description in
> an attempt to establish guidelines for (any) other VM-type target 
> platforms.

It's just that all those java'ish runtimes are all somehow different in 
my experience, so trying to put some kind of 'it's all mutually 
compatible java' cover on it doesn't really fit. A 'abstract 
machine'-'runtime' mapping only works as long as there are only a few 
runtimes available. In java's case, those days are long gone, and the 
number of options is quite huge, so fitting all of them under the same 
cap is quite complicated, if not impossible. I assume that in few years, 
c# will have the similar problem ;)

cheers,
dalibor topic




From MAILER-DAEMON Wed Sep 24 18:22:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2I1d-0000Ba-US
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 18:22:21 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2I1Z-00007C-45
	for classpath@gnu.org; Wed, 24 Sep 2003 18:22:17 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2I1X-000067-GW
	for classpath@gnu.org; Wed, 24 Sep 2003 18:22:16 -0400
Received: from [24.93.67.84] (helo=ms-smtp-03.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2I1X-00005y-4S
	for classpath@gnu.org; Wed, 24 Sep 2003 18:22:15 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-03.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8OMJZ4R010470; Wed, 24 Sep 2003 18:19:53 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 87503BE641; Wed, 24 Sep 2003 18:20:14 -0400 (EDT)
Sender: cbj@haphazard.org
To: tromey@redhat.com
References: <874qz7jhev.fsf@fleche.redhat.com>
	<m3k7813ol7.fsf@lyta.haphazard.org> <3F6E26D9.2050704@uqam.ca>
	<87llsghiro.fsf@fleche.redhat.com> <m37k402yei.fsf@lyta.haphazard.org>
	<87d6dr14wx.fsf@fleche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 24 Sep 2003 18:20:14 -0400
In-Reply-To: <87d6dr14wx.fsf@fleche.redhat.com>
Message-ID: <m38yod25i9.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>
Subject: Re: auto-formatting: no more jalopy
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 22:22:18 -0000

Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Brian" == Brian Jones <cbj@gnu.org> writes:
> 
> Brian> Bug: Printer Java: GNU brace style does not indent beyond braces
> Brian> http://sourceforge.net/tracker/index.php?func=detail&aid=716393&group_id=45216&atid=442212
> 
> I tried adding gnu-style indent to jalopy today.  Unfortunately the
> result dies while trying to parse our javadoc.  So, I'm giving up.  I
> can send my hack if somebody wants it.  The real "GNU.xml" style file
> is attached to the above PR.

Go ahead and send my way, I'm starting to play with it too.

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



From MAILER-DAEMON Wed Sep 24 20:36:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2JyQ-00037M-J0
	for mharc-classpath@gnu.org; Wed, 24 Sep 2003 20:27:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2Jmx-0000Pw-8F
	for classpath@gnu.org; Wed, 24 Sep 2003 20:15:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2Jl1-0007pE-QZ
	for classpath@gnu.org; Wed, 24 Sep 2003 20:13:20 -0400
Received: from [216.218.240.193] (helo=pogo.kaffe.org)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A2Jky-0007ma-62; Wed, 24 Sep 2003 20:13:16 -0400
Received: from adsl-63-205-167-26.dsl.snfc21.pacbell.net ([63.205.167.26]
	helo=fleming.jimpick.com)
	by pogo.kaffe.org with asmtp (Exim 3.35 #1 (Debian))
	id 1A2JnE-0000dv-00; Wed, 24 Sep 2003 17:15:37 -0700
Date: Wed, 24 Sep 2003 17:13:02 -0700
From: Jim Pick <jim@kaffe.org>
To: Dalibor Topic <robilad@kaffe.org>
Message-Id: <20030924171302.780dd73e.jim@kaffe.org>
In-Reply-To: <3F720EDE.7090404@kaffe.org>
References: <3F607252.6060609@gmx.de> <3F70B3BE.2070905@gmx.de>
	<3F71DCFF.4020508@kaffe.org> <3F71FD18.6090409@gmx.de>
	<3F720EDE.7090404@kaffe.org>
X-Mailer: Sylpheed version 0.9.5 (GTK+ 1.2.10; i386-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: java@gnu.org, miguel@ximian.com, libtool@gnu.org, classpath@gnu.org,
	visionaries@dotgnu.org, guidod-2003-@gmx.de,
	bje@wasabisystems.com, kaffe@kaffe.org
Subject: Re: [kaffe] Re: dotnet platform support / gnu config.sub (long)
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 00:27:07 -0000

On Wed, 24 Sep 2003 23:38:38 +0200
Dalibor Topic <robilad@kaffe.org> wrote:

> >> JVM, JDK, Java, etc. are all trade marks with associated conditions of 
> >> use. http://www.sun.com/suntrademarks/#J . Are you sure you want/need 
> >> to use them?
> > 
> > 
> > Yes. Actually, if the target is a java'ish machine then they will have to
> > take care of any of that legalese themselves. The config.sub thing is not
> > a java'ish thing itself here. - Furthermore, the use context is obviously
> > talking about compatiblity with a certain vm type and not identity, as
> > expressed in a lot of corners and we know that config.sub simply trying to
> > get a "canonic" variant of certain arguments given. jvm, java and similar
> > names _are_ the canonic variant of anything quite like it but not
> > the product (trademark!) itself.
> 
> AFAIK sun has quite strict rules about claiming compatibility with any 
> of their Java products. Basically, you can't do it, unless you shell out 
> big bucks for a license to their code. But I may misunderstand what you 
> want to say.

Sun has a lot of lawyers, and they've been pretty aggressive than most
about staking their claims on the linguistic turf (so they can sell it
off).

Because they claim "Java Compatible"(tm) as a trademark, it makes it
hard to use a normal noun+verb sentence to say that we're compatible
with Java -- we are, by most dictionary definitions, but we're not "Java
Compatible"(tm), under Trademark law.  Maybe we can say that we're
interoperable?  :-)

Anyways, the config.sub name is just going to be used to define a
"target" - so it makes sense to call the target "Java", since it's only
going to be used by tools generating Java byte code, which will run on
Sun's JVM.  Of course it will still run on other virtual machines that
can't use the Java trademark, but that shouldn't be of any concern to
the tools generating the code, IMHO.

Cheers,

 - Jim





From MAILER-DAEMON Thu Sep 25 00:22:57 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2NeX-0000UU-BB
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 00:22:53 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2NeT-0000Ll-3k
	for classpath@gnu.org; Thu, 25 Sep 2003 00:22:49 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2NeO-0000IY-Dq
	for classpath@gnu.org; Thu, 25 Sep 2003 00:22:45 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A2NeN-0000EV-LV
	for classpath@gnu.org; Thu, 25 Sep 2003 00:22:43 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8P4Iqj8043545
	for <classpath@gnu.org>; Thu, 25 Sep 2003 14:18:53 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "classpath" <classpath@gnu.org>
Date: Thu, 25 Sep 2003 14:21:05 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCKEIFDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
Subject: File encodings and initialization sequence
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 04:22:51 -0000

Just wanted to share experiences with the initialization sequence and
trying to resolve the character encoding problem.

To fill in various system properties in Runtime we use native code to
get C char arrays with output from things like uname, cwd etc. These
are returned as Java byte arrays and have to be converted to Java
Strings. The correct way to do this seemed to be to use the
String(byte[]) constructor and ensure the corrected decoder was used.
But this wasn't possible because the EncodingManager.<clinit> uses
System.getProperty and that would be called before System.<clinit> had
actually initialized its properties object. Hence we'd get a
NullPointerException.

To fix this Runtime now forces System to use it's properties object
until System.<clinit> reaches the point were it clones runtime's
properties object. Before I set any system properties I now extract
the default character set name, acquired via native code, and use that
to set the file.encoding property. Then I set all the encoding alias
properties in case the default charset name is actually an alias.
After that I can construct Strings from byte[] using the right
decoding.

I'm curious how others have dealt with this issue. I'm no expert on
character-set/locale/internationalization issues.

Related to this problem, I also found out that any exception that
occurs prior to the point where System clones the runtime properties
will cause recursive exceptions because Throwable.<clinit> also uses
System.getProperty, which will throw NPE. I'd be tempted to have any
static initialization code that needs a system property to read it
direct from Runtime.properties - though of course that only works for
classes in java.lang.

Cheers,
David Holmes




From MAILER-DAEMON Thu Sep 25 03:33:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2Qck-0004d3-69
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 03:33:14 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2Qch-0004cU-Tj
	for classpath@gnu.org; Thu, 25 Sep 2003 03:33:11 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2Qcg-0004c0-AL
	for classpath@gnu.org; Thu, 25 Sep 2003 03:33:10 -0400
Received: from [62.177.154.238] (helo=lembu.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2Qcf-0004bH-SR
	for classpath@gnu.org; Thu, 25 Sep 2003 03:33:10 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 25 Sep 2003 09:32:58 +0200
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC4603@LEMBU.sumatrasoftware.com>
Content-class: urn:content-classes:message
X-MS-Has-Attach: 
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
X-MS-TNEF-Correlator: 
Thread-Topic: VMClassLoader
Thread-Index: AcOC3G/5y8hhH9E9SCm4+Ji2TikjrwAVknDg
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: <tromey@redhat.com>,
	"Classpath Discussion Mailing List" <classpath@gnu.org>
Cc: 
Subject: RE: VMClassLoader
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 07:33:12 -0000

Tom Tromey wrote:
> I think the reference VMClassLoader is subtly incorrect.  Is anybody
> using this code as-is?

I am (in IKVM.NET).

> In particular, I think VMClassLoader.getSystemClassLoader must try to
> use the default system class loader to load the one specified in the
> java.system.class.loader property.  Also, it should pass the default
> system loader as the argument to this loader's constructor.
>=20
> I base this on the Sun JDK docs for=20
> ClassLoader.getSystemClassLoader().
>=20
> Any opinions?  I would check in a cleanup here, but I don't know how
> I would test it...

At the moment I rely on the current (incorrect) behavior. I wouldn't
mind fixing it, but I would like it if we could also remove
gnu.java.lang.SystemClassLoader and replace it with something that
actually works.

My current application (aka system) class loader is simply a
URLClassLoader and it has the extension class loader (another
URLClassLoader) as its parent. I don't see the need for
gnu.java.lang.SystemClassLoader, but I might be missing something.

My proposed implementation of VMClassLoader.getSystemClassLoader looks
something like this (pseudo code):

ClassLoader ext =3D new
URLClassLoader(toURLS(System.getProperty("java.ext.dirs")), null);
ClassLoader app =3D new
URLClassLoader(toURLS(System.getProperty("java.class.path")), ext);
String loader =3D System.getProperty("java.system.class.loader");
if(loader !=3D null) {
  Constructor c =3D Class.forName(loader, true, app).getConstructor(
           new Class[] { ClassLoader.class } );
  return (ClassLoader)c.newInstance(new Object[] { app });
} else {
  return app;
}

Regards,
Jeroen



From MAILER-DAEMON Thu Sep 25 04:24:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2RQC-0006dA-G8
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 04:24:20 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2RQA-0006ca-AQ
	for classpath@gnu.org; Thu, 25 Sep 2003 04:24:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2RQ8-0006bk-3R
	for classpath@gnu.org; Thu, 25 Sep 2003 04:24:16 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2RIP-0004cU-JU
	for classpath@gnu.org; Thu, 25 Sep 2003 04:16:17 -0400
Received: from [192.168.1.33] (197.17.dyn-adsl.customer.ch.easynet.net
	[217.8.197.17])
	by smtp2.mail.ch.easynet.net (Postfix) with ESMTP id 3A514645B4
	for <classpath@gnu.org>; Thu, 25 Sep 2003 10:16:13 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Thu, 25 Sep 2003 10:15:36 +0200
Message-Id: <20030925081536.20508@smtp.mail.ch.easynet.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Task list
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 08:24:19 -0000

Hi all,

I think we should have a page on the Classpath site, listing small tasks
that volunteers could pick. The idea is that a single project would not
take very long to complete, so it would be attractive for people who are
not regular classpath contributors.

Here's a (rather random) proposal for a start. Any other suggestions for
the list?


Libiconv Service Provider for java.nio.charset

  Write a service provider for java.nio.charset that uses the
  libiconv library for converting character encodings to and
  from UTF-16. This would be a first step for replacing
  gnu.java.io.EncodingManager by the java.nio.charset framework,
  which is richer and not specific to Classpath.

  Estimated amount of work: 2 weeks.


Curve Math

  Write helper methods for curve math. This would be useful for
  geometric applications, and for supporting 2D graphics. Search
  for "not implemented" in java.awt.geom.CubicCurve2D and
  java.awt.geom.QuadCurve2D.

  Estimated amount of work: 1 week.


Rounded Rectangles

  Implement the getPathIterator method in java.awt.geom.RoundRectangle2D.
  This would be useful for graphics applications. Hint: Classpath already
  contains a PathIterator for arcs; see java.awt.geom.Arc2D.ArcIterator.

  Estimated amount of work: 1 week.


Flattening Path Iterators

  Implement the class java.awt.geom.FlatteningPathIterator. This would
  be useful for supporting 2D graphics. An implementation could probably
  use the subdivide method of java.awt.geom.CubicCurve2D and QuadCurve2D.

  Estimated amount of work: 1 week.


General Paths

  Implement java.awt.geom.GeneralPath. This would be useful for
  graphics applications.

  Estimated amount of work: 2 weeks.


Constructive Area Geometry

  Implement java.awt.geom.Area. This would be useful for some
  graphics applications.

  Estimated amount of work: 4 weeks (?).

  Skills: Computational geometry.


Composite Contexts

  Implement some CompositeContexts for Porter/Duff operators on raster
  images. This would be useful for supporting 2D graphics. See
  java.awt.AlphaComposite and its createContext method.

  Estimated amount of work: 2 days for each operator.

  Skills: It helps if you are familiar with the java.awt.image
  framework.


Best regards,

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Thu Sep 25 04:27:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2RJZ-0004nk-Ld
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 04:17:29 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2Krr-0002dD-7u
	for classpath@gnu.org; Wed, 24 Sep 2003 21:24:27 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2Krp-0002bT-3R
	for classpath@gnu.org; Wed, 24 Sep 2003 21:24:25 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A2Kro-0002Zk-DT; Wed, 24 Sep 2003 21:24:24 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.10/8.12.10) with ESMTP id h8P1NbWk004505;
	Thu, 25 Sep 2003 11:23:37 +1000 (EST)
Message-Id: <200309250123.h8P1NbWk004505@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: Jim Pick <jim@kaffe.org>
In-Reply-To: Message from Jim Pick <jim@kaffe.org> of "Wed,
	24 Sep 2003 17:13:02 MST." <20030924171302.780dd73e.jim@kaffe.org> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 25 Sep 2003 11:23:54 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
X-Mailman-Approved-At: Thu, 25 Sep 2003 04:17:28 -0400
Cc: java@gnu.org, classpath@gnu.org, guidod-2003-@gmx.de,
	crawley@piglet.dstc.edu.au, libtool@gnu.org, kaffe@kaffe.org,
	miguel@ximian.com, bje@wasabisystems.com, visionaries@dotgnu.org
Subject: Re: [kaffe] Re: dotnet platform support / gnu config.sub (long) 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 01:24:27 -0000


jim@kaffe.org said:
> Sun has a lot of lawyers, and they've been pretty aggressive than most
> about staking their claims on the linguistic turf (so they can sell it
> off).

That's a rather twisted interpretation of Sun's use of trademarks, IMO.
Another way of interpreting this is that Sun is trying to ensure
that third-party Java vendors don't destroy Java's reputation for
platform independence by shipping incompatible implementations.  This
is a good thing for everyone ... apart from unscrupulous vendors like
Microsoft.

> Because they claim "Java Compatible"(tm) as a trademark, it makes it
> hard to use a normal noun+verb sentence to say that we're compatible
> with Java -- we are, by most dictionary definitions, but we're not
> "Java Compatible"(tm), under Trademark law.  Maybe we can say that
> we're interoperable?  :-) 

A dictionary definition of compatible is useless to users of our
software because it is too vague.  We cannot plausibly claim our
software to be "compatible in all respects" with Sun's Java.  So any
claim of compatibility must be qualified in some way to be meaningful.  

By trademarking "Java Compatible", and restricting its use to
implementations that pass the JCK tests, Sun is doing users of Java a
big favor.  It prevents shonky vendors from tricking end users with
misleading claims of Java compatibility.

IMO, the only point against Sun is their unwillingness to make the JCKs
available under conditions that don't exclude typical Open Source java
projects.

-- Steve




From MAILER-DAEMON Thu Sep 25 04:28:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2RJZ-0004ne-D5
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 04:17:29 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2HrF-0008Rr-2H
	for classpath@gnu.org; Wed, 24 Sep 2003 18:11:37 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2HrC-0008PK-Er
	for classpath@gnu.org; Wed, 24 Sep 2003 18:11:35 -0400
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A2HrB-0008N5-Gf
	for classpath@gnu.org; Wed, 24 Sep 2003 18:11:34 -0400
Received: (qmail 3842 invoked by uid 65534); 24 Sep 2003 22:04:48 -0000
Received: from pD9E815DD.dip.t-dialin.net (EHLO gmx.de) (217.232.21.221)
	by mail.gmx.net (mp016) with SMTP; 25 Sep 2003 00:04:48 +0200
X-Authenticated: #670271
Message-ID: <3F721598.8090902@gmx.de>
Date: Thu, 25 Sep 2003 00:07:20 +0200
From: Guido Draheim <guidod-2003-@gmx.de>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Dalibor Topic <robilad@kaffe.org>
References: <3F607252.6060609@gmx.de> <3F70B3BE.2070905@gmx.de>
	<3F71DCFF.4020508@kaffe.org> <3F71FD18.6090409@gmx.de>
	<3F720EDE.7090404@kaffe.org>
In-Reply-To: <3F720EDE.7090404@kaffe.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Thu, 25 Sep 2003 04:17:27 -0400
Cc: java@gnu.org, GNU Classpath <classpath@gnu.org>, libtool@gnu.org,
	visionaries@dotgnu.org, miguel@ximian.com,
	Ben Elliston <bje@wasabisystems.com>, mailing list kaffe <kaffe@kaffe.org>
Subject: Re: dotnet platform support / gnu config.sub (long)
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Sep 2003 22:11:38 -0000



Dalibor Topic wrote:
> Guido Draheim wrote:
> 
>>
>>
>> Dalibor Topic wrote:
>>
>>> Guido Draheim wrote:
>>>
>>>> For the java machine, the term `jvm` is used universally. I do not
>>>> remember there were any dependency on pointer lengths, it runs in
>>>> managed mode always.
>>>
>>>
>>>
>>>
>>> JVM, JDK, Java, etc. are all trade marks with associated conditions 
>>> of use. http://www.sun.com/suntrademarks/#J . Are you sure you 
>>> want/need to use them?
>>
>>
>>
>> Yes. Actually, if the target is a java'ish machine then they will have to
>> take care of any of that legalese themselves. The config.sub thing is not
>> a java'ish thing itself here. - Furthermore, the use context is obviously
>> talking about compatiblity with a certain vm type and not identity, as
>> expressed in a lot of corners and we know that config.sub simply 
>> trying to
>> get a "canonic" variant of certain arguments given. jvm, java and similar
>> names _are_ the canonic variant of anything quite like it but not
>> the product (trademark!) itself.
> 
> 
> AFAIK sun has quite strict rules about claiming compatibility with any 
> of their Java products. Basically, you can't do it, unless you shell out 
> big bucks for a license to their code. But I may misunderstand what you 
> want to say.

Exactly that - there is no product here. It's a different thing whether
addon software wants to be compilable for java licenced only or
even java lookalikes. The difference is often not important during
compiling (of source), it may only be interesting during advertising
of a product (the binary).

> 
>> No, I've been trying to get a decent cc list for dotnet targets as it is
>> a platform target that can have C/C++ source code as input - IOW a target
>> that can be different than the primary target of that software. That's 
>> not
>> the same for java. - I was including java (and python) in the 
>> description in
>> an attempt to establish guidelines for (any) other VM-type target 
>> platforms.
> 
> 
> It's just that all those java'ish runtimes are all somehow different in 
> my experience, so trying to put some kind of 'it's all mutually 
> compatible java' cover on it doesn't really fit. A 'abstract 
> machine'-'runtime' mapping only works as long as there are only a few 
> runtimes available. In java's case, those days are long gone, and the 
> number of options is quite huge, so fitting all of them under the same 
> cap is quite complicated, if not impossible. I assume that in few years, 
> c# will have the similar problem ;)
> 

*LOL* there are so many i*86 compatibles, and we still put them
under the same umbrella for autoconf'iguring software. You know, here
we speak about addon software that wants to configure itself to the
_specifics_ of a _platform_. It is not important how many derivatives
are there, or even lookalikes, - however for the task of getting at
the specifics, and well, we _need_ a general guideline of the platform
family in which we want to test for specifics.





From MAILER-DAEMON Thu Sep 25 05:32:12 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2STs-0003hF-Ks
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 05:32:12 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2STn-0003e9-Rg
	for classpath@gnu.org; Thu, 25 Sep 2003 05:32:07 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2STm-0003dx-DF
	for classpath@gnu.org; Thu, 25 Sep 2003 05:32:06 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2ST8-0003a1-EM
	for classpath@gnu.org; Thu, 25 Sep 2003 05:31:26 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A2ST7-0008Ce-00
	for <classpath@gnu.org>; Thu, 25 Sep 2003 11:31:25 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A2ST4-0008Bt-00; Thu, 25 Sep 2003 11:31:22 +0200
Message-ID: <3F72B5E9.3050503@kaffe.org>
Date: Thu, 25 Sep 2003 11:31:21 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
References: <20030923.225602.108367757.arnaud.vandyck@ulg.ac.be>
In-Reply-To: <20030923.225602.108367757.arnaud.vandyck@ulg.ac.be>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: classpath@gnu.org, kaffe@kaffe.org
Subject: Re: [kaffe] Kaffe and gjdoc
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 09:32:10 -0000

Arnaud Vandyck wrote:
> Hi everybody,
> 
> [I do Cc: classpath because I'm not on cp-tools but someone can maybe forward]
> 
> The good news:
> --------------
> 
> kaffe can run ant and build something (but maybe everyone already know! ;))
> 
> The bad news:
> -------------
> 
> gjdoc from cvs is broken because of java.util.jar.JarFile.OPEN_READ. 

Salut Arnaud,

thanks for your bug report, it's fixed in kaffe's CVS now. I've merged 
in the fields from GNU Classpath. Could you give gjdoc on kaffe another 
spin?

cheers,
dalibor topic





From MAILER-DAEMON Thu Sep 25 06:39:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2TRI-00052e-1j
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 06:33:36 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2TCQ-0001EY-IN
	for classpath@gnu.org; Thu, 25 Sep 2003 06:18:14 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2TCO-0001E5-Hp
	for classpath@gnu.org; Thu, 25 Sep 2003 06:18:13 -0400
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A2TCN-0001Dn-OX; Thu, 25 Sep 2003 06:18:11 -0400
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8PAIA117207;
	Thu, 25 Sep 2003 06:18:10 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8PAIAc19180; 
	Thu, 25 Sep 2003 06:18:10 -0400
Received: from cuddles.cambridge.redhat.com
	(IDENT:CrzPX2LYdcMN+aIdNMalScv2lEemzHdZ@vpn50-27.rdu.redhat.com
	[172.16.50.27])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8PAI9eX002352; 
	Thu, 25 Sep 2003 06:18:10 -0400
Received: from cuddles.cambridge.redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	h8PAI5uv031621; Thu, 25 Sep 2003 11:18:06 +0100
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8/Submit) id
	h8PAI1Wa031617; Thu, 25 Sep 2003 11:18:01 +0100
From: Andrew Haley <aph@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16242.49369.369998.884238@cuddles.cambridge.redhat.com>
Date: Thu, 25 Sep 2003 11:18:01 +0100
To: Stephen Crawley <crawley@dstc.edu.au>
In-Reply-To: <200309250123.h8P1NbWk004505@piglet.dstc.edu.au>
References: <jim@kaffe.org> <20030924171302.780dd73e.jim@kaffe.org>
	<200309250123.h8P1NbWk004505@piglet.dstc.edu.au>
X-Mailer: VM 7.14 under Emacs 21.2.1
X-Mailman-Approved-At: Thu, 25 Sep 2003 06:33:32 -0400
Cc: java@gnu.org, miguel@ximian.com, classpath@gnu.org,
	Jim Pick <jim@kaffe.org>, crawley@piglet.dstc.edu.au,
	libtool@gnu.org, visionaries@dotgnu.org, guidod-2003-@gmx.de,
	bje@wasabisystems.com, kaffe@kaffe.org
Subject: Re: [kaffe] Re: dotnet platform support / gnu config.sub (long) 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 10:18:20 -0000

Stephen Crawley writes:
 > 
 > jim@kaffe.org said:
 > > Sun has a lot of lawyers, and they've been pretty aggressive than most
 > > about staking their claims on the linguistic turf (so they can sell it
 > > off).
 > 
 > That's a rather twisted interpretation of Sun's use of trademarks, IMO.
 > Another way of interpreting this is that Sun is trying to ensure
 > that third-party Java vendors don't destroy Java's reputation for
 > platform independence by shipping incompatible implementations.

It doesn't matter what their motivation is.  What we do know is that
we can't call our system "Java".  Instead we have to call it something
like "The GNU Compiler for the Java[tm] Programming Language".  As
long as we stick to that, we're OK.

It's useful for us to know that "JVM" is a trademark so we may not use
it for our own work.

 > This is a good thing for everyone ... apart from unscrupulous
 > vendors like Microsoft.
 > 
 > > Because they claim "Java Compatible"(tm) as a trademark, it makes it
 > > hard to use a normal noun+verb sentence to say that we're compatible
 > > with Java -- we are, by most dictionary definitions, but we're not
 > > "Java Compatible"(tm), under Trademark law.  Maybe we can say that
 > > we're interoperable?  :-) 
 > 
 > A dictionary definition of compatible is useless to users of our
 > software because it is too vague.  We cannot plausibly claim our
 > software to be "compatible in all respects" with Sun's Java.  So any
 > claim of compatibility must be qualified in some way to be meaningful.  

Yes.

 > By trademarking "Java Compatible", and restricting its use to
 > implementations that pass the JCK tests, Sun is doing users of Java a
 > big favor.  It prevents shonky vendors from tricking end users with
 > misleading claims of Java compatibility.

All that we have to know is what we may and may not do.  And that
seems to be quite well-defined.

Andrew.



From MAILER-DAEMON Thu Sep 25 07:40:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2UTs-0003iO-La
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 07:40:20 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2UTp-0003hP-52
	for classpath@gnu.org; Thu, 25 Sep 2003 07:40:17 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2UTn-0003gv-9e
	for classpath@gnu.org; Thu, 25 Sep 2003 07:40:15 -0400
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2USw-0003Sd-Mz
	for classpath@gnu.org; Thu, 25 Sep 2003 07:39:22 -0400
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8PBdH105207
	for <classpath@gnu.org>; Thu, 25 Sep 2003 07:39:17 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8PBdHc11688
	for <classpath@gnu.org>; Thu, 25 Sep 2003 07:39:17 -0400
Received: from cuddles.cambridge.redhat.com
	(IDENT:YlAk1kd+I5/9QwS93vr20xlqWsiJYKW6@vpn50-27.rdu.redhat.com
	[172.16.50.27])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8PBdFeX007758
	for <classpath@gnu.org>; Thu, 25 Sep 2003 07:39:16 -0400
Received: from cuddles.cambridge.redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	h8PBdEuv031872
	for <classpath@gnu.org>; Thu, 25 Sep 2003 12:39:15 +0100
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8/Submit) id
	h8PBcnKR031870 for classpath@gnu.org; Thu, 25 Sep 2003 12:38:49 +0100
Date: Thu, 25 Sep 2003 12:38:49 +0100
Message-Id: <200309251138.h8PBcnKR031870@cuddles.cambridge.redhat.com>
From: Andrew Haley <aph@redhat.com>
To: classpath@gnu.org
Subject: (no subject)
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 11:40:18 -0000

Stephen Crawley writes:
 > 
 > jim@kaffe.org said:
 > > Sun has a lot of lawyers, and they've been pretty aggressive than most
 > > about staking their claims on the linguistic turf (so they can sell it
 > > off).
 > 
 > That's a rather twisted interpretation of Sun's use of trademarks, IMO.
 > Another way of interpreting this is that Sun is trying to ensure
 > that third-party Java vendors don't destroy Java's reputation for
 > platform independence by shipping incompatible implementations.

It doesn't matter what their motivation is.  What we do know is that
we can't call our system "Java".  Instead we have to call it something
like "The GNU Compiler for the Java[tm] Programming Language".  As
long as we stick to that, we're OK.

It's useful for us to know that "JVM" is a trademark so we may not use
it for our own work.

 > This is a good thing for everyone ... apart from unscrupulous
 > vendors like Microsoft.
 > 
 > > Because they claim "Java Compatible"(tm) as a trademark, it makes it
 > > hard to use a normal noun+verb sentence to say that we're compatible
 > > with Java -- we are, by most dictionary definitions, but we're not
 > > "Java Compatible"(tm), under Trademark law.  Maybe we can say that
 > > we're interoperable?  :-) 
 > 
 > A dictionary definition of compatible is useless to users of our
 > software because it is too vague.  We cannot plausibly claim our
 > software to be "compatible in all respects" with Sun's Java.  So any
 > claim of compatibility must be qualified in some way to be meaningful.  

Yes.

 > By trademarking "Java Compatible", and restricting its use to
 > implementations that pass the JCK tests, Sun is doing users of Java a
 > big favor.  It prevents shonky vendors from tricking end users with
 > misleading claims of Java compatibility.

All that we have to know is what we may and may not do.  And that
seems to be quite well-defined.

Andrew.



From MAILER-DAEMON Thu Sep 25 09:47:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2WTH-00066I-1Q
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 09:47:51 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2WTE-00065Z-G2
	for classpath@gnu.org; Thu, 25 Sep 2003 09:47:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2WTA-00063W-Am
	for classpath@gnu.org; Thu, 25 Sep 2003 09:47:47 -0400
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2WT9-00062l-7A
	for classpath@gnu.org; Thu, 25 Sep 2003 09:47:43 -0400
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1A2WSz-0007xP-00; Thu, 25 Sep 2003 15:47:33 +0200
From: Mark Wielaard <mark@klomp.org>
To: Dalibor Topic <robilad@kaffe.org>
In-Reply-To: <3F71D22C.9020308@kaffe.org>
References: <20030924111829.GA1122@yahoo.com>  <3F71D22C.9020308@kaffe.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-RyCDDYWRSxWPk9IgByiz"
Message-Id: <1064497654.1787.73.camel@elsschot>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4 
Date: Thu, 25 Sep 2003 15:47:35 +0200
Cc: classpath@gnu.org
Subject: Re: Classpath - javax.sound implementation - which library?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 13:47:49 -0000


--=-RyCDDYWRSxWPk9IgByiz
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Wed, 2003-09-24 at 19:19, Dalibor Topic wrote:
> Ricky Clarkson wrote:
> > I've been looking at tritonus, and its mixer capabilities are
> > ALSA-specific (hence Linux-specific).  Is there some other library that
> > would be viable for Classpath, such as SDL, that would be more portable=
?
>=20
> Tritonus also supports ESD as it backed, I've merged in both into kaffe.=20
>   The tritonus developers were quite open minded about others=20
> contributing backends for other libraries when I spoke to them last time=20
> around (when the code was merged into kaffe).
>=20
> And it works quite well, by the way ;)

Nice. Have people tried it out with gcj, kissme or some other VM based
on GNU Classpath?

> > I'm not sure of licensing issues around SDL or even tritonus, but
> > tritonus is LGPL, and the authors are apparently flexible on licensing.
>=20
> I doubt LGPL will work with classpath as
>=20
> a) LGPL can be transformed to GPL, which is not equal to GPL + linking=20
> exception that Classpath has

Which does not mean we cannot recommend using their implementation of
javax.sound as is on GNU/Linux systems if it just works out of the box
and has no non-free dependencies. Our current AWT implementation is also
depends on LGPL code (gtk+). The LGPL makes sharing some code with
people who are mainly interested in embedded systems more difficult, but
since tritonus depends on ALSA and/or ESD which are already distributed
under the (L)GPL this doesn't really matter.

> b) Tritonus developers would have to submit their copyrights for the=20
> code to the FSF anyway for the code to enter Classpath.

If we want to distribute it as an integral part of GNU Classpath then
making sure that all code is assigned to the FSF is the preferred way to
go. But there are other ways we could package things.

> So the best course of action would seem to be to have Mark contact them=20
> about contributing their code to Classpath. I would fully support such a=20
> move.

As soon as I have tried it out (might take a couple of days) I will
contact them about how best to work together.

Cheers,

Mark

--=-RyCDDYWRSxWPk9IgByiz
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/cvH2xVhZCJWr9QwRAi09AKCFL011/1EA8VQITz5FDnmaTN0kFwCfc8F7
MGjC8ic8lWTgnDmkZ7n1qQQ=
=/NXI
-----END PGP SIGNATURE-----

--=-RyCDDYWRSxWPk9IgByiz--




From MAILER-DAEMON Thu Sep 25 10:06:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2Wes-0000yM-LF
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 09:59:50 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2WXx-0007T1-L3
	for classpath@gnu.org; Thu, 25 Sep 2003 09:52:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2WXe-0007Pe-62
	for classpath@gnu.org; Thu, 25 Sep 2003 09:52:23 -0400
Received: from [217.8.192.20] (helo=smtp1.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2WPK-0004yA-9r
	for classpath@gnu.org; Thu, 25 Sep 2003 09:43:46 -0400
Received: from [192.168.1.33] (197.17.dyn-adsl.customer.ch.easynet.net
	[217.8.197.17]) by smtp1.mail.ch.easynet.net (Postfix) with ESMTP
	id 06E5249FE5; Thu, 25 Sep 2003 15:43:44 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: =?ISO-8859-1?Q?Ingo=20Pr=F6tel?= <proetel@aicas.com>
Date: Thu, 25 Sep 2003 15:43:10 +0200
Message-Id: <20030925134310.26887@smtp.mail.ch.easynet.net>
In-Reply-To: <3F705F17.7060902@aicas.com>
References: <3F705F17.7060902@aicas.com>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 13:59:48 -0000

Ingo Pr=F6tel <proetel@aicas.com> wrote on Tue, 23 Sep 2003 16:56:23 +02=
00:

>I would like to again propose a standard NYIException to be used in 
>Classpath.
>
>[...]
>
>package gnu.org.classpath;

Are you sure about this package name=3F

>public class NYIException extends UnsupportedOperationException 

I'd favor "NotYetImplementedException". Class names tend to be very
verbose in Java, and IMHO it would make sense to follow that style.

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/=
 





From MAILER-DAEMON Thu Sep 25 10:18:59 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2WxP-00062M-A0
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 10:18:59 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2WxM-000621-AK
	for classpath@gnu.org; Thu, 25 Sep 2003 10:18:56 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2WxK-00061k-Hf
	for classpath@gnu.org; Thu, 25 Sep 2003 10:18:55 -0400
Received: from [212.6.122.106] (helo=mail1.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2WxJ-00061b-Q3
	for classpath@gnu.org; Thu, 25 Sep 2003 10:18:53 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-75-159.ewetel.net
	[80.228.75.159])
	by mail1.ewetel.de (8.12.1/8.12.9) with ESMTP id h8PEIpX1012281
	for <classpath@gnu.org>; Thu, 25 Sep 2003 16:18:51 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A2WxJ-0004cM-00
	for <classpath@gnu.org>; Thu, 25 Sep 2003 16:18:53 +0200
From: Michael Koch <konqueror@gmx.de>
To: classpath@gnu.org
Date: Thu, 25 Sep 2003 16:21:05 +0200
User-Agent: KMail/1.5.2
References: <3F705F17.7060902@aicas.com>
	<20030925134310.26887@smtp.mail.ch.easynet.net>
In-Reply-To: <20030925134310.26887@smtp.mail.ch.easynet.net>
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: <200309251621.05462.konqueror@gmx.de>
X-CheckCompat: OK
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 14:18:57 -0000

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

Am Donnerstag, 25. September 2003 15:43 schrieb Sascha Brawer:
> Ingo Pr=F6tel <proetel@aicas.com> wrote on Tue, 23 Sep 2003 16:56:23=20
+0200:
> >I would like to again propose a standard NYIException to be used
> > in Classpath.
> >
> >[...]
> >
> >package gnu.org.classpath;
>
> Are you sure about this package name?

IMO gnu.classpath would be the correct package name.

> >public class NYIException extends UnsupportedOperationException
>
> I'd favor "NotYetImplementedException". Class names tend to be very
> verbose in Java, and IMHO it would make sense to follow that style.

I second this.


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

iD8DBQE/cvnRWSOgCCdjSDsRAtVgAJ4kfadDQAXX4C13tzR3al0naBWlQQCfaLWy
brJeCOkCmcww0e4c6+BDFlY=3D
=3DEU4d
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Thu Sep 25 10:52:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2XU8-0004XI-Nj
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 10:52:48 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2XU4-0004VC-FF
	for classpath@gnu.org; Thu, 25 Sep 2003 10:52:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2XLD-0002lb-0e
	for classpath@gnu.org; Thu, 25 Sep 2003 10:43:35 -0400
Received: from [139.165.32.78] (helo=serv09.segi.ulg.ac.be)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2XDD-0001Lz-Aj
	for classpath@gnu.org; Thu, 25 Sep 2003 10:35:19 -0400
Received: (qmail 12348 invoked by uid 504); 25 Sep 2003 16:35:17 +0200
Received: from arnaud.vandyck@ulg.ac.be by serv09.segi.ulg.ac.be by uid 501
	with qmail-scanner-1.16 
	(clamscan: 0.60. spamassassin: 2.55.  Clear:. 
	Processed in 0.341987 secs); 25 Sep 2003 14:35:17 -0000
Received: from unknown (HELO localhost) ([139.165.77.48])
	(envelope-sender <arnaud.vandyck@ulg.ac.be>)
	by serv09.segi.ulg.ac.be (qmail-ldap-1.03) with SMTP
	for <classpath@gnu.org>; 25 Sep 2003 16:35:16 +0200
Date: Thu, 25 Sep 2003 16:35:16 +0200 (CEST)
Message-Id: <20030925.163516.21240300.arnaud.vandyck@ulg.ac.be>
To: classpath@gnu.org
From: Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
In-Reply-To: <20030925134310.26887@smtp.mail.ch.easynet.net>
References: <3F705F17.7060902@aicas.com>
	<20030925134310.26887@smtp.mail.ch.easynet.net>
Organization: STE-Formations Informatiques, ULg
X-Fingerprint: 82F3 45D0 F1B2 D79E D0BE  5188 E2FC C566 EEB6 B4C2
X-URL: http://vbstefi60.fapse.ulg.ac.be/~arnaud/
X-Face: ".{A?<Dzy|V1IPZL0O-B-~G{n+`j%t7K$Y`:u[w54'>P>_0mS1E$Wn4RK&CR)_yvw`),0&;
	?-]upzJvA]->#pP:$si]X039T'Qrd}9t=!EstonSVE1F$dtgGsRC"lyQnP+H6/g:f^d:,0@)P#xCy9?MmW[8n{8B75hA_=]O7TRZ~r9SE6CL*xpR8k4'~!5B8"|u
X-Mailer: Mew version 4.0.58 on Emacs 21.3 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 14:52:45 -0000

On Thu, 25 Sep 2003 15:43:10 +0200
Sascha Brawer <brawer@dandelis.ch> wrote:

> I'd favor "NotYetImplementedException". Class names tend to be very 
> verbose in Java, and IMHO it would make sense to follow that style.

... even if NY is exceptionnel! ;)

-- Arnaud Vandyck, STE fi, ULg
   Formateur Cellule Programmation.



From MAILER-DAEMON Thu Sep 25 11:02:32 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2XdX-0005qs-O3
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 11:02:31 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2XdU-0005pt-TC
	for classpath@gnu.org; Thu, 25 Sep 2003 11:02:28 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2XdN-0005pH-B8
	for classpath@gnu.org; Thu, 25 Sep 2003 11:02:24 -0400
Received: from [212.227.126.187] (helo=moutng.kundenserver.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2XVB-0004bM-Ug
	for classpath@gnu.org; Thu, 25 Sep 2003 10:53:54 -0400
Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de)
	by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
	id 1A2XVA-0008Am-00
	for classpath@gnu.org; Thu, 25 Sep 2003 16:53:52 +0200
Received: from [212.126.196.45] (helo=aicas.com)
	by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128)
	(Exim 3.35 #1) id 1A2XVA-00078K-00
	for classpath@gnu.org; Thu, 25 Sep 2003 16:53:52 +0200
Message-ID: <3F73017F.7010404@aicas.com>
Date: Thu, 25 Sep 2003 16:53:51 +0200
From: =?ISO-8859-1?Q?Ingo_Pr=F6tel?= <proetel@aicas.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: GNU Classpath <classpath@gnu.org>
References: <3F705F17.7060902@aicas.com>
	<20030925134310.26887@smtp.mail.ch.easynet.net>
In-Reply-To: <20030925134310.26887@smtp.mail.ch.easynet.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 15:02:29 -0000

Hi Sascha,


Sascha Brawer wrote:
> Ingo Prötel <proetel@aicas.com> wrote on Tue, 23 Sep 2003 16:56:23 +0200:
> 
> 
>>I would like to again propose a standard NYIException to be used in 
>>Classpath.
>>
>>[...]
>>
>>package gnu.org.classpath;
> 
> 
> Are you sure about this package name?

This should be
package gnu.classpath;
> 
> 
>>public class NYIException extends UnsupportedOperationException 
> 
> 
> I'd favor "NotYetImplementedException". Class names tend to be very
> verbose in Java, and IMHO it would make sense to follow that style.

We can certainly do this. I also appreciate if an exception name already 
  describes the problem. But I also must caution against using too long 
names. Especially for classes with inner classes. Such Classes result in 
very long class-filenames. Some Systems have hard limits on these names.
Something like: Collections$UnmodifiableMap$UnmodifiableEntrySet$1$1.class
will not work on a QNX system with a limit of 48 chars in a filename.

But since this will likely not be a problem on an exception I will take 
the long name.

--ingo

> 
> -- Sascha
> 
> Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 
> 
> 
> 




From MAILER-DAEMON Thu Sep 25 11:47:18 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2YKq-0007tu-Pa
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 11:47:16 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2Y9x-0004Qs-Be
	for classpath@gnu.org; Thu, 25 Sep 2003 11:36:01 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2Y24-0002ae-Kt
	for classpath@gnu.org; Thu, 25 Sep 2003 11:27:53 -0400
Received: from [209.222.224.106] (helo=griffin.griffaction.ca)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2Xxo-0001Pa-DO
	for classpath@gnu.org; Thu, 25 Sep 2003 11:23:28 -0400
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by griffin.griffaction.ca with esmtp (Exim 3.36 #1 (Debian))
	id 1A2Xxd-0008K1-00
	for <classpath@gnu.org>; Thu, 25 Sep 2003 11:23:17 -0400
Message-ID: <3F730864.6080500@uqam.ca>
Date: Thu, 25 Sep 2003 11:23:16 -0400
From: Etienne Gagnon <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.4) Gecko/20030908 Debian/1.4-4
X-Accept-Language: en
MIME-Version: 1.0
To: GNU Classpath <classpath@gnu.org>
References: <3F705F17.7060902@aicas.com>	<20030925134310.26887@smtp.mail.ch.easynet.net>
	<3F73017F.7010404@aicas.com>
In-Reply-To: <3F73017F.7010404@aicas.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 15:47:15 -0000

Ingo Pr=F6tel wrote:
> We can certainly do this. I also appreciate if an exception name alread=
y=20
>  describes the problem. But I also must caution against using too long =

> names. Especially for classes with inner classes. Such Classes result i=
n=20
> very long class-filenames. Some Systems have hard limits on these names=
=2E
> Something like: Collections$UnmodifiableMap$UnmodifiableEntrySet$1$1.cl=
ass
> will not work on a QNX system with a limit of 48 chars in a filename.


On such system, you should simply put the classes in a .jar file.  Th=20
think that we should not limit the readability an intuitiveness of the=20
source code for such system-specific problem.

Etienne

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




From MAILER-DAEMON Thu Sep 25 12:18:12 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2Yok-00069j-C3
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 12:18:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2YgP-0003tU-EL
	for classpath@gnu.org; Thu, 25 Sep 2003 12:09:33 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2YGo-0006zO-OZ
	for classpath@gnu.org; Thu, 25 Sep 2003 11:43:07 -0400
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2YGb-0006sU-AR
	for classpath@gnu.org; Thu, 25 Sep 2003 11:42:53 -0400
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1A2YGV-0008Eo-00; Thu, 25 Sep 2003 17:42:47 +0200
From: Mark Wielaard <mark@klomp.org>
To: Per Bothner <per@bothner.com>
In-Reply-To: <3F47A9A4.6070001@bothner.com>
References: <1061558747.29432.67.camel@elsschot>
	<3F479134.6030205@bothner.com> <1061656095.29429.82.camel@elsschot>
	<3F47A9A4.6070001@bothner.com>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-fXgZ7qmUINfYGuWxuazi"
Message-Id: <1064504569.1784.136.camel@elsschot>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4 
Date: Thu, 25 Sep 2003 17:42:49 +0200
Cc: classpath@gnu.org
Subject: Re: GNU Classpath 0.06 created
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 16:18:09 -0000


--=-fXgZ7qmUINfYGuWxuazi
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Sat, 2003-08-23 at 19:51, Per Bothner wrote:
> If you've created a cvs tag, and given it a real version number,
> I'd call it a release, even if it's not a 1.0 relase.  alpha.gnu.org
> has outlived its usefulness (evidenced by the fact that it is little
> used) now that "alpha" code is available in CVS for most projects.
>=20
> Note that alpha.gnu.org is not mirrored the way ftp.gnu.org is.

The 0.06 release is now finally up on ftp://alpha.gnu.org/gnu/classpath/
I changed the webpages to point again to this location for downloading
it. And added a little news item to the Savannah pages.

I did ask about moving it to ftp.gnu.org, and about putting back older
releases and putting up daily snapshot releases, but they didn't
currently have time to do that. They are looking for an extra system
administrator BTW so in the future these things will hopefully be
handled a little smoother. See http://www.gnu.org/jobs/fsf-sysadmin.html

Cheers,

Mark

--=-fXgZ7qmUINfYGuWxuazi
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/cwz5xVhZCJWr9QwRAvlCAJsGyA5sCHP/BJlufyPtKhbGeOgUNgCdHeGR
fhNEKNO6l/3bP+tJtYFWYtg=
=e0Io
-----END PGP SIGNATURE-----

--=-fXgZ7qmUINfYGuWxuazi--




From MAILER-DAEMON Thu Sep 25 14:26:06 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2aoY-0000vC-6A
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 14:26:06 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2aoU-0000tz-IC
	for classpath@gnu.org; Thu, 25 Sep 2003 14:26:02 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2aoS-0000tD-8F
	for classpath@gnu.org; Thu, 25 Sep 2003 14:26:00 -0400
Received: from [209.92.1.31] (helo=newmx1.fast.net)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A2aoR-0000sv-MJ
	for classpath@gnu.org; Thu, 25 Sep 2003 14:25:59 -0400
Received: (qmail 13562 invoked from network); 25 Sep 2003 18:25:58 -0000
Received: from unknown (HELO corp.fast.net) ([209.152.221.64])
	(envelope-sender <stuart.ballard@corp.fast.net>)
	by newmx1.fast.net (qmail-ldap-1.03) with SMTP
	for <classpath@gnu.org>; 25 Sep 2003 18:25:58 -0000
Message-ID: <3F733335.3050808@corp.fast.net>
Date: Thu, 25 Sep 2003 14:25:57 -0400
From: Stuart Ballard <stuart.ballard@corp.fast.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.3.1) Gecko/20030527 Debian/1.3.1-2
X-Accept-Language: en
MIME-Version: 1.0
To: GNU Classpath <classpath@gnu.org>
References: <3F71A075.9020405@corp.fast.net>
In-Reply-To: <3F71A075.9020405@corp.fast.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 18:26:03 -0000

Stuart Ballard wrote:
> The HashMap putAll and putAllInternal (called from constructor) methods 
> use size() to get the size of the map to be added, and then iterate over 
> the iterator that many times to add elements. Instead, they should call 
> hasNext() on the iterator.

Attached is a patch to HashMap and Hashtable to fix this issue.

I gave up on trying to fix it for "all" classes when I noticed that 
ArrayList was actually doing meaningful optimization based on the 
returned size. It would probably still be worth testing Sun's 
implementation of all the *List and *Set classes, and Vector, to see how 
they cope with an inaccurate return from size().

If someone would test and apply this patch, I'd be extremely grateful. 
(my paperwork was completed years ago, in case it matters - this patch 
is probably too small to care, anyway). The patch is untested as I've 
never been able to successfully build Classpath from source.

Thanks,
Stuart.

-- 
Stuart Ballard, Senior Web Developer
FASTNET - Web Solutions
(215) 283-2300, ext. 126
www.fast.net




From MAILER-DAEMON Thu Sep 25 14:35:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2axp-0003Jn-Tg
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 14:35:41 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2axo-0003JJ-2K
	for classpath@gnu.org; Thu, 25 Sep 2003 14:35:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2axm-0003If-Di
	for classpath@gnu.org; Thu, 25 Sep 2003 14:35:39 -0400
Received: from [209.92.1.31] (helo=newmx1.fast.net)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A2apJ-00014y-3U
	for classpath@gnu.org; Thu, 25 Sep 2003 14:26:53 -0400
Received: (qmail 16979 invoked from network); 25 Sep 2003 18:26:51 -0000
Received: from unknown (HELO corp.fast.net) ([209.152.221.64])
	(envelope-sender <stuart.ballard@corp.fast.net>)
	by newmx1.fast.net (qmail-ldap-1.03) with SMTP
	for <classpath@gnu.org>; 25 Sep 2003 18:26:51 -0000
Message-ID: <3F73336A.7060300@corp.fast.net>
Date: Thu, 25 Sep 2003 14:26:50 -0400
From: Stuart Ballard <stuart.ballard@corp.fast.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.3.1) Gecko/20030527 Debian/1.3.1-2
X-Accept-Language: en
MIME-Version: 1.0
To: GNU Classpath <classpath@gnu.org>
References: <3F71A075.9020405@corp.fast.net>
In-Reply-To: <3F71A075.9020405@corp.fast.net>
Content-Type: multipart/mixed; boundary="------------020805060403040902040107"
Subject: [really patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 18:35:40 -0000

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

Bah, forgot the attachment.

-- 
Stuart Ballard, Senior Web Developer
FASTNET - Web Solutions
(215) 283-2300, ext. 126
www.fast.net

--------------020805060403040902040107
Content-Type: text/plain;
 name="classpath.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="classpath.patch"

Index: HashMap.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/HashMap.java,v
retrieving revision 1.24
diff -u -r1.24 HashMap.java
--- HashMap.java	1 Aug 2003 03:31:32 -0000	1.24
+++ HashMap.java	25 Sep 2003 18:16:52 -0000
@@ -381,8 +381,7 @@
   public void putAll(Map m)
   {
     Iterator itr = m.entrySet().iterator();
-    int msize = m.size();
-    while (msize-- > 0)
+    while (itr.hasNext())
       {
         Map.Entry e = (Map.Entry) itr.next();
         // Optimize in case the Entry is one of our own.
@@ -709,10 +708,10 @@
   void putAllInternal(Map m)
   {
     Iterator itr = m.entrySet().iterator();
-    int msize = m.size();
-    size = msize;
-    while (msize-- > 0)
+    size = 0;
+    while (itr.hasNext())
       {
+        size++;
 	Map.Entry e = (Map.Entry) itr.next();
 	Object key = e.getKey();
 	int idx = hash(key);
Index: Hashtable.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/Hashtable.java,v
retrieving revision 1.28
diff -u -r1.28 Hashtable.java
--- Hashtable.java	7 May 2002 05:13:05 -0000	1.28
+++ Hashtable.java	25 Sep 2003 18:16:52 -0000
@@ -510,7 +510,7 @@
   {
     Iterator itr = m.entrySet().iterator();
 
-    for (int msize = m.size(); msize > 0; msize--)
+    while (itr.hasNext())
       {
         Map.Entry e = (Map.Entry) itr.next();
         // Optimize in case the Entry is one of our own.
@@ -859,11 +859,11 @@
   void putAllInternal(Map m)
   {
     Iterator itr = m.entrySet().iterator();
-    int msize = m.size();
-    this.size = msize;
+    size = 0;
 
-    for (; msize > 0; msize--)
+    while (itr.hasNext())
       {
+        size++;
 	Map.Entry e = (Map.Entry) itr.next();
 	Object key = e.getKey();
 	int idx = hash(key);

--------------020805060403040902040107--




From MAILER-DAEMON Thu Sep 25 14:43:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2b5V-00069o-Ei
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 14:43:37 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2b5O-00067Y-A9
	for classpath@gnu.org; Thu, 25 Sep 2003 14:43:30 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2azn-0004NS-5z
	for classpath@gnu.org; Thu, 25 Sep 2003 14:37:43 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2azX-0004Fm-Mr
	for classpath@gnu.org; Thu, 25 Sep 2003 14:37:27 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A2azV-0006Bw-00
	for <classpath@gnu.org>; Thu, 25 Sep 2003 20:37:25 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A2azT-0006Ad-00; Thu, 25 Sep 2003 20:37:23 +0200
Message-ID: <3F7335E3.2090101@kaffe.org>
Date: Thu, 25 Sep 2003 20:37:23 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Stuart Ballard <stuart.ballard@corp.fast.net>
References: <3F71A075.9020405@corp.fast.net> <3F733335.3050808@corp.fast.net>
In-Reply-To: <3F733335.3050808@corp.fast.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: [patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 18:43:32 -0000

Stuart Ballard wrote:
> Stuart Ballard wrote:
> 
>> The HashMap putAll and putAllInternal (called from constructor) 
>> methods use size() to get the size of the map to be added, and then 
>> iterate over the iterator that many times to add elements. Instead, 
>> they should call hasNext() on the iterator.
> 
> 
> Attached is a patch to HashMap and Hashtable to fix this issue.

Not attached here ;)

> If someone would test and apply this patch, I'd be extremely grateful. 
> (my paperwork was completed years ago, in case it matters - this patch 
> is probably too small to care, anyway). The patch is untested as I've 
> never been able to successfully build Classpath from source.

Could you give it spin on kaffe from CVS? It uses Classpath's collection 
classes.

cheers,
dalibor topic




From MAILER-DAEMON Thu Sep 25 16:02:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2cJU-0000Df-Ed
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 16:02:08 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2cJS-0000CO-Gr
	for classpath@gnu.org; Thu, 25 Sep 2003 16:02:06 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2cJQ-0000Bi-Pn
	for classpath@gnu.org; Thu, 25 Sep 2003 16:02:05 -0400
Received: from [209.92.1.31] (helo=newmx1.fast.net)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A2c8r-0006D1-Td
	for classpath@gnu.org; Thu, 25 Sep 2003 15:51:09 -0400
Received: (qmail 3240 invoked from network); 25 Sep 2003 19:51:04 -0000
Received: from unknown (HELO corp.fast.net) ([209.152.221.64])
	(envelope-sender <stuart.ballard@corp.fast.net>)
	by newmx1.fast.net (qmail-ldap-1.03) with SMTP
	for <robilad@kaffe.org>; 25 Sep 2003 19:51:04 -0000
Message-ID: <3F734727.50903@corp.fast.net>
Date: Thu, 25 Sep 2003 15:51:03 -0400
From: Stuart Ballard <stuart.ballard@corp.fast.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.3.1) Gecko/20030527 Debian/1.3.1-2
X-Accept-Language: en
MIME-Version: 1.0
To: Dalibor Topic <robilad@kaffe.org>
References: <3F71A075.9020405@corp.fast.net> <3F733335.3050808@corp.fast.net>
	<3F7335E3.2090101@kaffe.org>
In-Reply-To: <3F7335E3.2090101@kaffe.org>
Content-Type: multipart/mixed; boundary="------------080802090404090306010009"
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: [patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 20:02:07 -0000

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

Dalibor Topic wrote:
> Not attached here ;)

I already resent it but just in case that didn't make it through, I've 
re-attached it here.

> Could you give it spin on kaffe from CVS? It uses Classpath's collection 
> classes.

It applies cleanly to Kaffe CVS (of course) and passes all 144 "make 
check" tests; I also confirmed that it does have the desired behavior of 
allowing nrdo's first pass to run unmodified on Kaffe and generate 
correct results. If this gets accepted (and barring any problems in the 
second phase, which is mostly pretty simple JDBC) I can put nrdo on 
Savannah! Woo!

Stuart.


-- 
Stuart Ballard, Senior Web Developer
FASTNET - Web Solutions
(215) 283-2300, ext. 126
www.fast.net

--------------080802090404090306010009
Content-Type: text/plain;
 name="classpath.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="classpath.patch"

Index: HashMap.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/HashMap.java,v
retrieving revision 1.24
diff -u -r1.24 HashMap.java
--- HashMap.java	1 Aug 2003 03:31:32 -0000	1.24
+++ HashMap.java	25 Sep 2003 18:16:52 -0000
@@ -381,8 +381,7 @@
   public void putAll(Map m)
   {
     Iterator itr = m.entrySet().iterator();
-    int msize = m.size();
-    while (msize-- > 0)
+    while (itr.hasNext())
       {
         Map.Entry e = (Map.Entry) itr.next();
         // Optimize in case the Entry is one of our own.
@@ -709,10 +708,10 @@
   void putAllInternal(Map m)
   {
     Iterator itr = m.entrySet().iterator();
-    int msize = m.size();
-    size = msize;
-    while (msize-- > 0)
+    size = 0;
+    while (itr.hasNext())
       {
+        size++;
 	Map.Entry e = (Map.Entry) itr.next();
 	Object key = e.getKey();
 	int idx = hash(key);
Index: Hashtable.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/Hashtable.java,v
retrieving revision 1.28
diff -u -r1.28 Hashtable.java
--- Hashtable.java	7 May 2002 05:13:05 -0000	1.28
+++ Hashtable.java	25 Sep 2003 18:16:52 -0000
@@ -510,7 +510,7 @@
   {
     Iterator itr = m.entrySet().iterator();
 
-    for (int msize = m.size(); msize > 0; msize--)
+    while (itr.hasNext())
       {
         Map.Entry e = (Map.Entry) itr.next();
         // Optimize in case the Entry is one of our own.
@@ -859,11 +859,11 @@
   void putAllInternal(Map m)
   {
     Iterator itr = m.entrySet().iterator();
-    int msize = m.size();
-    this.size = msize;
+    size = 0;
 
-    for (; msize > 0; msize--)
+    while (itr.hasNext())
       {
+        size++;
 	Map.Entry e = (Map.Entry) itr.next();
 	Object key = e.getKey();
 	int idx = hash(key);

--------------080802090404090306010009--




From MAILER-DAEMON Thu Sep 25 18:36:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2ej1-00066K-PH
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 18:36:39 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2eiy-00065d-Uc
	for classpath@gnu.org; Thu, 25 Sep 2003 18:36:36 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2eiw-00063b-9X
	for classpath@gnu.org; Thu, 25 Sep 2003 18:36:35 -0400
Received: from [24.93.67.83] (helo=ms-smtp-02.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2eiu-00062B-Gj
	for classpath@gnu.org; Thu, 25 Sep 2003 18:36:32 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-02.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8PMW9jC017729; Thu, 25 Sep 2003 18:32:39 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 78A4EBE641; Thu, 25 Sep 2003 18:34:05 -0400 (EDT)
Sender: cbj@haphazard.org
To: Stuart Ballard <stuart.ballard@corp.fast.net>
References: <3F71A075.9020405@corp.fast.net> <3F733335.3050808@corp.fast.net>
	<3F7335E3.2090101@kaffe.org> <3F734727.50903@corp.fast.net>
From: Brian Jones <cbj@gnu.org>
Date: 25 Sep 2003 18:34:05 -0400
In-Reply-To: <3F734727.50903@corp.fast.net>
Message-ID: <m3u170zeea.fsf@lyta.haphazard.org>
Lines: 26
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: [patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 22:36:38 -0000

Stuart Ballard <stuart.ballard@corp.fast.net> writes:

> Dalibor Topic wrote:
> > Not attached here ;)
> 
> I already resent it but just in case that didn't make it through, I've
> re-attached it here.
> 
> > Could you give it spin on kaffe from CVS? It uses Classpath's
> > collection classes.
> 
> It applies cleanly to Kaffe CVS (of course) and passes all 144 "make
> check" tests; I also confirmed that it does have the desired behavior
> of allowing nrdo's first pass to run unmodified on Kaffe and generate
> correct results. If this gets accepted (and barring any problems in
> the second phase, which is mostly pretty simple JDBC) I can put nrdo
> on Savannah! Woo!

Cool, don't want to hold you up on that too much.  Wondering how Sun's
impl makes a copy of the given Collection while avoiding copying an
object being modified in another thread.  Anyone know?  I think the
Iterators are supposed to throw exceptions when this occurs too.

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



From MAILER-DAEMON Thu Sep 25 18:45:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2erU-0002SL-UN
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 18:45:24 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2erK-0002RW-Ot
	for classpath@gnu.org; Thu, 25 Sep 2003 18:45:14 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2erI-0002RA-Vc
	for classpath@gnu.org; Thu, 25 Sep 2003 18:45:13 -0400
Received: from [24.93.67.84] (helo=ms-smtp-03.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2erI-0002Qp-4n
	for classpath@gnu.org; Thu, 25 Sep 2003 18:45:12 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-03.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8PMgoaw020611; Thu, 25 Sep 2003 18:42:52 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id 54D9ABE641; Thu, 25 Sep 2003 18:43:11 -0400 (EDT)
Sender: cbj@haphazard.org
To: Ingo =?iso-8859-1?q?Pr=F6tel?= <proetel@aicas.com>
References: <3F705F17.7060902@aicas.com>
	<20030925134310.26887@smtp.mail.ch.easynet.net>
	<3F73017F.7010404@aicas.com>
From: Brian Jones <cbj@gnu.org>
Date: 25 Sep 2003 18:43:11 -0400
In-Reply-To: <3F73017F.7010404@aicas.com>
Message-ID: <m3llsczdz4.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=utf-8
Content-Transfer-Encoding: quoted-printable
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 22:45:15 -0000

Ingo Pr=C3=B6tel <proetel@aicas.com> writes:

> Hi Sascha,
>=20
>=20
> Sascha Brawer wrote:
> > Ingo Pr=C3=B6tel <proetel@aicas.com> wrote on Tue, 23 Sep 2003 16:56:23=
 +0200:
> >
> >> I would like to again propose a standard NYIException to be used in
> >> Classpath.
> >>
> >>[...]
> >>
> >>package gnu.org.classpath;
> > Are you sure about this package name?
>=20
> This should be
> package gnu.classpath;
> >
> >> public class NYIException extends UnsupportedOperationException
> > I'd favor "NotYetImplementedException". Class names tend to be very
> > verbose in Java, and IMHO it would make sense to follow that style.

Not sure we even need the extra exception type, just finding all the
spots to throw the UnsupportedOperationException and doing that would
probably be more than enough.

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



From MAILER-DAEMON Thu Sep 25 18:48:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2eu2-00031k-Gf
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 18:48:02 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2etz-00030Y-U6
	for classpath@gnu.org; Thu, 25 Sep 2003 18:47:59 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2ety-0002zt-GB
	for classpath@gnu.org; Thu, 25 Sep 2003 18:47:58 -0400
Received: from [24.93.67.83] (helo=ms-smtp-02.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2epP-0001iU-NJ
	for classpath@gnu.org; Thu, 25 Sep 2003 18:43:15 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-02.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8PMdEjC024325; Thu, 25 Sep 2003 18:39:24 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id BB184BE641; Thu, 25 Sep 2003 18:41:15 -0400 (EDT)
Sender: cbj@haphazard.org
To: Mark Wielaard <mark@klomp.org>
References: <20030924111829.GA1122@yahoo.com> <3F71D22C.9020308@kaffe.org>
	<1064497654.1787.73.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 25 Sep 2003 18:41:15 -0400
In-Reply-To: <1064497654.1787.73.camel@elsschot>
Message-ID: <m3pthoze2c.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: classpath@gnu.org
Subject: Re: Classpath - javax.sound implementation - which library?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 22:48:00 -0000

Mark Wielaard <mark@klomp.org> writes:

> If we want to distribute it as an integral part of GNU Classpath then
> making sure that all code is assigned to the FSF is the preferred way to
> go. But there are other ways we could package things.
> 
> > So the best course of action would seem to be to have Mark contact them 
> > about contributing their code to Classpath. I would fully support such a 
> > move.
> 
> As soon as I have tried it out (might take a couple of days) I will
> contact them about how best to work together.

It would be nice to get the javax.sound interfaces, etc. donated even
if their system remained theirs to maintain and distribute.

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



From MAILER-DAEMON Thu Sep 25 19:19:38 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2fOE-0004nQ-Bj
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 19:19:14 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2fMw-00048X-3l
	for classpath@gnu.org; Thu, 25 Sep 2003 19:17:54 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2fJq-00034O-1l
	for classpath@gnu.org; Thu, 25 Sep 2003 19:14:42 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A2fIc-0002NR-BY
	for classpath@gnu.org; Thu, 25 Sep 2003 19:13:26 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8PN7hjv016359
	for <classpath@gnu.org>; Fri, 26 Sep 2003 09:07:44 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "classpath" <classpath@gnu.org>
Date: Fri, 26 Sep 2003 09:10:09 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCIEIODHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <m3u170zeea.fsf@lyta.haphazard.org>
Importance: Normal
Subject: RE: [patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Sep 2003 23:19:12 -0000

Brian Jones wrote:
> Wondering how Sun's
> impl makes a copy of the given Collection while avoiding copying an
> object being modified in another thread.  Anyone know?  I think the
> Iterators are supposed to throw exceptions when this occurs too.

Most collections are not defined as being thread-safe. Even the
synchronized collections require that the user lock the collection
before iterating through it. Bottom line: It is up to the user to
ensure that a collection that is used with addAll etc is not being
modified whilst it is being added.

The ConcurrentModificationException thrown by Iterators is not just
for detecting concurrent modification by different threads (which they
may detect) but also for detecting modification of the collection by
the same thread that has an iterator active at the time the
modification is made. In simple terms they detect if you add while
iterating, or remove while iterating - other than via the iterators
remove() method.

David Holmes




From MAILER-DAEMON Thu Sep 25 22:06:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2i03-0005y3-3y
	for mharc-classpath@gnu.org; Thu, 25 Sep 2003 22:06:27 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2i00-0005wS-RC
	for classpath@gnu.org; Thu, 25 Sep 2003 22:06:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2hzy-0005vf-1S
	for classpath@gnu.org; Thu, 25 Sep 2003 22:06:22 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2hzx-0005rY-9t
	for classpath@gnu.org; Thu, 25 Sep 2003 22:06:21 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.10/8.12.10) with ESMTP id h8Q25xWk028146;
	Fri, 26 Sep 2003 12:05:59 +1000 (EST)
Message-Id: <200309260205.h8Q25xWk028146@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: "Aaron M. Renn" <arenn@urbanophile.com>, classpath@gnu.org,
	kissme-general@lists.sourceforge.net
In-Reply-To: Message from Stephen Crawley <crawley@dstc.edu.au> of "Mon,
	01 Sep 2003 12:52:39 +1000."
	<200309010252.h812qMMx000004@piglet.dstc.edu.au> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 26 Sep 2003 12:06:16 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: crawley@piglet.dstc.edu.au
Subject: Re: Kissme and Classpath CVS 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 02:06:25 -0000


> A few weeks ago, I wrote:
>
> The Kissme in CVS and in the Kissme 0.0.31 release are currently
> incompatible with the latest Classpath in CVS ...
> 
> Compatibility should be restored in a day or so ... 

Last night I fixed the last major bug and checked in a large number of
changes to Kissme.  I believe that compatibility between the CVS
versions of Kissme and Classpath should now be restored.  If you have
problems, please email the kissme-general list.

In the process of doing the Thread / VMThread refactoring, I uncovered
and fixed a number of pre-existing bugs in Kissme's locking code.  For
example:

  *  The exception handling code was not releasing locks when unwinding
     the stack past a call to a synchronized method.

  *  The code that inflated thin locks to fat locks was broken.

  *  The code for locking and unlocking fat locks didn't always inc/dec
     the recursion count correctly.

  *  The code for releasing/regaining a lock in a 'wait' didn't work
     if the lock was a fat lock.

Fixing these bugs may go some way to curing the unexplained lockups 
I was seeing previously.  But I've also noticed some other inefficiencies
and potential memory leaks that need fixing.  And I need to write some
'hitme' tests that will exercise the locking more thoroughly.

I'm sorry this took so long, but it was a much bigger job than I thought.

-- Steve




From MAILER-DAEMON Fri Sep 26 07:08:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2qQJ-0000gD-DQ
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 07:06:07 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2qQC-0000ey-CR
	for classpath@gnu.org; Fri, 26 Sep 2003 07:06:00 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2qMW-00009U-3j
	for classpath@gnu.org; Fri, 26 Sep 2003 07:02:12 -0400
Received: from [212.227.126.189] (helo=moutng.kundenserver.de)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A2qC0-00083f-6j; Fri, 26 Sep 2003 06:51:20 -0400
Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de)
	by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
	id 1A2qBy-00077Z-00; Fri, 26 Sep 2003 12:51:18 +0200
Received: from [212.126.196.45] (helo=wau)
	by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1)
	id 1A2qBw-0007b7-00; Fri, 26 Sep 2003 12:51:16 +0200
Content-Type: text/plain;
  charset="utf-8"
From: Andy Walter <anwalt_pop@aicas.com>
To: Brian Jones <cbj@gnu.org>, Ingo =?utf-8?q?Pr=C3=B6tel?= <proetel@aicas.com>
Date: Fri, 26 Sep 2003 12:50:20 +0200
X-Mailer: KMail [version 1.4]
References: <3F705F17.7060902@aicas.com> <3F73017F.7010404@aicas.com>
	<m3llsczdz4.fsf@lyta.haphazard.org>
In-Reply-To: <m3llsczdz4.fsf@lyta.haphazard.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200309261250.20703.anwalt_pop@aicas.com>
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 11:06:03 -0000

Hi Brian,

On Friday 26 September 2003 00:43, Brian Jones wrote:
> > [NotYetImplementedException]
>
> Not sure we even need the extra exception type, just finding all the
> spots to throw the UnsupportedOperationException and doing that would
> probably be more than enough.

The motivation is that, while we currently cannot even tell what methods =
are=20
missing, with such a NotYetImplementedException and subclasses=20
NotYetImplementedException_1_2, NotYetImplementedException_1_3, and=20
NotYetImplementedException_1_4 we would be able to write a script similar=
 to=20
JAPI tools that gives an overview about how complete Classpath is accordi=
ng=20
to a certain JDK specification. We'd like to go through the classes and=20
annotate what features are not yet implemented (completely). When we do i=
t=20
this way, it is no additional effort to annotate the corresponding=20
specification version, which will be some really valueable information in=
 the=20
future.


Cheers,

=09Andy.

--=20
aicas GmbH                                     =20
Haid-und-Neu-Stra=C3=9Fe 18 * 76131 Karlsruhe       =20
http://www.aicas.com                           =20
Tel: +49-721-663 968-24; Fax: +49-721-663 968-94




From MAILER-DAEMON Fri Sep 26 08:39:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2rse-00061k-Il
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 08:39:28 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2rsc-000617-Nw
	for classpath@gnu.org; Fri, 26 Sep 2003 08:39:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2rsa-0005zs-B1
	for classpath@gnu.org; Fri, 26 Sep 2003 08:39:24 -0400
Received: from [217.8.192.20] (helo=smtp1.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22)
	id 1A2rsX-0005wU-QJ; Fri, 26 Sep 2003 08:39:23 -0400
Received: from [192.168.1.33] (unknown [217.8.218.156])
	by smtp1.mail.ch.easynet.net (Postfix) with ESMTP
	id 8B42E4A367; Fri, 26 Sep 2003 14:39:10 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: Andy Walter <anwalt_pop@aicas.com>
Date: Fri, 26 Sep 2003 14:38:30 +0200
Message-Id: <20030926123830.1770@smtp.mail.ch.easynet.net>
In-Reply-To: <200309261250.20703.anwalt_pop@aicas.com>
References: <200309261250.20703.anwalt_pop@aicas.com>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: Brian Jones <cbj@gnu.org>, GNU Classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 12:39:27 -0000

Andy Walter <anwalt_pop@aicas.com> wrote on Fri, 26 Sep 2003 12:50:20 +0200:

>> > [NotYetImplementedException]
>>
>> Not sure we even need the extra exception type, just finding all the
>> spots to throw the UnsupportedOperationException and doing that would
>> probably be more than enough.
>
>The motivation is that, while we currently cannot even tell what methods are 
>missing, with such a NotYetImplementedException and subclasses 
>NotYetImplementedException_1_2, NotYetImplementedException_1_3, and 
>NotYetImplementedException_1_4 we would be able to write a script similar to 
>JAPI tools that gives an overview about how complete Classpath is according 
>to a certain JDK specification. We'd like to go through the classes and 
>annotate what features are not yet implemented (completely). When we do it 
>this way, it is no additional effort to annotate the corresponding 
>specification version, which will be some really valueable information
in the 
>future.

What would you say about defining a special Javadoc tag, such as the
following?

/**
 * @unimplemented 1.4 Here comes some explanation.
 */
[class|method|field]

It would not be too difficult to write a special doclet for the purpose
of generating a document that summarizes the implementation status. Plus,
it would be possible to document what exactly is not implemented, the
reason, etc. The explanation text would also go into the generated
documentation files.

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Fri Sep 26 09:41:16 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2sqS-0000xM-9i
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 09:41:16 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2sqP-0000vt-3v
	for classpath@gnu.org; Fri, 26 Sep 2003 09:41:13 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2soT-0000gV-TO
	for classpath@gnu.org; Fri, 26 Sep 2003 09:39:15 -0400
Received: from [209.92.1.32] (helo=newmx2.fast.net)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A2shd-0007S5-CA
	for classpath@gnu.org; Fri, 26 Sep 2003 09:32:09 -0400
Received: (qmail 14457 invoked from network); 26 Sep 2003 13:32:07 -0000
Received: from unknown (HELO corp.fast.net) ([209.152.221.64])
	(envelope-sender <stuart.ballard@corp.fast.net>)
	by newmx2.fast.net (qmail-ldap-1.03) with SMTP
	for <cbj@gnu.org>; 26 Sep 2003 13:32:07 -0000
Message-ID: <3F743FD5.6030507@corp.fast.net>
Date: Fri, 26 Sep 2003 09:32:05 -0400
From: Stuart Ballard <stuart.ballard@corp.fast.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.3.1) Gecko/20030527 Debian/1.3.1-2
X-Accept-Language: en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
References: <3F71A075.9020405@corp.fast.net>
	<3F733335.3050808@corp.fast.net>	<3F7335E3.2090101@kaffe.org>
	<3F734727.50903@corp.fast.net> <m3u170zeea.fsf@lyta.haphazard.org>
In-Reply-To: <m3u170zeea.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: [patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 13:41:14 -0000

Brian Jones wrote:
> Cool, don't want to hold you up on that too much.  Wondering how Sun's
> impl makes a copy of the given Collection while avoiding copying an
> object being modified in another thread.  Anyone know?  I think the
> Iterators are supposed to throw exceptions when this occurs too.

I don't think this is affected too much either way by my patch. If 
another thread is actively modifying the collection being added at the 
time we're trying to add it, and it's not a thread-safe collection, the 
results are undefined. If it *is* a thread-safe collection, the most 
that's guaranteed is that you'll get a ConcurrentModificationException 
in the right place.

(Actually, my patch probably helps with that case too: by only 
incrementing this.size as each item is actually added, the state of the 
Map is closer to valid if a ConcurrentModificationException is thrown 
part-way through the iteration. Perhaps it could be tweaked to be even 
better in that regard by putting the "size++" *after* the call to next()).

My patch really only affects what happens if the value returned by 
size() is incorrect for a particular Map. Without the patch, Classpath 
blindly believes size() and attempts to add exactly that many elements, 
throwing an exception if there are actually less and not adding all of 
them if there are actually more. With the patch, it relies on the 
iterator to determine how many items there actually are.

I have a map where it's prohibitively expensive[1] to calculate the 
correct value of size(). It would be possible, but a LOT of 
collections-using code assumes that size() is fast - the very code that 
this patch changes is an example, where it was assumed that calling 
size() was much faster than calling hasNext() for each element and 
therefore treated as an optimization. So the best I could do was to 
cache a "best guess" at the size and return that from size(), and have 
iterator() give the canonical information. On Sun's JDK, or on Classpath 
with the patch, this works. Without it, it doesn't.

Stuart.

[1] A correct implementation of size() for my map would actually look 
something like this:

public int size() {
   int size = 0;
   for (Iterator i = iterator(); i.hasNext(); ) {
     i.next();
     size++;
   }
   return size;
}

-- 
Stuart Ballard, Senior Web Developer
FASTNET - Web Solutions
(215) 283-2300, ext. 126
www.fast.net




From MAILER-DAEMON Fri Sep 26 10:18:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2tQY-0005A6-QK
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 10:18:34 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2tQW-00058s-9I
	for classpath@gnu.org; Fri, 26 Sep 2003 10:18:32 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2tQS-000571-89
	for classpath@gnu.org; Fri, 26 Sep 2003 10:18:30 -0400
Received: from [212.227.126.186] (helo=moutng.kundenserver.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2tQR-00056r-PG
	for classpath@gnu.org; Fri, 26 Sep 2003 10:18:27 -0400
Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de)
	by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
	id 1A2tQQ-000561-00
	for classpath@gnu.org; Fri, 26 Sep 2003 16:18:26 +0200
Received: from [212.126.196.45] (helo=wau)
	by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1)
	id 1A2tQQ-00074K-00
	for classpath@gnu.org; Fri, 26 Sep 2003 16:18:26 +0200
Content-Type: text/plain;
  charset="iso-8859-1"
From: Andy Walter <anwalt_pop@aicas.com>
To: GNU Classpath <classpath@gnu.org>
Date: Fri, 26 Sep 2003 16:17:30 +0200
X-Mailer: KMail [version 1.4]
References: <200309261250.20703.anwalt_pop@aicas.com>
	<20030926123830.1770@smtp.mail.ch.easynet.net>
In-Reply-To: <20030926123830.1770@smtp.mail.ch.easynet.net>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200309261617.30039.anwalt_pop@aicas.com>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 14:18:33 -0000

Hi Sascha,

On Friday 26 September 2003 14:38, Sascha Brawer wrote:
> >> > [NotYetImplementedException]
>
> What would you say about defining a special Javadoc tag, such as the
> following?
>
> /**
>  * @unimplemented 1.4 Here comes some explanation.
>  */
> [class|method|field]

Do you mean additionally to the exception or instead? I like the idea of =
using=20
something like that additionally to the exception, but to me, it doesn't=20
replace an exception because somebody whose programme doesn't work becaus=
e of=20
something missing in Classpath for sure has less trouble finding it if th=
e=20
method raises an exception.

However, an unimplemented tag for giving more details about the missing c=
ode=20
is a good idea.


Cheers,

=09Andy.

--=20
aicas GmbH                                     =20
Haid-und-Neu-Stra=DFe 18 * 76131 Karlsruhe       =20
http://www.aicas.com                           =20
Tel: +49-721-663 968-24; Fax: +49-721-663 968-94




From MAILER-DAEMON Fri Sep 26 11:24:06 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2uRy-000728-66
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 11:24:06 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2uRu-00070m-1v
	for classpath@gnu.org; Fri, 26 Sep 2003 11:24:02 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2uRs-0006zu-1W
	for classpath@gnu.org; Fri, 26 Sep 2003 11:24:00 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2uRr-0006zc-AF
	for classpath@gnu.org; Fri, 26 Sep 2003 11:23:59 -0400
Received: from [192.168.1.33] (unknown [217.8.218.156])
	by smtp2.mail.ch.easynet.net (Postfix) with ESMTP id 686C264D40
	for <classpath@gnu.org>; Fri, 26 Sep 2003 17:23:55 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Fri, 26 Sep 2003 17:23:18 +0200
Message-Id: <20030926152318.7708@smtp.mail.ch.easynet.net>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: Workshop Oct. 14
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 15:24:03 -0000

Hi all,

as announced, there will be workshop for GNU Classpath developers on
October 14 in Saarbr=FCcken/Germany.

Does anyone wish to discuss a specific topic, in addition to graphics=3F=

I'd like to prepare an agenda for the afternoon, so we can make most of
the time.

Best regards,

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/=
 





From MAILER-DAEMON Fri Sep 26 11:41:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2uih-0003Fv-Py
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 11:41:23 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2uif-0003E6-5v
	for classpath@gnu.org; Fri, 26 Sep 2003 11:41:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2uid-0003Ck-Br
	for classpath@gnu.org; Fri, 26 Sep 2003 11:41:19 -0400
Received: from [217.8.192.20] (helo=smtp2.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2uc1-0001ka-Mr
	for classpath@gnu.org; Fri, 26 Sep 2003 11:34:29 -0400
Received: from [192.168.1.33] (unknown [217.8.218.156])
	by smtp2.mail.ch.easynet.net (Postfix) with ESMTP id 0EA9B64A2D
	for <classpath@gnu.org>; Fri, 26 Sep 2003 17:34:26 +0200 (CEST)
From: Sascha Brawer <brawer@dandelis.ch>
To: GNU Classpath <classpath@gnu.org>
Date: Fri, 26 Sep 2003 17:33:49 +0200
Message-Id: <20030926153349.10482@smtp.mail.ch.easynet.net>
In-Reply-To: <200309261617.30039.anwalt_pop@aicas.com>
References: <200309261617.30039.anwalt_pop@aicas.com>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 15:41:21 -0000

Hi Andy,

>> [NotYetImplementedException]
> [JavaDoc tag]
>
>Do you mean additionally to the exception or instead?

With a JavaDoc tag (or some other convention for comments), there would
be no need to distinguish between NotYetImplementedException_1_3,
NotYetImplementedException_1_4, etc.

I agree that some exception should be thrown. But it might suffice to
just throw java.lang.UnsupportedOperationException. Not that I would
oppose a special NotYetImplementedException. Living in a neutral country,
I don't have an explicit opinion about such matters. :-)

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 





From MAILER-DAEMON Fri Sep 26 11:54:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2uvF-0006oE-6o
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 11:54:21 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2uvC-0006o8-Kp
	for classpath@gnu.org; Fri, 26 Sep 2003 11:54:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2uv9-0006nu-5t
	for classpath@gnu.org; Fri, 26 Sep 2003 11:54:17 -0400
Received: from [212.6.122.96] (helo=mail0.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2uv8-0006nq-N3
	for classpath@gnu.org; Fri, 26 Sep 2003 11:54:14 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-82-013.ewetel.net
	[80.228.82.13])
	by mail0.ewetel.de (8.12.1/8.12.9) with ESMTP id h8QFs6jB004300;
	Fri, 26 Sep 2003 17:54:11 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A2uv1-0002bC-00; Fri, 26 Sep 2003 17:54:07 +0200
From: Michael Koch <konqueror@gmx.de>
To: Sascha Brawer <brawer@dandelis.ch>, GNU Classpath <classpath@gnu.org>
Date: Fri, 26 Sep 2003 17:56:25 +0200
User-Agent: KMail/1.5.2
References: <200309261617.30039.anwalt_pop@aicas.com>
	<20030926153349.10482@smtp.mail.ch.easynet.net>
In-Reply-To: <20030926153349.10482@smtp.mail.ch.easynet.net>
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: <200309261756.26318.konqueror@gmx.de>
X-CheckCompat: OK
Cc: 
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 15:54:19 -0000

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

Am Freitag, 26. September 2003 17:33 schrieb Sascha Brawer:
> Hi Andy,
>
> >> [NotYetImplementedException]
> >
> > [JavaDoc tag]
> >
> >Do you mean additionally to the exception or instead?
>
> With a JavaDoc tag (or some other convention for comments), there
> would be no need to distinguish between
> NotYetImplementedException_1_3, NotYetImplementedException_1_4,
> etc.
>
> I agree that some exception should be thrown. But it might suffice
> to just throw java.lang.UnsupportedOperationException. Not that I
> would oppose a special NotYetImplementedException. Living in a
> neutral country, I don't have an explicit opinion about such
> matters. :-)

I'm for UnsupportedOperationException too because it exists already=20
and dont have to invent something new.

A reason against using it is that some methods return UOE by design in=20
some situations. That means that i may not be clear in any case if=20
the method throwns an exception because its unimplementd or because=20
of other reasons.


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

iD8DBQE/dGGqWSOgCCdjSDsRAvuNAKCMksQtOJr8Ga6eNjFeJiVYotBPygCfZgey
l0YjZDXcnpIWl1fgrdSJlwY=3D
=3DWQ/V
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Fri Sep 26 12:32:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2vVn-0005MS-R9
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 12:32:07 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2vVl-0005Lz-JD
	for classpath@gnu.org; Fri, 26 Sep 2003 12:32:05 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2vVi-0005LA-5R
	for classpath@gnu.org; Fri, 26 Sep 2003 12:32:04 -0400
Received: from [212.227.126.188] (helo=moutng.kundenserver.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2vVh-0005L6-Re
	for classpath@gnu.org; Fri, 26 Sep 2003 12:32:01 -0400
Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de)
	by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
	id 1A2vVg-0001S2-00
	for classpath@gnu.org; Fri, 26 Sep 2003 18:32:00 +0200
Received: from [212.126.196.45] (helo=wau)
	by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1)
	id 1A2vVg-0001oa-00
	for classpath@gnu.org; Fri, 26 Sep 2003 18:32:00 +0200
Content-Type: text/plain;
  charset="iso-8859-1"
From: Andy Walter <anwalt_pop@aicas.com>
To: GNU Classpath <classpath@gnu.org>
Date: Fri, 26 Sep 2003 18:31:04 +0200
X-Mailer: KMail [version 1.4]
References: <200309261617.30039.anwalt_pop@aicas.com>
	<20030926153349.10482@smtp.mail.ch.easynet.net>
	<200309261756.26318.konqueror@gmx.de>
In-Reply-To: <200309261756.26318.konqueror@gmx.de>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200309261831.04072.anwalt_pop@aicas.com>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 16:32:06 -0000

Hi Michael,

On Friday 26 September 2003 17:56, Michael Koch wrote:
> I'm for UnsupportedOperationException too because it exists already
> and dont have to invent something new.
>
> A reason against using it is that some methods return UOE by design in
> some situations. That means that i may not be clear in any case if
> the method throwns an exception because its unimplementd or because
> of other reasons.

How about

=09NotYetImplementedException extends UnsupportedOperationException

then to distinguish between the above cases? IMHO, it would be quite usef=
ul=20
for the project being able to say "we are able to run any JDK 1.2 program=
me".=20
A script that has to know about which method might throw=20
UnsupportedOperationException and which shouldn't could never be really=20
reliable.


Cheers,

=09Andy.

--=20
aicas GmbH                                     =20
Haid-und-Neu-Stra=DFe 18 * 76131 Karlsruhe       =20
http://www.aicas.com                           =20
Tel: +49-721-663 968-24; Fax: +49-721-663 968-94




From MAILER-DAEMON Fri Sep 26 12:48:45 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2vls-00007q-U5
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 12:48:44 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2uyI-0007XH-UQ
	for classpath@gnu.org; Fri, 26 Sep 2003 11:57:30 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2uyC-0007Wc-20
	for classpath@gnu.org; Fri, 26 Sep 2003 11:57:24 -0400
Received: from [164.121.249.101] (helo=fdpnmailgw2.mailgws.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2uyB-0007W4-HG
	for classpath@gnu.org; Fri, 26 Sep 2003 11:57:23 -0400
Received: from 164.121.15.20 by fdpnmailgw2.mailgws.com with ESMTP (MMS
	SMTP Relay (MMS v5.5.3)); Fri, 26 Sep 2003 10:59:03 -0500
Received: from edxbridge2.jdnet.deere.com ([164.121.15.62]) by
	edxgw2.jdnet.deere.com with Microsoft SMTPSVC(5.0.2195.5329); Fri, 26
	Sep 2003 10:57:10 -0500
Received: from edxmb2.jdnet.deere.com ([164.121.15.171]) by
	edxbridge2.jdnet.deere.com with Microsoft SMTPSVC(5.0.2195.5329); Fri,
	26 Sep 2003 10:57:09 -0500
Received: from edxmb5.jdnet.deere.com ([164.121.13.194]) by
	edxmb2.jdnet.deere.com with Microsoft SMTPSVC(5.0.2195.5329); Fri, 26
	Sep 2003 10:57:09 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Fri, 26 Sep 2003 10:57:09 -0500
Message-ID: <80FF42A334253C4393F2527DE0E6DD9F0F0AFB@edxmb5.jdnet.deere.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: NYIException
Thread-Index: AcOERN8YQf7pGerFRuiSInvfJP0JtgAAYWmQ
From: "Regier Avery J" <RegierAveryJ@JohnDeere.com>
To: "GNU Classpath" <classpath@gnu.org>
X-OriginalArrivalTime: 26 Sep 2003 15:57:09.0576 (UTC)
	FILETIME=[D7921C80:01C38446]
X-WSS-ID: 136ABDCD251533-01-01
Content-Type: text/plain;
 charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Fri, 26 Sep 2003 12:48:42 -0400
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 15:57:48 -0000

There is a semantic difference between something not supported, and =
something not implemented.  There are iterators where I purposely throw =
an UnsupportedOperationException() for remove() because it would be =
impossible to do.  That is very different from a =
NotYetImplementedException which tells the programmer that they should =
be able to do this, but not quite yet.

Perhaps the default message for the NotYetImplementedException should be =
"patches welcome."

--Avery

-----Original Message-----
From: Sascha Brawer [mailto:brawer@dandelis.ch]
Sent: Friday, September 26, 2003 11:34 AM
To: GNU Classpath
Subject: Re: NYIException


Hi Andy,

>> [NotYetImplementedException]
> [JavaDoc tag]
>
>Do you mean additionally to the exception or instead?

With a JavaDoc tag (or some other convention for comments), there would
be no need to distinguish between NotYetImplementedException_1_3,
NotYetImplementedException_1_4, etc.

I agree that some exception should be thrown. But it might suffice to
just throw java.lang.UnsupportedOperationException. Not that I would
oppose a special NotYetImplementedException. Living in a neutral =
country,
I don't have an explicit opinion about such matters. :-)

-- Sascha

Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ =





_______________________________________________
Classpath mailing list
Classpath@gnu.org
http://mail.gnu.org/mailman/listinfo/classpath





From MAILER-DAEMON Fri Sep 26 13:29:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2wPe-0002V9-91
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 13:29:50 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2wPW-0002T1-SG
	for classpath@gnu.org; Fri, 26 Sep 2003 13:29:42 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2wPU-0002SM-O0
	for classpath@gnu.org; Fri, 26 Sep 2003 13:29:41 -0400
Received: from [17.254.13.22] (helo=mail-out3.apple.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2wM8-0000lv-E0
	for classpath@gnu.org; Fri, 26 Sep 2003 13:26:12 -0400
Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225])
	by mail-out3.apple.com (8.12.10/8.12.9) with ESMTP id h8QHQBmj009342
	for <classpath@gnu.org>; Fri, 26 Sep 2003 10:26:11 -0700 (PDT)
Received: from scv2.apple.com (scv2.apple.com) by mailgate1.apple.com
	(Content Technologies SMTPRS 4.2.1) with ESMTP id
	<T64e9d77d61118064e143c@mailgate1.apple.com> for
	<classpath@gnu.org>; Fri, 26 Sep 2003 10:25:43 -0700
Received: from bothner.com (vpn-scv-x1-122.apple.com [17.219.193.122])
	by scv2.apple.com (8.12.9/8.12.9) with ESMTP id h8QHPwWI012620
	for <classpath@gnu.org>; Fri, 26 Sep 2003 10:26:00 -0700 (PDT)
Message-ID: <3F747784.1060507@bothner.com>
Date: Fri, 26 Sep 2003 10:29:40 -0700
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
	rv:1.5b) Gecko/20030827
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: GNU Classpath <classpath@gnu.org>
References: <80FF42A334253C4393F2527DE0E6DD9F0F0AFB@edxmb5.jdnet.deere.com>
In-Reply-To: <80FF42A334253C4393F2527DE0E6DD9F0F0AFB@edxmb5.jdnet.deere.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 17:29:44 -0000

We discussed this in March, and there was agreement that we
should use use UnsupportedOperationException.

See http://gcc.gnu.org/ml/java/2003-03/msg00016.html
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/





From MAILER-DAEMON Fri Sep 26 15:56:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A2yhH-0006wJ-E6
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 15:56:11 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A2yhE-0006vW-Lt
	for classpath@gnu.org; Fri, 26 Sep 2003 15:56:08 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A2yhC-0006uj-Ow
	for classpath@gnu.org; Fri, 26 Sep 2003 15:56:07 -0400
Received: from [212.6.122.126] (helo=mail3.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2yhC-0006uI-3B
	for classpath@gnu.org; Fri, 26 Sep 2003 15:56:06 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-82-013.ewetel.net
	[80.228.82.13])
	by mail3.ewetel.de (8.12.1/8.12.9) with ESMTP id h8QJu12d000878;
	Fri, 26 Sep 2003 21:56:02 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A2yh9-0002VP-00; Fri, 26 Sep 2003 21:56:03 +0200
From: Michael Koch <konqueror@gmx.de>
To: Per Bothner <per@bothner.com>, GNU Classpath <classpath@gnu.org>
Date: Fri, 26 Sep 2003 21:58:19 +0200
User-Agent: KMail/1.5.2
References: <80FF42A334253C4393F2527DE0E6DD9F0F0AFB@edxmb5.jdnet.deere.com>
	<3F747784.1060507@bothner.com>
In-Reply-To: <3F747784.1060507@bothner.com>
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: <200309262158.22669.konqueror@gmx.de>
X-CheckCompat: OK
Cc: 
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 19:56:09 -0000

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

Am Freitag, 26. September 2003 19:29 schrieb Per Bothner:
> We discussed this in March, and there was agreement that we
> should use use UnsupportedOperationException.
>
> See http://gcc.gnu.org/ml/java/2003-03/msg00016.html

Its never too late to rethink something.


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

iD8DBQE/dJpeWSOgCCdjSDsRAisAAJ0T/kIYtwVwRPMPWTovHxw6o5LrggCeOaqE
M42w9sa6cjnT3onk+2aNBrQ=3D
=3DsB5D
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Fri Sep 26 18:33:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A319i-0006E7-D0
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 18:33:42 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A319g-0006CT-A6
	for classpath@gnu.org; Fri, 26 Sep 2003 18:33:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A319d-00068E-RH
	for classpath@gnu.org; Fri, 26 Sep 2003 18:33:38 -0400
Received: from [210.86.15.146] (helo=mta203-rme.xtra.co.nz)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A319a-00065M-R5
	for classpath@gnu.org; Fri, 26 Sep 2003 18:33:35 -0400
Received: from web1-rme.xtra.co.nz ([210.86.15.141])
	by mta203-rme.xtra.co.nz with ESMTP
	id <20030926223332.HUGJ14319.mta203-rme.xtra.co.nz@web1-rme.xtra.co.nz>;
	Sat, 27 Sep 2003 10:33:32 +1200
Received: from mckinlay.net.nz ([210.86.61.105]) by web1-rme.xtra.co.nz
	with ESMTP
	id <20030926223329.HSPK13947.web1-rme.xtra.co.nz@mckinlay.net.nz>;
	Sat, 27 Sep 2003 10:33:29 +1200
Date: Sat, 27 Sep 2003 10:36:53 +1200
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
To: Stuart Ballard <stuart.ballard@corp.fast.net>
From: Bryce McKinlay <bryce@mckinlay.net.nz>
In-Reply-To: <3F73336A.7060300@corp.fast.net>
Message-Id: <ED76F4C7-F071-11D7-ABDD-003065F97F7C@mckinlay.net.nz>
Content-Transfer-Encoding: 7bit
X-Mailer: Apple Mail (2.552)
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: [really patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 22:33:40 -0000

On Friday, Sep 26, 2003, at 06:26 Pacific/Auckland, Stuart Ballard 
wrote:

> @@ -709,10 +708,10 @@
>    void putAllInternal(Map m)
>    {
>      Iterator itr = m.entrySet().iterator();
> -    int msize = m.size();
> -    size = msize;
> -    while (msize-- > 0)
> +    size = 0;
> +    while (itr.hasNext())
>        {
> +        size++;
>  	Map.Entry e = (Map.Entry) itr.next();
>  	Object key = e.getKey();
>  	int idx = hash(key);

Hi Stuart,

size() is used here because, obviously, it is generally more efficient 
to call it once rather than calling hasNext() many times. I believe 
that the current implementation is within spec according to the 
collections documentation. If your collections are returning an 
inaccurate size() then I'd argue they are not valid implementations of 
Map.

Of course, if there are real applications out there that rely on the 
way Sun implements it, then we may have to change to using hasNext(). 
But we should consider this carefully. If we must change it, then the 
addAll/putAll implementations should change throughout the collections 
classes for consistency - not just HashMap/Hashtable. As you noticed, 
in some cases this could make things significantly less efficient.

Regards

Bryce.




From MAILER-DAEMON Fri Sep 26 19:05:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A31eP-0007Sj-Pi
	for mharc-classpath@gnu.org; Fri, 26 Sep 2003 19:05:25 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A31eN-0007Rk-3H
	for classpath@gnu.org; Fri, 26 Sep 2003 19:05:23 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A31eK-0007R6-EO
	for classpath@gnu.org; Fri, 26 Sep 2003 19:05:21 -0400
Received: from [17.254.13.22] (helo=mail-out3.apple.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A31ZH-0006bb-NN
	for classpath@gnu.org; Fri, 26 Sep 2003 19:00:07 -0400
Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225])
	by mail-out3.apple.com (8.12.10/8.12.9) with ESMTP id h8QN03mj018874
	for <classpath@gnu.org>; Fri, 26 Sep 2003 16:00:03 -0700 (PDT)
Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com
	(Content Technologies SMTPRS 4.2.1) with ESMTP id
	<T64eb091669118064e143c@mailgate1.apple.com>; 
	Fri, 26 Sep 2003 15:59:31 -0700
Received: from bothner.com (il0102a-dhcp75.apple.com [17.201.27.203])
	by scv1.apple.com (8.12.9/8.12.9) with ESMTP id h8QMxbsH016692;
	Fri, 26 Sep 2003 15:59:38 -0700 (PDT)
Message-ID: <3F74C5C1.2070001@bothner.com>
Date: Fri, 26 Sep 2003 16:03:29 -0700
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
	rv:1.5b) Gecko/20030827
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Michael Koch <konqueror@gmx.de>
References: <80FF42A334253C4393F2527DE0E6DD9F0F0AFB@edxmb5.jdnet.deere.com>
	<3F747784.1060507@bothner.com>
	<200309262158.22669.konqueror@gmx.de>
In-Reply-To: <200309262158.22669.konqueror@gmx.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Sep 2003 23:05:24 -0000

Michael Koch wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Am Freitag, 26. September 2003 19:29 schrieb Per Bothner:
> 
>>We discussed this in March, and there was agreement that we
>>should use use UnsupportedOperationException.
>>
>>See http://gcc.gnu.org/ml/java/2003-03/msg00016.html
> 
> 
> Its never too late to rethink something.

But unless one is aware of previous discussion (and even if one is),
much time may be wasted.  So far I haven't seen any reason why we
need to re-consider the previous consensus.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/





From MAILER-DAEMON Sat Sep 27 04:43:17 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3Afc-0002LF-NF
	for mharc-classpath@gnu.org; Sat, 27 Sep 2003 04:43:16 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3AfZ-0002KI-SY
	for classpath@gnu.org; Sat, 27 Sep 2003 04:43:13 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3AfX-0002Ja-P2
	for classpath@gnu.org; Sat, 27 Sep 2003 04:43:12 -0400
Received: from [62.177.154.238] (helo=lembu.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3AfW-0002Ic-CO
	for classpath@gnu.org; Sat, 27 Sep 2003 04:43:10 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Date: Sat, 27 Sep 2003 10:43:00 +0200
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC4616@LEMBU.sumatrasoftware.com>
Content-class: urn:content-classes:message
X-MS-Has-Attach: 
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
X-MS-TNEF-Correlator: 
Thread-Topic: NYIException
Thread-Index: AcOEgtqFSZgxOx43TB+ZPFFkn98KawAT8GBA
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Per Bothner" <per@bothner.com>,
	"Michael Koch" <konqueror@gmx.de>
Cc: GNU Classpath <classpath@gnu.org>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Sep 2003 08:43:14 -0000

Per Bothner wrote:
> >>We discussed this in March, and there was agreement that we
> >>should use use UnsupportedOperationException.
> >>
> >>See http://gcc.gnu.org/ml/java/2003-03/msg00016.html
> >=20
> >=20
> > Its never too late to rethink something.
>=20
> But unless one is aware of previous discussion (and even if one is),
> much time may be wasted.  So far I haven't seen any reason why we
> need to re-consider the previous consensus.

I just re-read the previous discussion and there Andrew Haley wrote:
> UnsupportedOperationException is a good choice.  Any subclass of
> Error is not, because according to the spec Error "indicates
> serious problems that a reasonable application should not try to
> catch."

IMNSHO, this is *exactly* why we must define a new exception derived
from Error. An unimplemented method *is* a serious problem that a
reasonable application should not try to catch.

So, I think it is an extremely bad idea to use
UnsupportedOperationException (or a subclass of it).

Regards,
Jeroen



From MAILER-DAEMON Sat Sep 27 04:55:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3ArL-0003ip-Mg
	for mharc-classpath@gnu.org; Sat, 27 Sep 2003 04:55:23 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3ArI-0003gd-F0
	for classpath@gnu.org; Sat, 27 Sep 2003 04:55:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3ArF-0003e2-GZ
	for classpath@gnu.org; Sat, 27 Sep 2003 04:55:18 -0400
Received: from [212.6.122.96] (helo=mail0.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3ArE-0003cc-He
	for classpath@gnu.org; Sat, 27 Sep 2003 04:55:16 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-82-236.ewetel.net
	[80.228.82.236])
	by mail0.ewetel.de (8.12.1/8.12.9) with ESMTP id h8R8t8jB022412;
	Sat, 27 Sep 2003 10:55:09 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A3Ar6-0007Eo-00; Sat, 27 Sep 2003 10:55:08 +0200
From: Michael Koch <konqueror@gmx.de>
To: "Jeroen Frijters" <jeroen@sumatra.nl>, "Per Bothner" <per@bothner.com>
Date: Sat, 27 Sep 2003 10:57:23 +0200
User-Agent: KMail/1.5.2
References: <788B535AB1F9CB49BB9C229372B50ACC4616@LEMBU.sumatrasoftware.com>
In-Reply-To: <788B535AB1F9CB49BB9C229372B50ACC4616@LEMBU.sumatrasoftware.com>
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: <200309271057.27486.konqueror@gmx.de>
X-CheckCompat: OK
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Sep 2003 08:55:21 -0000

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

Am Samstag, 27. September 2003 10:43 schrieb Jeroen Frijters:
> Per Bothner wrote:
> > >>We discussed this in March, and there was agreement that we
> > >>should use use UnsupportedOperationException.
> > >>
> > >>See http://gcc.gnu.org/ml/java/2003-03/msg00016.html
> > >
> > > Its never too late to rethink something.
> >
> > But unless one is aware of previous discussion (and even if one
> > is), much time may be wasted.  So far I haven't seen any reason
> > why we need to re-consider the previous consensus.
>
> I just re-read the previous discussion and there Andrew Haley wrote:
> > UnsupportedOperationException is a good choice.  Any subclass of
> > Error is not, because according to the spec Error "indicates
> > serious problems that a reasonable application should not try to
> > catch."
>
> IMNSHO, this is *exactly* why we must define a new exception
> derived from Error. An unimplemented method *is* a serious problem
> that a reasonable application should not try to catch.
>
> So, I think it is an extremely bad idea to use
> UnsupportedOperationException (or a subclass of it).

Have you misread Andrew's comment ? I read it exaclty the other way=20
around then you.


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

iD8DBQE/dVD3WSOgCCdjSDsRArN/AJ9PrMom242bOP0UN8OjtQJPDzbimwCeNQoS
siqmZamyzq0EJYV/3UwQ3N4=3D
=3Duxdc
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Sat Sep 27 05:11:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3B7F-0005HI-Qs
	for mharc-classpath@gnu.org; Sat, 27 Sep 2003 05:11:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3B7D-0005EE-5a
	for classpath@gnu.org; Sat, 27 Sep 2003 05:11:47 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3B7B-0005Cy-Ic
	for classpath@gnu.org; Sat, 27 Sep 2003 05:11:46 -0400
Received: from [62.177.154.238] (helo=lembu.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3B7B-0005Co-80
	for classpath@gnu.org; Sat, 27 Sep 2003 05:11:45 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Date: Sat, 27 Sep 2003 11:11:38 +0200
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC4617@LEMBU.sumatrasoftware.com>
Content-class: urn:content-classes:message
X-MS-Has-Attach: 
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
X-MS-TNEF-Correlator: 
Thread-Topic: NYIException
Thread-Index: AcOE1RDbi552jz7XTe6GET0Li0+jpwAAXgkg
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Michael Koch" <konqueror@gmx.de>,
	"Per Bothner" <per@bothner.com>
Cc: GNU Classpath <classpath@gnu.org>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Sep 2003 09:11:47 -0000

Michael Koch wrote:
> Am Samstag, 27. September 2003 10:43 schrieb Jeroen Frijters:
> > Per Bothner wrote:
> > > >>We discussed this in March, and there was agreement that we
> > > >>should use use UnsupportedOperationException.
> > > >>
> > > >>See http://gcc.gnu.org/ml/java/2003-03/msg00016.html
> > > >
> > > > Its never too late to rethink something.
> > >
> > > But unless one is aware of previous discussion (and even if one
> > > is), much time may be wasted.  So far I haven't seen any reason
> > > why we need to re-consider the previous consensus.
> >
> > I just re-read the previous discussion and there Andrew Haley wrote:
> > > UnsupportedOperationException is a good choice.  Any subclass of
> > > Error is not, because according to the spec Error "indicates
> > > serious problems that a reasonable application should not try to
> > > catch."
> >
> > IMNSHO, this is *exactly* why we must define a new exception
> > derived from Error. An unimplemented method *is* a serious problem
> > that a reasonable application should not try to catch.
> >
> > So, I think it is an extremely bad idea to use
> > UnsupportedOperationException (or a subclass of it).
>=20
> Have you misread Andrew's comment ? I read it exaclty the other way=20
> around then you.

I didn't misread it, I just strongly disagree with it. If Andrew's
argument was the reason UnsupportedOperationException was chosen, I
think we need to reconsider.

Surely there is defensively written code out there that handles
UnsupportedOperationException (for example, when dealing with
collections), this will consume our UnsupportedOperationException (which
really means something quite different) and make diagnosing the problem
extremely hard. When an application depends on missing functionality I
want to see the exception and reduce the chance that the app
accidentally eats the exception.

Regards,
Jeroen



From MAILER-DAEMON Sat Sep 27 05:20:53 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3BG1-0008R4-6y
	for mharc-classpath@gnu.org; Sat, 27 Sep 2003 05:20:53 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3BFt-0008MJ-Rs
	for classpath@gnu.org; Sat, 27 Sep 2003 05:20:45 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3BFr-0008L9-0E
	for classpath@gnu.org; Sat, 27 Sep 2003 05:20:43 -0400
Received: from [212.6.122.106] (helo=mail1.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3BFp-0008Jp-KM
	for classpath@gnu.org; Sat, 27 Sep 2003 05:20:41 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-82-236.ewetel.net
	[80.228.82.236])
	by mail1.ewetel.de (8.12.1/8.12.9) with ESMTP id h8R9KbX1028788;
	Sat, 27 Sep 2003 11:20:37 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A3BFl-0000sd-00; Sat, 27 Sep 2003 11:20:37 +0200
From: Michael Koch <konqueror@gmx.de>
To: "Jeroen Frijters" <jeroen@sumatra.nl>, "Per Bothner" <per@bothner.com>
Date: Sat, 27 Sep 2003 11:22:56 +0200
User-Agent: KMail/1.5.2
References: <788B535AB1F9CB49BB9C229372B50ACC4617@LEMBU.sumatrasoftware.com>
In-Reply-To: <788B535AB1F9CB49BB9C229372B50ACC4617@LEMBU.sumatrasoftware.com>
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: <200309271122.56559.konqueror@gmx.de>
X-CheckCompat: OK
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Sep 2003 09:20:50 -0000

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

Am Samstag, 27. September 2003 11:11 schrieb Jeroen Frijters:

> > Have you misread Andrew's comment ? I read it exaclty the other
> > way around then you.
>
> I didn't misread it, I just strongly disagree with it. If Andrew's
> argument was the reason UnsupportedOperationException was chosen, I
> think we need to reconsider.

Yes.

> Surely there is defensively written code out there that handles
> UnsupportedOperationException (for example, when dealing with
> collections), this will consume our UnsupportedOperationException
> (which really means something quite different) and make diagnosing
> the problem extremely hard. When an application depends on missing
> functionality I want to see the exception and reduce the chance
> that the app accidentally eats the exception.


Well, thats my concern too. Summarized inheriting from either=20
UnsupportedOperationException or Error is bad. Just inheriting from=20
Exception might not be.

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

iD8DBQE/dVbwWSOgCCdjSDsRAg9eAJ4zJpofhG7tQsSiT4iRbWFX6vFbHACfX/Gz
YccHJ9M6jHR/JQ6AlnfxUso=3D
=3DsdgC
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Sat Sep 27 05:43:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3Bc7-0005ww-AW
	for mharc-classpath@gnu.org; Sat, 27 Sep 2003 05:43:43 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3Bc5-0005w2-Jl
	for classpath@gnu.org; Sat, 27 Sep 2003 05:43:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3Bc4-0005vZ-49
	for classpath@gnu.org; Sat, 27 Sep 2003 05:43:40 -0400
Received: from [212.6.122.96] (helo=mail0.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3Bc3-0005tf-Bn
	for classpath@gnu.org; Sat, 27 Sep 2003 05:43:39 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-82-236.ewetel.net
	[80.228.82.236])
	by mail0.ewetel.de (8.12.1/8.12.9) with ESMTP id h8R9hZjB013780;
	Sat, 27 Sep 2003 11:43:36 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A3Bc0-0004fZ-00; Sat, 27 Sep 2003 11:43:36 +0200
From: Michael Koch <konqueror@gmx.de>
To: Per Bothner <per@bothner.com>
Date: Sat, 27 Sep 2003 11:45:55 +0200
User-Agent: KMail/1.5.2
References: <80FF42A334253C4393F2527DE0E6DD9F0F0AFB@edxmb5.jdnet.deere.com>
	<200309262158.22669.konqueror@gmx.de>
	<3F74C5C1.2070001@bothner.com>
In-Reply-To: <3F74C5C1.2070001@bothner.com>
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: <200309271145.55684.konqueror@gmx.de>
X-CheckCompat: OK
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Sep 2003 09:43:42 -0000

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

Am Samstag, 27. September 2003 01:03 schrieb Per Bothner:
> Michael Koch wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Am Freitag, 26. September 2003 19:29 schrieb Per Bothner:
> >>We discussed this in March, and there was agreement that we
> >>should use use UnsupportedOperationException.
> >>
> >>See http://gcc.gnu.org/ml/java/2003-03/msg00016.html
> >
> > Its never too late to rethink something.
>
> But unless one is aware of previous discussion (and even if one
> is), much time may be wasted.  So far I haven't seen any reason why
> we need to re-consider the previous consensus.

well, there are some reasons against the old decission.


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

iD8DBQE/dVxTWSOgCCdjSDsRAiNSAKCD5/BSZasIyn72hZhFa77dOAOCuQCfT/Ty
Ydgw1wR57yX0nlApCCnaJjM=3D
=3Dnxio
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Sat Sep 27 10:03:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3Ffw-0007mF-3P
	for mharc-classpath@gnu.org; Sat, 27 Sep 2003 10:03:56 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3Fft-0007kF-J6
	for classpath@gnu.org; Sat, 27 Sep 2003 10:03:53 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3Ffs-0007jy-2X
	for classpath@gnu.org; Sat, 27 Sep 2003 10:03:52 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3Ffr-0007j1-Hc
	for classpath@gnu.org; Sat, 27 Sep 2003 10:03:51 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A3Ffp-0008Je-00
	for <classpath@gnu.org>; Sat, 27 Sep 2003 16:03:49 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A3Ffn-0008J8-00; Sat, 27 Sep 2003 16:03:47 +0200
Message-ID: <3F7598C3.3090308@kaffe.org>
Date: Sat, 27 Sep 2003 16:03:47 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Per Bothner <per@bothner.com>
References: <80FF42A334253C4393F2527DE0E6DD9F0F0AFB@edxmb5.jdnet.deere.com>
	<3F747784.1060507@bothner.com>
In-Reply-To: <3F747784.1060507@bothner.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Sep 2003 14:03:54 -0000

Hi Per,

Per Bothner wrote:
> We discussed this in March, and there was agreement that we
> should use use UnsupportedOperationException.
> 
> See http://gcc.gnu.org/ml/java/2003-03/msg00016.html

I agree there was an agreement that something should be done, and the 
practice of returning null/nothing was 'evil', but I didn't parse the 
discussion as specifically nailing down UnsupportedOperationException or 
UnsupportedOperationException(String reason) as the particular 
implementation to pick.

When your proposal came up again on the Classpath mailing list after the 
LinuxTag meeting, it was ammended by me and Andy Walter to the 
NYIException with a verbose 'please contribute' message. Again, no 
decision was made in favor or against it. See 
http://mail.gnu.org/archive/html/classpath/2003-07/msg00053.html

So it's back at the table, in my opinion, and I hope this time around we 
can agree on a concrete implementation ;) I'd like to point out my 
arguments in favor of a specific NotYetImplementedException:

a) it would be easy to write a tool that walks over classpath's rt.jar, 
loads the classes using Class.forName, uses reflection to check which 
methods are not implemented yet, and produces simple todo lists.

b) It makes it clear that a method is not implemented, whereas an 
UnsupportedOperationException already has a different meaning: it means 
that a collection class doesn't support an optional operation. In my 
opinion, there is nothing optional about non-implementing a method. ;) 
So having NotYetImplementedException extend 
UnsupportedOperationException would be semantically confusing, as it 
mixes what's allowed by the API with what we know is wrong, but didn't 
get around to fix yet. The behaviour for code that catches 
UnsupportedOperationException would be weird, too, as the code would 
silently change its behaviou as Classpath improves, and the 
unimplemented method is implemented. That's not something I'd want when 
I program against an otherwise stable API.

c) It comes with a beautiful motivational message. It tried to motivate 
the people who want to run their code on top of classpath, and it 
doesn't work, to try to fix it.

d) It can be easily extended to cover additional information if 
necessary, like API version:
{
public static API extends Object {
private API(){};
}
public static final API 1_0 = new API();
public static final API 1_1 = new API();
...

private static final String help = "Fix GNU Classpath now!";

private API api;
private String reason;

public NotYetImplementedException(String reason, API api) {
	this.reason = reason;
	this.api = api;
}

public NotYetImplementedException(String reason) {
	this.reason = reason;
}
}

cheers,
dalibor topic




From MAILER-DAEMON Sat Sep 27 12:37:32 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3I4Z-0006Ch-VN
	for mharc-classpath@gnu.org; Sat, 27 Sep 2003 12:37:31 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3I4X-0006Ai-3t
	for classpath@gnu.org; Sat, 27 Sep 2003 12:37:29 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3I4V-00069a-Jm
	for classpath@gnu.org; Sat, 27 Sep 2003 12:37:28 -0400
Received: from [139.165.32.78] (helo=serv09.segi.ulg.ac.be)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3I4U-00062d-SP
	for classpath@gnu.org; Sat, 27 Sep 2003 12:37:26 -0400
Received: (qmail 6873 invoked by uid 504); 27 Sep 2003 18:37:20 +0200
Received: from arnaud.vandyck@ulg.ac.be by serv09.segi.ulg.ac.be by uid 501
	with qmail-scanner-1.16 
	(clamscan: 0.60. spamassassin: 2.55.  Clear:. 
	Processed in 0.756379 secs); 27 Sep 2003 16:37:20 -0000
Received: from unknown (HELO localhost) ([139.165.77.48])
	(envelope-sender <arnaud.vandyck@ulg.ac.be>)
	by serv09.segi.ulg.ac.be (qmail-ldap-1.03) with SMTP
	for <classpath@gnu.org>; 27 Sep 2003 18:37:19 +0200
Date: Sat, 27 Sep 2003 18:37:19 +0200 (CEST)
Message-Id: <20030927.183719.29978706.arnaud.vandyck@ulg.ac.be>
To: classpath@gnu.org
From: Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
Organization: STE-Formations Informatiques, ULg
X-Fingerprint: 82F3 45D0 F1B2 D79E D0BE  5188 E2FC C566 EEB6 B4C2
X-URL: http://vbstefi60.fapse.ulg.ac.be/~arnaud/
X-Face: ".{A?<Dzy|V1IPZL0O-B-~G{n+`j%t7K$Y`:u[w54'>P>_0mS1E$Wn4RK&CR)_yvw`),0&;
	?-]upzJvA]->#pP:$si]X039T'Qrd}9t=!EstonSVE1F$dtgGsRC"lyQnP+H6/g:f^d:,0@)P#xCy9?MmW[8n{8B75hA_=]O7TRZ~r9SE6CL*xpR8k4'~!5B8"|u
X-Mailer: Mew version 4.0.58 on Emacs 21.3 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: Why override setBackground(Color) in DefaultTableCellRenderer?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Sep 2003 16:37:29 -0000

I  do not  understand what  I have  to  do in  this methode  nor in  the
setForeground(Color) one?

Can someone help me and explain what to do? 
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/table/DefaultTableCellRenderer.html#setBackground(java.awt.Color)

Thanks ;)

-- Arnaud Vandyck, STE fi, ULg
   Formateur Cellule Programmation.



From MAILER-DAEMON Sat Sep 27 12:42:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3I9a-0001Rm-Rq
	for mharc-classpath@gnu.org; Sat, 27 Sep 2003 12:42:42 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3I9X-0001R4-Oh
	for classpath@gnu.org; Sat, 27 Sep 2003 12:42:39 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3I9W-0001Qh-1w
	for classpath@gnu.org; Sat, 27 Sep 2003 12:42:38 -0400
Received: from [81.5.129.62] (helo=tangency.co.uk)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3I9V-0001Ph-ML
	for classpath@gnu.org; Sat, 27 Sep 2003 12:42:37 -0400
Received: from tangency.co.uk (localhost [127.0.0.1])
	by outgoing.tangency.co.uk (Postfix) with ESMTP
	id 63CC4606F5; Sat, 27 Sep 2003 17:39:05 +0100 (BST)
Received: from localhost ([127.0.0.1])
	by tangency.co.uk (MailMonitor for SMTP v1.2.2 ) ;
	Sat, 27 Sep 2003 17:39:05 +0100 (BST)
Received: from Draboof (draboof.tangency.co.uk [192.168.1.254])
	(using TLSv1 with cipher RC4-MD5 (128/128 bits))
	(No client certificate requested)
	by tangency.co.uk (Postfix) with ESMTP
	id EB74D606F5; Sat, 27 Sep 2003 17:39:04 +0100 (BST)
From: "Stephane Meslin-Weber" <twiun@adorphuye.com>
To: "'Arnaud Vandyck'" <arnaud.vandyck@ulg.ac.be>
Date: Sat, 27 Sep 2003 17:42:29 +0100
Message-ID: <000301c38516$57c09740$fe01a8c0@Draboof>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4024
In-Reply-To: <20030927.183719.29978706.arnaud.vandyck@ulg.ac.be>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
Cc: classpath@gnu.org
Subject: RE: Why override setBackground(Color) in DefaultTableCellRenderer?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Sep 2003 16:42:40 -0000

> I  do not  understand what  I have  to  do in  this methode  
> nor in  the
> setForeground(Color) one?
> 
> Can someone help me and explain what to do? 
> http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/table/Defa
> ultTableCellRenderer.html#setBackground(java.awt.Color)

The docs say a few other methods had to be overridden to no-ops to stop
the revalidation that would happen when those properties are changed. I
imagine that this could also the case for changing the colours.

-- Steph





From MAILER-DAEMON Sat Sep 27 13:08:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3IYl-0002hF-6F
	for mharc-classpath@gnu.org; Sat, 27 Sep 2003 13:08:43 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3IYj-0002fv-Ak
	for classpath@gnu.org; Sat, 27 Sep 2003 13:08:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3IVD-0001Uj-7o
	for classpath@gnu.org; Sat, 27 Sep 2003 13:05:03 -0400
Received: from [139.165.32.78] (helo=serv09.segi.ulg.ac.be)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3IV5-0001Lp-GT
	for classpath@gnu.org; Sat, 27 Sep 2003 13:04:55 -0400
Received: (qmail 22308 invoked by uid 504); 27 Sep 2003 19:04:52 +0200
Received: from arnaud.vandyck@ulg.ac.be by serv09.segi.ulg.ac.be by uid 501
	with qmail-scanner-1.16 
	(clamscan: 0.60. spamassassin: 2.55.  Clear:. 
	Processed in 0.646893 secs); 27 Sep 2003 17:04:52 -0000
Received: from unknown (HELO localhost) ([139.165.77.48])
	(envelope-sender <arnaud.vandyck@ulg.ac.be>)
	by serv09.segi.ulg.ac.be (qmail-ldap-1.03) with SMTP
	for <classpath@gnu.org>; 27 Sep 2003 19:04:51 +0200
Date: Sat, 27 Sep 2003 19:04:51 +0200 (CEST)
Message-Id: <20030927.190451.99239469.arnaud.vandyck@ulg.ac.be>
To: classpath@gnu.org
From: Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
In-Reply-To: <000301c38516$57c09740$fe01a8c0@Draboof>
References: <20030927.183719.29978706.arnaud.vandyck@ulg.ac.be>
	<000301c38516$57c09740$fe01a8c0@Draboof>
Organization: STE-Formations Informatiques, ULg
X-Fingerprint: 82F3 45D0 F1B2 D79E D0BE  5188 E2FC C566 EEB6 B4C2
X-URL: http://vbstefi60.fapse.ulg.ac.be/~arnaud/
X-Face: ".{A?<Dzy|V1IPZL0O-B-~G{n+`j%t7K$Y`:u[w54'>P>_0mS1E$Wn4RK&CR)_yvw`),0&;
	?-]upzJvA]->#pP:$si]X039T'Qrd}9t=!EstonSVE1F$dtgGsRC"lyQnP+H6/g:f^d:,0@)P#xCy9?MmW[8n{8B75hA_=]O7TRZ~r9SE6CL*xpR8k4'~!5B8"|u
X-Mailer: Mew version 4.0.58 on Emacs 21.3 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: Re: Why override setBackground(Color) in DefaultTableCellRenderer?
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Sep 2003 17:08:41 -0000

On Sat, 27 Sep 2003 17:42:29 +0100
"Stephane Meslin-Weber" <twiun@adorphuye.com> wrote:

> > I  do not  understand what  I have  to  do in  this methode  
> > nor in  the
> > setForeground(Color) one?
> > 
> > Can someone help me and explain what to do? 
> > http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/table/Defa
> > ultTableCellRenderer.html#setBackground(java.awt.Color)
> 
> The docs say a few other methods had to be overridden to no-ops to stop
> the revalidation that would happen when those properties are changed. I
> imagine that this could also the case for changing the colours.

I  saw for  validate, revalidate,  repaint and  firePropertyChanged, but
what     about     isOpaque()?      always     true?     Whate     about
setForeground/Background?    Is   it    impossible    to   change    the
foreground/background of a cell in a JTable? 

Well, as  the implementation  note says[1], it's  maybe the  JTable that
does it alone?! 

Also, maybe it's  my english or my little brain, but  I don't catch what
the getTableCellRendererComponent(...) should do? Current implementation
of  classpath returns  'null' (and  that's  all)... I  don't think  it's
enough... 

Thanks for your help,

-- Arnaud Vandyck, STE fi, ULg
   Formateur Cellule Programmation.

Footnotes: 
[1] http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/table/DefaultTableCellRenderer.html#override




From MAILER-DAEMON Sat Sep 27 23:56:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3Sfp-0007g6-UT
	for mharc-classpath@gnu.org; Sat, 27 Sep 2003 23:56:41 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3Sfn-0007fY-IP
	for classpath@gnu.org; Sat, 27 Sep 2003 23:56:39 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3Sfm-0007fG-2P
	for classpath@gnu.org; Sat, 27 Sep 2003 23:56:38 -0400
Received: from [210.55.57.198] (helo=server.flinders.co.nz)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A3Sfl-0007eq-7R
	for classpath@gnu.org; Sat, 27 Sep 2003 23:56:37 -0400
Received: from [192.168.0.191] by server.flinders.co.nz (AppleMailServer
	10.2.3.0) id 68839 via TCP with SMTP; Sun, 28 Sep 2003 16:04:48 +1200
Date: Sun, 28 Sep 2003 16:00:02 +1200
Content-Type: multipart/mixed; boundary=Apple-Mail-8-515056678
Mime-Version: 1.0 (Apple Message framework v552)
From: Bryce McKinlay <bryce@mckinlay.net.nz>
To: Classpath List <classpath@gnu.org>
In-Reply-To: <1064703858.1787.486.camel@elsschot>
Message-Id: <3C8E671B-F168-11D7-A59F-003065F97F7C@mckinlay.net.nz>
X-Mailer: Apple Mail (2.552)
Subject: Re: FYI: Patch: java.text.SimpleDateFormat
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Sep 2003 03:56:40 -0000


--Apple-Mail-8-515056678
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

On Sunday, Sep 28, 2003, at 11:04 Pacific/Auckland, Mark Wielaard wrote:

> Hi,
>
> On Sat, 2003-09-27 at 22:21, Bryce McKinlay wrote:
>> Can you give me a pointer to the failing mauve test?
>
> Without the patch the following four mauve tests fail:
> FAIL: gnu.testlet.java.text.SimpleDateFormat.regress: CDT (number 1)
> FAIL: gnu.testlet.java.text.SimpleDateFormat.regress: EDT (number 1)
> FAIL: gnu.testlet.java.text.SimpleDateFormat.regress: EST (number 1)
> FAIL: gnu.testlet.java.text.SimpleDateFormat.regress: PDT (number 1)

Thanks Mark.

The real problem here is that setTimeZone() was being called on the 
underlying calendar. This is not necessary since the ZONE_OFFSET field 
has the same effect, without overwriting the timezone which the user 
set and "sticking" across a calendar.clear() call. The cloning approach 
only worked by chance, since it reset the calendar's timezone to GMT 
which just happened to be what the test case expected.

I'm checking in this patch to libgcj & classpath.

Regards

Bryce.


--Apple-Mail-8-515056678
Content-Disposition: attachment;
	filename=Calendar.patch.txt
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	x-unix-mode=0644;
	name="Calendar.patch.txt"

2003-09-28  Bryce McKinlay  <bryce@mckinlay.net.nz>

	* java/text/SimpleDateFormat (parse): Revert patch of 2003-09-25.
	Don't call setTimeZone on the calendar.

Index: SimpleDateFormat.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/text/SimpleDateFormat.java,v
retrieving revision 1.20
diff -u -r1.20 SimpleDateFormat.java
--- SimpleDateFormat.java	25 Sep 2003 17:25:15 -0000	1.20
+++ SimpleDateFormat.java	28 Sep 2003 03:38:05 -0000
@@ -547,9 +547,8 @@
   {
     int fmt_index = 0;
     int fmt_max = pattern.length();
-    Calendar loc_calendar = (Calendar)calendar.clone();
 
-    loc_calendar.clear();
+    calendar.clear();
     boolean saw_timezone = false;
     int quote_start = -1;
     boolean is2DigitYear = false;
@@ -697,8 +696,7 @@
 		    found_zone = true;
 		    saw_timezone = true;
 		    TimeZone tz = TimeZone.getTimeZone (strings[0]);
-		    loc_calendar.setTimeZone (tz);
-		    loc_calendar.set (Calendar.ZONE_OFFSET, tz.getRawOffset ());
+		    calendar.set (Calendar.ZONE_OFFSET, tz.getRawOffset ());
 		    offset = 0;
 		    if (k > 2 && tz instanceof SimpleTimeZone)
 		      {
@@ -765,17 +763,17 @@
 	  }
 
 	// Assign the value and move on.
-	loc_calendar.set(calendar_field, value);
+	calendar.set(calendar_field, value);
       }
     
     if (is2DigitYear)
       {
 	// Apply the 80-20 heuristic to dermine the full year based on 
 	// defaultCenturyStart. 
-	int year = defaultCentury + loc_calendar.get(Calendar.YEAR);
-	loc_calendar.set(Calendar.YEAR, year);
-	if (loc_calendar.getTime().compareTo(defaultCenturyStart) < 0)
-	  loc_calendar.set(Calendar.YEAR, year + 100);      
+	int year = defaultCentury + calendar.get(Calendar.YEAR);
+	calendar.set(Calendar.YEAR, year);
+	if (calendar.getTime().compareTo(defaultCenturyStart) < 0)
+	  calendar.set(Calendar.YEAR, year + 100);      
       }
 
     try
@@ -784,10 +782,10 @@
 	  {
 	    // Use the real rules to determine whether or not this
 	    // particular time is in daylight savings.
-	    loc_calendar.clear (Calendar.DST_OFFSET);
-	    loc_calendar.clear (Calendar.ZONE_OFFSET);
+	    calendar.clear (Calendar.DST_OFFSET);
+	    calendar.clear (Calendar.ZONE_OFFSET);
 	  }
-        return loc_calendar.getTime();
+        return calendar.getTime();
       }
     catch (IllegalArgumentException x)
       {

--Apple-Mail-8-515056678
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed



--Apple-Mail-8-515056678--





From MAILER-DAEMON Sun Sep 28 04:23:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3Wpm-0004uS-31
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 04:23:14 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3Wph-0004rZ-PQ
	for classpath@gnu.org; Sun, 28 Sep 2003 04:23:09 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3Wpf-0004qU-9Q
	for classpath@gnu.org; Sun, 28 Sep 2003 04:23:08 -0400
Received: from [213.228.0.62] (helo=postfix4-1.free.fr)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3Wpe-0004oa-Ca
	for classpath@gnu.org; Sun, 28 Sep 2003 04:23:06 -0400
Received: from kaffe.org (cachan-3-82-66-125-112.fbx.proxad.net
	[82.66.125.112]) by postfix4-1.free.fr (Postfix) with ESMTP
	id 55EBE4D050; Sun, 28 Sep 2003 10:22:58 +0200 (CEST)
Message-ID: <3F769A69.7080703@kaffe.org>
Date: Sun, 28 Sep 2003 10:23:05 +0200
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Bryce McKinlay <bryce@mckinlay.net.nz>
References: <3C8E671B-F168-11D7-A59F-003065F97F7C@mckinlay.net.nz>
In-Reply-To: <3C8E671B-F168-11D7-A59F-003065F97F7C@mckinlay.net.nz>
X-Enigmail-Version: 0.73.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: Classpath List <classpath@gnu.org>
Subject: Re: FYI: Patch: java.text.SimpleDateFormat
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Sep 2003 08:23:12 -0000

Bryce McKinlay wrote:

> On Sunday, Sep 28, 2003, at 11:04 Pacific/Auckland, Mark Wielaard wrote:
>
>> Hi,
>>
>> On Sat, 2003-09-27 at 22:21, Bryce McKinlay wrote:
>>
>>> Can you give me a pointer to the failing mauve test?
>>
>>
>> Without the patch the following four mauve tests fail:
>> FAIL: gnu.testlet.java.text.SimpleDateFormat.regress: CDT (number 1)
>> FAIL: gnu.testlet.java.text.SimpleDateFormat.regress: EDT (number 1)
>> FAIL: gnu.testlet.java.text.SimpleDateFormat.regress: EST (number 1)
>> FAIL: gnu.testlet.java.text.SimpleDateFormat.regress: PDT (number 1)
>
>
> Thanks Mark.
>
> The real problem here is that setTimeZone() was being called on the 
> underlying calendar. This is not necessary since the ZONE_OFFSET field 
> has the same effect, without overwriting the timezone which the user 
> set and "sticking" across a calendar.clear() call. The cloning 
> approach only worked by chance, since it reset the calendar's timezone 
> to GMT which just happened to be what the test case expected.

>
> I'm checking in this patch to libgcj & classpath.

Ok, that's seem right.  I was considering calendar like if it was given 
by an external user. Apparently you got the point.

Regards,
Guilhem.





From MAILER-DAEMON Sun Sep 28 05:04:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3XTG-00043A-FW
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 05:04:02 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3XT8-00041X-Sc
	for classpath@gnu.org; Sun, 28 Sep 2003 05:03:54 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3XT6-00040Y-P1
	for classpath@gnu.org; Sun, 28 Sep 2003 05:03:53 -0400
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3XRv-0003QV-7A
	for classpath@gnu.org; Sun, 28 Sep 2003 05:02:39 -0400
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8S92L114364
	for <classpath@gnu.org>; Sun, 28 Sep 2003 05:02:21 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8S92Lc01192
	for <classpath@gnu.org>; Sun, 28 Sep 2003 05:02:21 -0400
Received: from cuddles.cambridge.redhat.com
	(IDENT:pIxSYjxhbvMAqfMFN4ienzVvXBS4xyit@vpn50-21.rdu.redhat.com
	[172.16.50.21])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8S92KTX015554; 
	Sun, 28 Sep 2003 05:02:20 -0400
Received: from cuddles.cambridge.redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	h8S90rgt002038; Sun, 28 Sep 2003 10:01:28 +0100
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8/Submit) id
	h8S90pTN002034; Sun, 28 Sep 2003 10:00:51 +0100
From: Andrew Haley <aph@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16246.41795.78049.201429@cuddles.cambridge.redhat.com>
Date: Sun, 28 Sep 2003 10:00:51 +0100
To: "Jeroen Frijters" <jeroen@sumatra.nl>
In-Reply-To: <788B535AB1F9CB49BB9C229372B50ACC4617@LEMBU.sumatrasoftware.com>
References: <788B535AB1F9CB49BB9C229372B50ACC4617@LEMBU.sumatrasoftware.com>
X-Mailer: VM 7.14 under Emacs 21.2.1
Cc: Per Bothner <per@bothner.com>, GNU Classpath <classpath@gnu.org>,
	Michael Koch <konqueror@gmx.de>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Sep 2003 09:03:55 -0000

Jeroen Frijters writes:
 > Michael Koch wrote:
 > > Am Samstag, 27. September 2003 10:43 schrieb Jeroen Frijters:
 > > > Per Bothner wrote:
 > > > > >>We discussed this in March, and there was agreement that we
 > > > > >>should use use UnsupportedOperationException.
 > > > > >>
 > > > > >>See http://gcc.gnu.org/ml/java/2003-03/msg00016.html
 > > > > >
 > > > > > Its never too late to rethink something.
 > > > >
 > > > > But unless one is aware of previous discussion (and even if one
 > > > > is), much time may be wasted.  So far I haven't seen any reason
 > > > > why we need to re-consider the previous consensus.
 > > >
 > > > I just re-read the previous discussion and there Andrew Haley wrote:
 > > > > UnsupportedOperationException is a good choice.  Any subclass of
 > > > > Error is not, because according to the spec Error "indicates
 > > > > serious problems that a reasonable application should not try to
 > > > > catch."
 > > >
 > > > IMNSHO, this is *exactly* why we must define a new exception
 > > > derived from Error. An unimplemented method *is* a serious problem
 > > > that a reasonable application should not try to catch.
 > > >
 > > > So, I think it is an extremely bad idea to use
 > > > UnsupportedOperationException (or a subclass of it).
 > > 
 > > Have you misread Andrew's comment ? I read it exaclty the other way 
 > > around then you.
 > 
 > I didn't misread it, I just strongly disagree with it. If Andrew's
 > argument was the reason UnsupportedOperationException was chosen, I
 > think we need to reconsider.
 > 
 > Surely there is defensively written code out there that handles
 > UnsupportedOperationException (for example, when dealing with
 > collections), this will consume our UnsupportedOperationException
 > (which really means something quite different) and make diagnosing
 > the problem extremely hard. When an application depends on missing
 > functionality I want to see the exception and reduce the chance
 > that the app accidentally eats the exception.

My only argument was against subclassing Error, because the Java
specification strongly implies that the only reasonable thing to do
when receiving an Error is issue a disgnostic and die.  In the case of
unimplemented Classpath methods, this seems rather extreme.

Andrew.




From MAILER-DAEMON Sun Sep 28 08:18:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3aVN-0006JU-3E
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 08:18:25 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3aVJ-0006J5-UA
	for classpath@gnu.org; Sun, 28 Sep 2003 08:18:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3aVF-0006Ig-VS
	for classpath@gnu.org; Sun, 28 Sep 2003 08:18:18 -0400
Received: from [62.177.154.238] (helo=lembu.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3aVF-0006Hx-73
	for classpath@gnu.org; Sun, 28 Sep 2003 08:18:17 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Date: Sun, 28 Sep 2003 14:18:08 +0200
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC461A@LEMBU.sumatrasoftware.com>
Content-class: urn:content-classes:message
X-MS-Has-Attach: 
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
X-MS-TNEF-Correlator: 
Thread-Topic: NYIException
Thread-Index: AcOFn0wTO7BiCL0tQ3uUk2LtXr809QAGwbXQ
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Andrew Haley" <aph@redhat.com>
Cc: Per Bothner <per@bothner.com>, GNU Classpath <classpath@gnu.org>,
	Michael Koch <konqueror@gmx.de>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Sep 2003 12:18:23 -0000

[I'm resending this, apologies if you get it twice]

Andrew Haley wrote:
> My only argument was against subclassing Error, because the Java
> specification strongly implies that the only reasonable thing to do
> when receiving an Error is issue a disgnostic and die.

I apologize for the confusion.=20

> In the case of
> unimplemented Classpath methods, this seems rather extreme.

Why? I don't see how you can reasonably continue given that an arbitrary
functionality that the application depends on is missing.

Regards,
Jeroen



From MAILER-DAEMON Sun Sep 28 08:31:38 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3ai9-0001PN-4l
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 08:31:37 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3ai6-0001Oo-Uf
	for classpath@gnu.org; Sun, 28 Sep 2003 08:31:34 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3ai4-0001O5-Rk
	for classpath@gnu.org; Sun, 28 Sep 2003 08:31:33 -0400
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3aer-0000tT-14
	for classpath@gnu.org; Sun, 28 Sep 2003 08:28:13 -0400
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8SCSC115559
	for <classpath@gnu.org>; Sun, 28 Sep 2003 08:28:12 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8SCSCc15172
	for <classpath@gnu.org>; Sun, 28 Sep 2003 08:28:12 -0400
Received: from cuddles.cambridge.redhat.com
	(IDENT:p7yX9UiymFOoZEC/QupUzqG/SZeUEocs@vpn50-21.rdu.redhat.com
	[172.16.50.21])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8SCSBTX028918; 
	Sun, 28 Sep 2003 08:28:11 -0400
Received: from cuddles.cambridge.redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	h8SCQjgt013094; Sun, 28 Sep 2003 13:27:15 +0100
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8/Submit) id
	h8SCQiUg013088; Sun, 28 Sep 2003 13:26:44 +0100
From: Andrew Haley <aph@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16246.54147.969579.118792@cuddles.cambridge.redhat.com>
Date: Sun, 28 Sep 2003 13:26:43 +0100
To: "Jeroen Frijters" <jeroen@sumatra.nl>
In-Reply-To: <788B535AB1F9CB49BB9C229372B50ACC461A@LEMBU.sumatrasoftware.com>
References: <788B535AB1F9CB49BB9C229372B50ACC461A@LEMBU.sumatrasoftware.com>
X-Mailer: VM 7.14 under Emacs 21.2.1
Cc: Per Bothner <per@bothner.com>, GNU Classpath <classpath@gnu.org>,
	Michael Koch <konqueror@gmx.de>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Sep 2003 12:31:35 -0000

Jeroen Frijters writes:
 > [I'm resending this, apologies if you get it twice]
 > 
 > Andrew Haley wrote:
 > > My only argument was against subclassing Error, because the Java
 > > specification strongly implies that the only reasonable thing to
 > > do when receiving an Error is issue a disgnostic and die.
 > 
 > I apologize for the confusion. 
 > 
 > > In the case of
 > > unimplemented Classpath methods, this seems rather extreme.
 > 
 > Why? I don't see how you can reasonably continue given that an
 > arbitrary functionality that the application depends on is missing.

Think about the "programming by contract" metaphor: the application is
a customer, and the implementation is a contractor.  It is not up to a
contractor to decide whether failure to do a particular job should
cause the whole project to be cancelled.  That decision rests soley
with the customer.  That is because the contractor does not know how
important a particular job is.

An application can decide to carry on, and is perfectly entitled to do
so.

Andrew.




From MAILER-DAEMON Sun Sep 28 15:42:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3hQq-0003It-Qq
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 15:42:12 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3hQg-0003Ac-4q
	for classpath@gnu.org; Sun, 28 Sep 2003 15:42:02 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3hQe-00039l-Cd
	for classpath@gnu.org; Sun, 28 Sep 2003 15:42:00 -0400
Received: from [213.228.0.62] (helo=postfix4-1.free.fr)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3hPe-0002eP-U4
	for classpath@gnu.org; Sun, 28 Sep 2003 15:40:59 -0400
Received: from kaffe.org (cachan-3-82-66-125-112.fbx.proxad.net
	[82.66.125.112])
	by postfix4-1.free.fr (Postfix) with ESMTP id 6509A4D5A9
	for <classpath@gnu.org>; Sun, 28 Sep 2003 21:40:57 +0200 (CEST)
Message-ID: <3F773950.3080309@kaffe.org>
Date: Sun, 28 Sep 2003 21:41:04 +0200
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: classpath@gnu.org
X-Enigmail-Version: 0.73.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: RFC on patch [bug #4968] 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Sep 2003 19:42:03 -0000

Hi,

I know that I don't write that much ChangeLog ... but could someone can 
have a look at 
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4968&group_id=85 and 
tell me if it sees something against comitting it in the repository. I 
would like to speed up the process of merging between Kaffe's and 
Classpath's CVS.

Regards,
Guilhem.




From MAILER-DAEMON Sun Sep 28 15:48:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3hWR-0005xy-JQ
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 15:47:59 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3hWP-0005x2-FP
	for classpath@gnu.org; Sun, 28 Sep 2003 15:47:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3hWL-0005wA-At
	for classpath@gnu.org; Sun, 28 Sep 2003 15:47:54 -0400
Received: from [62.177.154.238] (helo=lembu.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3hWK-0005vs-UI
	for classpath@gnu.org; Sun, 28 Sep 2003 15:47:53 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Date: Sun, 28 Sep 2003 21:47:37 +0200
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC461C@LEMBU.sumatrasoftware.com>
Content-class: urn:content-classes:message
X-MS-Has-Attach: 
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
X-MS-TNEF-Correlator: 
Thread-Topic: NYIException
Thread-Index: AcOFvBDs3xZkmTZLSJONaVSe0C0dcQAPJbFw
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Andrew Haley" <aph@redhat.com>
Cc: Per Bothner <per@bothner.com>, GNU Classpath <classpath@gnu.org>,
	Michael Koch <konqueror@gmx.de>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Sep 2003 19:47:58 -0000

Andrew Haley wrote:
>  > Why? I don't see how you can reasonably continue given that an
>  > arbitrary functionality that the application depends on is missing.
>=20
> Think about the "programming by contract" metaphor: the application is
> a customer, and the implementation is a contractor.  It is not up to a
> contractor to decide whether failure to do a particular job should
> cause the whole project to be cancelled.  That decision rests soley
> with the customer.  That is because the contractor does not know how
> important a particular job is.
>=20
> An application can decide to carry on, and is perfectly entitled to do
> so.

IMHO, this comparison is misleading because applications cannot "decide"
anything. The programmer is the one doing the deciding. If an
application doesn't explicitly target Classpath, it is unreasonable to
expect the programmer to deal with this failure. If the programmer is
targeting Classpath, it is easy enough to handle the NYI exception.

Maybe we should have a static method instead of directly throwing an
exception, that way it is easy to change the behavior.

Regards,
Jeroen



From MAILER-DAEMON Sun Sep 28 15:48:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3hWq-00067c-CP
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 15:48:24 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3hWn-00066O-D5
	for classpath@gnu.org; Sun, 28 Sep 2003 15:48:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3hWi-00063m-RT
	for classpath@gnu.org; Sun, 28 Sep 2003 15:48:19 -0400
Received: from [212.101.4.135] (helo=mail01.solnet.ch)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3hWc-00062w-OZ
	for classpath@gnu.org; Sun, 28 Sep 2003 15:48:10 -0400
Received: from localhost (localhost [127.0.0.1])
	by mail01.solnet.ch (Postfix) with ESMTP
	id 4604E620CF; Sun, 28 Sep 2003 19:48:09 +0000 (GMT)
Received: from localhost ([127.0.0.1])
	by localhost (mail01.solnet.ch [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 68676-09; Sun, 28 Sep 2003 19:48:08 +0000 (GMT)
Received: from reali.dnsalias.net (adsl-212-41-65-231.solnet.ch
	[212.41.65.231]) by mail01.solnet.ch (Postfix) with ESMTP
	id 9BD8A60E0D; Sun, 28 Sep 2003 19:48:07 +0000 (GMT)
Received: from cyclone
	(192-168-001-003-at-home-your-network.privateiprange.solnet.ch
	[192.168.1.3]) by reali.dnsalias.net (Postfix) with SMTP
	id 2640E3D3ED; Sun, 28 Sep 2003 21:39:33 +0200 (CEST)
Message-ID: <001201c385f9$87c7e040$0301a8c0@cyclone>
From: "Patrik Reali" <reali@acm.org>
To: "GNU Classpath" <classpath@gnu.org>
References: <20030926152318.7708@smtp.mail.ch.easynet.net>
Date: Sun, 28 Sep 2003 21:48:46 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Virus-Scanned: by SolNet
Content-Transfer-Encoding: quoted-printable
Cc: Sascha Brawer <brawer@dandelis.ch>
Subject: Re: Workshop Oct. 14
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Sep 2003 19:48:22 -0000

Hi Sascha,

thank you for taking the burden of organizing this! Here are my (small)
propositions.

I would like to hear the people / projects taking part to the BoF present
the goals of their projects and their roadmap, to know what is going on a=
nd
in which direction classpath will (or will have to) evolve, and identify
possible synergies.

I think that your idea of making an extended tasklist (including required
knowledge and estimated work) is great; the BoF should continue this, by
identifying other possible tasks. Maybe it is possible to find more
developers by launching this as "adopt a piece of classpath" or with some
other funny/fancy slogans....

The VM integration is also an important point. We could work on improving
the VM Integration Guide by explaining the rationale of this design, in
particular when are VM classes used instead of native methods and vice ve=
rsa
(and thereafter checking whether the code follows this rationale).

And maybe (but only as last topic) you could schedule the discussion abou=
t
the NotYedImplementedException, as I guess the list may not have reached =
an
agreement on this before the LinuxKongress.

-Patrik


----- Original Message -----
From: "Sascha Brawer" <brawer@dandelis.ch>
To: "GNU Classpath" <classpath@gnu.org>
Sent: Friday, September 26, 2003 5:23 PM
Subject: Workshop Oct. 14


> Hi all,
>
> as announced, there will be workshop for GNU Classpath developers on
> October 14 in Saarbr=FCcken/Germany.
>
> Does anyone wish to discuss a specific topic, in addition to graphics?
> I'd like to prepare an agenda for the afternoon, so we can make most of
> the time.
>
> Best regards,
>
> -- Sascha
>
> Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer=
/
>
>
>
>
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
>
>




From MAILER-DAEMON Sun Sep 28 17:06:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3iVN-0001cW-Ln
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 16:50:57 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3iV9-0001Gx-ID
	for classpath@gnu.org; Sun, 28 Sep 2003 16:50:43 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3iUX-0000cd-U5
	for classpath@gnu.org; Sun, 28 Sep 2003 16:50:06 -0400
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3iUW-0000bC-BP
	for classpath@gnu.org; Sun, 28 Sep 2003 16:50:04 -0400
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1A3iUP-0000qY-00; Sun, 28 Sep 2003 22:49:57 +0200
From: Mark Wielaard <mark@klomp.org>
To: Guilhem Lavaux <guilhem@kaffe.org>
In-Reply-To: <3F773950.3080309@kaffe.org>
References: <3F773950.3080309@kaffe.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-6OCKr2looL5q9OFa1SNV"
Message-Id: <1064782200.1782.611.camel@elsschot>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.4 
Date: Sun, 28 Sep 2003 22:50:00 +0200
Cc: classpath@gnu.org
Subject: Re: RFC on patch [bug #4968]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Sep 2003 20:50:56 -0000


--=-6OCKr2looL5q9OFa1SNV
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Sun, 2003-09-28 at 21:41, Guilhem Lavaux wrote:
> I know that I don't write that much ChangeLog ... but could someone can=20
> have a look at=20
> http://savannah.gnu.org/bugs/?func=3Ddetailbug&bug_id=3D4968&group_id=3D8=
5 and=20
> tell me if it sees something against comitting it in the repository. I=20
> would like to speed up the process of merging between Kaffe's and=20
> Classpath's CVS.

Sorry Guilhem. I looked at this, but since I didn't have enough time to
really evaluate it (java.text is not my field of expertise I am afraid)
I didn't commit it right away. There doesn't seem to be anything wrong
with it from a quick look though. So if someone does have time to read
over it and create a real ChangeLog entry, please check this in.

Cheers,

Mark

--=-6OCKr2looL5q9OFa1SNV
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/d0l4xVhZCJWr9QwRAizsAKCbLOngjL3ob2cr0aFPCwO6bcI72wCdEEeV
ZhxPRxPX5nNXyAY2GmDOiQA=
=M64g
-----END PGP SIGNATURE-----

--=-6OCKr2looL5q9OFa1SNV--




From MAILER-DAEMON Sun Sep 28 20:02:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3lUm-00041C-OJ
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 20:02:32 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3lUi-0003y3-D9
	for classpath@gnu.org; Sun, 28 Sep 2003 20:02:28 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3lUc-0003wM-P3
	for classpath@gnu.org; Sun, 28 Sep 2003 20:02:23 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3lUb-0003sv-24
	for classpath@gnu.org; Sun, 28 Sep 2003 20:02:21 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.10/8.12.10) with ESMTP id h8T01jWk027222;
	Mon, 29 Sep 2003 10:01:45 +1000 (EST)
Message-Id: <200309290001.h8T01jWk027222@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: "Jeroen Frijters" <jeroen@sumatra.nl>
In-Reply-To: Message from "Jeroen Frijters" <jeroen@sumatra.nl> of "Sun,
	28 Sep 2003 14:18:08 +0200."
	<788B535AB1F9CB49BB9C229372B50ACC461A@LEMBU.sumatrasoftware.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 29 Sep 2003 10:02:04 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: crawley@piglet.dstc.edu.au, Per Bothner <per@bothner.com>,
	GNU Classpath <classpath@gnu.org>, Michael Koch <konqueror@gmx.de>
Subject: Re: NYIException 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 00:02:30 -0000


Jeroen Frijters wrote:
> Andrew Haley wrote:
> > My only argument was against subclassing Error, because the Java
> > specification strongly implies that the only reasonable thing to do
> > when receiving an Error is issue a disgnostic and die.

I agree.  We should not be subclassing Error, or one of its descendents.
Error is reserved for things that an application has no hope in hell
of recovering from.

Sub-classing UnsupportedOperationException would be compatible with
existing JDK semantics and Java style.  However, it does tend to lockin
application code to a platform based on Classpath ... which is a bad
idea.  Even your idea of using a static to throw the NYIException
doesn't prevent this because the lockin happens when the application
refers to (e.g. catches) NYIException.

> > In the case of unimplemented Classpath methods, this seems rather 
> > extreme.

> Why? I don't see how you can reasonably continue given that an arbitrary
> functionality that the application depends on is missing.

Depending on what platform functionality is missing, it may be possible
for an application to be coded to "do it another way".  For example, a
product we're developing at work is designed to use the XML Schema
functionality.  But if the Java platform does not support XML Schemas, it
can fall back to using the simple XML.  

Alternatively, an application's error reporting may need to catch "not
yet implemented" exceptions to generate a specific diagnostic for the
end user.  For example, you may want to advise the user to upgrade their
Java platform ... in accordance with application release notes that they
probably didn't read properly in the first place :-)

However, an application developer should probably avoid doing this kind
of thing with a non-standard (Classpath specific) exception class unless
he/she is prepared to be locked into a Classpath-based Java platform. 

-- Steve




From MAILER-DAEMON Sun Sep 28 20:33:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3lwD-0000Lc-Q1
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 20:30:53 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3lw6-00008J-0j
	for classpath@gnu.org; Sun, 28 Sep 2003 20:30:46 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3lvz-0008P3-AZ
	for classpath@gnu.org; Sun, 28 Sep 2003 20:30:40 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A3lvr-00080x-8S
	for classpath@gnu.org; Sun, 28 Sep 2003 20:30:31 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8T0ScQi029795
	for <classpath@gnu.org>; Mon, 29 Sep 2003 10:28:39 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "classpath" <classpath@gnu.org>
Date: Mon, 29 Sep 2003 10:29:03 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCMEKBDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <200309290001.h8T01jWk027222@piglet.dstc.edu.au>
Importance: Normal
Subject: RE: NYIException 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 00:30:51 -0000

Stephen Crawley wrote:
> I agree.  We should not be subclassing Error, or one of its
> descendents.
> Error is reserved for things that an application has no hope in hell
> of recovering from.

Seems to me that this is a RuntimeException then. Only an application
that is being written for Classpath will be able to take alternative
action if core functionality is missing. Any other application will
just have to throw up its hands.

It should *NOT* be a subclass of an existing exception type that has
well defined semantics and is likely to be caught in general
applications - like UnsupportedOperationException. I agree with Jeroen
that not being implemented when it should be, is quite distinct from
not supporting an optional operation.

David Holmes




From MAILER-DAEMON Sun Sep 28 20:33:06 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3lyL-0000yY-Kw
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 20:33:05 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3lyJ-0000y6-FF
	for classpath@gnu.org; Sun, 28 Sep 2003 20:33:03 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3lyH-0000xV-G3
	for classpath@gnu.org; Sun, 28 Sep 2003 20:33:02 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3lyH-0000xP-1W
	for classpath@gnu.org; Sun, 28 Sep 2003 20:33:01 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A3lyF-000245-00
	for <classpath@gnu.org>; Mon, 29 Sep 2003 02:32:59 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A3ly9-00022M-00; Mon, 29 Sep 2003 02:32:53 +0200
Message-ID: <3F777DB5.4080502@kaffe.org>
Date: Mon, 29 Sep 2003 02:32:53 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Stephen Crawley <crawley@dstc.edu.au>
References: <200309290001.h8T01jWk027222@piglet.dstc.edu.au>
In-Reply-To: <200309290001.h8T01jWk027222@piglet.dstc.edu.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: GNU Classpath <classpath@gnu.org>, Per Bothner <per@bothner.com>,
	crawley@piglet.dstc.edu.au, Michael Koch <konqueror@gmx.de>,
	Jeroen Frijters <jeroen@sumatra.nl>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 00:33:04 -0000

Hi Stephen,

Stephen Crawley wrote:
> Jeroen Frijters wrote:
> 
>>Andrew Haley wrote:
>>
>>>My only argument was against subclassing Error, because the Java
>>>specification strongly implies that the only reasonable thing to do
>>>when receiving an Error is issue a disgnostic and die.
> 
> 
> I agree.  We should not be subclassing Error, or one of its descendents.
> Error is reserved for things that an application has no hope in hell
> of recovering from.
> 
> Sub-classing UnsupportedOperationException would be compatible with
> existing JDK semantics and Java style.  However, it does tend to lockin
> application code to a platform based on Classpath ... which is a bad
> idea.  Even your idea of using a static to throw the NYIException
> doesn't prevent this because the lockin happens when the application
> refers to (e.g. catches) NYIException.

There is no lockin, as NYIException (in)directly extends 
RuntimeException. I can catch RuntimeExceptions all day long without 
being locked into a particular implementation's subclass.

Application code that willfully uses internal classes of a runtime, be 
it sun.*, com.sun.*, com.ibm.*, or gnu.* is not portable anyway, so 
there is no harm done.

>>>In the case of unimplemented Classpath methods, this seems rather 
>>>extreme.
> 
> 
>>Why? I don't see how you can reasonably continue given that an arbitrary
>>functionality that the application depends on is missing.
> 
> 
> Depending on what platform functionality is missing, it may be possible
> for an application to be coded to "do it another way".  For example, a
> product we're developing at work is designed to use the XML Schema
> functionality.  But if the Java platform does not support XML Schemas, it
> can fall back to using the simple XML.  

Works equally well with exception handlers: Oops, we got a runtime 
exception trying method a, let's try method b. No problem there. ;)

> Alternatively, an application's error reporting may need to catch "not
> yet implemented" exceptions to generate a specific diagnostic for the
> end user.  For example, you may want to advise the user to upgrade their
> Java platform ... in accordance with application release notes that they
> probably didn't read properly in the first place :-)

You can't do this right now with Classpath anyway, as there is no way to 
know if a method is not implemented, or just does nothing on purpose. No 
harm done here either.

cheers,
dalibor topic




From MAILER-DAEMON Sun Sep 28 20:54:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3mIy-0001pn-Dj
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 20:54:24 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3mIv-0001ox-BW
	for classpath@gnu.org; Sun, 28 Sep 2003 20:54:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3mIs-0001oR-UB
	for classpath@gnu.org; Sun, 28 Sep 2003 20:54:19 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A3mIs-0001lg-BE
	for classpath@gnu.org; Sun, 28 Sep 2003 20:54:18 -0400
Received: from [64.164.98.52] (helo=mtaw4.prodigy.net)
	by mx20.gnu.org with esmtp (Exim 4.22) id 1A3mDN-0001oi-Lz
	for classpath@gnu.org; Sun, 28 Sep 2003 20:48:37 -0400
Received: from bothner.com (adsl-216-102-199-253.dsl.snfc21.pacbell.net
	[216.102.199.253])
	by mtaw4.prodigy.net (8.12.9/8.12.3) with ESMTP id h8T0mRIE014294;
	Sun, 28 Sep 2003 17:48:28 -0700 (PDT)
Message-ID: <3F778233.200@bothner.com>
Date: Sun, 28 Sep 2003 17:52:03 -0700
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
	rv:1.5b) Gecko/20030827
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: David Holmes <dholmes@dltech.com.au>
References: <NFBBKALFDCPFIDBNKAPCMEKBDHAA.dholmes@dltech.com.au>
In-Reply-To: <NFBBKALFDCPFIDBNKAPCMEKBDHAA.dholmes@dltech.com.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 00:54:22 -0000

David Holmes wrote:

> Seems to me that this is a RuntimeException then. Only an application
> that is being written for Classpath will be able to take alternative
> action if core functionality is missing. Any other application will
> just have to throw up its hands.

On the other hand, if the exception is UnsupportedOperationException
then it is possible for a portable application to try an alternative
approach - which may work.

If the exception is a new class, then that is not possible.

If it doesn't catch it, then nothing is lost.

> It should *NOT* be a subclass of an existing exception type that has
> well defined semantics and is likely to be caught in general
> applications - like UnsupportedOperationException. I agree with Jeroen
> that not being implemented when it should be, is quite distinct from
> not supporting an optional operation.

The latter is true, but the former does not follow.  I think creating
a new non-portable sub-class is solving a non-existent problem.

But more important is throwing *some* exception.  We *must* fix the
current situation where unimplemented methods silently do nothing
or return null.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/





From MAILER-DAEMON Sun Sep 28 21:37:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3myz-0006JS-58
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 21:37:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3myw-0006IO-5G
	for classpath@gnu.org; Sun, 28 Sep 2003 21:37:46 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3mqQ-0003Zd-LY
	for classpath@gnu.org; Sun, 28 Sep 2003 21:28:59 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A3mlB-0002Tu-4P
	for classpath@gnu.org; Sun, 28 Sep 2003 21:23:33 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by mx20.gnu.org with esmtp (Exim 4.22) id 1A3mcg-0003v7-0s
	for classpath@gnu.org; Sun, 28 Sep 2003 21:14:46 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8T1CKQi073348
	for <classpath@gnu.org>; Mon, 29 Sep 2003 11:12:21 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "classpath" <classpath@gnu.org>
Date: Mon, 29 Sep 2003 11:12:45 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCKEKCDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <3F778233.200@bothner.com>
Importance: Normal
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 01:37:46 -0000

Per Bothner wrote:
> The latter is true, but the former does not follow.  I
> think creating
> a new non-portable sub-class is solving a non-existent problem.

Ah I see where you are coming from. If an application wants to run
under a variety of VM's and also wants to deal with Classpath's
limitations, it is not going to be able to compile against a host VM
that doesn't have this Classpath specific exception type. If the
application uses the RuntimeException type in its catch clause then it
will catch genuine RuntimeExceptions too and will have to try and
distinguish them (which means reflectively querying its type for the
Classpath specific exception type).

Using any existing exception type that could never normally be thrown
by these methods when they are implemented, solves this problem. And
UnsupportedOperationException is as semantically close as you'll get
to the right kind of exception.

Note that an optional method that is not yet implemented (how could
you tell? :) ) should always throw UnsupportedOperationException, not
NYIException.

David Holmes




From MAILER-DAEMON Sun Sep 28 21:57:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3nIS-00064I-Jd
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 21:57:56 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3nIO-00062a-6o
	for classpath@gnu.org; Sun, 28 Sep 2003 21:57:52 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3nIJ-0005zk-JE
	for classpath@gnu.org; Sun, 28 Sep 2003 21:57:50 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A3nHK-0005dB-QI
	for classpath@gnu.org; Sun, 28 Sep 2003 21:56:47 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8T1tqQi017547;
	Mon, 29 Sep 2003 11:55:53 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "Dalibor Topic" <robilad@kaffe.org>
Date: Mon, 29 Sep 2003 11:56:17 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCEEKDDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <3F778FFC.5030201@kaffe.org>
Importance: Normal
Cc: classpath <classpath@gnu.org>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 01:57:53 -0000

> Say you've caught a RuntimeException e:
> 
> if (e.getClass().getName().equals("gnu.classpath.NYIException")) {
> 	// do the classpath dance
> }
> 
> can compile just fine against any not-gnu-classpath-using 
> VM. You could use reflection, too, but there is no need here.

e.getClass().getName() *is* reflection in my book :-)

David Holmes



From MAILER-DAEMON Sun Sep 28 21:58:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3nJ1-0006QA-H3
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 21:58:31 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3nHy-0005qj-5v
	for classpath@gnu.org; Sun, 28 Sep 2003 21:57:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3nHi-0005ls-0z
	for classpath@gnu.org; Sun, 28 Sep 2003 21:57:13 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3nBh-0003fv-2u
	for classpath@gnu.org; Sun, 28 Sep 2003 21:50:57 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A3nBe-0003d0-00
	for <classpath@gnu.org>; Mon, 29 Sep 2003 03:50:54 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A3nBc-0003ce-00; Mon, 29 Sep 2003 03:50:52 +0200
Message-ID: <3F778FFC.5030201@kaffe.org>
Date: Mon, 29 Sep 2003 03:50:52 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: David Holmes <dholmes@dltech.com.au>
References: <NFBBKALFDCPFIDBNKAPCKEKCDHAA.dholmes@dltech.com.au>
In-Reply-To: <NFBBKALFDCPFIDBNKAPCKEKCDHAA.dholmes@dltech.com.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 01:58:30 -0000

David Holmes wrote:
> Per Bothner wrote:
> 
>>The latter is true, but the former does not follow.  I
>>think creating
>>a new non-portable sub-class is solving a non-existent problem.
> 
> 
> Ah I see where you are coming from. If an application wants to run
> under a variety of VM's and also wants to deal with Classpath's
> limitations, it is not going to be able to compile against a host VM
> that doesn't have this Classpath specific exception type. If the
> application uses the RuntimeException type in its catch clause then it
> will catch genuine RuntimeExceptions too and will have to try and
> distinguish them (which means reflectively querying its type for the
> Classpath specific exception type).

Say you've caught a RuntimeException e:

if (e.getClass().getName().equals("gnu.classpath.NYIException")) {
	// do the classpath dance
}

can compile just fine against any not-gnu-classpath-using VM. You could 
use reflection, too, but there is no need here.

cheers,
dalibor topic




From MAILER-DAEMON Sun Sep 28 22:05:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3nPd-0007Rl-Ug
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 22:05:21 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3nPc-0007RK-C7
	for classpath@gnu.org; Sun, 28 Sep 2003 22:05:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3nPa-0007Qv-SR
	for classpath@gnu.org; Sun, 28 Sep 2003 22:05:19 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3nNC-00076j-Oi
	for classpath@gnu.org; Sun, 28 Sep 2003 22:02:51 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A3nNB-0006UC-00
	for <classpath@gnu.org>; Mon, 29 Sep 2003 04:02:49 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A3nN8-0006T3-00; Mon, 29 Sep 2003 04:02:46 +0200
Message-ID: <3F7792C6.904@kaffe.org>
Date: Mon, 29 Sep 2003 04:02:46 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: David Holmes <dholmes@dltech.com.au>
References: <NFBBKALFDCPFIDBNKAPCEEKDDHAA.dholmes@dltech.com.au>
In-Reply-To: <NFBBKALFDCPFIDBNKAPCEEKDDHAA.dholmes@dltech.com.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 02:05:21 -0000

David Holmes wrote:
>>Say you've caught a RuntimeException e:
>>
>>if (e.getClass().getName().equals("gnu.classpath.NYIException")) {
>>	// do the classpath dance
>>}
>>
>>can compile just fine against any not-gnu-classpath-using 
>>VM. You could use reflection, too, but there is no need here.
> 
> 
> e.getClass().getName() *is* reflection in my book :-)

Kind of ;) I think it's been around since java 1.0, so it would predate 
the reflection APIs that ararived with java 1.1, AFAIK. ;)

cheers,
dalibor topic




From MAILER-DAEMON Sun Sep 28 22:16:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3nai-0001Wc-Hg
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 22:16:48 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3naf-0001W9-N0
	for classpath@gnu.org; Sun, 28 Sep 2003 22:16:45 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3nad-0001Vu-UU
	for classpath@gnu.org; Sun, 28 Sep 2003 22:16:44 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A3nad-0001Vl-0n
	for classpath@gnu.org; Sun, 28 Sep 2003 22:16:43 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8T2FPQi036948;
	Mon, 29 Sep 2003 12:15:26 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "Dalibor Topic" <robilad@kaffe.org>
Date: Mon, 29 Sep 2003 12:15:50 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCOEKDDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <3F7792C6.904@kaffe.org>
Importance: Normal
Cc: classpath <classpath@gnu.org>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 02:16:46 -0000

> Kind of ;) I think it's been around since java 1.0, so it
> would predate
> the reflection APIs that ararived with java 1.1, AFAIK. ;)

It does predate the java.lang.reflect API's, but it is still
(structural) reflection.

Anyway it seems the two exception approaches are functionally
equivalent and it's really a matter of style/preference now:

- UnsupportedOperationException

  + semantically close in meaning
  + allows simple use of try/catch in portable programs
  - not uniquely defining ie grepping for it will give false results

- NYIException

  + semantically exact in meaning
  + uniquely defining
  + can be accommodated for by portable programs
  - requires a little more effort in catch blocks to identify

Toss a coin.

Cheers,
David Holmes




From MAILER-DAEMON Sun Sep 28 22:19:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3ndl-0002AT-T1
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 22:19:57 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3ndj-0002AD-Qs
	for classpath@gnu.org; Sun, 28 Sep 2003 22:19:55 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3ndi-00029m-3U
	for classpath@gnu.org; Sun, 28 Sep 2003 22:19:54 -0400
Received: from [209.222.224.106] (helo=griffin.griffaction.ca)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3ndh-000298-BP
	for classpath@gnu.org; Sun, 28 Sep 2003 22:19:53 -0400
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by griffin.griffaction.ca with esmtp (Exim 3.36 #1 (Debian))
	id 1A3nda-0000no-00
	for <classpath@gnu.org>; Sun, 28 Sep 2003 22:19:46 -0400
Message-ID: <3F7796BF.2080402@uqam.ca>
Date: Sun, 28 Sep 2003 22:19:43 -0400
From: Etienne Gagnon <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.4) Gecko/20030908 Debian/1.4-4
X-Accept-Language: en
MIME-Version: 1.0
To: classpath <classpath@gnu.org>
References: <NFBBKALFDCPFIDBNKAPCKEKCDHAA.dholmes@dltech.com.au>
In-Reply-To: <NFBBKALFDCPFIDBNKAPCKEKCDHAA.dholmes@dltech.com.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: NotYetImplementedError [Was: NYIException]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 02:19:56 -0000

Hi all,

I personally think that a Java application should not try to discover 
the JVM/library version through an akward usage of exceptions/errors.

If an application wants to adapt to some version of the above, it should 
use System.getProperty() and test for a specific jvm/class-library 
version.  If an application fails to do so, and if this application 
calls an unimplemented method, I think that the best course of action is 
for an error to be thrown, so that execution fails with a beautiful 
stack trace, informing the application developer of the problem.

So, my proposal is:
(1) Throw NotYetImplementedError extends Error (or LinkageError?)
(2) Document clearly that users of Classpath SHOULD NOT catch this 
exception, but use System.getProperty("gnu.classpath.version") instead.
(3) Document, in the VM interface, that such property should be set, of 
course.

Etienne


David Holmes wrote:
> Per Bothner wrote:
> 
>>The latter is true, but the former does not follow.  I
>>think creating
>>a new non-portable sub-class is solving a non-existent problem.
> 
> 
> Ah I see where you are coming from. If an application wants to run
> under a variety of VM's and also wants to deal with Classpath's
> limitations, it is not going to be able to compile against a host VM
> that doesn't have this Classpath specific exception type. If the
> application uses the RuntimeException type in its catch clause then it
> will catch genuine RuntimeExceptions too and will have to try and
> distinguish them (which means reflectively querying its type for the
> Classpath specific exception type).
> 
> Using any existing exception type that could never normally be thrown
> by these methods when they are implemented, solves this problem. And
> UnsupportedOperationException is as semantically close as you'll get
> to the right kind of exception.
> 
> Note that an optional method that is not yet implemented (how could
> you tell? :) ) should always throw UnsupportedOperationException, not
> NYIException.
> 
> David Holmes
> 
> 
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
> 
> 


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




From MAILER-DAEMON Sun Sep 28 22:22:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3ngA-0002pU-RF
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 22:22:26 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3ng8-0002oP-GP
	for classpath@gnu.org; Sun, 28 Sep 2003 22:22:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3ng6-0002nP-7o
	for classpath@gnu.org; Sun, 28 Sep 2003 22:22:22 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3ng5-0002n4-It
	for classpath@gnu.org; Sun, 28 Sep 2003 22:22:21 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A3ng4-0001Xg-00
	for <classpath@gnu.org>; Mon, 29 Sep 2003 04:22:20 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A3ng2-0001XJ-00; Mon, 29 Sep 2003 04:22:18 +0200
Message-ID: <3F77975A.9050603@kaffe.org>
Date: Mon, 29 Sep 2003 04:22:18 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: David Holmes <dholmes@dltech.com.au>
References: <NFBBKALFDCPFIDBNKAPCOEKDDHAA.dholmes@dltech.com.au>
In-Reply-To: <NFBBKALFDCPFIDBNKAPCOEKDDHAA.dholmes@dltech.com.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 02:22:25 -0000

David Holmes wrote:

> Anyway it seems the two exception approaches are functionally
> equivalent and it's really a matter of style/preference now:
> 
> - UnsupportedOperationException
> 
>   + semantically close in meaning
>   + allows simple use of try/catch in portable programs

Only if portable means java 1.2 and above. There was no such class 
before java 1.2, it arrived with the collections framework API. ;)

>   - not uniquely defining ie grepping for it will give false results

cheers,
dalibor topic




From MAILER-DAEMON Sun Sep 28 22:39:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3nwg-0000Ah-Ls
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 22:39:30 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3nwe-0000AU-Kx
	for classpath@gnu.org; Sun, 28 Sep 2003 22:39:28 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3nwc-0000AD-5U
	for classpath@gnu.org; Sun, 28 Sep 2003 22:39:27 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A3nrx-0007WL-Ua
	for classpath@gnu.org; Sun, 28 Sep 2003 22:34:38 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8T2XxQi054125
	for <classpath@gnu.org>; Mon, 29 Sep 2003 12:34:00 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "classpath" <classpath@gnu.org>
Date: Mon, 29 Sep 2003 12:34:24 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCIEKFDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <3F7796BF.2080402@uqam.ca>
Importance: Normal
Subject: RE: NotYetImplementedError [Was: NYIException]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 02:39:29 -0000

> I personally think that a Java application should not try
> to discover the JVM/library version through an akward usage of
> exceptions/errors.

I'm not so sure this is about actual version information but more
about not yet implemented methods in a VM/library that purports to
support the version of the API that includes that method. Classpath is
in the unfortunate state of supporting different versions of API's
depending on which class you are looking at, so what version
information would the system property return?

David Holmes




From MAILER-DAEMON Sun Sep 28 22:54:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3oBb-0003YW-MG
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 22:54:55 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3oBZ-0003Y9-2z
	for classpath@gnu.org; Sun, 28 Sep 2003 22:54:53 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3oBX-0003Xn-Ko
	for classpath@gnu.org; Sun, 28 Sep 2003 22:54:52 -0400
Received: from [64.164.98.52] (helo=mtaw4.prodigy.net)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3oBX-0003Xi-4t
	for classpath@gnu.org; Sun, 28 Sep 2003 22:54:51 -0400
Received: from bothner.com (adsl-216-102-199-253.dsl.snfc21.pacbell.net
	[216.102.199.253])
	by mtaw4.prodigy.net (8.12.9/8.12.3) with ESMTP id h8T2sjIE021679;
	Sun, 28 Sep 2003 19:54:46 -0700 (PDT)
Message-ID: <3F779FCD.9020406@bothner.com>
Date: Sun, 28 Sep 2003 19:58:21 -0700
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
	rv:1.5b) Gecko/20030827
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: David Holmes <dholmes@dltech.com.au>
References: <NFBBKALFDCPFIDBNKAPCOEKDDHAA.dholmes@dltech.com.au>
In-Reply-To: <NFBBKALFDCPFIDBNKAPCOEKDDHAA.dholmes@dltech.com.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 02:54:53 -0000

David Holmes wrote:

> - UnsupportedOperationException
> 
>   + semantically close in meaning
>   + allows simple use of try/catch in portable programs
>   - not uniquely defining ie grepping for it will give false results

The proposal from March takes care of this:
    throw new UnsupportedOperationException("not implemented[ - optional 
reason]");
This makes grep easy.

   + No new classes needed.
   + No dependency on non-standard classes.  I.e. somebody can contribute
an incomplete implementation of a class that without having to depend
on ClassPath.

> - NYIException
> 
>   + semantically exact in meaning

True.  However to what extent is this useful?
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/





From MAILER-DAEMON Sun Sep 28 22:59:29 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3oG1-0004aj-GF
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 22:59:29 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3oFz-0004Zf-95
	for classpath@gnu.org; Sun, 28 Sep 2003 22:59:27 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3oFx-0004Yz-Hc
	for classpath@gnu.org; Sun, 28 Sep 2003 22:59:26 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3oA5-0003Qp-BU
	for classpath@gnu.org; Sun, 28 Sep 2003 22:53:21 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A3oA3-0006GE-00
	for <classpath@gnu.org>; Mon, 29 Sep 2003 04:53:19 +0200
Received: from mpiat2304.ag2.mpi-sb.mpg.de
	([139.19.20.93] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A3oA1-0006Fr-00; Mon, 29 Sep 2003 04:53:17 +0200
Message-ID: <3F779E9D.2040409@kaffe.org>
Date: Mon, 29 Sep 2003 04:53:17 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: David Holmes <dholmes@dltech.com.au>
References: <NFBBKALFDCPFIDBNKAPCIEKFDHAA.dholmes@dltech.com.au>
In-Reply-To: <NFBBKALFDCPFIDBNKAPCIEKFDHAA.dholmes@dltech.com.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: classpath <classpath@gnu.org>
Subject: Re: NotYetImplementedError [Was: NYIException]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 02:59:28 -0000

David Holmes wrote:
>>I personally think that a Java application should not try
>>to discover the JVM/library version through an akward usage of
>>exceptions/errors.
> 
> 
> I'm not so sure this is about actual version information but more
> about not yet implemented methods in a VM/library that purports to
> support the version of the API that includes that method. Classpath is
> in the unfortunate state of supporting different versions of API's
> depending on which class you are looking at, so what version
> information would the system property return?

The one of Classpath, as that's the only one it knows for sure.

cheers,
dalibor topic




From MAILER-DAEMON Sun Sep 28 23:14:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3oUh-0004GT-2g
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 23:14:39 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3oUd-0004EM-Tq
	for classpath@gnu.org; Sun, 28 Sep 2003 23:14:35 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3oUc-0004Dc-Ap
	for classpath@gnu.org; Sun, 28 Sep 2003 23:14:34 -0400
Received: from [209.222.224.106] (helo=griffin.griffaction.ca)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3oUb-0004D6-P0
	for classpath@gnu.org; Sun, 28 Sep 2003 23:14:34 -0400
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by griffin.griffaction.ca with esmtp (Exim 3.36 #1 (Debian))
	id 1A3oUG-00015s-00; Sun, 28 Sep 2003 23:14:12 -0400
Message-ID: <3F77A381.6070804@uqam.ca>
Date: Sun, 28 Sep 2003 23:14:09 -0400
From: Etienne Gagnon <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.4) Gecko/20030908 Debian/1.4-4
X-Accept-Language: en
MIME-Version: 1.0
To: David Holmes <dholmes@dltech.com.au>
References: <NFBBKALFDCPFIDBNKAPCIEKFDHAA.dholmes@dltech.com.au>
In-Reply-To: <NFBBKALFDCPFIDBNKAPCIEKFDHAA.dholmes@dltech.com.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: classpath <classpath@gnu.org>
Subject: Re: NotYetImplementedError [Was: NYIException]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 03:14:37 -0000

David Holmes wrote:
> I'm not so sure this is about actual version information but more
> about not yet implemented methods in a VM/library that purports to
> support the version of the API that includes that method. Classpath is
> in the unfortunate state of supporting different versions of API's
> depending on which class you are looking at, so what version
> information would the system property return?

It should report Classpath's version (e.g. 0.06).

I do really think that an application should not use the exception 
mechanism to discover the class library version (of course, classpath 
0.06 != specific sun jdk version, but this is still a version).

Throwing a error seems to be the right thing to do.

Many applications (including SableCC, I think) do things like:

try ...
catch(Exception e)
{...}

In such context, a missing method is definitely *not* an exception.

If a programmer knows that his application will be running on an 
incomplete/inconsistent class library, he should definitely use a system 
property to make the appropriate control-flow choices.  In the *worst* 
ugly hack case, he could do a catch(NotYetImplementedError e), but this 
should definitely be avoided.

Throwing an error and aborting the application is the right thing to do 
for 99,9% of Java applications.  If an application was coded expecting 
some method to be present, then an error should happen.  This is already 
the case with Sun's JDK, e.g.:

An application is written for JDK 1.4.  Application is run on JDK 1.1. 
A 1.4-specific method is called  =>  LinkageError is thrown.


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 Sun Sep 28 23:21:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3obA-0005z5-JE
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 23:21:20 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3ob9-0005yj-E3
	for classpath@gnu.org; Sun, 28 Sep 2003 23:21:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3ob5-0005yT-Uh
	for classpath@gnu.org; Sun, 28 Sep 2003 23:21:18 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3ob5-0005yC-1c
	for classpath@gnu.org; Sun, 28 Sep 2003 23:21:15 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.10/8.12.10) with ESMTP id h8T3KssF013958;
	Mon, 29 Sep 2003 13:20:54 +1000 (EST)
Message-Id: <200309290320.h8T3KssF013958@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: Etienne Gagnon <etienne.gagnon@uqam.ca>
In-Reply-To: Message from Etienne Gagnon <etienne.gagnon@uqam.ca> 
	of "Sun, 28 Sep 2003 22:19:43 -0400." <3F7796BF.2080402@uqam.ca> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 29 Sep 2003 13:21:14 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: crawley@piglet.dstc.edu.au, classpath <classpath@gnu.org>
Subject: Re: NotYetImplementedError [Was: NYIException] 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 03:21:20 -0000


> So, my proposal is:
> (1) Throw NotYetImplementedError extends Error (or LinkageError?)
> (2) Document clearly that users of Classpath SHOULD NOT catch this 
> exception, but use System.getProperty("gnu.classpath.version") instead.
> (3) Document, in the VM interface, that such property should be set, of 
> course.

If no user is allowed to catch this new error/exception, why are we going
to the bother of creating it in the first place??

If the only reason for creating the new exception is as a documentation 
aid, then a better approach would be to throw UnsupportedOperationException
with a stereotypical error message and or stereotypical javadoc description.

I think it is unreasonable to expect application developers to know
which features where unimplemented / implemented in which versions
of Classpath.  IMO, this far more awkward than catching an exception.

-- Steve




From MAILER-DAEMON Sun Sep 28 23:24:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3oe3-0006YJ-Kj
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 23:24:19 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3odz-0006X5-Sp
	for classpath@gnu.org; Sun, 28 Sep 2003 23:24:15 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3odw-0006W4-0w
	for classpath@gnu.org; Sun, 28 Sep 2003 23:24:14 -0400
Received: from [209.222.224.106] (helo=griffin.griffaction.ca)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3odv-0006Vv-HL
	for classpath@gnu.org; Sun, 28 Sep 2003 23:24:11 -0400
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by griffin.griffaction.ca with esmtp (Exim 3.36 #1 (Debian))
	id 1A3odu-0001Ab-00
	for <classpath@gnu.org>; Sun, 28 Sep 2003 23:24:10 -0400
Message-ID: <3F77A5D9.3010904@uqam.ca>
Date: Sun, 28 Sep 2003 23:24:09 -0400
From: Etienne Gagnon <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.4) Gecko/20030908 Debian/1.4-4
X-Accept-Language: en
MIME-Version: 1.0
To: classpath <classpath@gnu.org>
References: <NFBBKALFDCPFIDBNKAPCIEKFDHAA.dholmes@dltech.com.au>
	<3F77A381.6070804@uqam.ca>
In-Reply-To: <3F77A381.6070804@uqam.ca>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: NotYetImplementedError [Was: NYIException]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 03:24:16 -0000

FYI:  There are interesting "standard" system properties that could be 
used for this:


java.specification.version 0.06
java.specification.vendor  Gnu
java.specification.name    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 Sun Sep 28 23:34:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3onn-0008Ft-SK
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 23:34:23 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3onl-0008Ec-9D
	for classpath@gnu.org; Sun, 28 Sep 2003 23:34:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3oni-0008Dd-IO
	for classpath@gnu.org; Sun, 28 Sep 2003 23:34:19 -0400
Received: from [209.222.224.106] (helo=griffin.griffaction.ca)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3oni-0008DX-4t
	for classpath@gnu.org; Sun, 28 Sep 2003 23:34:18 -0400
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by griffin.griffaction.ca with esmtp (Exim 3.36 #1 (Debian))
	id 1A3ona-0001Aw-00; Sun, 28 Sep 2003 23:34:11 -0400
Message-ID: <3F77A830.8090609@uqam.ca>
Date: Sun, 28 Sep 2003 23:34:08 -0400
From: Etienne Gagnon <etienne.gagnon@uqam.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.4) Gecko/20030908 Debian/1.4-4
X-Accept-Language: en
MIME-Version: 1.0
To: Stephen Crawley <crawley@dstc.edu.au>
References: <200309290320.h8T3KssF013958@piglet.dstc.edu.au>
In-Reply-To: <200309290320.h8T3KssF013958@piglet.dstc.edu.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: crawley@piglet.dstc.edu.au, classpath <classpath@gnu.org>
Subject: Re: NotYetImplementedError [Was: NYIException]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 03:34:22 -0000

Stephen Crawley wrote:
> If no user is allowed to catch this new error/exception, why are we going
> to the bother of creating it in the first place??

So that, when a user runs his application on top of a Free jvm using 
Classpath, he can identify clearly missing functionality (at run time, 
at least).

> If the only reason for creating the new exception is as a documentation 
> aid, then a better approach would be to throw UnsupportedOperationException
> with a stereotypical error message and or stereotypical javadoc description.

No, because UnsupportedOperationException carries different semantics: 
it implies that the application was expecting some operation could be 
missing (as is the case with collections).

See in my other message the example with JDK versions leading to 
LinkageError (not LinkageException extends UnsupportedOperationException).

> I think it is unreasonable to expect application developers to know
> which features where unimplemented / implemented in which versions
> of Classpath.  IMO, this far more awkward than catching an exception.

Not at all.  A normal Java programmer should expect nothing.  He should 
simply try to run his application, and if a NYIE happens, he should try 
to either:
(1) implement the missing functionality (and contribute to classpath)
(2) try to circumvent the missing functionality by using equivalent, but 
implemented, classes/methods.

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 Sun Sep 28 23:40:53 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3ou3-0004Sr-3U
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 23:40:51 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3oty-0004Mr-Ed
	for classpath@gnu.org; Sun, 28 Sep 2003 23:40:46 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3otp-0004Bg-Ml
	for classpath@gnu.org; Sun, 28 Sep 2003 23:40:43 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A3otm-00044K-Cf
	for classpath@gnu.org; Sun, 28 Sep 2003 23:40:34 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8T3dLqr011908
	for <classpath@gnu.org>; Mon, 29 Sep 2003 13:39:22 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "classpath" <classpath@gnu.org>
Date: Mon, 29 Sep 2003 13:39:47 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCKEKHDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <3F77A5D9.3010904@uqam.ca>
Importance: Normal
Subject: RE: NotYetImplementedError [Was: NYIException]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 03:40:48 -0000

> FYI:  There are interesting "standard" system properties
> that could be used for this:
>
> java.specification.version 0.06
> java.specification.vendor  Gnu
> java.specification.name    Classpath

No - specifications come from Sun only. The only thing Classpath can
define (or rather the VM using Classpath) is:

java.vm.version  Java Virtual Machine implementation version
java.vm.vendor   Java Virtual Machine implementation vendor
java.vm.name     Java Virtual Machine implementation name

Classpath will have to define its own property strings for anything
else.

But it seems to me that even if version numbers could be used the
basic scenario will be as follows:

1. Application developer writes app
2. Developer runs against Classpath and discovers unimplemented
methods through some exception being thrown
3. Developer changes app to protect calls to such methods with a
classpath version check.

So there will still need to be an exception mechanism to discover the
methods that are not implemented.

Further anytime a new Classpath version comes out the developer has to
check all of the now implemented methods and update the version number
for any still not implemented. I can't see people making that effort.

David Holmes




From MAILER-DAEMON Mon Sep 29 00:02:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3p7l-0005HI-Pi
	for mharc-classpath@gnu.org; Sun, 28 Sep 2003 23:55:01 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3p7H-0004wu-VH
	for classpath@gnu.org; Sun, 28 Sep 2003 23:54:31 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3p7A-0004rZ-3z
	for classpath@gnu.org; Sun, 28 Sep 2003 23:54:27 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A3p77-0004ow-2q
	for classpath@gnu.org; Sun, 28 Sep 2003 23:54:21 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by mx20.gnu.org with esmtp (Exim 4.22) id 1A3p24-0006Xo-HP
	for classpath@gnu.org; Sun, 28 Sep 2003 23:49:08 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.10/8.12.10) with ESMTP id h8T3mWsF016129;
	Mon, 29 Sep 2003 13:48:32 +1000 (EST)
Message-Id: <200309290348.h8T3mWsF016129@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: Etienne Gagnon <etienne.gagnon@uqam.ca>
In-Reply-To: Message from Etienne Gagnon <etienne.gagnon@uqam.ca> 
	of "Sun, 28 Sep 2003 23:14:09 -0400." <3F77A381.6070804@uqam.ca> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 29 Sep 2003 13:48:52 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: crawley@piglet.dstc.edu.au, classpath <classpath@gnu.org>
Subject: Re: NotYetImplementedError [Was: NYIException] 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 03:54:59 -0000


> I personally think that a Java application should not try to discover 
> the JVM/library version through an akward usage of exceptions/errors.

I personally disagree that it is awkward. 

> Many applications (including SableCC, I think) do things like:
> 
> try ...
> catch(Exception e)
> {...}
>
> In such context, a missing method is definitely *not* an exception.

Catching Exception or RuntimeException is usually a good indication that
the application's exception handling is broken.  In my experience, there
are only two cases where an ordinary application should catch Exception
or RuntimeException:

  *  so that you can report exception that would otherwise disappear
     into the aether; (e.g. in a non-main thread), or

  *  so that you can record an exception in the application's error log.

Anything else and the application risks squashing serious exceptions and 
doing inappropriate recovery.

In the context above, an unimplemented method is no more or less an
Exception than NullPointerException or UnsupportedOperationException.
In each case, the exception is probably an application error, but the
application could conceivably recover and continue.  Thus, if we were
to invent a new exception/error, a subtype of RuntimeException would
be the most appropriate.

-- Steve




From MAILER-DAEMON Mon Sep 29 00:39:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3poi-0004aN-BR
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 00:39:24 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3pof-0004Za-MJ
	for classpath@gnu.org; Mon, 29 Sep 2003 00:39:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3pod-0004Yu-Sf
	for classpath@gnu.org; Mon, 29 Sep 2003 00:39:20 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3piM-0003HD-SP
	for classpath@gnu.org; Mon, 29 Sep 2003 00:32:51 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.10/8.12.10) with ESMTP id h8T4WTsF019880;
	Mon, 29 Sep 2003 14:32:29 +1000 (EST)
Message-Id: <200309290432.h8T4WTsF019880@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: Etienne Gagnon <etienne.gagnon@uqam.ca>
In-Reply-To: Message from Etienne Gagnon <etienne.gagnon@uqam.ca> 
	of "Sun, 28 Sep 2003 23:34:08 -0400." <3F77A830.8090609@uqam.ca> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 29 Sep 2003 14:32:49 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: crawley@piglet.dstc.edu.au, Stephen Crawley <crawley@dstc.edu.au>,
	classpath <classpath@gnu.org>
Subject: Re: NotYetImplementedError [Was: NYIException] 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 04:39:22 -0000

> Stephen Crawley wrote:
> > If no user is allowed to catch this new error/exception, why are we going
> > to the bother of creating it in the first place??
> 
> So that, when a user runs his application on top of a Free jvm using 
> Classpath, he can identify clearly missing functionality (at run time, 
> at least).

This is equally satisfied by throwing UnsupportedOperationException
with a stereotypical message; e.g.

  throw new UnsupportedOperationException("not implemented yet - <details>")

> > If the only reason for creating the new exception is as a documentation 
> > aid, then a better approach would be to throw UnsupportedOperationException
> > with a stereotypical error message and or stereotypical javadoc description.
> 
> No, because UnsupportedOperationException carries different semantics: 
> it implies that the application was expecting some operation could be 
> missing (as is the case with collections).

I cannot see for the life of me where you are got this "different
semantics" idea from.  The documentation for the exception defines its
semantics as:

  "Thrown to indicate that the requested operation is not supported."

That is it.  

Our usage would be entirely consistent with this.  An unimplemented
operation is (by definition) not supported because it is not implemented
yet!!  Even the Collections Framework javadocs say (typically) that the
exception is thrown because (e.g.) "xyz is not supported by this
collection" without necessarily saying why.

> See in my other message the example with JDK versions leading to 
> LinkageError (not LinkageException extends UnsupportedOperationException).

What is happening here is that you are calling a method that does not
exist in the older JDK. 

If we want this effect, we should NOT provide skeleton implementations
for missing methods at all.  This would give a compilation error when
the application is compiled against Classpath, and a LinkageError if the
end user ran it the Classpath platform.

(Not that I think this would be a good idea ... )

> > I think it is unreasonable to expect application developers to know
> > which features where unimplemented / implemented in which versions
> > of Classpath.  IMO, this far more awkward than catching an exception.
> 
> Not at all.  A normal Java programmer should expect nothing.  He should 
> simply try to run his application, and if a NYIE happens, he should try 
> to either:
> (1) implement the missing functionality (and contribute to classpath)
> (2) try to circumvent the missing functionality by using equivalent, but 
> implemented, classes/methods.

Huh?  A moment ago you were suggesting that the application programmer
should use properties containing Classpath version numbers and god-like 
awareness of which versions of Classpath implemented which methods.
You were saying that this was easier to do than catching a NYIE.  My
comment was addressing this.

Now you seem to be saying (?) that the application programmer shouldn't
be writing his application to be aware of missing functionality at all??
Fine ... but then you've taken my remarks out of context. 

-- Steve




From MAILER-DAEMON Mon Sep 29 03:23:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3sNP-0008Ek-6R
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 03:23:23 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3sNK-0008Ck-TF
	for classpath@gnu.org; Mon, 29 Sep 2003 03:23:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3sNG-00089k-6R
	for classpath@gnu.org; Mon, 29 Sep 2003 03:23:16 -0400
Received: from [62.177.154.238] (helo=lembu.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3sNF-00089N-Du
	for classpath@gnu.org; Mon, 29 Sep 2003 03:23:13 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 29 Sep 2003 09:23:03 +0200
Content-class: urn:content-classes:message
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC461D@LEMBU.sumatrasoftware.com>
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: NotYetImplementedError [Was: NYIException]
Thread-Index: AcOGMNbqk8Ttsw+vQEes1zLOAjr0HwAKVASQ
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Etienne Gagnon" <etienne.gagnon@uqam.ca>, "classpath" <classpath@gnu.org>
Cc: 
Subject: RE: NotYetImplementedError [Was: NYIException]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 07:23:21 -0000

Etienne Gagnon wrote:
> So, my proposal is:
> (1) Throw NotYetImplementedError extends Error (or LinkageError?)
> (2) Document clearly that users of Classpath SHOULD NOT catch this=20
> exception, but use=20
> System.getProperty("gnu.classpath.version") instead.
> (3) Document, in the VM interface, that such property should=20
> be set, of course.

I fully support this proposal and I like the idea of extending
LinkageError.

Regards,
Jeroen



From MAILER-DAEMON Mon Sep 29 09:08:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3xlN-0006eV-SK
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 09:08:29 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3xlK-0006e6-Qf
	for classpath@gnu.org; Mon, 29 Sep 2003 09:08:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3xko-0006Xw-Oq
	for classpath@gnu.org; Mon, 29 Sep 2003 09:08:25 -0400
Received: from [132.208.250.6] (helo=uqam.ca)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3xko-0006Xm-9B
	for classpath@gnu.org; Mon, 29 Sep 2003 09:07:54 -0400
Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6])
	by sortant.uqam.ca (8.12.10/8.12.1) with SMTP id h8TD0RAa008642
	for <classpath@gnu.org>; Mon, 29 Sep 2003 09:02:18 -0400 (EDT)
Received: from antivirus.uqam.ca ([127.0.0.1])
	by anis.telecom.uqam.ca (SAVSMTP 3.1.1.32) with SMTP id
	M2003092909021824871
	for <classpath@gnu.org>; Mon, 29 Sep 2003 09:02:18 -0400
Received: from localhost (perseval.info.uqam.ca [132.208.137.96])
	by intrant.uqam.ca (8.12.10/8.12.2/uqam-filtres) with ESMTP id
	h8TCvq5d005992; Mon, 29 Sep 2003 08:57:52 -0400 (EDT)
X-Spam-Filter: Filtre-Uqam re:  abuse@uqam.ca
Received: from egagnon by localhost with local (Exim 3.36 #1 (Debian))
	id 1A3xb7-0000Qa-00; Mon, 29 Sep 2003 08:57:53 -0400
Date: Mon, 29 Sep 2003 08:57:53 -0400
To: Stephen Crawley <crawley@dstc.edu.au>
Message-ID: <20030929125753.GA1578@perseval.info.uqam.ca>
References: <etienne.gagnon@uqam.ca> <3F77A830.8090609@uqam.ca>
	<200309290432.h8T4WTsF019880@piglet.dstc.edu.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200309290432.h8T4WTsF019880@piglet.dstc.edu.au>
User-Agent: Mutt/1.5.4i
From: Etienne Gagnon <etienne.gagnon@uqam.ca>
Cc: classpath <classpath@gnu.org>, crawley@piglet.dstc.edu.au
Subject: Re: NotYetImplementedError [Was: NYIException]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 13:08:27 -0000

Stephen,

Do as you like.  I do not want to fight on this.  I think that my
proposal is the best approach to (1) handle missing functionality in a
way that will make life easier to users trying to run Java
applications on classpath-based free vms amd (2) mimick the
LinkageError usually expected in case of *unexpected* missing
functionality (in contrast with *expected* missing functionality,
indicated by UnsupportedOperationExcaprion).  You seem to hold on your
vision very strongly, and I am not ready to spend the effort to
convince you.

Etienne


On Mon, Sep 29, 2003 at 02:32:49PM +1000, Stephen Crawley wrote:
> > Stephen Crawley wrote:
> > > If no user is allowed to catch this new error/exception, why are we going
> > > to the bother of creating it in the first place??
> > 
> > So that, when a user runs his application on top of a Free jvm using 
> > Classpath, he can identify clearly missing functionality (at run time, 
> > at least).
> 
> This is equally satisfied by throwing UnsupportedOperationException
> with a stereotypical message; e.g.
> 
>   throw new UnsupportedOperationException("not implemented yet - <details>")
> 
> > > If the only reason for creating the new exception is as a documentation 
> > > aid, then a better approach would be to throw UnsupportedOperationException
> > > with a stereotypical error message and or stereotypical javadoc description.
> > 
> > No, because UnsupportedOperationException carries different semantics: 
> > it implies that the application was expecting some operation could be 
> > missing (as is the case with collections).
> 
> I cannot see for the life of me where you are got this "different
> semantics" idea from.  The documentation for the exception defines its
> semantics as:
> 
>   "Thrown to indicate that the requested operation is not supported."
> 
> That is it.  
> 
> Our usage would be entirely consistent with this.  An unimplemented
> operation is (by definition) not supported because it is not implemented
> yet!!  Even the Collections Framework javadocs say (typically) that the
> exception is thrown because (e.g.) "xyz is not supported by this
> collection" without necessarily saying why.
> 
> > See in my other message the example with JDK versions leading to 
> > LinkageError (not LinkageException extends UnsupportedOperationException).
> 
> What is happening here is that you are calling a method that does not
> exist in the older JDK. 
> 
> If we want this effect, we should NOT provide skeleton implementations
> for missing methods at all.  This would give a compilation error when
> the application is compiled against Classpath, and a LinkageError if the
> end user ran it the Classpath platform.
> 
> (Not that I think this would be a good idea ... )
> 
> > > I think it is unreasonable to expect application developers to know
> > > which features where unimplemented / implemented in which versions
> > > of Classpath.  IMO, this far more awkward than catching an exception.
> > 
> > Not at all.  A normal Java programmer should expect nothing.  He should 
> > simply try to run his application, and if a NYIE happens, he should try 
> > to either:
> > (1) implement the missing functionality (and contribute to classpath)
> > (2) try to circumvent the missing functionality by using equivalent, but 
> > implemented, classes/methods.
> 
> Huh?  A moment ago you were suggesting that the application programmer
> should use properties containing Classpath version numbers and god-like 
> awareness of which versions of Classpath implemented which methods.
> You were saying that this was easier to do than catching a NYIE.  My
> comment was addressing this.
> 
> Now you seem to be saying (?) that the application programmer shouldn't
> be writing his application to be aware of missing functionality at all??
> Fine ... but then you've taken my remarks out of context. 
> 
> -- Steve
> 
> 
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath

-- 
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 Sep 29 09:24:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3y0p-0000rK-8V
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 09:24:27 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3y0n-0000qn-77
	for classpath@gnu.org; Mon, 29 Sep 2003 09:24:25 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3y0G-0000l7-Mm
	for classpath@gnu.org; Mon, 29 Sep 2003 09:24:23 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3y0G-0000l4-BI
	for classpath@gnu.org; Mon, 29 Sep 2003 09:23:52 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A3y0F-0003YE-00
	for <classpath@gnu.org>; Mon, 29 Sep 2003 15:23:51 +0200
Received: from mpiat2305.ag2.mpi-sb.mpg.de
	([139.19.20.94] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A3y0C-0003Xe-00; Mon, 29 Sep 2003 15:23:48 +0200
Message-ID: <3F783264.1050809@kaffe.org>
Date: Mon, 29 Sep 2003 15:23:48 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Etienne Gagnon <etienne.gagnon@uqam.ca>
References: <etienne.gagnon@uqam.ca>
	<3F77A830.8090609@uqam.ca>	<200309290432.h8T4WTsF019880@piglet.dstc.edu.au>
	<20030929125753.GA1578@perseval.info.uqam.ca>
In-Reply-To: <20030929125753.GA1578@perseval.info.uqam.ca>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: crawley@piglet.dstc.edu.au, Stephen Crawley <crawley@dstc.edu.au>,
	classpath <classpath@gnu.org>
Subject: Re: NotYetImplementedError [Was: NYIException]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 13:24:25 -0000

Etienne Gagnon wrote:
> Stephen,
> 
> Do as you like.  I do not want to fight on this.  I think that my
> proposal is the best approach to (1) handle missing functionality in a
> way that will make life easier to users trying to run Java
> applications on classpath-based free vms amd (2) mimick the
> LinkageError usually expected in case of *unexpected* missing
> functionality (in contrast with *expected* missing functionality,
> indicated by UnsupportedOperationExcaprion).  You seem to hold on your
> vision very strongly, and I am not ready to spend the effort to
> convince you.

I'd agree with Etienne, I think his proposal is the best so far, but if 
Stephen and Per don't like it at all, let it be 
UnsupportedOperationException.

I'd like to keep the 'please contribute to Classpath if this missing 
functionality' message though, so let's mandate using

throw new UnsupportedOperationException("not yet implemented: " + reason 
+ gnu.classpath.Recruiting.CONTRIBUTE_PLEASE_MESSAGE);

if that's o.k. with everyone.

cheers,
dalibor topic




From MAILER-DAEMON Mon Sep 29 09:25:00 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3y1K-0000y4-DH
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 09:24:58 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3y1C-0000x8-EN
	for classpath@gnu.org; Mon, 29 Sep 2003 09:24:50 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3y0f-0000oj-R1
	for classpath@gnu.org; Mon, 29 Sep 2003 09:24:48 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A3y0f-0000of-AL
	for classpath@gnu.org; Mon, 29 Sep 2003 09:24:17 -0400
Received: from [132.208.250.6] (helo=uqam.ca)
	by mx20.gnu.org with esmtp (Exim 4.22) id 1A3xws-0001tW-LV
	for classpath@gnu.org; Mon, 29 Sep 2003 09:20:22 -0400
Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6])
	by sortant.uqam.ca (8.12.10/8.12.1) with SMTP id h8TDGG9e005928
	for <classpath@gnu.org>; Mon, 29 Sep 2003 09:16:49 -0400 (EDT)
Received: from antivirus.uqam.ca ([127.0.0.1])
	by anis.telecom.uqam.ca (SAVSMTP 3.1.1.32) with SMTP id
	M2003092909164925570
	for <classpath@gnu.org>; Mon, 29 Sep 2003 09:16:49 -0400
Received: from localhost (perseval.info.uqam.ca [132.208.137.96])
	by intrant.uqam.ca (8.12.10/8.12.2/uqam-filtres) with ESMTP id
	h8TD9x5d029180; Mon, 29 Sep 2003 09:10:00 -0400 (EDT)
X-Spam-Filter: Filtre-Uqam re:  abuse@uqam.ca
Received: from egagnon by localhost with local (Exim 3.36 #1 (Debian))
	id 1A3xmq-0000RX-00; Mon, 29 Sep 2003 09:10:00 -0400
Date: Mon, 29 Sep 2003 09:10:00 -0400
To: Stephen Crawley <crawley@dstc.edu.au>
Message-ID: <20030929131000.GA1697@perseval.info.uqam.ca>
References: <etienne.gagnon@uqam.ca> <3F77A830.8090609@uqam.ca>
	<200309290432.h8T4WTsF019880@piglet.dstc.edu.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200309290432.h8T4WTsF019880@piglet.dstc.edu.au>
User-Agent: Mutt/1.5.4i
From: Etienne Gagnon <etienne.gagnon@uqam.ca>
Cc: crawley@piglet.dstc.edu.au, classpath <classpath@gnu.org>
Subject: Re: NotYetImplementedError [Was: NYIException]
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 13:24:51 -0000

Just a little note:

On Mon, Sep 29, 2003 at 02:32:49PM +1000, Stephen Crawley wrote:
> I cannot see for the life of me where you are got this "different
> semantics" idea from.  The documentation for the exception defines its
> semantics as:

The semantic difference comes from the inheritance hierarchy.
java.lang.Exception is documented as:

The class Exception and its subclasses are a form of Throwable that
indicates conditions that a reasonable application might want to
catch.

A reasonable application should not expect a "standard" method not to
be yet implemented, IMHO.

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 Sep 29 10:48:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3zK9-000803-Sf
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 10:48:29 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3zK6-0007yl-P8
	for classpath@gnu.org; Mon, 29 Sep 2003 10:48:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3zJa-0007rQ-J5
	for classpath@gnu.org; Mon, 29 Sep 2003 10:48:25 -0400
Received: from [212.227.126.177] (helo=moutng.kundenserver.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3zJZ-0007rI-VR
	for classpath@gnu.org; Mon, 29 Sep 2003 10:47:54 -0400
Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de)
	by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
	id 1A3zJY-0003qB-00
	for classpath@gnu.org; Mon, 29 Sep 2003 16:47:52 +0200
Received: from [212.126.196.45] (helo=wau)
	by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1)
	id 1A3zJX-0008SV-00
	for classpath@gnu.org; Mon, 29 Sep 2003 16:47:51 +0200
From: Andy Walter <anwalt_pop@aicas.com>
To: classpath <classpath@gnu.org>
Date: Mon, 29 Sep 2003 16:46:47 +0200
X-Mailer: KMail [version 1.4]
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
	boundary="------------Boundary-00=_Z1DZSKM9JM0DETTUJVOO"
Message-Id: <200309291646.47209.anwalt_pop@aicas.com>
Subject: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 14:48:27 -0000


--------------Boundary-00=_Z1DZSKM9JM0DETTUJVOO
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

Hi all,

a surprising lot of emails have been sent about that matter. It seems tha=
t we=20
all agree on that throwing *something* would be better than what we have=20
currently. The attached class is a summary of what as far I understood fr=
om=20
the emails most people here wanted.

Personally, I had preferred some standardised information about the JDK=20
version that demands for the missing feature, but I didn't get the impres=
sion=20
that many of you support that idea.

Is there anybody who can't live with the attached proposal?


Cheers,

=09Andy.

--=20
aicas GmbH                                     =20
Haid-und-Neu-Stra=DFe 18 * 76131 Karlsruhe       =20
http://www.aicas.com                           =20
Tel: +49-721-663 968-24; Fax: +49-721-663 968-94

--------------Boundary-00=_Z1DZSKM9JM0DETTUJVOO
Content-Type: text/x-java; charset="iso-8859-15";
	name="NotYetImplementedError.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="NotYetImplementedError.java"

/* NotYetImplementedError.java -- Error signaling not yet implemented methods
   Copyright (C) 2003  Free Software Foundation

This file is part of GNU Classpath.

GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING.  If not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.

Linking this library statically or dynamically with other modules is
making a combined work based on this library.  Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.

As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module.  An independent module is a module which is not derived from
or based on this library.  If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so.  If you do not wish to do so, delete this
exception statement from your version. */
package gnu.classpath;

/**
 * This Exception is used to signal that a particular method has not
 * been implemented yet. The use of a specific exception throught the
 * complete source code will help to localize and implement missing
 * functionality.<p>
 * Usage:
 * <code><pre>
 *  public notYetImplementeMethod()
 *    {
 *    throw new gnu.classpath.NotYetImplementedError();
 *    }
 *  </pre></code>
 *
 */
public class NotYetImplementedError extends Error
{
	private static final String NYI =
		  "This method has not yet been implemented in GNU Classpath.\n\n"
		+ " The GNU Classpath project would appreciate receiving"
		+ " an implementation for it.\n"
		+ " If you intend to contribute, please take a look at"
		+ " http://www.gnu.org/software/classpath/docs/hacking.html and"
		+ " get in touch with other developers on classpath@gnu.org.";

  /**
   * Create new NotYetImplementedError.
   */
  public NotYetImplementedError()
    {
	super(NYI);
    }

  /**
   * Create new NotYetImplementedError with detailed message.
   * @param message more detailed description.
   */
  public NotYetImplementedError(String message)
    {
	super(message + "\n" + NYI);
    }
}


--------------Boundary-00=_Z1DZSKM9JM0DETTUJVOO--




From MAILER-DAEMON Mon Sep 29 10:58:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3zTh-000177-BX
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 10:58:21 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3zTe-00016Y-6R
	for classpath@gnu.org; Mon, 29 Sep 2003 10:58:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3zT7-00010x-28
	for classpath@gnu.org; Mon, 29 Sep 2003 10:58:17 -0400
Received: from [209.92.1.32] (helo=newmx2.fast.net)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A3zT6-00010r-Nv
	for classpath@gnu.org; Mon, 29 Sep 2003 10:57:44 -0400
Received: (qmail 3593 invoked from network); 29 Sep 2003 14:57:42 -0000
Received: from unknown (HELO corp.fast.net) ([209.152.221.64])
	(envelope-sender <stuart.ballard@corp.fast.net>)
	by newmx2.fast.net (qmail-ldap-1.03) with SMTP
	for <bryce@mckinlay.net.nz>; 29 Sep 2003 14:57:42 -0000
Message-ID: <3F784864.6030103@corp.fast.net>
Date: Mon, 29 Sep 2003 10:57:40 -0400
From: Stuart Ballard <stuart.ballard@corp.fast.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.3.1) Gecko/20030527 Debian/1.3.1-2
X-Accept-Language: en
MIME-Version: 1.0
To: Bryce McKinlay <bryce@mckinlay.net.nz>
References: <ED76F4C7-F071-11D7-ABDD-003065F97F7C@mckinlay.net.nz>
In-Reply-To: <ED76F4C7-F071-11D7-ABDD-003065F97F7C@mckinlay.net.nz>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: [really patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 14:58:19 -0000

Bryce McKinlay wrote:
> size() is used here because, obviously, it is generally more efficient 
> to call it once rather than calling hasNext() many times. I believe that 
> the current implementation is within spec according to the collections 
> documentation. If your collections are returning an inaccurate size() 
> then I'd argue they are not valid implementations of Map.

Sure: as I noted, my argument is that Sun's implementation can handle 
such invalid implementations of Map, so people might rely on it, as I did.

I could fix up my implementation of Map to guarantee that size() is 
correct, but that would make this operation much *slower* than using 
hasNext() would. To get an accurate size() out of my data structure 
would require iterating across it fully every time size() is called.

Furthermore, I'd argue that the very existence of a hasNext() method 
suggests that Sun didn't intend people to make this "optimization". If 
they expected that calling size() and maintaining your own counter would 
always be more efficient, why didn't they just leave hasNext() out and 
recommend coding that way?

Note too that our current implementations leave the collections in an 
invalid state if next() causes a ConcurrentModificationException (or 
other RuntimeException) part way through, because they set the size 
variable in advance without waiting to ensure that all those elements 
could in fact be added. It would be possible to fix this problem without 
using hasNext(), and even if my patch isn't accepted I still think we 
should at least fix that.

> Of course, if there are real applications out there that rely on the way 
> Sun implements it, then we may have to change to using hasNext(). But we 
> should consider this carefully. If we must change it, then the 
> addAll/putAll implementations should change throughout the collections 
> classes for consistency - not just HashMap/Hashtable. As you noticed, in 
> some cases this could make things significantly less efficient.

Firstly, there is at least one real application that relies on this :) 
If I could see a viable workaround, I'd modify nrdo to provide accurate 
size() information so that Classpath wouldn't need to change (although I 
still think that it's important to be bug-for-bug compatible with Sun's 
implementation, so I'd still be in favor of this change even if I wasn't 
personally relying on it). But in the case of my particular data 
structure it's impossible to do that without slowing everything down, 
and that isn't acceptable for my application.

I think it's perfectly possible to implement all our collections to give 
the correct behavior without making things less efficient in the case 
where size() is correct - at least, the only difference should be the 
cost of repeated calls to hasNext() versus a single call to size(), and 
the cost of hasNext() should *always* be small enough that that 
difference falls into the realm of micro-optimization.

The example I gave was ArrayList: the optimization is to pre-allocate 
space for size() worth of elements using ensureCapacity(), and then copy 
elements directly into the backing array. It would be perfectly possible 
to implement it something like this, which optimizes for when size() is 
correct but is robust if it's not:

int csize = c.size();
ensureCapacity(size() + csize);
for (Iterator i = c.iterator(); csize-- > 0 && i.hasNext(); ) {
   // put i.next() directly into the array and increment size,
   // exactly as it's done now.
}
while (i.hasNext()) {
   add(i.next()); // use the standard add method which will
                  // grow the array further if needed.
}

In this version, the for() loop checks i.hasNext() as well as csize so 
that it's robust against the actual size being smaller than csize. The 
while() loop uses a slower path for extra elements in case the actual 
size is larger than csize(). And the only additional cost of this 
algorithm is extra calls to hasNext(), which should always be cheap.

I don't think there are any ways where size() could be used as an 
optimization that aren't susceptible to a similar approach - optimize 
for the case where size() is correct, but still be prepared in case it's 
not.

Stuart.

-- 
Stuart Ballard, Senior Web Developer
FASTNET - Web Solutions
(215) 283-2300, ext. 126
www.fast.net




From MAILER-DAEMON Mon Sep 29 10:58:38 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3zTy-0001Az-K6
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 10:58:38 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3zTv-0001A5-Eq
	for classpath@gnu.org; Mon, 29 Sep 2003 10:58:35 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3zTP-00014P-Es
	for classpath@gnu.org; Mon, 29 Sep 2003 10:58:34 -0400
Received: from [146.87.255.104] (helo=pan.salford.ac.uk)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A3zNy-0000Kg-7H
	for classpath@gnu.org; Mon, 29 Sep 2003 10:52:26 -0400
Received: (qmail 81716 invoked by uid 85); 29 Sep 2003 14:52:24 -0000
Received: from ricky_clarkson@yahoo.com by pan.salford.ac.uk by uid 401 with
	qmail-scanner-1.16 
	(uvscan: v4.2.40/v4295. spamassassin: 2.55.  Clear:. 
	Processed in 0.697331 secs); 29 Sep 2003 14:52:24 -0000
X-Qmail-Scanner-Mail-From: ricky_clarkson@yahoo.com via pan.salford.ac.uk
X-Qmail-Scanner: 1.16 (Clear:. Processed in 0.697331 secs)
Received: (ofmipd 146.87.133.141); 29 Sep 2003 14:52:23 -0000
Received: from ricky by debian with local (Exim 3.36 #1 (Debian))
	id 1A3IO1-0006Q8-00
	for <classpath@gnu.org>; Sat, 27 Sep 2003 17:57:37 +0100
Date: 27 Sep 2003 17:57:36 +0100
Message-ID: <20030927165736.GA23216@yahoo.com>
From: "Ricky Clarkson" <ricky_clarkson@yahoo.com>
To: classpath@gnu.org
References: <200309261250.20703.anwalt_pop@aicas.com>
	<20030926123830.1770@smtp.mail.ch.easynet.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20030926123830.1770@smtp.mail.ch.easynet.net>
User-Agent: Mutt/1.5.4i
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 14:58:36 -0000

Hi,

I believe the functionality of @unimplemented would be adequately
replaced by @since and throw new UnsupportedOperationException.

To find out what methods of, e.g., JDK1.2 are unsupported, you can
simply search for methods that have @since 1.2 and throw
UnsupportedOperationException from their body.

I don't see how @unimplemented or NotYetImplementedException would give
extra information.

The reason for not implementing the method could be explained in normal
Javadoc comments, and this avoids generated documentation missing out
this information, as would happen if one ran Sun Javadoc over a method
with an @unimplemented tag, as far as I know.

Regards,

Ricky.

On Fri, Sep 26, 2003 at 02:38:30PM +0200, Sascha Brawer wrote:
> What would you say about defining a special Javadoc tag, such as the
> following?
> 
> /**
>  * @unimplemented 1.4 Here comes some explanation.
>  */
> [class|method|field]
> 
> It would not be too difficult to write a special doclet for the purpose
> of generating a document that summarizes the implementation status. Plus,
> it would be possible to document what exactly is not implemented, the
> reason, etc. The explanation text would also go into the generated
> documentation files.
> 
> -- Sascha
> 
> Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/ 
> 
> 
> 
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath



From MAILER-DAEMON Mon Sep 29 11:03:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A3zYu-0002Gj-EZ
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 11:03:44 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A3zYr-0002F8-0y
	for classpath@gnu.org; Mon, 29 Sep 2003 11:03:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A3zYK-000277-CN
	for classpath@gnu.org; Mon, 29 Sep 2003 11:03:39 -0400
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3zRe-0000tt-6j
	for classpath@gnu.org; Mon, 29 Sep 2003 10:56:14 -0400
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8TEu7116834
	for <classpath@gnu.org>; Mon, 29 Sep 2003 10:56:07 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8TEu7c18725
	for <classpath@gnu.org>; Mon, 29 Sep 2003 10:56:07 -0400
Received: from cuddles.cambridge.redhat.com
	(IDENT:1w+kWWn5L8Qp+v/MWUxrsvYnAA5NCskA@vpn50-32.rdu.redhat.com
	[172.16.50.32])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8TEu3TX027277; 
	Mon, 29 Sep 2003 10:56:04 -0400
Received: from cuddles.cambridge.redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	h8TEu1Zs001317; Mon, 29 Sep 2003 15:56:02 +0100
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8/Submit) id
	h8TEu0NW001313; Mon, 29 Sep 2003 15:56:00 +0100
From: Andrew Haley <aph@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16248.18431.720499.859785@cuddles.cambridge.redhat.com>
Date: Mon, 29 Sep 2003 15:55:59 +0100
To: Andy Walter <anwalt_pop@aicas.com>
In-Reply-To: <200309291646.47209.anwalt_pop@aicas.com>
References: <200309291646.47209.anwalt_pop@aicas.com>
X-Mailer: VM 7.14 under Emacs 21.2.1
Cc: classpath <classpath@gnu.org>
Subject: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 15:03:42 -0000

Andy Walter writes:
 > Hi all,
 > 
 > a surprising lot of emails have been sent about that matter. It seems that we 
 > all agree on that throwing *something* would be better than what we have 
 > currently. The attached class is a summary of what as far I understood from 
 > the emails most people here wanted.

I'm utterly baffled why you think that the attached class is
appropriate.  There was a disagreement as to whether a subclass of
Error or of Exception is required.  Last I heard, the promoters of
Error threw in the towel.  Howver, your class says Exception in the
comments but Error in the code.

Andrew.



From MAILER-DAEMON Mon Sep 29 12:23:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A40o5-0001Ws-It
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 12:23:29 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A40o1-0001VZ-4s
	for classpath@gnu.org; Mon, 29 Sep 2003 12:23:25 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A40nT-0001MF-CL
	for classpath@gnu.org; Mon, 29 Sep 2003 12:23:23 -0400
Received: from [62.177.154.238] (helo=lembu.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A40UY-0006r6-2h
	for classpath@gnu.org; Mon, 29 Sep 2003 12:03:18 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 29 Sep 2003 18:03:05 +0200
Content-class: urn:content-classes:message
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC461F@LEMBU.sumatrasoftware.com>
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: NYIException
Thread-Index: AcOGm2UbXY5hgiZjS6aUD8O4dlGOqwAB3heQ
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Andrew Haley" <aph@redhat.com>,
	"Andy Walter" <anwalt_pop@aicas.com>
Cc: classpath <classpath@gnu.org>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 16:23:26 -0000

Andrew Haley wrote:
> Andy Walter writes:
>  > a surprising lot of emails have been sent about that=20
> matter. It seems that we=20
>  > all agree on that throwing *something* would be better=20
> than what we have=20
>  > currently. The attached class is a summary of what as far=20
> I understood from=20
>  > the emails most people here wanted.
>=20
> I'm utterly baffled why you think that the attached class is
> appropriate.  There was a disagreement as to whether a subclass of
> Error or of Exception is required.  Last I heard, the promoters of
> Error threw in the towel.  Howver, your class says Exception in the
> comments but Error in the code.

I'm certainly not throwing in the towel ;-) I think it should be an
error, but I can live with NYIException being an Exception, what I
cannot accept is (ab)using UnsupportedOperationException.

Regards,
Jeroen



From MAILER-DAEMON Mon Sep 29 12:26:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A40qu-0002G5-Dx
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 12:26:24 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A40qp-0002EM-VZ
	for classpath@gnu.org; Mon, 29 Sep 2003 12:26:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A40qJ-00024A-E6
	for classpath@gnu.org; Mon, 29 Sep 2003 12:26:18 -0400
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A40qI-00023v-QL
	for classpath@gnu.org; Mon, 29 Sep 2003 12:25:46 -0400
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8TGPj113795
	for <classpath@gnu.org>; Mon, 29 Sep 2003 12:25:45 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8TGPjc23737
	for <classpath@gnu.org>; Mon, 29 Sep 2003 12:25:45 -0400
Received: from cuddles.cambridge.redhat.com
	(IDENT:1b9W98XSoNs7F5xzrm/aCEY7sIlLR+6U@vpn50-32.rdu.redhat.com
	[172.16.50.32])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8TGPiTX006700; 
	Mon, 29 Sep 2003 12:25:44 -0400
Received: from cuddles.cambridge.redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	h8TGPQZs006173; Mon, 29 Sep 2003 17:25:32 +0100
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8/Submit) id
	h8TGPAOj006167; Mon, 29 Sep 2003 17:25:10 +0100
From: Andrew Haley <aph@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16248.23781.982754.745366@cuddles.cambridge.redhat.com>
Date: Mon, 29 Sep 2003 17:25:09 +0100
To: "Jeroen Frijters" <jeroen@sumatra.nl>
In-Reply-To: <788B535AB1F9CB49BB9C229372B50ACC461F@LEMBU.sumatrasoftware.com>
References: <788B535AB1F9CB49BB9C229372B50ACC461F@LEMBU.sumatrasoftware.com>
X-Mailer: VM 7.14 under Emacs 21.2.1
Cc: classpath <classpath@gnu.org>, Andy Walter <anwalt_pop@aicas.com>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 16:26:23 -0000

Jeroen Frijters writes:
 > Andrew Haley wrote:
 > > Andy Walter writes:
 > >  > a surprising lot of emails have been sent about that 
 > > matter. It seems that we 
 > >  > all agree on that throwing *something* would be better 
 > > than what we have 
 > >  > currently. The attached class is a summary of what as far 
 > > I understood from 
 > >  > the emails most people here wanted.
 > > 
 > > I'm utterly baffled why you think that the attached class is
 > > appropriate.  There was a disagreement as to whether a subclass of
 > > Error or of Exception is required.  Last I heard, the promoters of
 > > Error threw in the towel.  Howver, your class says Exception in the
 > > comments but Error in the code.
 > 
 > I'm certainly not throwing in the towel ;-) I think it should be an
 > error, but I can live with NYIException being an Exception, what I
 > cannot accept is (ab)using UnsupportedOperationException.

Out of interest (and please forgive me if this has already been
discussed at length) why have dummy methods at all?  Wouldn't it be
better to have a compile time failure for unimplemented methods?

Andrew.




From MAILER-DAEMON Mon Sep 29 12:38:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A412s-0004pg-Um
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 12:38:46 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A412m-0004oR-AN
	for classpath@gnu.org; Mon, 29 Sep 2003 12:38:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A412G-0004bj-2n
	for classpath@gnu.org; Mon, 29 Sep 2003 12:38:39 -0400
Received: from [62.177.154.238] (helo=lembu.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A40vv-0003Qb-0A
	for classpath@gnu.org; Mon, 29 Sep 2003 12:31:35 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 29 Sep 2003 18:31:13 +0200
Content-class: urn:content-classes:message
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC4621@LEMBU.sumatrasoftware.com>
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: NYIException
Thread-Index: AcOGpl7uaqg6cT+fRGaNYhgK5IjEMgAAGkCw
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Andrew Haley" <aph@redhat.com>
Cc: classpath <classpath@gnu.org>, Andy Walter <anwalt_pop@aicas.com>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 16:38:45 -0000

Andrew Haley wrote:
> Out of interest (and please forgive me if this has already been
> discussed at length) why have dummy methods at all?  Wouldn't it be
> better to have a compile time failure for unimplemented methods?

I think so, but sometimes (e.g. when implementing interfaces or
extending abstract classes), you're required to provide the methods, but
I agree that not having the unimplemented method is the cleanest
solution.

Regards,
Jeroen



From MAILER-DAEMON Mon Sep 29 12:58:16 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A41Lk-0008TV-Gt
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 12:58:16 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A41Li-0008TD-5P
	for classpath@gnu.org; Mon, 29 Sep 2003 12:58:14 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A41LC-0008Pa-Bf
	for classpath@gnu.org; Mon, 29 Sep 2003 12:58:13 -0400
Received: from [209.92.1.32] (helo=newmx2.fast.net)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A41LC-0008PX-2J
	for classpath@gnu.org; Mon, 29 Sep 2003 12:57:42 -0400
Received: (qmail 27568 invoked from network); 29 Sep 2003 16:51:01 -0000
Received: from unknown (HELO corp.fast.net) ([209.152.221.64])
	(envelope-sender <stuart.ballard@corp.fast.net>)
	by newmx2.fast.net (qmail-ldap-1.03) with SMTP
	for <aph@redhat.com>; 29 Sep 2003 16:51:01 -0000
Message-ID: <3F7862F4.2090204@corp.fast.net>
Date: Mon, 29 Sep 2003 12:51:00 -0400
From: Stuart Ballard <stuart.ballard@corp.fast.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.3.1) Gecko/20030527 Debian/1.3.1-2
X-Accept-Language: en
MIME-Version: 1.0
To: Andrew Haley <aph@redhat.com>
References: <788B535AB1F9CB49BB9C229372B50ACC461F@LEMBU.sumatrasoftware.com>
	<16248.23781.982754.745366@cuddles.cambridge.redhat.com>
In-Reply-To: <16248.23781.982754.745366@cuddles.cambridge.redhat.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: classpath <classpath@gnu.org>, Andy Walter <anwalt_pop@aicas.com>,
	Jeroen Frijters <jeroen@sumatra.nl>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 16:58:14 -0000

Andrew Haley wrote:
> Out of interest (and please forgive me if this has already been
> discussed at length) why have dummy methods at all?  Wouldn't it be
> better to have a compile time failure for unimplemented methods?

One reason is that it makes it possible to compile code against 
Classpath that includes references to methods that Classpath hasn't yet 
implemented. This code might run just fine for the purpose you need it, 
because the unimplemented calls are in a codepath that you aren't taking.

Another reason to have NYIError[1] is that in some cases a method may be 
implemented for some cases and not others, depending on its arguments. 
For example, a method might not have the correct behavior implemented as 
fallback for when one of its arguments is null, or might only work for 
particular subclasses of the class it's supposed to take as an argument. 
In that case, throwing the Error can be done conditionally, which is 
something that couldn't be replicated at compile time.

Stuart.

[1] yes, I vote for Error, FWIW, but I could live with anything that's a 
distinct class - ie not 'new RuntimeException("NYI")' - wherever it's 
placed in the Exception hierarchy.


-- 
Stuart Ballard, Senior Web Developer
FASTNET - Web Solutions
(215) 283-2300, ext. 126
www.fast.net




From MAILER-DAEMON Mon Sep 29 13:05:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A41T1-0001Ow-N0
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 13:05:47 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A41Sz-0001Ol-9C
	for classpath@gnu.org; Mon, 29 Sep 2003 13:05:45 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A41ST-0001J3-Dg
	for classpath@gnu.org; Mon, 29 Sep 2003 13:05:44 -0400
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A41AL-0006zu-M4
	for classpath@gnu.org; Mon, 29 Sep 2003 12:46:29 -0400
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1A41AK-0001Zp-00
	for <classpath@gnu.org>; Mon, 29 Sep 2003 18:46:28 +0200
Received: from mpiat2305.ag2.mpi-sb.mpg.de
	([139.19.20.94] helo=kaffe.org ident=topic)
	by interferon.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A41AG-0001YK-00; Mon, 29 Sep 2003 18:46:24 +0200
Message-ID: <3F7861E0.7050507@kaffe.org>
Date: Mon, 29 Sep 2003 18:46:24 +0200
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Jeroen Frijters <jeroen@sumatra.nl>
References: <788B535AB1F9CB49BB9C229372B50ACC4621@LEMBU.sumatrasoftware.com>
In-Reply-To: <788B535AB1F9CB49BB9C229372B50ACC4621@LEMBU.sumatrasoftware.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: classpath <classpath@gnu.org>, Andy Walter <anwalt_pop@aicas.com>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 17:05:45 -0000

Jeroen Frijters wrote:
> Andrew Haley wrote:
> 
>>Out of interest (and please forgive me if this has already been
>>discussed at length) why have dummy methods at all?  Wouldn't it be
>>better to have a compile time failure for unimplemented methods?
> 
> 
> I think so, but sometimes (e.g. when implementing interfaces or
> extending abstract classes), you're required to provide the methods, but
> I agree that not having the unimplemented method is the cleanest
> solution.

On the other hand, you can start writing the docs & 'prototypes' for a 
class without having to fully implement everything. Depends on the point 
of view, I guess.

And of course, there is the 'you can at least compile it using 
classpath, even if you can't run it' aspect, that plays a big role for 
debian and similar 'free software buildable by free tools' efforts, afaik.

cheers,
dalibor topic




From MAILER-DAEMON Mon Sep 29 13:41:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A421f-0005wR-Cv
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 13:41:35 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A421c-0005vM-15
	for classpath@gnu.org; Mon, 29 Sep 2003 13:41:32 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A4214-0005nj-RS
	for classpath@gnu.org; Mon, 29 Sep 2003 13:41:29 -0400
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A4214-0005na-H9
	for classpath@gnu.org; Mon, 29 Sep 2003 13:40:58 -0400
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8THev106401
	for <classpath@gnu.org>; Mon, 29 Sep 2003 13:40:57 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8THevc21580
	for <classpath@gnu.org>; Mon, 29 Sep 2003 13:40:57 -0400
Received: from cuddles.cambridge.redhat.com
	(IDENT:TxwoOl5fBcB+ZIl4+r7MOH8mrz5GRMqe@vpn50-32.rdu.redhat.com
	[172.16.50.32])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8THeuTX015912; 
	Mon, 29 Sep 2003 13:40:56 -0400
Received: from cuddles.cambridge.redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	h8THelZs007025; Mon, 29 Sep 2003 18:40:48 +0100
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8/Submit) id
	h8THejRt007019; Mon, 29 Sep 2003 18:40:45 +0100
From: Andrew Haley <aph@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16248.28317.745026.571762@cuddles.cambridge.redhat.com>
Date: Mon, 29 Sep 2003 18:40:45 +0100
To: Dalibor Topic <robilad@kaffe.org>
In-Reply-To: <3F7861E0.7050507@kaffe.org>
References: <788B535AB1F9CB49BB9C229372B50ACC4621@LEMBU.sumatrasoftware.com>
	<3F7861E0.7050507@kaffe.org>
X-Mailer: VM 7.14 under Emacs 21.2.1
Cc: classpath <classpath@gnu.org>, Andy Walter <anwalt_pop@aicas.com>,
	Jeroen Frijters <jeroen@sumatra.nl>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 17:41:33 -0000

Dalibor Topic writes:
 > Jeroen Frijters wrote:
 > > Andrew Haley wrote:
 > > 
 > >>Out of interest (and please forgive me if this has already been
 > >>discussed at length) why have dummy methods at all?  Wouldn't it be
 > >>better to have a compile time failure for unimplemented methods?
 > > 
 > > 
 > > I think so, but sometimes (e.g. when implementing interfaces or
 > > extending abstract classes), you're required to provide the methods, but
 > > I agree that not having the unimplemented method is the cleanest
 > > solution.
 > 
 > On the other hand, you can start writing the docs & 'prototypes'
 > for a class without having to fully implement everything. Depends
 > on the point of view, I guess.
 > 
 > And of course, there is the 'you can at least compile it using
 > classpath, even if you can't run it' aspect, that plays a big role
 > for debian and similar 'free software buildable by free tools'
 > efforts, afaik.

I see.  While this is okay for the Classpath development process, I
don't think it's best for gcj.  We've already had some confusion where
users compile code with gcj and it fails to run.

Throwing an appropriate message will help, of course, but one of the
advantages of gcj is that you can pre-link and you know you won't get
runtime linkage errors -- the linker has resolved everything.  Having
dummy implementations loses this gcj advantage.

Andrew.




From MAILER-DAEMON Mon Sep 29 13:53:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A42DD-0004Te-R6
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 13:53:31 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A42DA-0004RS-AC
	for classpath@gnu.org; Mon, 29 Sep 2003 13:53:28 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A42Cc-0004In-2C
	for classpath@gnu.org; Mon, 29 Sep 2003 13:53:25 -0400
Received: from [212.227.126.189] (helo=moutng.kundenserver.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A42CP-00047N-F8
	for classpath@gnu.org; Mon, 29 Sep 2003 13:52:41 -0400
Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de)
	by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
	id 1A42CO-0001cV-00
	for classpath@gnu.org; Mon, 29 Sep 2003 19:52:40 +0200
Received: from [212.126.196.45] (helo=wau)
	by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1)
	id 1A42CO-0001q8-00
	for classpath@gnu.org; Mon, 29 Sep 2003 19:52:40 +0200
Content-Type: text/plain;
  charset="iso-8859-1"
From: Andy Walter <anwalt_pop@aicas.com>
To: classpath <classpath@gnu.org>
Date: Mon, 29 Sep 2003 19:51:35 +0200
X-Mailer: KMail [version 1.4]
References: <788B535AB1F9CB49BB9C229372B50ACC4621@LEMBU.sumatrasoftware.com>
	<3F7861E0.7050507@kaffe.org>
	<16248.28317.745026.571762@cuddles.cambridge.redhat.com>
In-Reply-To: <16248.28317.745026.571762@cuddles.cambridge.redhat.com>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200309291951.35309.anwalt_pop@aicas.com>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 17:53:29 -0000

Hi Andrew,

On Monday 29 September 2003 19:40, Andrew Haley wrote:
> Throwing an appropriate message will help, of course, but one of the
> advantages of gcj is that you can pre-link and you know you won't get
> runtime linkage errors -- the linker has resolved everything.  Having
> dummy implementations loses this gcj advantage.

Dummy implementations that do nothing are a really bad thing, I agree. Bu=
t a=20
dummy implementation that either returns with the correct result or throw=
s a=20
NYIException makes it clear to the user what had happened.

Currently, we have those dummy methods anyway - and can't get rid of them=
,=20
because some methods are partly, but not completely, implemented. With a =
new=20
Exception class, the gcj linker could stop with an error message when suc=
h a=20
method is instantiated and thrown. If we abuse any existing JDK Exeption =
for=20
it, this would not be possible.


Cheers,

=09Andy.

--=20
aicas GmbH                                     =20
Haid-und-Neu-Stra=DFe 18 * 76131 Karlsruhe       =20
http://www.aicas.com                           =20
Tel: +49-721-663 968-24; Fax: +49-721-663 968-94




From MAILER-DAEMON Mon Sep 29 13:59:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A42JA-000659-B2
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 13:59:40 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A42J8-000649-6W
	for classpath@gnu.org; Mon, 29 Sep 2003 13:59:38 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A42Ic-0005uT-Bc
	for classpath@gnu.org; Mon, 29 Sep 2003 13:59:37 -0400
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A42Ic-0005uD-0G
	for classpath@gnu.org; Mon, 29 Sep 2003 13:59:06 -0400
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8THx5112696
	for <classpath@gnu.org>; Mon, 29 Sep 2003 13:59:05 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8THx5c29359
	for <classpath@gnu.org>; Mon, 29 Sep 2003 13:59:05 -0400
Received: from cuddles.cambridge.redhat.com
	(IDENT:OD44vDrgAjtupl6olBQC+6mIM9LGhli4@vpn50-32.rdu.redhat.com
	[172.16.50.32])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8THx3TX018350; 
	Mon, 29 Sep 2003 13:59:04 -0400
Received: from cuddles.cambridge.redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	h8THx1Zs007164; Mon, 29 Sep 2003 18:59:01 +0100
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8/Submit) id
	h8THwxU9007160; Mon, 29 Sep 2003 18:58:59 +0100
From: Andrew Haley <aph@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16248.29411.433079.882673@cuddles.cambridge.redhat.com>
Date: Mon, 29 Sep 2003 18:58:59 +0100
To: Emile Snyder <esnyder@wave.net>
In-Reply-To: <1064853888.8594.1.camel@basalt>
References: <788B535AB1F9CB49BB9C229372B50ACC461F@LEMBU.sumatrasoftware.com>
	<16248.23781.982754.745366@cuddles.cambridge.redhat.com>
	<1064853888.8594.1.camel@basalt>
X-Mailer: VM 7.14 under Emacs 21.2.1
Cc: classpath <classpath@gnu.org>, Andy Walter <anwalt_pop@aicas.com>,
	Jeroen Frijters <jeroen@sumatra.nl>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 17:59:38 -0000

Emile Snyder writes:
 > On Mon, 2003-09-29 at 09:25, Andrew Haley wrote:
 > > Out of interest (and please forgive me if this has already been
 > > discussed at length) why have dummy methods at all?  Wouldn't it be
 > > better to have a compile time failure for unimplemented methods?
 > 
 > If you go this route what happens when code which was compiled elsewhere
 > is run using the classpath libraries?

I guess you'd get a LinkageError?

Andrew.



From MAILER-DAEMON Mon Sep 29 14:29:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A42la-0005s3-Jr
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 14:29:02 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A42kY-0005dC-NH
	for classpath@gnu.org; Mon, 29 Sep 2003 14:27:58 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A42jo-00054O-0u
	for classpath@gnu.org; Mon, 29 Sep 2003 14:27:44 -0400
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A42iM-0004KJ-5r
	for classpath@gnu.org; Mon, 29 Sep 2003 14:25:42 -0400
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8TIPf120510
	for <classpath@gnu.org>; Mon, 29 Sep 2003 14:25:41 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8TIPfc06969
	for <classpath@gnu.org>; Mon, 29 Sep 2003 14:25:41 -0400
Received: from cuddles.cambridge.redhat.com
	(IDENT:UXLlYqWmWOsdyZ2sArD5A+ZTH88JuLgP@vpn50-32.rdu.redhat.com
	[172.16.50.32])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8TIPeTX021726; 
	Mon, 29 Sep 2003 14:25:40 -0400
Received: from cuddles.cambridge.redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	h8TIPcZs007366; Mon, 29 Sep 2003 19:25:38 +0100
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8/Submit) id
	h8TIPbFc007362; Mon, 29 Sep 2003 19:25:37 +0100
From: Andrew Haley <aph@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16248.31008.363456.567640@cuddles.cambridge.redhat.com>
Date: Mon, 29 Sep 2003 19:25:36 +0100
To: Andy Walter <anwalt_pop@aicas.com>
In-Reply-To: <200309291951.35309.anwalt_pop@aicas.com>
References: <788B535AB1F9CB49BB9C229372B50ACC4621@LEMBU.sumatrasoftware.com>
	<3F7861E0.7050507@kaffe.org>
	<16248.28317.745026.571762@cuddles.cambridge.redhat.com>
	<200309291951.35309.anwalt_pop@aicas.com>
X-Mailer: VM 7.14 under Emacs 21.2.1
Cc: classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 18:29:00 -0000

Andy Walter writes:
 > Hi Andrew,
 > 
 > On Monday 29 September 2003 19:40, Andrew Haley wrote:
 > > Throwing an appropriate message will help, of course, but one of
 > > the advantages of gcj is that you can pre-link and you know you
 > > won't get runtime linkage errors -- the linker has resolved
 > > everything.  Having dummy implementations loses this gcj
 > > advantage.
 > 
 > Dummy implementations that do nothing are a really bad thing, I
 > agree. But a dummy implementation that either returns with the
 > correct result or throws a NYIException makes it clear to the user
 > what had happened.
 > 
 > Currently, we have those dummy methods anyway - and can't get rid
 > of them, because some methods are partly, but not completely,
 > implemented. With a new Exception class, the gcj linker could stop
 > with an error message when such a method is instantiated and
 > thrown.

Err, no.  Linking happens at link time; throwing happens at runtime!
But this gives me an idea.  I can parse the class at compile time, and
if I see any references to a method that throws such an exception I
can warn the user about it.  That would be *much* better.  It wouldn't
be complete because there might be partly implemented subclasses that
aren't directly referenced, but it would be better than nothing.

 > If we abuse any existing JDK Exeption for it, this would not be
 > possible.

True.

Andrew.



From MAILER-DAEMON Mon Sep 29 14:32:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A42p8-0006HP-VL
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 14:32:42 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A416x-000695-Qa
	for classpath@gnu.org; Mon, 29 Sep 2003 12:42:59 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A416Q-0005zF-UE
	for classpath@gnu.org; Mon, 29 Sep 2003 12:42:57 -0400
Received: from [208.7.50.227] (helo=tidal.wave.net)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A416P-0005xG-Bf
	for classpath@gnu.org; Mon, 29 Sep 2003 12:42:25 -0400
Received: from fiasco (wave22-ppp20.rattles.com [63.160.13.20] (may be forged))
	by tidal.wave.net (8.11.3/8.11.3) with ESMTP id h8TGigJ63358;
	Mon, 29 Sep 2003 09:44:58 -0700 (PDT)
	(envelope-from esnyder@wave.net)
From: Emile Snyder <esnyder@wave.net>
To: Andrew Haley <aph@redhat.com>
In-Reply-To: <16248.23781.982754.745366@cuddles.cambridge.redhat.com>
References: <788B535AB1F9CB49BB9C229372B50ACC461F@LEMBU.sumatrasoftware.com>
	<16248.23781.982754.745366@cuddles.cambridge.redhat.com>
Content-Type: text/plain
Message-Id: <1064853888.8594.1.camel@basalt>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.0 
Date: 29 Sep 2003 09:44:48 -0700
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Mon, 29 Sep 2003 14:32:39 -0400
Cc: classpath <classpath@gnu.org>, Andy Walter <anwalt_pop@aicas.com>,
	Jeroen Frijters <jeroen@sumatra.nl>
Subject: RE: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 16:43:01 -0000

On Mon, 2003-09-29 at 09:25, Andrew Haley wrote:
> Out of interest (and please forgive me if this has already been
> discussed at length) why have dummy methods at all?  Wouldn't it be
> better to have a compile time failure for unimplemented methods?

If you go this route what happens when code which was compiled elsewhere
is run using the classpath libraries?

lurkingly yours,
-emile

> Andrew.
> 
> 
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
> 




From MAILER-DAEMON Mon Sep 29 14:53:46 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A439V-0003Jf-Gj
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 14:53:45 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A439Q-0003Gx-W6
	for classpath@gnu.org; Mon, 29 Sep 2003 14:53:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A438t-0002sY-86
	for classpath@gnu.org; Mon, 29 Sep 2003 14:53:38 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1A438s-0002qC-Fc
	for classpath@gnu.org; Mon, 29 Sep 2003 14:53:06 -0400
Received: from [64.164.98.52] (helo=mtaw4.prodigy.net)
	by mx20.gnu.org with esmtp (Exim 4.22) id 1A4361-0003aZ-PN
	for classpath@gnu.org; Mon, 29 Sep 2003 14:50:09 -0400
Received: from bothner.com (adsl-216-102-199-253.dsl.snfc21.pacbell.net
	[216.102.199.253])
	by mtaw4.prodigy.net (8.12.9/8.12.3) with ESMTP id h8TIo6IE026510;
	Mon, 29 Sep 2003 11:50:08 -0700 (PDT)
Message-ID: <3F787FAB.9090303@bothner.com>
Date: Mon, 29 Sep 2003 11:53:31 -0700
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
	rv:1.5b) Gecko/20030827
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Jeroen Frijters <jeroen@sumatra.nl>
References: <788B535AB1F9CB49BB9C229372B50ACC461F@LEMBU.sumatrasoftware.com>
In-Reply-To: <788B535AB1F9CB49BB9C229372B50ACC461F@LEMBU.sumatrasoftware.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: classpath <classpath@gnu.org>
Subject: Re: NYIException
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 18:53:42 -0000

Jeroen Frijters wrote:

> I'm certainly not throwing in the towel ;-) I think it should be an
> error, but I can live with NYIException being an Exception, what I
> cannot accept is (ab)using UnsupportedOperationException.

I still don't see any real problem with UnsupportedOperationException,
but I don't care that much.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/





From MAILER-DAEMON Mon Sep 29 16:13:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A44OE-0001nd-0n
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 16:13:02 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A44O0-0001Pn-Nz
	for classpath@gnu.org; Mon, 29 Sep 2003 16:12:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A44NN-0000P1-W2
	for classpath@gnu.org; Mon, 29 Sep 2003 16:12:41 -0400
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A44NI-0000Kj-De
	for classpath@gnu.org; Mon, 29 Sep 2003 16:12:04 -0400
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1A44NC-0003ei-00
	for <classpath@gnu.org>; Mon, 29 Sep 2003 22:11:58 +0200
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-+I0N2IoCh1qxlL9TwmhF"
Message-Id: <1064866322.6268.73.camel@elsschot>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Mon, 29 Sep 2003 22:12:02 +0200
Subject: About stub methods
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 20:12:59 -0000


--=-+I0N2IoCh1qxlL9TwmhF
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

Please Stop arguing about how the framework for handling unimplemented
classes and stub methods should work. I know it is the ideal "What color
should the Bike Shed have" discussion (*), but stub methods are a bad
thing to have and should just be treated as grave bugs.

Having those method because they allow people to compile against GNU
Classpath but not run against it really doesn't make much sense. Let
people fix either their code or help us implement the missing
functionality.

If you find such a method in the source please just remove it and file a
bug report about it (possibly with as bug message the partial
implementation). Or better just implement it! If there really is a
strong reason to have that particular method as a stub method then we
should do that in the simplest possible way that makes it easy to
quickly find those methods in the source. That means that it should be
some standard string that people can easily grep for all on one line.

Note that as said above making things compile, but not run with GNU
Classpath is not a strong reason. So you should really be able to point
to a free software program written in java that would just need one
little stub method to be completely usable with GNU Classpath to justify
having something as a stub method.

The first person to actually volunteer to go through more then a handful
of classes to remove (silent) stub methods gets to decide what the
actual "Not Implemented" line says (and whether it is an Exception or an
Error, an existing class or a new class). Who actually want to do this
work?

And if whole classes or packages are stubby then we are better off just
removing them or at least add them to the lib/standard.omit file so they
won't appear in our release till we can offer real functionality for
them.

Thanks,

Mark

(*)
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html#BIKESHED-PAI=
NTING

--=-+I0N2IoCh1qxlL9TwmhF
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/eJIRxVhZCJWr9QwRAgtlAJ9tuYdiqLdH0ke/CddO59viGA9ioACfQ8Wm
7Hx/NoQ4lnZ5TlfoEHG+Uuk=
=V/7g
-----END PGP SIGNATURE-----

--=-+I0N2IoCh1qxlL9TwmhF--




From MAILER-DAEMON Mon Sep 29 16:43:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A44s7-0007Mx-QA
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 16:43:55 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A44s4-0007Mr-Uz
	for classpath@gnu.org; Mon, 29 Sep 2003 16:43:52 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A44rY-0007Ji-AF
	for classpath@gnu.org; Mon, 29 Sep 2003 16:43:52 -0400
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A44rY-0007Jd-1e
	for classpath@gnu.org; Mon, 29 Sep 2003 16:43:20 -0400
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254])
	by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8TKhI104145
	for <classpath@gnu.org>; Mon, 29 Sep 2003 16:43:18 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8TKhIc28000
	for <classpath@gnu.org>; Mon, 29 Sep 2003 16:43:18 -0400
Received: from cuddles.cambridge.redhat.com
	(IDENT:2mxx7tzynzXu4ZsmJVCBfld0BIdbcgNg@vpn50-63.rdu.redhat.com
	[172.16.50.63])
	by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8TKhHTX006589; 
	Mon, 29 Sep 2003 16:43:18 -0400
Received: from cuddles.cambridge.redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	h8TKhFZs007949; Mon, 29 Sep 2003 21:43:16 +0100
Received: (from aph@localhost)
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8/Submit) id
	h8TKhEj1007945; Mon, 29 Sep 2003 21:43:14 +0100
From: Andrew Haley <aph@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16248.39266.816468.584856@cuddles.cambridge.redhat.com>
Date: Mon, 29 Sep 2003 21:43:14 +0100
To: Mark Wielaard <mark@klomp.org>
In-Reply-To: <1064866322.6268.73.camel@elsschot>
References: <1064866322.6268.73.camel@elsschot>
X-Mailer: VM 7.14 under Emacs 21.2.1
Cc: classpath@gnu.org
Subject: About stub methods
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 20:43:53 -0000

Mark Wielaard writes:

 > stub methods are a bad thing to have and should just be treated as
 > grave bugs.

 > Having those method because they allow people to compile against GNU
 > Classpath but not run against it really doesn't make much sense. Let
 > people fix either their code or help us implement the missing
 > functionality.
 > 
 > If you find such a method in the source please just remove it and file a
 > bug report about it (possibly with as bug message the partial
 > implementation).

Hey, hey.  I could not agree more.  I thought this would be a hard
thing for me to push, but it looks like I'd be pushing at an open
door.

No more stub methods!  A pox on them!

Andrew.



From MAILER-DAEMON Mon Sep 29 17:34:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A45fH-0003Ga-Ro
	for mharc-classpath@gnu.org; Mon, 29 Sep 2003 17:34:43 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A45fF-0003Fu-TZ
	for classpath@gnu.org; Mon, 29 Sep 2003 17:34:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A45ej-00037H-RW
	for classpath@gnu.org; Mon, 29 Sep 2003 17:34:40 -0400
Received: from [212.6.122.126] (helo=mail3.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A45ej-00037D-Bv
	for classpath@gnu.org; Mon, 29 Sep 2003 17:34:09 -0400
Received: from majestix.konqueror.de (dynadsl-080-228-80-176.ewetel.net
	[80.228.80.176])
	by mail3.ewetel.de (8.12.1/8.12.9) with ESMTP id h8TLXw2d028719;
	Mon, 29 Sep 2003 23:33:58 +0200 (MEST)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1A45eb-0006ZZ-00; Mon, 29 Sep 2003 23:34:01 +0200
From: Michael Koch <konqueror@gmx.de>
To: Andrew Haley <aph@redhat.com>, Mark Wielaard <mark@klomp.org>
Date: Mon, 29 Sep 2003 23:36:21 +0200
User-Agent: KMail/1.5.2
References: <1064866322.6268.73.camel@elsschot>
	<16248.39266.816468.584856@cuddles.cambridge.redhat.com>
In-Reply-To: <16248.39266.816468.584856@cuddles.cambridge.redhat.com>
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: <200309292336.21288.konqueror@gmx.de>
X-CheckCompat: OK
Cc: classpath@gnu.org
Subject: Re: About stub methods
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Sep 2003 21:34:42 -0000

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

Am Montag, 29. September 2003 22:43 schrieb Andrew Haley:
> Mark Wielaard writes:
>  > stub methods are a bad thing to have and should just be treated
>  > as grave bugs.
>  >
>  > Having those method because they allow people to compile against
>  > GNU Classpath but not run against it really doesn't make much
>  > sense. Let people fix either their code or help us implement the
>  > missing functionality.
>  >
>  > If you find such a method in the source please just remove it
>  > and file a bug report about it (possibly with as bug message the
>  > partial implementation).
>
> Hey, hey.  I could not agree more.  I thought this would be a hard
> thing for me to push, but it looks like I'd be pushing at an open
> door.
>
> No more stub methods!  A pox on them!

Wow, I would have never thought that somebody could share my thoughts.=20
In my beginnings of classpath and libgcj hacking I was a big fan of=20
stubbed methods. But now I see that much methods can be stubbed=20
easily and tools like japitools have a hard time to tell if the=20
method is implemented or just a stub.

I vote for no more stubs too.


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

iD8DBQE/eKXVWSOgCCdjSDsRAkCJAJ9OXs27uAjFuiHfe+ojSETDd+WwPwCdEIeI
muRpbxM4xz5UKVMjOZE5Cg8=3D
=3DXRyM
=2D----END PGP SIGNATURE-----




From MAILER-DAEMON Tue Sep 30 00:36:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A4CFp-00082x-Ku
	for mharc-classpath@gnu.org; Tue, 30 Sep 2003 00:36:53 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A4CFn-00082c-3U
	for classpath@gnu.org; Tue, 30 Sep 2003 00:36:51 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A4CFG-0007rs-5n
	for classpath@gnu.org; Tue, 30 Sep 2003 00:36:50 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A4CFF-0007gb-8l
	for classpath@gnu.org; Tue, 30 Sep 2003 00:36:17 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.10/8.12.10) with ESMTP id h8U4ZmsF019553;
	Tue, 30 Sep 2003 14:35:49 +1000 (EST)
Message-Id: <200309300435.h8U4ZmsF019553@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: Per Bothner <per@bothner.com>
In-Reply-To: Message from Per Bothner <per@bothner.com> 
	of "Mon, 29 Sep 2003 11:53:31 MST." <3F787FAB.9090303@bothner.com> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 30 Sep 2003 14:36:09 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: crawley@piglet.dstc.edu.au, classpath <classpath@gnu.org>,
	Jeroen Frijters <jeroen@sumatra.nl>
Subject: Re: NYIException 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2003 04:36:51 -0000

> Jeroen Frijters wrote:
> 
> > I'm certainly not throwing in the towel ;-) I think it should be an
> > error, but I can live with NYIException being an Exception, what I
> > cannot accept is (ab)using UnsupportedOperationException.
> 
> I still don't see any real problem with UnsupportedOperationException,
> but I don't care that much.

I also can't see anything wrong with using UnsupportedOperationException.
Could someone who thinks this would be abuse, please explain WHY they
think so ... preferably with supporting evidence from the Sun javadocs.

-- Steve




From MAILER-DAEMON Tue Sep 30 00:43:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A4CMV-00024r-RN
	for mharc-classpath@gnu.org; Tue, 30 Sep 2003 00:43:47 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A4CMS-00020O-ND
	for classpath@gnu.org; Tue, 30 Sep 2003 00:43:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A4CLw-0001BS-Bm
	for classpath@gnu.org; Tue, 30 Sep 2003 00:43:43 -0400
Received: from [130.102.176.1] (helo=piglet.dstc.edu.au)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A4CLv-00017O-AY
	for classpath@gnu.org; Tue, 30 Sep 2003 00:43:11 -0400
Received: from dstc.edu.au (credence.dstc.edu.au [130.102.177.137])
	by piglet.dstc.edu.au (8.12.10/8.12.10) with ESMTP id h8U4gnsF019952;
	Tue, 30 Sep 2003 14:42:49 +1000 (EST)
Message-Id: <200309300442.h8U4gnsF019952@piglet.dstc.edu.au>
X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4
To: Stephen Crawley <crawley@dstc.edu.au>
In-Reply-To: Message from Stephen Crawley <crawley@dstc.edu.au> of "Tue,
	30 Sep 2003 14:36:09 +1000."
	<200309300435.h8U4ZmsF019553@piglet.dstc.edu.au> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 30 Sep 2003 14:43:09 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
Cc: crawley@piglet.dstc.edu.au, Per Bothner <per@bothner.com>,
	classpath <classpath@gnu.org>, Jeroen Frijters <jeroen@sumatra.nl>
Subject: Re: NYIException 
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2003 04:43:45 -0000

> > Jeroen Frijters wrote:
> > 
> > > I'm certainly not throwing in the towel ;-) I think it should be an
> > > error, but I can live with NYIException being an Exception, what I
> > > cannot accept is (ab)using UnsupportedOperationException.
> > 
> > I still don't see any real problem with UnsupportedOperationException,
> > but I don't care that much.
> 
> I also can't see anything wrong with using UnsupportedOperationException.
> Could someone who thinks this would be abuse, please explain WHY they
> think so ... preferably with supporting evidence from the Sun javadocs.

Please forget I wrote this.  I'm happy for the discussion to die ... as
per Mark's email.

-- Steve




From MAILER-DAEMON Tue Sep 30 01:26:45 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A4D24-0005SW-8k
	for mharc-classpath@gnu.org; Tue, 30 Sep 2003 01:26:44 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A4D1w-0005Mv-3c
	for classpath@gnu.org; Tue, 30 Sep 2003 01:26:36 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A4D1O-0004SP-FW
	for classpath@gnu.org; Tue, 30 Sep 2003 01:26:33 -0400
Received: from [24.93.67.84] (helo=ms-smtp-03.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A4D1N-0004Qn-NA
	for classpath@gnu.org; Tue, 30 Sep 2003 01:26:01 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-03.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8U5Nhaw029833; Tue, 30 Sep 2003 01:23:43 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id E2CB9BE641; Tue, 30 Sep 2003 01:23:13 -0400 (EDT)
Sender: cbj@haphazard.org
To: Stuart Ballard <stuart.ballard@corp.fast.net>
References: <ED76F4C7-F071-11D7-ABDD-003065F97F7C@mckinlay.net.nz>
	<3F784864.6030103@corp.fast.net>
From: Brian Jones <cbj@gnu.org>
Date: 30 Sep 2003 01:23:13 -0400
In-Reply-To: <3F784864.6030103@corp.fast.net>
Message-ID: <m3lls6vohq.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: GNU Classpath <classpath@gnu.org>, Bryce McKinlay <bryce@mckinlay.net.nz>
Subject: Re: [really patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2003 05:26:42 -0000

Stuart Ballard <stuart.ballard@corp.fast.net> writes:

> Bryce McKinlay wrote:
> > size() is used here because, obviously, it is generally more
> > efficient to call it once rather than calling hasNext() many
> > times. I believe that the current implementation is within spec
> > according to the collections documentation. If your collections are
> > returning an inaccurate size() then I'd argue they are not valid
> > implementations of Map.
> 
> Sure: as I noted, my argument is that Sun's implementation can handle
> such invalid implementations of Map, so people might rely on it, as I
> did.

Before we've said we preferred correctness over optimization every
time and it is well known that optimizing too early can reduce the
effectiveness of certain JVM implementations that will do it for you.
Perhaps using an Iterator and hasNext() with no reliance on size() is
better all around and just leave optimization to the VM?

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



From MAILER-DAEMON Tue Sep 30 01:34:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A4D97-0007LT-3m
	for mharc-classpath@gnu.org; Tue, 30 Sep 2003 01:34:01 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A4D94-0007Kl-RQ
	for classpath@gnu.org; Tue, 30 Sep 2003 01:33:58 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A4D8Y-0007Bq-In
	for classpath@gnu.org; Tue, 30 Sep 2003 01:33:57 -0400
Received: from [24.93.67.82] (helo=ms-smtp-01.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A4D8Y-0007Ak-1z
	for classpath@gnu.org; Tue, 30 Sep 2003 01:33:26 -0400
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-01.southeast.rr.com (8.12.5/8.12.2) with ESMTP id
	h8U5PnA7011623; Tue, 30 Sep 2003 01:25:50 -0400 (EDT)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id B9CA2BE641; Tue, 30 Sep 2003 01:30:42 -0400 (EDT)
Sender: cbj@haphazard.org
To: Mark Wielaard <mark@klomp.org>
References: <1064866322.6268.73.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 30 Sep 2003 01:30:42 -0400
In-Reply-To: <1064866322.6268.73.camel@elsschot>
Message-ID: <m3he2uvo59.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: About stub methods
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2003 05:33:59 -0000

Mark Wielaard <mark@klomp.org> writes:

> If you find such a method in the source please just remove it and file a
> bug report about it (possibly with as bug message the partial
> implementation). 

Please leave the stub methods in java.awt.peer.*/gnu.java.awt/peer.*,
thanks.  Feel free to make them do whatever you'd like.  :)

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



From MAILER-DAEMON Tue Sep 30 05:05:15 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A4GRW-0000OE-RD
	for mharc-classpath@gnu.org; Tue, 30 Sep 2003 05:05:14 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A4GRU-0000Nt-BR
	for classpath@gnu.org; Tue, 30 Sep 2003 05:05:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A4GQy-0000Jx-9L
	for classpath@gnu.org; Tue, 30 Sep 2003 05:05:11 -0400
Received: from [212.227.126.188] (helo=moutng.kundenserver.de)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A4GQx-0000Js-PC
	for classpath@gnu.org; Tue, 30 Sep 2003 05:04:39 -0400
Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de)
	by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
	id 1A4GQu-0003iE-00; Tue, 30 Sep 2003 11:04:36 +0200
Received: from [212.126.196.45] (helo=aicas.com)
	by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128)
	(Exim 3.35 #1) id 1A4GQu-0003Rq-00; Tue, 30 Sep 2003 11:04:36 +0200
Message-ID: <3F794724.7000708@aicas.com>
Date: Tue, 30 Sep 2003 11:04:36 +0200
From: =?ISO-8859-1?Q?Ingo_Pr=F6tel?= <proetel@aicas.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
References: <1064866322.6268.73.camel@elsschot>
In-Reply-To: <1064866322.6268.73.camel@elsschot>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org
Subject: Re: About stub methods
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2003 09:05:13 -0000

Hi Mark,

this sounds like a good solution. And since I started this whole thing I 
will start going through the code and look for not or partly implemented 
methods.

And many thanks for stopping this dicussion.

--ingo

PS: obviously a bike shed on green grass should be grass green ;-)





Mark Wielaard wrote:
> Hi,
> 
> Please Stop arguing about how the framework for handling unimplemented
> classes and stub methods should work. I know it is the ideal "What color
> should the Bike Shed have" discussion (*), but stub methods are a bad
> thing to have and should just be treated as grave bugs.
> 
> Having those method because they allow people to compile against GNU
> Classpath but not run against it really doesn't make much sense. Let
> people fix either their code or help us implement the missing
> functionality.
> 
> If you find such a method in the source please just remove it and file a
> bug report about it (possibly with as bug message the partial
> implementation). Or better just implement it! If there really is a
> strong reason to have that particular method as a stub method then we
> should do that in the simplest possible way that makes it easy to
> quickly find those methods in the source. That means that it should be
> some standard string that people can easily grep for all on one line.
> 
> Note that as said above making things compile, but not run with GNU
> Classpath is not a strong reason. So you should really be able to point
> to a free software program written in java that would just need one
> little stub method to be completely usable with GNU Classpath to justify
> having something as a stub method.
> 
> The first person to actually volunteer to go through more then a handful
> of classes to remove (silent) stub methods gets to decide what the
> actual "Not Implemented" line says (and whether it is an Exception or an
> Error, an existing class or a new class). Who actually want to do this
> work?
> 
> And if whole classes or packages are stubby then we are better off just
> removing them or at least add them to the lib/standard.omit file so they
> won't appear in our release till we can offer real functionality for
> them.
> 
> Thanks,
> 
> Mark
> 
> (*)
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html#BIKESHED-PAINTING
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath




From MAILER-DAEMON Tue Sep 30 07:36:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A4Io7-0006LU-3l
	for mharc-classpath@gnu.org; Tue, 30 Sep 2003 07:36:43 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A4Inx-0006JU-UB
	for classpath@gnu.org; Tue, 30 Sep 2003 07:36:33 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A4InR-00068r-4G
	for classpath@gnu.org; Tue, 30 Sep 2003 07:36:32 -0400
Received: from [139.165.32.78] (helo=serv09.segi.ulg.ac.be)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A4Icm-0004Jj-7C
	for classpath@gnu.org; Tue, 30 Sep 2003 07:25:00 -0400
Received: (qmail 9407 invoked by uid 504); 30 Sep 2003 13:24:57 +0200
Received: from arnaud.vandyck@ulg.ac.be by serv09.segi.ulg.ac.be by uid 501
	with qmail-scanner-1.16 
	(clamscan: 0.60. spamassassin: 2.55.  Clear:. 
	Processed in 0.34413 secs); 30 Sep 2003 11:24:57 -0000
Received: from unknown (HELO localhost) ([139.165.77.48])
	(envelope-sender <arnaud.vandyck@ulg.ac.be>)
	by serv09.segi.ulg.ac.be (qmail-ldap-1.03) with SMTP
	for <classpath@gnu.org>; 30 Sep 2003 13:24:57 +0200
Date: Tue, 30 Sep 2003 13:24:56 +0200 (CEST)
Message-Id: <20030930.132456.124447497.arnaud.vandyck@ulg.ac.be>
To: classpath@gnu.org
From: Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
Organization: STE-Formations Informatiques, ULg
X-Fingerprint: 82F3 45D0 F1B2 D79E D0BE  5188 E2FC C566 EEB6 B4C2
X-URL: http://vbstefi60.fapse.ulg.ac.be/~arnaud/
X-Face: ".{A?<Dzy|V1IPZL0O-B-~G{n+`j%t7K$Y`:u[w54'>P>_0mS1E$Wn4RK&CR)_yvw`),0&;
	?-]upzJvA]->#pP:$si]X039T'Qrd}9t=!EstonSVE1F$dtgGsRC"lyQnP+H6/g:f^d:,0@)P#xCy9?MmW[8n{8B75hA_=]O7TRZ~r9SE6CL*xpR8k4'~!5B8"|u
X-Mailer: Mew version 4.0.58 on Emacs 21.3 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: Bug reports
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2003 11:36:35 -0000

Hi! 

I don't know Savannah's bug system that much, can someone explain me: 

- why are bugs 744 and 750 duplicated? 

- it seems like 744 is resolved, why not close?

- why are some bugs duplicated? 

Cheers,

-- Arnaud Vandyck, STE fi, ULg
   Formateur Cellule Programmation.



From MAILER-DAEMON Tue Sep 30 10:18:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A4LL6-00087u-7s
	for mharc-classpath@gnu.org; Tue, 30 Sep 2003 10:18:56 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A4LL3-00087E-IL
	for classpath@gnu.org; Tue, 30 Sep 2003 10:18:53 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A4LKX-0007xs-5f
	for classpath@gnu.org; Tue, 30 Sep 2003 10:18:52 -0400
Received: from [193.74.71.21] (helo=xizor.is.kpn.be)
	by monty-python.gnu.org with esmtp (Exim 4.22) id 1A4LKW-0007wo-Bp
	for classpath@gnu.org; Tue, 30 Sep 2003 10:18:20 -0400
Received: from (eudslpro-213-49-17-120.antwerp.kpn.be [213.49.17.120]) 
	by xizor.is.kpn.be  with SMTP id h8UEIFR15376; 
	Tue, 30 Sep 2003 16:18:15 +0200
Message-Id: <200309301418.h8UEIFR15376@xizor.is.kpn.be>
Content-Type: text/plain;
  charset="iso-8859-1"
From: Chris Gray <chris@kiffer.eunet.be>
To: Ingo =?iso-8859-1?q?Pr=F6tel?= <proetel@aicas.com>,
	Mark Wielaard <mark@klomp.org>
Date: Tue, 30 Sep 2003 16:18:56 +0200
X-Mailer: KMail [version 1.3]
References: <1064866322.6268.73.camel@elsschot> <3F794724.7000708@aicas.com>
In-Reply-To: <3F794724.7000708@aicas.com>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by xizor.is.kpn.be id
	h8UEIFR15376
Cc: classpath@gnu.org
Subject: Re: About stub methods
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2003 14:18:54 -0000

On Tuesday 30 September 2003 11:04, Ingo Pr=F6tel wrote:

> PS: obviously a bike shed on green grass should be grass green ;-)

Isn't that a violation of grass semantics? And hoe are we supposed to tel=
l=20
the difference between a bike which leaning against the shed and one whic=
h=20
has fallen on the ground? <GD&R>

--=20
Chris Gray                                /k/ Embedded Java Solutions
Embedded & Mobile Java, OSGi              http://www.kiffer.be/k/
chris.gray@kiffer.be                      +32 477 599 703



From MAILER-DAEMON Tue Sep 30 15:06:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.22)
	id 1A4PpT-0004s7-RU
	for mharc-classpath@gnu.org; Tue, 30 Sep 2003 15:06:35 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22)
	id 1A4PpR-0004rE-7M
	for classpath@gnu.org; Tue, 30 Sep 2003 15:06:33 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22)
	id 1A4Pao-0002E0-9Z
	for classpath@gnu.org; Tue, 30 Sep 2003 14:51:57 -0400
Received: from [209.92.1.31] (helo=newmx1.fast.net)
	by monty-python.gnu.org with smtp (Exim 4.22) id 1A4PCl-0005Wi-DN
	for classpath@gnu.org; Tue, 30 Sep 2003 14:26:35 -0400
Received: (qmail 4558 invoked from network); 30 Sep 2003 18:26:33 -0000
Received: from unknown (HELO corp.fast.net) ([209.152.221.64])
	(envelope-sender <stuart.ballard@corp.fast.net>)
	by newmx1.fast.net (qmail-ldap-1.03) with SMTP
	for <cbj@gnu.org>; 30 Sep 2003 18:26:33 -0000
Message-ID: <3F79CAD8.6080800@corp.fast.net>
Date: Tue, 30 Sep 2003 14:26:32 -0400
From: Stuart Ballard <stuart.ballard@corp.fast.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.3.1) Gecko/20030527 Debian/1.3.1-2
X-Accept-Language: en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
References: <ED76F4C7-F071-11D7-ABDD-003065F97F7C@mckinlay.net.nz>	<3F784864.6030103@corp.fast.net>
	<m3lls6vohq.fsf@lyta.haphazard.org>
In-Reply-To: <m3lls6vohq.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: GNU Classpath <classpath@gnu.org>, Bryce McKinlay <bryce@mckinlay.net.nz>
Subject: Re: [really patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2003 19:06:34 -0000

Brian Jones wrote:
> Before we've said we preferred correctness over optimization every
> time and it is well known that optimizing too early can reduce the
> effectiveness of certain JVM implementations that will do it for you.
> Perhaps using an Iterator and hasNext() with no reliance on size() is
> better all around and just leave optimization to the VM?

I agree with this general sentiment (of course - it's the one I've been 
arguing for :) )

I do think that certain optimizations are worthwhile and can't be done 
by the VM - for example preallocating the "probably-right" size of array 
in Vector and ArrayList rather than repeatedly growing it as necessary. 
I don't think we should just blindly remove all optimization. But I do 
think that the use of size() as an optimization over hasNext() is taking 
optimization too far - especially as there's no guarantee that size() 
really is faster for all collections.

Stuart.

-- 
Stuart Ballard, Senior Web Developer
FASTNET - Web Solutions
(215) 283-2300, ext. 126
www.fast.net




From MAILER-DAEMON Tue Sep 30 19:24:38 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1A4TrB-0000Ho-Lh
	for mharc-classpath@gnu.org; Tue, 30 Sep 2003 19:24:37 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1A4Tr8-0000GR-0I
	for classpath@gnu.org; Tue, 30 Sep 2003 19:24:34 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1A4Tqb-0000D5-DD
	for classpath@gnu.org; Tue, 30 Sep 2003 19:24:32 -0400
Received: from [210.55.57.198] (helo=server.flinders.co.nz)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1A4Tqa-0000Cx-G9
	for classpath@gnu.org; Tue, 30 Sep 2003 19:24:00 -0400
Received: from [192.168.0.191] by server.flinders.co.nz (AppleMailServer
	10.2.3.0) id 71201 via TCP with SMTP; Wed, 01 Oct 2003 11:32:19 +1200
Date: Wed, 1 Oct 2003 11:27:29 +1200
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v552)
To: Stuart Ballard <stuart.ballard@corp.fast.net>
From: Bryce McKinlay <bryce@mckinlay.net.nz>
In-Reply-To: <3F784864.6030103@corp.fast.net>
Message-Id: <A852AE70-F39D-11D7-A57E-003065F97F7C@mckinlay.net.nz>
Content-Transfer-Encoding: 7bit
X-Mailer: Apple Mail (2.552)
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: [really patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2003 23:24:35 -0000

On Tuesday, Sep 30, 2003, at 02:57 Pacific/Auckland, Stuart Ballard 
wrote:

> Furthermore, I'd argue that the very existence of a hasNext() method 
> suggests that Sun didn't intend people to make this "optimization". If 
> they expected that calling size() and maintaining your own counter 
> would always be more efficient, why didn't they just leave hasNext() 
> out and recommend coding that way?

  "while (list.hasNext())" is there because its a nicer style for many 
situations, it makes your code simpler and less error-prone compared to 
using a for loop based on size. However, its existence doesn't mean 
that size() shouldn't work! IMO you should implement size() correctly 
in your code, it is not specified how putAll() etc work and there is no 
guarantee that Sun won't change their implementation in a future 
release of the JRE!

> Note too that our current implementations leave the collections in an 
> invalid state if next() causes a ConcurrentModificationException (or 
> other RuntimeException) part way through, because they set the size 
> variable in advance without waiting to ensure that all those elements 
> could in fact be added. It would be possible to fix this problem 
> without using hasNext(), and even if my patch isn't accepted I still 
> think we should at least fix that.

Yeah, those should probably be cleaned up. In general it should be 
assumed that everything is invalid if you get 
ConcurrentModificationException, but its good to be defensive.

>> Of course, if there are real applications out there that rely on the 
>> way Sun implements it, then we may have to change to using hasNext(). 
>> But we should consider this carefully. If we must change it, then the 
>> addAll/putAll implementations should change throughout the 
>> collections classes for consistency - not just HashMap/Hashtable. As 
>> you noticed, in some cases this could make things significantly less 
>> efficient.
>
> I think it's perfectly possible to implement all our collections to 
> give the correct behavior without making things less efficient in the 
> case where size() is correct - at least, the only difference should be 
> the cost of repeated calls to hasNext() versus a single call to 
> size(), and the cost of hasNext() should *always* be small enough that 
> that difference falls into the realm of micro-optimization.

The optimization in using size comes simply from the reduction in 
method calls. Its true that some very smart JITs may be able to compile 
special copies of the method with the virtual calls to the iterator 
inlined where they see, for example, many putAll calls with iterator 
arguments of a certain class, but in general, if you add an extra 
method call into a loop, its going to make the code slower. But, you're 
quite right, we are talking about micro-optimization here.

> The example I gave was ArrayList: the optimization is to pre-allocate 
> space for size() worth of elements using ensureCapacity(), and then 
> copy elements directly into the backing array. It would be perfectly 
> possible to implement it something like this, which optimizes for when 
> size() is correct but is robust if it's not:

I don't think is quite as simple as that. Consider the case of an 
addAll() with an index < size. The current implementation moves 
existing elements out of the way based on size(). If size() doesn't 
equal the actual number of elements returned, your going to have to 
make sure not to overrun existing elements and/or do fixups afterwards. 
Does Sun's implementation of addAll() really not call size()?

However, having said all this, the argument for compatibility with 
Sun's implementation is somewhat compelling (even though only poorly 
written applications would suffer from this problem, IMO!) . I don't 
really object to this change, at least if we can come up with good 
solutions for things like the addAll() problem.

Regards

Bryce.





From MAILER-DAEMON Tue Sep 30 19:26:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1A4TsY-0000cK-Nn
	for mharc-classpath@gnu.org; Tue, 30 Sep 2003 19:26:02 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1A4TsV-0000bR-N2
	for classpath@gnu.org; Tue, 30 Sep 2003 19:25:59 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1A4Trz-0000Vg-GT
	for classpath@gnu.org; Tue, 30 Sep 2003 19:25:58 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1A4Try-0000UE-Et
	for classpath@gnu.org; Tue, 30 Sep 2003 19:25:26 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8UNLVhO073745;
	Wed, 1 Oct 2003 09:21:32 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "Arnaud Vandyck" <arnaud.vandyck@ulg.ac.be>
Date: Wed, 1 Oct 2003 09:22:12 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCIEMDDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
In-Reply-To: <20030930.132456.124447497.arnaud.vandyck@ulg.ac.be>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
Cc: classpath <classpath@gnu.org>
Subject: RE: Bug reports
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2003 23:26:00 -0000

> - why are some bugs duplicated?

Because the bug system is buggy. It is very easy to use your browser
"back" button and unknowingly resubmit a bug report.

David Holmes




From MAILER-DAEMON Tue Sep 30 19:51:17 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1A4UGx-0008Ln-Nj
	for mharc-classpath@gnu.org; Tue, 30 Sep 2003 19:51:15 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1A4UGv-0008LM-7s
	for classpath@gnu.org; Tue, 30 Sep 2003 19:51:13 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1A4UGO-0008Dl-MV
	for classpath@gnu.org; Tue, 30 Sep 2003 19:51:11 -0400
Received: from [203.12.22.20] (helo=power.connexus.net.au)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1A4UGN-0008CK-Jc
	for classpath@gnu.org; Tue, 30 Sep 2003 19:50:39 -0400
Received: from dholmeslaptop (dholmes.dltech.com.au [203.222.72.2])
	by power.connexus.net.au (8.12.4/8.11.6) with SMTP id h8UNlshO000350
	for <classpath@gnu.org>; Wed, 1 Oct 2003 09:47:55 +1000 (EST)
	(envelope-from dholmes@dltech.com.au)
XAntiVirus: This e-mail has been scanned for viruses via the Connexus Internet
	Service
From: "David Holmes" <dholmes@dltech.com.au>
To: "classpath" <classpath@gnu.org>
Date: Wed, 1 Oct 2003 09:48:36 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCAEMFDHAA.dholmes@dltech.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
In-Reply-To: <A852AE70-F39D-11D7-A57E-003065F97F7C@mckinlay.net.nz>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
Subject: RE: [really patch] Re: HashMap putAll/putAllInternal bug
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Discussion of the implemenation of the core Java class libraries
	<classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2003 23:51:13 -0000

I don't know the details of this bug, but I'll make the following
observations:

- any class that extends AbstractCollection and does not override the
methods defined there, must provide valid implementations for size()
and an iterator.

- any class that can't/doesn't want to provide a version of size()
that is accurate, must document that fact and implement all methods it
inherits that would otherwise rely on size() being accurate. Finding
out where size() is used will probably require looking at the source
for your parent classes.

David Holmes




