From MAILER-DAEMON Mon Dec 01 05:25:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AQlEm-0005ik-Fe
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 05:25:04 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AQlEj-0005hx-Hb
	for classpath@gnu.org; Mon, 01 Dec 2003 05:25:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AQlED-0005Zd-NJ
	for classpath@gnu.org; Mon, 01 Dec 2003 05:25:00 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQlEC-0005Y8-TL
	for classpath@gnu.org; Mon, 01 Dec 2003 05:24:29 -0500
Received: from yahoo.es ([80.25.157.178]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HP7M4Z00.DT8 for <classpath@gnu.org>; Mon, 1 Dec 2003
	10:24:35 +0100 
Message-ID: <3FCB0819.1000906@yahoo.es>
Date: Mon, 01 Dec 2003 10:21:29 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: ClassPath List <classpath@gnu.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Trouble compiling 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: Mon, 01 Dec 2003 10:25:02 -0000

Hi all, i am having problems compiling the CVS sources
i try "aclocal;autoheader;autoconf;automake" getting
one error on the automake.
   
    lib/Makefile.am:77: invalid variable `dist_pkgdata_DATA'

When i configure, make and make install i get the following error
on the last step:

    niebla@Delirio:~/WORK/classpath$ make install
    Making install in lib
    make[1]: Entering directory `/home/niebla/WORK/classpath/lib'
    top_builddir=.. /bin/sh ./gen-classlist.sh standard
    make[2]: Entering directory `/home/niebla/WORK/classpath/lib'
    top_builddir=.. /bin/sh ./gen-classlist.sh standard
    make[2]: No se hace nada para `install-exec-am'.
    ../mkinstalldirs /home/niebla/classpath/share/
-> if ! [ -e glibj.zip ]; then cp -R gnu /home/niebla/classpath/share/; fi
    cp: no se puede efectuar `stat' sobre `gnu': No existe el fichero o 
el directorio
    make[2]: *** [install-data-local] Error 1
    make[2]: Leaving directory `/home/niebla/WORK/classpath/lib'
    make[1]: *** [install-am] Error 2
    make[1]: Leaving directory `/home/niebla/WORK/classpath/lib'
    make: *** [install-recursive] Error 1

Make tries to copy gnu from inside lib dir and its on the $(top_builddir) 
is this correct ??? Sorry if it sounds stupid.... ;-)






From MAILER-DAEMON Mon Dec 01 05:36:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AQlPz-0003Xa-1j
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 05:36:39 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AQlPv-0003Vg-7p
	for classpath@gnu.org; Mon, 01 Dec 2003 05:36:35 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AQlPN-00034j-Cn
	for classpath@gnu.org; Mon, 01 Dec 2003 05:36:32 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AQlPN-00034d-5y
	for classpath@gnu.org; Mon, 01 Dec 2003 05:36:01 -0500
Received: from [212.6.122.116] (helo=mail2.ewetel.de)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AQkR6-0004Jb-DZ
	for classpath@gnu.org; Mon, 01 Dec 2003 04:33:44 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-81-027.ewetel.net
	[80.228.81.27])
	by mail2.ewetel.de (8.12.1/8.12.9) with ESMTP id hB19Xb6J005068;
	Mon, 1 Dec 2003 10:33:38 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1AQkS0-0007Gv-00; Mon, 01 Dec 2003 10:34:40 +0100
Date: Mon, 1 Dec 2003 10:34:40 +0100
From: Michael Koch <konqueror@gmx.de>
To: Victor Niebla <niebla_negra@yahoo.es>
Message-ID: <20031201093440.GA27285@mail.konqueror.de>
References: <3FCB0819.1000906@yahoo.es>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3FCB0819.1000906@yahoo.es>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: ClassPath List <classpath@gnu.org>
Subject: Re: Trouble compiling 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: Mon, 01 Dec 2003 10:36:36 -0000

On Mon, Dec 01, 2003 at 10:21:29AM +0100, Victor Niebla wrote:
> Hi all, i am having problems compiling the CVS sources
> i try "aclocal;autoheader;autoconf;automake" getting
> one error on the automake.
>   
>    lib/Makefile.am:77: invalid variable `dist_pkgdata_DATA'

What versions of autoconf/automake are you using ?


Michael



From MAILER-DAEMON Mon Dec 01 05:38:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AQlRL-0003wv-I2
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 05:38:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AQlRI-0003w5-DG
	for classpath@gnu.org; Mon, 01 Dec 2003 05:38:00 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AQlQk-0003nH-Rj
	for classpath@gnu.org; Mon, 01 Dec 2003 05:37:59 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQlQe-0003ir-TJ
	for classpath@gnu.org; Mon, 01 Dec 2003 05:37:26 -0500
Received: from yahoo.es ([80.25.157.178]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HP7MQ100.DTE; Mon, 1 Dec 2003 10:37:13 +0100 
Message-ID: <3FCB0B00.6010604@yahoo.es>
Date: Mon, 01 Dec 2003 10:33:52 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: Michael Koch <konqueror@gmx.de>
References: <3FCB0819.1000906@yahoo.es>
	<20031201093440.GA27285@mail.konqueror.de>
In-Reply-To: <20031201093440.GA27285@mail.konqueror.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: ClassPath List <classpath@gnu.org>
Subject: Re: Trouble compiling 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: Mon, 01 Dec 2003 10:38:01 -0000

Michael Koch wrote:

>On Mon, Dec 01, 2003 at 10:21:29AM +0100, Victor Niebla wrote:
>  
>
>>Hi all, i am having problems compiling the CVS sources
>>i try "aclocal;autoheader;autoconf;automake" getting
>>one error on the automake.
>>  
>>   lib/Makefile.am:77: invalid variable `dist_pkgdata_DATA'
>>    
>>
>
>What versions of autoconf/automake are you using ?
>
>
>Michael
>
>  
>
Sorry i forgot to post it.

Automake 1.4-p6
Autoconf 2.58

-- 
"From green to red our days pass by
 Waiting for a sign to tell us why
 Are we dancing all alone?"

In Flames -> Trigger





From MAILER-DAEMON Mon Dec 01 05:41:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AQlUs-0004bL-JK
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 05:41:42 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AQlUq-0004bC-JR
	for classpath@gnu.org; Mon, 01 Dec 2003 05:41:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AQlUK-0004T1-Ie
	for classpath@gnu.org; Mon, 01 Dec 2003 05:41:39 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQlUI-0004R2-Ba
	for classpath@gnu.org; Mon, 01 Dec 2003 05:41:08 -0500
Received: from yahoo.es ([80.25.157.178]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HP7MWK00.JTU for <classpath@gnu.org>; Mon, 1 Dec 2003
	10:41:08 +0100 
Message-ID: <3FCB0BF2.6000200@yahoo.es>
Date: Mon, 01 Dec 2003 10:37:54 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: ClassPath List <classpath@gnu.org>
References: <3FCB0819.1000906@yahoo.es>
	<20031201093440.GA27285@mail.konqueror.de>
In-Reply-To: <20031201093440.GA27285@mail.konqueror.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: Trouble compiling 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: Mon, 01 Dec 2003 10:41:41 -0000

Sorry for make you loose your time i have updated automake to 1.7




From MAILER-DAEMON Mon Dec 01 05:45:16 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AQlYK-0005b1-H8
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 05:45:16 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AQlYH-0005ZN-4H
	for classpath@gnu.org; Mon, 01 Dec 2003 05:45:13 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AQlXk-0005QC-6R
	for classpath@gnu.org; Mon, 01 Dec 2003 05:45:11 -0500
Received: from [212.6.122.141] (helo=mail4.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQlXj-0005Pt-OD
	for classpath@gnu.org; Mon, 01 Dec 2003 05:44:39 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-81-027.ewetel.net
	[80.228.81.27])
	by mail4.ewetel.de (8.12.1/8.12.9) with ESMTP id hB19h4iR005546;
	Mon, 1 Dec 2003 10:43:04 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1AQkb9-0007II-00; Mon, 01 Dec 2003 10:44:07 +0100
Date: Mon, 1 Dec 2003 10:44:07 +0100
From: Michael Koch <konqueror@gmx.de>
To: Victor Niebla <niebla_negra@yahoo.es>
Message-ID: <20031201094407.GB27285@mail.konqueror.de>
References: <3FCB0819.1000906@yahoo.es>
	<20031201093440.GA27285@mail.konqueror.de>
	<3FCB0B00.6010604@yahoo.es>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3FCB0B00.6010604@yahoo.es>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: ClassPath List <classpath@gnu.org>, Michael Koch <konqueror@gmx.de>
Subject: Re: Trouble compiling 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: Mon, 01 Dec 2003 10:45:14 -0000

On Mon, Dec 01, 2003 at 10:33:52AM +0100, Victor Niebla wrote:

> Sorry i forgot to post it.
> 
> Automake 1.4-p6
 Thats a bit old. Use at least Automake 1.6.x or better Automake-1.7.x
 
> Autoconf 2.58


Michael



From MAILER-DAEMON Mon Dec 01 05:50:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AQldJ-0001Eq-49
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 05:50:25 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AQld6-0000y7-PP
	for classpath@gnu.org; Mon, 01 Dec 2003 05:50:12 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AQlcT-0008OL-5l
	for classpath@gnu.org; Mon, 01 Dec 2003 05:50:04 -0500
Received: from [212.6.122.141] (helo=mail4.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQlcJ-000857-Ve
	for classpath@gnu.org; Mon, 01 Dec 2003 05:49:24 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-81-027.ewetel.net
	[80.228.81.27])
	by mail4.ewetel.de (8.12.1/8.12.9) with ESMTP id hB19luiR007390;
	Mon, 1 Dec 2003 10:47:57 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1AQkfr-0007JU-00; Mon, 01 Dec 2003 10:48:59 +0100
Date: Mon, 1 Dec 2003 10:48:59 +0100
From: Michael Koch <konqueror@gmx.de>
To: Victor Niebla <niebla_negra@yahoo.es>
Message-ID: <20031201094859.GC27285@mail.konqueror.de>
References: <3FCB0819.1000906@yahoo.es>
	<20031201093440.GA27285@mail.konqueror.de>
	<3FCB0BF2.6000200@yahoo.es>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3FCB0BF2.6000200@yahoo.es>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: ClassPath List <classpath@gnu.org>
Subject: Re: Trouble compiling 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: Mon, 01 Dec 2003 10:50:23 -0000

On Mon, Dec 01, 2003 at 10:37:54AM +0100, Victor Niebla wrote:
> Sorry for make you loose your time i have updated automake to 1.7

No problem. Thanx for playing with GNU classpath. ;-)


Michael



From MAILER-DAEMON Mon Dec 01 08:13:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AQnj0-0002d1-M7
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 08:04:26 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AQnXP-0001DS-BV
	for classpath@gnu.org; Mon, 01 Dec 2003 07:52:27 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AQnOT-0000NF-9C
	for classpath@gnu.org; Mon, 01 Dec 2003 07:43:45 -0500
Received: from [213.49.17.120] (helo=pigsty.cats.cradle)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AQn32-0006V3-NQ
	for classpath@gnu.org; Mon, 01 Dec 2003 07:21:05 -0500
Received: from there (localhost.cats.cradle [127.0.0.1])
	by pigsty.cats.cradle (8.12.6/8.11.6) with SMTP id hB1BKiSX043311;
	Mon, 1 Dec 2003 12:20:45 +0100 (CET)
	(envelope-from chris@kiffer.eunet.be)
Message-Id: <200312011120.hB1BKiSX043311@pigsty.cats.cradle>
Content-Type: text/plain;
  charset="iso-8859-1"
From: Chris Gray <chris@kiffer.eunet.be>
To: Mark Wielaard <mark@klomp.org>, Dalibor Topic <robilad@kaffe.org>
Date: Mon, 1 Dec 2003 12:20:44 +0100
X-Mailer: KMail [version 1.3]
References: <20031129.134813.123657481.arnaud.vandyck@ulg.ac.be>
	<3FCA3F5C.6080806@kaffe.org>
	<1070226441.2377.200.camel@elsschot.wildebeest.org>
In-Reply-To: <1070226441.2377.200.camel@elsschot.wildebeest.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Cc: classpath@gnu.org
Subject: Re: Revolution Action (was: Re: [Little Off Topic] Revolution is on
	; ))
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 Dec 2003 13:04:25 -0000

On Sunday 30 November 2003 22:07, Mark Wielaard wrote:
> 
> [...]
>
> last week I did email info@fosdem.org as the contact page says, to see
> if we could get a developer room, but I didn't hear back from them yet.
> But if Chris knows one of the organizers that might be a better way to
> contact them.

I wrote to my contact as follows:

CG> I understand that  Tom Tromey is already scheduled to do a talk on gcj at 
CG> Fosdem 2004.  There is also considerable interest from the rest of the 
open 
CG> source Java community, certainly enough to justify a BOF and IMO probably 
CG> enough to justify a "lightweight thread" of some kind - e.g. a sub-block 
CG> within the embedded space. For example we could have short presentations 
from 
CG> some of the open source Java projects Out There (Classpath, ikvm, jaos, 
CG> kaffe, wonka...) and some kind of discussion of the burning issues wrt 
Java 
CG> and open source (JCP, JCK, SCSL).  I'd be willing to act as organiser.

and he replied that he'd forward this to the Program Comittee with a 
recommendation that they accept it.  (Sorry for forgetting SableVM, I won't 
do it again Etienne ...)  If people have other ideas then I'm sure we can 
work them out with the Program Comittee once the basic idea has been accepted.

> How many people want to attend (Brussels, Belgium, the weekend of 21-22
> February 2004)? If I followed the messages and irc discussions correctly
> then Arnaud, Chris, Tom, Dalibor, Stephane, Michael and myself will be
> there at least.

Haven't heard from Jeroen recently ... I know someone who's doing research 
using Jikes RVM, maybe we could find someone from that group too.

Best wishes

-- 
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 Mon Dec 01 15:16:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AQuT7-0002Va-8r
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 15:16:29 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AQuT3-0002Us-KV
	for classpath@gnu.org; Mon, 01 Dec 2003 15:16:25 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AQuSW-0002Q8-3a
	for classpath@gnu.org; Mon, 01 Dec 2003 15:16:23 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQuSV-0002PW-Fn
	for classpath@gnu.org; Mon, 01 Dec 2003 15:15:51 -0500
Received: from yahoo.es ([81.33.55.141]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HP8DIF00.SXH for <classpath@gnu.org>; Mon, 1 Dec 2003
	20:15:51 +0100 
Message-ID: <3FCB9286.7090401@yahoo.es>
Date: Mon, 01 Dec 2003 20:12:06 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: GNU Classpath <classpath@gnu.org>
References: <3FB673C1.6010206@kaffe.org>		<1068933449.925.530.camel@elsschot.wildebeest.org>		<3FBA7364.9060206@kaffe.org>		<1069190892.1745.23.camel@elsschot.wildebeest.org>		<3FBAC3ED.1010904@kaffe.org>		<1069266136.2856.42.camel@elsschot.wildebeest.org>		<3FC11B25.50205@kaffe.org>	<1069789112.1298.22.camel@localhost>	<3FC8ED6C.1060107@kaffe.org>
	<3FC8F6C1.5060703@uqam.ca>	<3FCA1A05.6070808@kaffe.org>
	<3FCA2DAA.2@uqam.ca> <3FCA3502.9080104@kaffe.org>
In-Reply-To: <3FCA3502.9080104@kaffe.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: 3d attempt at Re: The right way(tm) of writing toString() (Was:
 Re: [PATCH] Field position attribute handling)
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 Dec 2003 20:16:26 -0000

Hi all

> Salut Etienne,
>
> Etienne Gagnon wrote:
>
>> Hi Dalibor,
>>
>> I would drop h) altogether.
>
>
>
> O.K.,o.k., so be it.
>
>> Rationale: while a "naive" Java compiler would produce a series of iload
>> instructions, for reusing a local variable, an optimizing compiler or 
>> a jit
>> would completely remove this.  So, yes, the code that reuse a local 
>> could be
>> a little slower on a interpreter (I am sure that on sablevm this 
>> would be
>> negligible as iload is a very cheap operation), but good software 
>> engineering
>> is the goal here.
>
>
>
> Here's the latest version:
>
> a) toString output should begin with the name of the class
>
>   Rationale: When a field is declared as having an interface type, or 
> a non-final class, it is useful to know the exact type of the instance.
>
I have noticed this is not true on Sun's SDK for example URL class
toString() returns "http://host/path/file..." if i try the same
with the classpath URL class and i get something like: 
"gnu.java.net.protocol.http.Connection:http://directory.google.com/Top/"

> b) the rest of the string should be braced in '[' and ']'
>
>   Rationale: Visual separation makes it easier to separate the output 
> string into its type information and information about the state of 
> the particular instance.
>
> c) different instances should have different string representations
>
>   Rationale: If two instances are not equal, then their string 
> represenation should reflect that. The contents of all fields used in 
> equals() should be part of the string representation of an instance.
>
> d) fields that are used in the string representation must be named
>
>   Rationale: Explicitely naming fields removes ambiguities when a 
> class contains several fields of the same type.
>
> e) always use a StringBuffer
>
>   Rationale: While most Java compilers can optimize string 
> concatenation by using string buffers automatically, that only works 
> efficiently as long as the string representation can be generated 
> within a single expression. If that's not the case, for example when 
> iterating over a collection, most Java compilers create unnecessary 
> temporary objects. Using a StringBuffer ensures that toString() works 
> efficiently.
>
> f) don't use toString() on non-primitive fields
>
>   Rationale: Calling toString() can fail if a field's instance in 
> null, resulting in a NullPointerException being thrown inside 
> toString(). Since toString() is usually used to provide debugging 
> information, it must not fail. Using StringBuffer.append(Object) 
> handles null automatically. So simply use StringBuffer's append method 
> for "field_name=" and the field instance.
>
> g) don't write special code to handle fields being null
>
>   Rationale: follows from f).
>
> Example code:
>
> public class Test{
>   private String field_1;
>   private int field_2;
>
>   public String toString() {
>     StringBuffer sb = new StringBuffer("Test[field_1="));
>
>     sb.append(field_1);
>     sb.append(",field_2=");
>     sb.append(field_2);
>     sb.append(']');
>
>     return sb.toString();
>   }
> }
>
> comments are welcome, as usual.
>
> cheers,
> dalibor topic
>
>
>
> _______________________________________________
> Classpath mailing list
> Classpath@gnu.org
> http://mail.gnu.org/mailman/listinfo/classpath
>




From MAILER-DAEMON Mon Dec 01 15:34:32 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AQuka-0005EF-76
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 15:34:32 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AQukY-0005DZ-79
	for classpath@gnu.org; Mon, 01 Dec 2003 15:34:30 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AQuk2-00056Z-Cw
	for classpath@gnu.org; Mon, 01 Dec 2003 15:34:29 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AQuiw-0004oS-1J
	for classpath@gnu.org; Mon, 01 Dec 2003 15:32:50 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AQtl3-0004ep-OU
	for classpath@gnu.org; Mon, 01 Dec 2003 14:30:58 -0500
Received: from yahoo.es ([81.33.55.141]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HP8E9Y00.NX6 for <classpath@gnu.org>; Mon, 1 Dec 2003
	20:32:22 +0100 
Message-ID: <3FCB9670.8070403@yahoo.es>
Date: Mon, 01 Dec 2003 20:28:48 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: ClassPath List <classpath@gnu.org>
References: <3FB673C1.6010206@kaffe.org>		<1068933449.925.530.camel@elsschot.wildebeest.org>		<3FBA7364.9060206@kaffe.org>		<1069190892.1745.23.camel@elsschot.wildebeest.org>		<3FBAC3ED.1010904@kaffe.org>		<1069266136.2856.42.camel@elsschot.wildebeest.org>		<3FC11B25.50205@kaffe.org>	<1069789112.1298.22.camel@localhost>	<3FC8ED6C.1060107@kaffe.org>
	<3FC8F6C1.5060703@uqam.ca>	<3FCA1A05.6070808@kaffe.org>
	<3FCA2DAA.2@uqam.ca> <3FCA3502.9080104@kaffe.org>
In-Reply-To: <3FCA3502.9080104@kaffe.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: 3d attempt at Re: The right way(tm) of writing toString() (Was:
 Re: [PATCH] Field position attribute handling)
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 Dec 2003 20:34:30 -0000

Sorry i meant the HttpURLConnection Class not URL Class




From MAILER-DAEMON Mon Dec 01 19:40:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AQySN-00038e-Uv
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 19:31:59 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AQyBq-0001Fc-Ru
	for classpath@gnu.org; Mon, 01 Dec 2003 19:14:54 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AQvbQ-0005Py-CY
	for classpath@gnu.org; Mon, 01 Dec 2003 16:29:39 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AQv8K-00005c-9C
	for classpath@gnu.org; Mon, 01 Dec 2003 15:59:04 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AQuAp-000677-8l
	for classpath@gnu.org; Mon, 01 Dec 2003 14:57:37 -0500
Received: from yahoo.es ([81.33.55.141]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HP8FIG00.8XX for <classpath@gnu.org>; Mon, 1 Dec 2003
	20:59:04 +0100 
Message-ID: <3FCB9CB2.3000904@yahoo.es>
Date: Mon, 01 Dec 2003 20:55:30 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: ClassPath List <classpath@gnu.org>
References: <3FB673C1.6010206@kaffe.org>		<1068933449.925.530.camel@elsschot.wildebeest.org>		<3FBA7364.9060206@kaffe.org>		<1069190892.1745.23.camel@elsschot.wildebeest.org>		<3FBAC3ED.1010904@kaffe.org>		<1069266136.2856.42.camel@elsschot.wildebeest.org>		<3FC11B25.50205@kaffe.org>	<1069789112.1298.22.camel@localhost>	<3FC8ED6C.1060107@kaffe.org>	<3FC8F6C1.5060703@uqam.ca>	<3FCA1A05.6070808@kaffe.org>	<3FCA2DAA.2@uqam.ca>
	<3FCA3502.9080104@kaffe.org> <3FCB9286.7090401@yahoo.es>
In-Reply-To: <3FCB9286.7090401@yahoo.es>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: 3d attempt at Re: The right way(tm) of writing toString() (Was:
 Re: [PATCH] Field position attribute handling)
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 Dec 2003 00:31:58 -0000

I was mistaken sorry about my "big mouth"




From MAILER-DAEMON Mon Dec 01 22:49:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR1XJ-0004zB-Ex
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 22:49:17 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR1XE-0004y3-Eu
	for classpath@gnu.org; Mon, 01 Dec 2003 22:49:12 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR064-00085N-6i
	for classpath@gnu.org; Mon, 01 Dec 2003 21:17:35 -0500
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQzyy-0006jx-Kh
	for classpath@gnu.org; Mon, 01 Dec 2003 21:09:44 -0500
Received: from fleche.redhat.com (tf0208.peakpeak.com [204.144.239.208])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id SAA07457;
	Mon, 1 Dec 2003 18:08:17 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id D27E44F883E; Mon,  1 Dec 2003 17:58:00 -0700 (MST)
To: Dalibor Topic <robilad@kaffe.org>
References: <3FB673C1.6010206@kaffe.org>
	<1068933449.925.530.camel@elsschot.wildebeest.org>
	<3FBA7364.9060206@kaffe.org>
	<1069190892.1745.23.camel@elsschot.wildebeest.org>
	<3FBAC3ED.1010904@kaffe.org>
	<1069266136.2856.42.camel@elsschot.wildebeest.org>
	<3FC11B25.50205@kaffe.org> <1069789112.1298.22.camel@localhost>
	<3FC8ED6C.1060107@kaffe.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: It was a JOKE!!  Get it??  I was receiving messages
	from DAVID LETTERMAN!!  YOW!!
Date: 01 Dec 2003 17:58:00 -0700
In-Reply-To: <3FC8ED6C.1060107@kaffe.org>
Message-ID: <87n0ac11ev.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: Mark Wielaard <mark@klomp.org>, GNU Classpath <classpath@gnu.org>
Subject: Re: The right way(tm) of writing toString() (Was: Re: [PATCH] Field
	position attribute handling)
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, 02 Dec 2003 03:49:16 -0000

>>>>> "Dalibor" == Dalibor Topic <robilad@kaffe.org> writes:

Dalibor> here's my attempt at writing a short passage on the Art of Writing
Dalibor> toString methods. As everyone has written bazillions of them, it's a
Dalibor> perfect subject for bikeshed type of discussions. Feel free to chip in
Dalibor> with your own bits of wisdom ;)

My bit of wisdom is: please put this in the classpath hacker's guide.
We really should be collecting these how-tos as part of our coding
standard, for all the usual reasons...

Tom



From MAILER-DAEMON Mon Dec 01 23:29:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR24w-0002Zi-2K
	for mharc-classpath@gnu.org; Mon, 01 Dec 2003 23:24:02 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR15l-0001Oy-0F
	for classpath@gnu.org; Mon, 01 Dec 2003 22:20:49 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR0pb-0006aR-Ka
	for classpath@gnu.org; Mon, 01 Dec 2003 22:04:38 -0500
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQzyu-0006io-5X
	for classpath@gnu.org; Mon, 01 Dec 2003 21:09:40 -0500
Received: from fleche.redhat.com (tf0208.peakpeak.com [204.144.239.208])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id SAA07420;
	Mon, 1 Dec 2003 18:08:07 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id DF8154F883D; Mon,  1 Dec 2003 17:57:56 -0700 (MST)
To: Victor Niebla <niebla_negra@yahoo.es>
References: <3FB673C1.6010206@kaffe.org>
	<1068933449.925.530.camel@elsschot.wildebeest.org>
	<3FBA7364.9060206@kaffe.org>
	<1069190892.1745.23.camel@elsschot.wildebeest.org>
	<3FBAC3ED.1010904@kaffe.org>
	<1069266136.2856.42.camel@elsschot.wildebeest.org>
	<3FC11B25.50205@kaffe.org> <1069789112.1298.22.camel@localhost>
	<3FC8ED6C.1060107@kaffe.org> <3FC8F6C1.5060703@uqam.ca>
	<3FCA1A05.6070808@kaffe.org> <3FCA2DAA.2@uqam.ca>
	<3FCA3502.9080104@kaffe.org> <3FCB9286.7090401@yahoo.es>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I'm having BEAUTIFUL THOUGHTS about the INSIPID WIVES
	of smug and wealthy CORPORATE LAWYERS..
Date: 01 Dec 2003 17:57:56 -0700
In-Reply-To: <3FCB9286.7090401@yahoo.es>
Message-ID: <87ptf811ez.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: GNU Classpath <classpath@gnu.org>
Subject: Re: 3d attempt at Re: The right way(tm) of writing toString() (Was:
	Re: [PATCH] Field position attribute handling)
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, 02 Dec 2003 04:23:59 -0000

>>>>> "Victor" == Victor Niebla <niebla_negra@yahoo.es> writes:

Victor> I have noticed this is not true on Sun's SDK for example URL class
Victor> toString() returns "http://host/path/file..." if i try the same
Victor> with the classpath URL class and i get something like:
Victor> "gnu.java.net.protocol.http.Connection:http://directory.google.com/Top/"

Yeah, there are some cases where the toString() result is clearly more
useful without class information.  I think Dalibor's rules should only
apply in cases where toString either (a) isn't specified by Sun or (b)
doesn't have a clear programmatic use.

Tom



From MAILER-DAEMON Tue Dec 02 01:22:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR3DU-0004Yq-Jd
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 00:36:56 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR121-0000aO-7G
	for classpath@gnu.org; Mon, 01 Dec 2003 22:16:57 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR0Mf-00023b-Ga
	for classpath@gnu.org; Mon, 01 Dec 2003 21:34:44 -0500
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQxnG-00063l-It
	for classpath@gnu.org; Mon, 01 Dec 2003 18:49:30 -0500
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 hB1MlxH29656
	for <classpath@gnu.org>; Mon, 1 Dec 2003 17:47:59 -0500
Received: from redhat.com (sebastian-int.corp.redhat.com [172.16.52.221])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id hB1Mlxw07098
	for <classpath@gnu.org>; Mon, 1 Dec 2003 17:47:59 -0500
Message-ID: <3FCBC4B1.4050001@redhat.com>
Date: Mon, 01 Dec 2003 17:46:09 -0500
From: graydon hoare <graydon@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.5) Gecko/20031115 Thunderbird/0.3
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: classpath@gnu.org
Content-Type: multipart/mixed; boundary="------------010305090805040608030804"
Subject: [patch] implement LightweightDispatcher
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 Dec 2003 05:36:39 -0000

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

hi,

this patch implements a rough, preliminary version of 
java.awt.Container.LightweightDispatcher, which is a helper class which 
appears to exist (undocumented) in sun's library, and which is needed to 
route events around inside lightweight peers.

it also changes the container repaint cycle to reuse a single Graphics 
object, rather than cloning it for each child.

ok to commit?

-graydon

--------------010305090805040608030804
Content-Type: text/plain;
 name="j2d-lightweight-dispatcher.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="j2d-lightweight-dispatcher.patch"

Index: java/awt/Container.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Container.java,v
retrieving revision 1.23
diff -u -b -w -r1.23 Container.java
--- java/awt/Container.java	1 Dec 2003 22:35:28 -0000	1.23
+++ java/awt/Container.java	1 Dec 2003 22:39:27 -0000
@@ -41,6 +41,7 @@
 import java.awt.event.ContainerEvent;
 import java.awt.event.ContainerListener;
 import java.awt.event.MouseEvent;
+import java.awt.event.KeyEvent;
 import java.awt.peer.ContainerPeer;
 import java.awt.peer.LightweightPeer;
 import java.beans.PropertyChangeListener;
@@ -1225,30 +1226,39 @@
                           Component comp)
   {
     Rectangle bounds = comp.getBounds();
-    Rectangle clip = gfx.getClipBounds();
-    if (clip == null)
-      clip = bounds;
-    else
-      clip = clip.intersection(bounds);
+    Rectangle oldClip = gfx.getClipBounds();
+    if (oldClip == null)
+	oldClip = bounds;
+    Rectangle clip = oldClip.intersection(bounds);
 
     if (clip.isEmpty()) return;
 
-    Graphics gfx2 = gfx.create();
+    boolean clipped = false;
+    boolean translated = false;
     try
       {
-	gfx2.setClip(clip.x, clip.y, clip.width, clip.height);
-	gfx2.translate(bounds.x, bounds.y);
-
-	visitor.visit(comp, gfx2);
+	gfx.setClip(clip.x, clip.y, clip.width, clip.height);
+	clipped = true;
+	gfx.translate(bounds.x, bounds.y);
+	translated = true;
+	visitor.visit(comp, gfx);
       }
     finally
       {
-	gfx2.dispose ();
+	  if (translated)
+	      gfx.translate (-bounds.x, -bounds.y);
+	  if (clipped)
+	      gfx.setClip (oldClip.x, oldClip.y, oldClip.width, oldClip.height);
       }
   }
 
   void dispatchEventImpl(AWTEvent e)
   {
+      // give lightweight dispatcher a chance to handle it
+      if (dispatcher != null 
+	  && dispatcher.handleEvent (e))
+	  return;
+      
     if ((e.id <= ContainerEvent.CONTAINER_LAST
              && e.id >= ContainerEvent.CONTAINER_FIRST)
         && (containerListener != null
@@ -1319,6 +1329,17 @@
             component[i].addNotify();
             if (component[i].isLightweight ())
 	      {
+
+		  // if we're not lightweight, and we just got a lightweight
+		  // child, we need a lightweight dispatcher to feed it events.
+		  if (! this.isLightweight() 
+		      && dispatcher == null)
+		      {
+			  dispatcher = new LightweightDispatcher (this);
+			  dispatcher.enableEvents (component[i].eventMask);
+		      }
+		  
+
 		enableEvents(component[i].eventMask);
 		if (peer != null && !isLightweight ())
 		  enableEvents (AWTEvent.PAINT_EVENT_MASK);
@@ -1495,22 +1516,25 @@
 } // class Container
 
 /**
- * Undocumented helper class.
- * STUBBED
+ * there is a helper class implied from stack traces called
+ * LightweightDispatcher, but since it is not part of the public API,
+ * rather than mimic it exactly we write something which does "roughtly
+ * the same thing".
  */
-class LightweightDispatcher implements Serializable, AWTEventListener
+
+class LightweightDispatcher implements Serializable
 {
   private static final long serialVersionUID = 5184291520170872969L;
   private Container nativeContainer;
   private Component focus;
-  private transient Component mouseEventTarget;
-  private transient Component targetLastEntered;
-  private transient boolean isMouseInNativeContainer;
   private Cursor nativeCursor;
   private long eventMask;
   
+    private transient Component mouseEventTarget;
+  
   LightweightDispatcher(Container c)
   {
+	nativeContainer = c;
   }
 
   void dispose()
@@ -1519,40 +1543,106 @@
 
   void enableEvents(long l)
   {
+	eventMask |= l;
   }
 
-  boolean dispatchEvent(AWTEvent e)
+    void mouseExit (MouseEvent me, int x, int y)
   {
-    return true;
   }
 
-  boolean isMouseGrab(MouseEvent e)
+    void acquireComponentForMouseEvent (MouseEvent me)
   {
-    return true;
-  }
+	int x = me.getX ();
+	int y = me.getY ();
+
+	Component candidate = mouseEventTarget;
+
+	boolean candidate_is_container_with_children = 
+	    ((candidate != null)
+	     && (candidate instanceof Container)
+	     && (((Container)candidate).getComponentCount () > 0));
 
-  boolean processMouseEvent(MouseEvent e)
+	boolean candidate_does_not_contain_point =
+	    ((candidate != null)
+	     && (! candidate.contains (x - candidate.getX (),
+				       y - candidate.getY ())));
+
+	if (candidate == null
+	    || candidate_is_container_with_children
+	    || candidate_does_not_contain_point)
   {
-    return true;
+		// try to reacquire
+		candidate = nativeContainer.findComponentAt (x, y);
   }
 
-  void trackMouseEnterExit(Component c, MouseEvent e)
+	if (mouseEventTarget != null
+	    && mouseEventTarget != candidate)
   {
+		int nx = x - mouseEventTarget.getX ();
+		int ny = y - mouseEventTarget.getY ();
+		MouseEvent exited = new MouseEvent (mouseEventTarget, 
+						    MouseEvent.MOUSE_EXITED,
+						    me.getWhen (), 
+						    me.getModifiers (), 
+						    nx, ny,
+						    me.getClickCount (),
+						    me.isPopupTrigger (),
+						    me.getButton ());
+		mouseEventTarget.dispatchEvent (exited); 
+		mouseEventTarget = null;
   }
 
-  void startListeningForOtherDrags()
+	if (candidate != null)
+	    {
+		// possibly set new state
+		if (candidate.isLightweight() 
+		    && candidate != nativeContainer
+		    && candidate != mouseEventTarget)
   {
+			
+			mouseEventTarget = candidate;
+			
+			int nx = x - mouseEventTarget.getX ();
+			int ny = y - mouseEventTarget.getY ();
+			
+			// if acquired, enter it
+			MouseEvent entered = new MouseEvent (mouseEventTarget, 
+							     MouseEvent.MOUSE_ENTERED,
+							     me.getWhen (), 
+							     me.getModifiers (), 
+							     nx, ny,
+							     me.getClickCount (),
+							     me.isPopupTrigger (),
+							     me.getButton ());
+			mouseEventTarget.dispatchEvent (entered);
+		    }
+	    }
   }
 
-  void stopListeningForOtherDrags()
+    boolean handleEvent (AWTEvent e)
   {
-  }
+	if ((eventMask & e.getID ()) == 0)
+	    return false;
 
-  public void eventDispatched(AWTEvent e)
+	if (e instanceof MouseEvent)
   {
-  }
+		MouseEvent me = (MouseEvent) e;
+		acquireComponentForMouseEvent (me);
 
-  void retargetMouseEvent(Component c, int i, MouseEvent e)
+		if (mouseEventTarget != null)
+		    {
+			Component oldSource = (Component) me.getSource ();
+			me.setSource (mouseEventTarget);
+			mouseEventTarget.dispatchEvent (me);
+			me.setSource (oldSource);
+		    }
+	    }
+	else if (e instanceof KeyEvent && focus != null)
   {
+		focus.processKeyEvent ((KeyEvent) e);
+	    }
+      
+	return e.isConsumed();
   }
+
 } // class LightweightDispatcher

--------------010305090805040608030804--




From MAILER-DAEMON Tue Dec 02 04:37:53 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR6yf-00049I-Fw
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 04:37:53 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR6yc-00048l-Kp
	for classpath@gnu.org; Tue, 02 Dec 2003 04:37:50 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR6y6-0003vJ-6B
	for classpath@gnu.org; Tue, 02 Dec 2003 04:37:49 -0500
Received: from [62.177.154.238] (helo=lembu.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AR6s8-0002L2-8p
	for classpath@gnu.org; Tue, 02 Dec 2003 04:31:08 -0500
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Tue, 2 Dec 2003 09:27:39 +0100
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC04C6C3@LEMBU.sumatrasoftware.com>
X-MS-Has-Attach: 
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
X-MS-TNEF-Correlator: 
Thread-Topic: Revolution Action (was: Re: [Little Off Topic] Revolution is on;
	))
Thread-Index: AcO4fNKKdWByoqWqQGWoAf/CTONe4QAMSOUg
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Chris Gray" <chris@kiffer.eunet.be>, "Mark Wielaard" <mark@klomp.org>,
	"Dalibor Topic" <robilad@kaffe.org>
Cc: classpath@gnu.org
Subject: RE: Revolution Action (was: Re: [Little Off Topic] Revolution is on;
	))
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 Dec 2003 09:37:51 -0000

Chris Gray wrote:
> > How many people want to attend (Brussels, Belgium, the=20
> > weekend of 21-22 February 2004)? If I followed the
> > messages and irc discussions correctly then Arnaud,
> > Chris, Tom, Dalibor, Stephane, Michael and myself will
> > be there at least.
>=20
> Haven't heard from Jeroen recently ...

I'm not 100% sure yet, but I think I'll be there as well.

Regards,
Jeroen



From MAILER-DAEMON Tue Dec 02 05:40:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR7xb-0002Re-BH
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 05:40:51 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR7wv-0002GD-St
	for classpath@gnu.org; Tue, 02 Dec 2003 05:40:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR7wJ-00027L-Fu
	for classpath@gnu.org; Tue, 02 Dec 2003 05:40:04 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AR7wJ-00026x-1B
	for classpath@gnu.org; Tue, 02 Dec 2003 05:39:31 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AR6MA-0004PI-Im
	for classpath@gnu.org; Tue, 02 Dec 2003 03:58:07 -0500
Received: from yahoo.es ([80.25.157.178]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HP9FNB00.VZS for <classpath@gnu.org>; Tue, 2 Dec 2003
	09:59:35 +0100 
Message-ID: <3FCC53C4.1050905@yahoo.es>
Date: Tue, 02 Dec 2003 09:56:36 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: ClassPath List <classpath@gnu.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: URLConnection and Timeouts
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 Dec 2003 10:40:50 -0000

Hi all, here it goes i hope it doesnt sound stupid.....

I get some code to make a connection to a URL Timeouts work
with JDK but not with classpath, the main reason is that
at the end on a java.net.Socked this method is called:

 public void connect(SocketAddress endpoint) throws IOException {
    connect(endpoint, 0);
    }

Where 0 stands for infitelly wait connection.
In the JDK if you stablish "sun.net.client.defaultReadTimeout"
system property to the value of the Timeout in milisecs, after that
time SocketTimeoutException is thrown if not succeded on connecting or 
reading.

am i rigth, Should it be checked somewhere, is it allready?
and if so... where should it be checked?

Thx




From MAILER-DAEMON Tue Dec 02 05:47:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR84C-0003nd-9a
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 05:47:40 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR847-0003mT-TC
	for classpath@gnu.org; Tue, 02 Dec 2003 05:47:35 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR7wO-00028M-9h
	for classpath@gnu.org; Tue, 02 Dec 2003 05:40:07 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AR7wM-00027l-UU
	for classpath@gnu.org; Tue, 02 Dec 2003 05:39:34 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AR6PV-0004ew-4l
	for classpath@gnu.org; Tue, 02 Dec 2003 04:01:34 -0500
Received: from yahoo.es ([80.25.157.178]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HP9FSP00.NZA for <classpath@gnu.org>; Tue, 2 Dec 2003
	10:02:49 +0100 
Message-ID: <3FCC547F.3010708@yahoo.es>
Date: Tue, 02 Dec 2003 09:59:43 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: ClassPath List <classpath@gnu.org>
References: <3FCC53C4.1050905@yahoo.es>
In-Reply-To: <3FCC53C4.1050905@yahoo.es>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: URLConnection and Timeouts
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 Dec 2003 10:47:38 -0000

Here is some information about net properties i am talking about,
http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html

> Hi all, here it goes i hope it doesnt sound stupid.....
>
> I get some code to make a connection to a URL Timeouts work
> with JDK but not with classpath, the main reason is that
> at the end on a java.net.Socked this method is called:
>
> public void connect(SocketAddress endpoint) throws IOException {
>    connect(endpoint, 0);
>    }
>
> Where 0 stands for infitelly wait connection.
> In the JDK if you stablish "sun.net.client.defaultReadTimeout"
> system property to the value of the Timeout in milisecs, after that
> time SocketTimeoutException is thrown if not succeded on connecting or 
> reading.
>
> am i rigth, Should it be checked somewhere, is it allready?
> and if so... where should it be checked?
>
> Thx
>


-- 
"From green to red our days pass by
 Waiting for a sign to tell us why
 Are we dancing all alone?"

In Flames -> Trigger





From MAILER-DAEMON Tue Dec 02 06:11:18 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR8PD-0007jU-76
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 06:09:23 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR6cO-0004OT-Ki
	for classpath@gnu.org; Tue, 02 Dec 2003 04:14:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR6Xp-0003Er-Vr
	for classpath@gnu.org; Tue, 02 Dec 2003 04:10:42 -0500
Received: from [17.250.248.84] (helo=smtpout.mac.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AR6MJ-0001sG-SD
	for classpath@gnu.org; Tue, 02 Dec 2003 03:58:15 -0500
Received: from mac.com (smtpin08-en2 [10.13.10.153])
	by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id hB27unDC012144
	for <classpath@gnu.org>; Mon, 1 Dec 2003 23:56:49 -0800 (PST)
Received: from [10.0.1.200] (lougher.demon.co.uk [80.177.127.218])
	(authenticated bits=0)
	by mac.com (Xserve/smtpin08/MantshX 3.0) with ESMTP id hB27umxO023980
	for <classpath@gnu.org>; Mon, 1 Dec 2003 23:56:48 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v606)
Content-Transfer-Encoding: 7bit
Message-Id: <13344C6E-249D-11D8-BE41-000A95C53FCC@mac.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed
To: classpath@gnu.org
From: Robert Lougher <robert_lougher@mac.com>
Date: Tue, 2 Dec 2003 07:56:45 +0000
X-Mailer: Apple Mail (2.606)
X-Mailman-Approved-At: Tue, 02 Dec 2003 06:09:21 -0500
Subject: SystemClassLoader
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 Dec 2003 09:16:56 -0000

Hi,

I've been a long time lurker on this mailing list, but I've got a 
question I hope the classpath developers can answer...

I'm the developer of yet another open-source Java VM 
(http://jamvm.sourceforge.net).  I'm about to release version 1.1.1 
which has been updated to Classpath-0.07 (basically VMThread/Thread).

One of the things I've finally got round to changing is using a system 
class loader to load application classes (up to now loaded via the 
bootstrap - I've been more interested in getting the Reflection API 
fully implemented).

Looking at the code, the "default" system class loader (in 
gnu.java.lang...) simply delegates to the bootstrap loader - it doesn't 
implement findClass.  Obviously, it's not difficult to write my own to 
parse and search the classpath (zip, jar, file...).  However, is there 
any reason why I can't simply sub-class URLClassLoader, and construct a 
list of URLs?  I've got a simple SystemClassLoader based on 
URLClassLoader and it seems to work OK.

Performance-wise, the VM keeps it's own list of loaded-classes so a 
class-loader isn't continually asked for the same class (although this 
will work).   Note, I'm interested in doing this so that JamVM can read 
from jar and zip files - implementing zip in the VM duplicates 
functionality and I'm trying to keep JamVM small (approx 80K on Intel, 
100K on PowerPC stripped).

Thanks,

Rob.

P.S.  Thank you for your work on Classpath - I've been using it since 
0.04 and it's come a long way.  With Classpath-0.06 I was able to run 
Jetty-4.2.14 (web server and servlet container) on a 50MHz PowerPC with 
only a couple of modifications, which have been fixed in 0.07...




From MAILER-DAEMON Tue Dec 02 06:36:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR8pj-0007wF-Ki
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 06:36:47 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR8oa-0007Ut-L9
	for classpath@gnu.org; Tue, 02 Dec 2003 06:35:36 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR8nz-0007JI-PV
	for classpath@gnu.org; Tue, 02 Dec 2003 06:35:30 -0500
Received: from [212.6.122.116] (helo=mail2.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AR8ny-0007IB-D6
	for classpath@gnu.org; Tue, 02 Dec 2003 06:34:58 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-80-170.ewetel.net
	[80.228.80.170])
	by mail2.ewetel.de (8.12.1/8.12.9) with ESMTP id hB2AXS6J023171;
	Tue, 2 Dec 2003 11:33:29 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1AR7rZ-0000Gw-00; Tue, 02 Dec 2003 11:34:37 +0100
Date: Tue, 2 Dec 2003 11:34:37 +0100
From: Michael Koch <konqueror@gmx.de>
To: Victor Niebla <niebla_negra@yahoo.es>
Message-ID: <20031202103437.GA32066@mail.konqueror.de>
References: <3FCC53C4.1050905@yahoo.es>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3FCC53C4.1050905@yahoo.es>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: ClassPath List <classpath@gnu.org>
Subject: Re: URLConnection and Timeouts
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 Dec 2003 11:36:11 -0000

On Tue, Dec 02, 2003 at 09:56:36AM +0100, Victor Niebla wrote:
> Hi all, here it goes i hope it doesnt sound stupid.....
> 
> I get some code to make a connection to a URL Timeouts work
> with JDK but not with classpath, the main reason is that
> at the end on a java.net.Socked this method is called:
> 
> public void connect(SocketAddress endpoint) throws IOException {
>    connect(endpoint, 0);
>    }
> 
> Where 0 stands for infitelly wait connection.
> In the JDK if you stablish "sun.net.client.defaultReadTimeout"
> system property to the value of the Timeout in milisecs, after that
> time SocketTimeoutException is thrown if not succeded on connecting or 
> reading.
> 
> am i rigth, Should it be checked somewhere, is it allready?
> and if so... where should it be checked?

I knew there was something missing. The docs say that
sun.net.client.defaultReadTimeout is implementation-specific to SUNs
JDK. SHould we support it for compatibility or should we define our own
(gnu.net.client.defaultReadTimeout) ?.

Michael

Note to myself and any other helper: look through the list of properties
to see what is implemented and what is not.



From MAILER-DAEMON Tue Dec 02 06:49:38 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR928-0001Hy-V0
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 06:49:36 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR920-0001H9-QR
	for classpath@gnu.org; Tue, 02 Dec 2003 06:49:28 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR91I-0001CL-UO
	for classpath@gnu.org; Tue, 02 Dec 2003 06:49:17 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AR8x9-0000hd-EZ
	for classpath@gnu.org; Tue, 02 Dec 2003 06:44:27 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AR7yy-0007TM-Sh
	for classpath@gnu.org; Tue, 02 Dec 2003 05:42:17 -0500
Received: from yahoo.es ([80.25.157.178]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HP9KGV00.R1S; Tue, 2 Dec 2003 11:43:43 +0100 
Message-ID: <3FCC6C2A.6000408@yahoo.es>
Date: Tue, 02 Dec 2003 11:40:42 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: Michael Koch <konqueror@gmx.de>,
	 ClassPath List <classpath@gnu.org>
References: <3FCC53C4.1050905@yahoo.es>
	<20031202103437.GA32066@mail.konqueror.de>
In-Reply-To: <20031202103437.GA32066@mail.konqueror.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: 
Subject: Re: URLConnection and Timeouts
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 Dec 2003 11:49:33 -0000

I think we should have the sun.net...... properties,
for compatibility. I have started prowling the classpath
code just 2 days ago, but i will be very happy to start helping
(by little steps ;-) ).

>On Tue, Dec 02, 2003 at 09:56:36AM +0100, Victor Niebla wrote:
>  
>
>>Hi all, here it goes i hope it doesnt sound stupid.....
>>
>>I get some code to make a connection to a URL Timeouts work
>>with JDK but not with classpath, the main reason is that
>>at the end on a java.net.Socked this method is called:
>>
>>public void connect(SocketAddress endpoint) throws IOException {
>>   connect(endpoint, 0);
>>   }
>>
>>Where 0 stands for infitelly wait connection.
>>In the JDK if you stablish "sun.net.client.defaultReadTimeout"
>>system property to the value of the Timeout in milisecs, after that
>>time SocketTimeoutException is thrown if not succeded on connecting or 
>>reading.
>>
>>am i rigth, Should it be checked somewhere, is it allready?
>>and if so... where should it be checked?
>>    
>>
>
>I knew there was something missing. The docs say that
>sun.net.client.defaultReadTimeout is implementation-specific to SUNs
>JDK. SHould we support it for compatibility or should we define our own
>(gnu.net.client.defaultReadTimeout) ?.
>
>Michael
>
>Note to myself and any other helper: look through the list of properties
>to see what is implemented and what is not.
>  
>




From MAILER-DAEMON Tue Dec 02 06:57:57 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR9AB-00023c-94
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 06:57:55 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR9A6-000236-PV
	for classpath@gnu.org; Tue, 02 Dec 2003 06:57:50 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR95h-0001eQ-LL
	for classpath@gnu.org; Tue, 02 Dec 2003 06:53:48 -0500
Received: from [212.6.122.116] (helo=mail2.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AR95f-0001do-W6
	for classpath@gnu.org; Tue, 02 Dec 2003 06:53:16 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-80-170.ewetel.net
	[80.228.80.170])
	by mail2.ewetel.de (8.12.1/8.12.9) with ESMTP id hB2Apl6J004335;
	Tue, 2 Dec 2003 11:51:48 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1AR89I-0000KD-00; Tue, 02 Dec 2003 11:52:56 +0100
Date: Tue, 2 Dec 2003 11:52:56 +0100
From: Michael Koch <konqueror@gmx.de>
To: Victor Niebla <niebla_negra@yahoo.es>
Message-ID: <20031202105256.GB32066@mail.konqueror.de>
References: <3FCC53C4.1050905@yahoo.es>
	<20031202103437.GA32066@mail.konqueror.de>
	<3FCC6C2A.6000408@yahoo.es>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3FCC6C2A.6000408@yahoo.es>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: ClassPath List <classpath@gnu.org>, Michael Koch <konqueror@gmx.de>
Subject: Re: URLConnection and Timeouts
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 Dec 2003 11:57:53 -0000

On Tue, Dec 02, 2003 at 11:40:42AM +0100, Victor Niebla wrote:
> I think we should have the sun.net...... properties,
> for compatibility. I have started prowling the classpath
> code just 2 days ago, but i will be very happy to start helping
> (by little steps ;-) ).

For coding (more then 10-15 lines) we need a copyright assignment from
you. Please contact out master of desaster Mark Wielaard
<mark@klomp.org> for this. He can also give you CVS access when you need
it.

If you wanna start with something little it would be nice to create a
list which properties are implemented and which are not. I can then start
easier to implement them.


Michael



From MAILER-DAEMON Tue Dec 02 07:06:15 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR9Dy-0002hV-1A
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 07:01:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR97I-0001oQ-FI
	for classpath@gnu.org; Tue, 02 Dec 2003 06:54:56 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR96J-0001iX-2h
	for classpath@gnu.org; Tue, 02 Dec 2003 06:54:25 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AR8vU-0000Ok-6j
	for classpath@gnu.org; Tue, 02 Dec 2003 06:42:44 -0500
Received: from yahoo.es ([80.25.157.178]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HP9KFB00.R1R for <classpath@gnu.org>; Tue, 2 Dec 2003
	11:42:47 +0100 
Message-ID: <3FCC6BF3.9060205@yahoo.es>
Date: Tue, 02 Dec 2003 11:39:47 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: ClassPath List <classpath@gnu.org>
References: <3FCC53C4.1050905@yahoo.es>
	<16332.27298.380551.184238@cuddles.cambridge.redhat.com>
In-Reply-To: <16332.27298.380551.184238@cuddles.cambridge.redhat.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: URLConnection and Timeouts
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 Dec 2003 12:01:47 -0000


>It's not documented, but I don't think that connect(SocketAddress)
>should time out.
>
>Surely anyone who wants a timeout should use 
>connect(SocketAddress endpoint, int timeout)
>  
>
If you connect by your self you can choose the connect method
with timeout as a param, but when you connect with a URL, i think
you can't!




From MAILER-DAEMON Tue Dec 02 07:49:46 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AR9ZN-0005VO-JP
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 07:23:57 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AR9Yz-0005Qr-OX
	for classpath@gnu.org; Tue, 02 Dec 2003 07:23:33 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AR9KW-0003cq-Tj
	for classpath@gnu.org; Tue, 02 Dec 2003 07:09:08 -0500
Received: from [62.177.154.238] (helo=lembu.sumatrasoftware.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AR9CV-0002S7-Cb
	for classpath@gnu.org; Tue, 02 Dec 2003 07:00:19 -0500
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Tue, 2 Dec 2003 11:58:48 +0100
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC04C6C7@LEMBU.sumatrasoftware.com>
X-MS-Has-Attach: 
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
X-MS-TNEF-Correlator: 
Thread-Topic: SystemClassLoader
Thread-Index: AcO4vbFEP3PKZmb3Sy6bj06wmlhvTQABQKVg
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Robert Lougher" <robert_lougher@mac.com>,
	<classpath@gnu.org>
Cc: 
Subject: RE: SystemClassLoader
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 Dec 2003 12:23:37 -0000

Robert Lougher wrote:
> Looking at the code, the "default" system class loader (in=20
> gnu.java.lang...) simply delegates to the bootstrap loader -=20
> it doesn't implement findClass.  Obviously, it's not
> difficult to write my own to parse and search the classpath
> (zip, jar, file...).  However, is there any reason why I
> can't simply sub-class URLClassLoader, and construct a=20
> list of URLs?  I've got a simple SystemClassLoader based on=20
> URLClassLoader and it seems to work OK.

I do the same and I've never noticed any problems with it (and I don't
see any reasons why it should cause a problem). In fact, I think that
Classpath should include an application and extension class loader based
on this idea. It's on my TODO list, but the list is rather long ;-)

Regards,
Jeroen



From MAILER-DAEMON Tue Dec 02 08:05:38 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARADh-0003w4-Hw
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 08:05:37 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARADe-0003ux-Ad
	for classpath@gnu.org; Tue, 02 Dec 2003 08:05:34 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARAD5-0003kv-UQ
	for classpath@gnu.org; Tue, 02 Dec 2003 08:05:31 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ARAD5-0003k3-Mf
	for classpath@gnu.org; Tue, 02 Dec 2003 08:04:59 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AR9Ce-000075-ML
	for classpath@gnu.org; Tue, 02 Dec 2003 07:00:29 -0500
Received: from yahoo.es ([80.25.157.178]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HP9O3500.11O for <classpath@gnu.org>; Tue, 2 Dec 2003
	13:01:53 +0100 
Message-ID: <3FCC7E7E.2070806@yahoo.es>
Date: Tue, 02 Dec 2003 12:58:54 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: ClassPath List <classpath@gnu.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Classpath API
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 Dec 2003 13:05:35 -0000

I have tried to build it from the sources and get it from the classpath-doc
package, but both tries where unsuccesfull.

The debian package contains:
/usr/share/doc/classpath-doc/api/classpath-copyright.xml
/usr/share/doc/classpath-doc/api/Makefile.am
/usr/share/doc/classpath-doc/api/Makefile.gz
/usr/share/doc/classpath-doc/api/Makefile.in.gz
/usr/share/doc/classpath-doc/texinfo.tex.gz
/usr/share/doc/classpath-doc/Makefile.am
/usr/share/doc/classpath-doc/Makefile.gz
/usr/share/doc/classpath-doc/vmintegration.info.gz
/usr/share/doc/classpath-doc/copyright
/usr/share/doc/classpath-doc/hacking.texinfo.gz
/usr/share/doc/classpath-doc/vmintegration.texinfo.gz
/usr/share/doc/classpath-doc/hacking.info.gz
/usr/share/doc/classpath-doc/changelog.gz
/usr/share/doc/classpath-doc/Makefile.in.gz
/usr/share/doc/classpath-doc/changelog.Debian.gz

Should i inform of a bad builded package???




From MAILER-DAEMON Tue Dec 02 08:06:05 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARAE8-00042F-6B
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 08:06:04 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARAE3-00040v-27
	for classpath@gnu.org; Tue, 02 Dec 2003 08:05:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARADR-0003r8-4k
	for classpath@gnu.org; Tue, 02 Dec 2003 08:05:52 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ARADQ-0003pN-Q1
	for classpath@gnu.org; Tue, 02 Dec 2003 08:05:20 -0500
Received: from [196.2.45.76] (helo=quake.mweb.co.za)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AR8tL-0005mN-Sf
	for classpath@gnu.org; Tue, 02 Dec 2003 06:40:32 -0500
Received: from pta-dial-196-31-185-94.mweb.co.za ([196.31.185.94]:33639)
	by quake.mweb.co.za with esmtp (Exim 4.24) id 1AR8tA-0000Qu-1S
	for classpath@gnu.org; Tue, 02 Dec 2003 13:40:24 +0200
From: John Leuner <jewel@pixie.co.za>
To: classpath@gnu.org
In-Reply-To: <1061848933.407.3.camel@cmalu>
References: <1061848933.407.3.camel@cmalu>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-A+HWIBH3wcrOHwk+2fQN"
Organization: 
Message-Id: <1070362319.438.15.camel@cmalu>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 02 Dec 2003 13:37:43 +0200
Subject: Re: kissme 0.0.32 released
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 Dec 2003 13:06:00 -0000


--=-A+HWIBH3wcrOHwk+2fQN
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I have released version 0.0.32 of the kissme Java Virtual Machine:
http://prdownloads.sourceforge.net/kissme/kissme-0.0.32.tar.gz?download

This release is intended to match release 0.07 of Classpath.

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

--=-A+HWIBH3wcrOHwk+2fQN
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

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

iD8DBQA/zG7PXrnnKiKKOuQRAq/sAKCZmo49QyvDFRAtv5afNpM2iGfm4wCgjRJG
n0sGtUi4QxZYNoYkV+vpNxQ=
=7E4y
-----END PGP SIGNATURE-----

--=-A+HWIBH3wcrOHwk+2fQN--




From MAILER-DAEMON Tue Dec 02 09:00:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARB4J-00023c-I2
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 08:59:59 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARB2Z-0001is-VC
	for classpath@gnu.org; Tue, 02 Dec 2003 08:58:11 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARB1p-0001Xp-0R
	for classpath@gnu.org; Tue, 02 Dec 2003 08:57:56 -0500
Received: from [213.49.17.120] (helo=pigsty.cats.cradle)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ARB1m-0001WO-57
	for classpath@gnu.org; Tue, 02 Dec 2003 08:57:22 -0500
Received: from there (localhost.cats.cradle [127.0.0.1])
	by pigsty.cats.cradle (8.12.6/8.11.6) with SMTP id hB2Cv6SX044877;
	Tue, 2 Dec 2003 13:57:06 +0100 (CET)
	(envelope-from chris@kiffer.eunet.be)
Message-Id: <200312021257.hB2Cv6SX044877@pigsty.cats.cradle>
Content-Type: text/plain;
  charset="iso-8859-1"
From: Chris Gray <chris@kiffer.eunet.be>
To: "Jeroen Frijters" <jeroen@sumatra.nl>,
	"Robert Lougher" <robert_lougher@mac.com>, <classpath@gnu.org>
Date: Tue, 2 Dec 2003 13:57:06 +0100
X-Mailer: KMail [version 1.3]
References: <788B535AB1F9CB49BB9C229372B50ACC04C6C7@LEMBU.sumatrasoftware.com>
In-Reply-To: <788B535AB1F9CB49BB9C229372B50ACC04C6C7@LEMBU.sumatrasoftware.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Cc: 
Subject: Re: SystemClassLoader
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 Dec 2003 13:59:57 -0000

On Tuesday 02 December 2003 11:58, Jeroen Frijters wrote:
> Robert Lougher wrote:
> > Looking at the code, the "default" system class loader (in
> > gnu.java.lang...) simply delegates to the bootstrap loader -
> > it doesn't implement findClass.  Obviously, it's not
> > difficult to write my own to parse and search the classpath
> > (zip, jar, file...).  However, is there any reason why I
> > can't simply sub-class URLClassLoader, and construct a
> > list of URLs?  I've got a simple SystemClassLoader based on
> > URLClassLoader and it seems to work OK.
>
> I do the same and I've never noticed any problems with it (and I don't
> see any reasons why it should cause a problem). In fact, I think that
> Classpath should include an application and extension class loader based
> on this idea. It's on my TODO list, but the list is rather long ;-)

FWIW Wonka does this too. The only disadvantage I can see is that on 
interpreted systems it will tend to be a bit slower, which could be 
noticeable during start-up of an application. OTOH it's much cleaner and more 
flexible.

-- 
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 Dec 02 13:01:59 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AREqV-0004zF-MV
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 13:01:59 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AREqO-0004xt-5J
	for classpath@gnu.org; Tue, 02 Dec 2003 13:01:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AREkP-0003cC-8e
	for classpath@gnu.org; Tue, 02 Dec 2003 12:56:12 -0500
Received: from [132.208.250.6] (helo=anis.telecom.uqam.ca)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AREkO-0003Ze-6V
	for classpath@gnu.org; Tue, 02 Dec 2003 12:55:40 -0500
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 hB2GmcgT029335
	for <classpath@gnu.org>; Tue, 2 Dec 2003 11:48:55 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
	by anis.telecom.uqam.ca (SAVSMTP 3.1.1.32) with SMTP id
	M2003120211485413273
	for <classpath@gnu.org>; Tue, 02 Dec 2003 11:48:54 -0500
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
	hB2Fji8r003818
	for <classpath@gnu.org>; Tue, 2 Dec 2003 10:45:44 -0500 (EST)
X-Spam-Filter: Filtre-Uqam re:  abuse@uqam.ca
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by localhost with esmtp (Exim 3.36 #1 (Debian)) id 1ARCie-0006vC-00
	for <classpath@gnu.org>; Tue, 02 Dec 2003 10:45:44 -0500
Message-ID: <3FCCB3A7.4080609@uqam.ca>
Date: Tue, 02 Dec 2003 10:45:43 -0500
From: Etienne Gagnon <gagnon.etienne_m@uqam.ca>
Organization: UQAM
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
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: SableVM + GNU Classpath available in "staging" branch.
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 Dec 2003 18:01:57 -0000

Hi there,

Usually, we have daily SVN (Subversion) snapshots and publicly accessible
Subversion repository:

  See http://sablevm-shot.dyndns.org/ for snapshots and INSTALL.txt

But, the machine died yesterday, so *.tar.gz snapshots will be unavailable
for a very short while (a day or two).  You you can retrieve a snapshot
directly out of the Subversion repository.

Our latest snapshot of the "staging" branch of sablevm & sablevm classpath
include a merge with GNU Classpath 0.07.  [Along with many other things, like
very recent (yesterday) change of default PowerPC interpreter engine to
inline-threaded].

To get the snapshit, you simply need to install Subversion
(http://subeversion.tigris.org/) [Debian: "apt-get install subversion"], then
you can type:

$ svn co svn://svn.sablevm.org/sablevm/branches/staging sablevm
$ svn co svn://svn.sablevm.org/sablevm-classpath/branches/staging sablevm-classpath
$ cd sablevm
$ ./autogen.sh
$ cd ../sablevm-staging
$ ./autogen.sh
$ cd ..


That's it.  From there, if you want to build sablevm, you can follow
David Belanger's instructions (exception: DO NOT SET JVM_REFERENCE) in:
  http://sourceforge.net/mailarchive/forum.php?thread_id=3519087&forum_id=4154

Note that to get David's build_classpath script, you should type the
following:

$ svn cat svn://svn.sablevm.org/developers/belanger/sandbox/sablejit-classpath/bin/build_classpath > build_classpath
$ chmod u+x build_classpath

If you modify sablevm or sablevm-classpath, you can extract a patch
file by doing the following:


$ svn info
## please include the output of "svn info" in your message to the
## sablevm-devel mailing list.
$ svn diff > patchfile
## attach patchfile to your message to the sablevm-developer mailing-list


Have fun!

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 Tue Dec 02 13:20:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARF3R-0001zW-6o
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 13:15:21 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARF1b-0000le-QH
	for classpath@gnu.org; Tue, 02 Dec 2003 13:13:27 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AREzN-00084F-96
	for classpath@gnu.org; Tue, 02 Dec 2003 13:11:40 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AREyi-0007nr-Gn
	for classpath@gnu.org; Tue, 02 Dec 2003 13:10:28 -0500
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1ARDap-0002wd-Qc
	for classpath@gnu.org; Tue, 02 Dec 2003 11:41:43 -0500
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1ARDa9-00072j-00
	for <classpath@gnu.org>; Tue, 02 Dec 2003 17:41:01 +0100
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 1ARDa3-00070R-00; Tue, 02 Dec 2003 17:40:55 +0100
Message-ID: <3FCCC096.2030401@kaffe.org>
Date: Tue, 02 Dec 2003 17:40:54 +0100
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: Chris Gray <chris@kiffer.eunet.be>
References: <788B535AB1F9CB49BB9C229372B50ACC04C6C7@LEMBU.sumatrasoftware.com>
	<200312021257.hB2Cv6SX044877@pigsty.cats.cradle>
In-Reply-To: <200312021257.hB2Cv6SX044877@pigsty.cats.cradle>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: Robert Lougher <robert_lougher@mac.com>, classpath@gnu.org,
	Jeroen Frijters <jeroen@sumatra.nl>
Subject: Re: SystemClassLoader
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 Dec 2003 18:15:13 -0000

Chris Gray wrote:
> On Tuesday 02 December 2003 11:58, Jeroen Frijters wrote:
> 
>>Robert Lougher wrote:
>>
>>>Looking at the code, the "default" system class loader (in
>>>gnu.java.lang...) simply delegates to the bootstrap loader -
>>>it doesn't implement findClass.  Obviously, it's not
>>>difficult to write my own to parse and search the classpath
>>>(zip, jar, file...).  However, is there any reason why I
>>>can't simply sub-class URLClassLoader, and construct a
>>>list of URLs?  I've got a simple SystemClassLoader based on
>>>URLClassLoader and it seems to work OK.
>>
>>I do the same and I've never noticed any problems with it (and I don't
>>see any reasons why it should cause a problem). In fact, I think that
>>Classpath should include an application and extension class loader based
>>on this idea. It's on my TODO list, but the list is rather long ;-)
> 
> 
> FWIW Wonka does this too. The only disadvantage I can see is that on 
> interpreted systems it will tend to be a bit slower, which could be 
> noticeable during start-up of an application. OTOH it's much cleaner and more 
> flexible.


Kaffe does that too (kaffe.lang.AppClassLoader). The Java Security book 
by Li Gong also implies that the SystemClassLoader is an URLClassLoader. 
In fact, some applications (OpenEJB) expect that, and try to cast the 
system class loader to that type.

cheers,
dalibor topic




From MAILER-DAEMON Tue Dec 02 13:24:47 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARFCZ-0004u3-2U
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 13:24:47 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARF74-00037r-3j
	for classpath@gnu.org; Tue, 02 Dec 2003 13:19:06 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARF0S-00006A-2K
	for classpath@gnu.org; Tue, 02 Dec 2003 13:12:39 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ARF02-0008MK-Vi
	for classpath@gnu.org; Tue, 02 Dec 2003 13:11:51 -0500
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1ARDcn-00039k-1C
	for classpath@gnu.org; Tue, 02 Dec 2003 11:43:45 -0500
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1ARDcm-0007pC-00
	for <classpath@gnu.org>; Tue, 02 Dec 2003 17:43:44 +0100
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 1ARDch-0007mq-00; Tue, 02 Dec 2003 17:43:39 +0100
Message-ID: <3FCCC13B.3060802@kaffe.org>
Date: Tue, 02 Dec 2003 17:43:39 +0100
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: tromey@redhat.com
References: <3FB673C1.6010206@kaffe.org>	<1068933449.925.530.camel@elsschot.wildebeest.org>	<3FBA7364.9060206@kaffe.org>	<1069190892.1745.23.camel@elsschot.wildebeest.org>	<3FBAC3ED.1010904@kaffe.org>	<1069266136.2856.42.camel@elsschot.wildebeest.org>	<3FC11B25.50205@kaffe.org>
	<1069789112.1298.22.camel@localhost>	<3FC8ED6C.1060107@kaffe.org>
	<87n0ac11ev.fsf@fleche.redhat.com>
In-Reply-To: <87n0ac11ev.fsf@fleche.redhat.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>, GNU Classpath <classpath@gnu.org>
Subject: Re: The right way(tm) of writing toString() (Was: Re: [PATCH] Field
 position attribute handling)
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 Dec 2003 18:24:42 -0000

Hi Tom,

Tom Tromey wrote:
>>>>>>"Dalibor" == Dalibor Topic <robilad@kaffe.org> writes:
> 
> 
> Dalibor> here's my attempt at writing a short passage on the Art of Writing
> Dalibor> toString methods. As everyone has written bazillions of them, it's a
> Dalibor> perfect subject for bikeshed type of discussions. Feel free to chip in
> Dalibor> with your own bits of wisdom ;)
> 
> My bit of wisdom is: please put this in the classpath hacker's guide.
> We really should be collecting these how-tos as part of our coding
> standard, for all the usual reasons...

Thanks for your comment. I'll check it in tonight, with the chenges 
proposed by you and Victor.

cheers,
dalibor topic




From MAILER-DAEMON Tue Dec 02 16:03:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARHgO-0006zd-CL
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 16:03:44 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARHgL-0006z2-KA
	for classpath@gnu.org; Tue, 02 Dec 2003 16:03:41 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARHfp-0006uR-IZ
	for classpath@gnu.org; Tue, 02 Dec 2003 16:03:40 -0500
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARHfp-0006uA-16
	for classpath@gnu.org; Tue, 02 Dec 2003 16:03:09 -0500
Received: from fleche.redhat.com (tf0208.peakpeak.com [204.144.239.208])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id NAA12931
	for <classpath@gnu.org>; Tue, 2 Dec 2003 13:01:35 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 5DC954F8243; Tue,  2 Dec 2003 12:51:21 -0700 (MST)
To: graydon hoare <graydon@redhat.com>
References: <3FCBC4B1.4050001@redhat.com>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: My TOYOTA is built like a ... BAGEL with CREAM CHEESE!!
Date: 02 Dec 2003 12:51:21 -0700
In-Reply-To: <3FCBC4B1.4050001@redhat.com>
Message-ID: <87r7zn9ex2.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
Subject: Re: [patch] implement LightweightDispatcher
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, 02 Dec 2003 21:03:42 -0000

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

graydon> ok to commit?

Looks fine to me, just a couple nits.

graydon> +      // give lightweight dispatcher a chance to handle it

Comments are sentences in the GNU style, so capital letter and a
period.  There's a few of these.

graydon> + * rather than mimic it exactly we write something which does "roughtly

Typo, "roughly".

Tom



From MAILER-DAEMON Tue Dec 02 19:14:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARJAS-00048E-1L
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 17:38:52 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARJ7l-0003Fq-CF
	for classpath@gnu.org; Tue, 02 Dec 2003 17:36:05 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARIcD-0003gG-Es
	for classpath@gnu.org; Tue, 02 Dec 2003 17:04:00 -0500
Received: from [213.228.0.44] (helo=postfix3-1.free.fr)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARIc9-0003dM-7Q
	for classpath@gnu.org; Tue, 02 Dec 2003 17:03:25 -0500
Received: from kaffe.org (cachan-3-82-66-125-112.fbx.proxad.net
	[82.66.125.112])
	by postfix3-1.free.fr (Postfix) with ESMTP id 903F8C4EF7
	for <classpath@gnu.org>; Tue,  2 Dec 2003 22:01:54 +0100 (CET)
Message-ID: <3FCCFDC0.9030902@kaffe.org>
Date: Tue, 02 Dec 2003 22:01:52 +0100
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Classpath List <classpath@gnu.org>
X-Enigmail-Version: 0.76.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: multipart/mixed; boundary="------------000305060508070302040700"
Subject: [PATCH] Serialization #5
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 Dec 2003 22:38:50 -0000

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

Hi,

This is the patch #5 (the last will be the #6) about serialization.
It fixes the following problems:
* getField handles transient and non persistent field,
* readClassDescriptor uses the right class loader to decode fields,
it also verifies that the available fields (and required by the input stream) are
of the required types.
* if getOffset() < 0 then readFields() should not try to read any field from
the input stream.

Cheers,
Guilhem.

ChangeLog entry:

2003-12-02  Guilhem Lavaux <guilhem@kaffe.org>

	* java/io/ObjectInputStream.java:
	(getField): Handle transient and non persistent fields.
	(readClassDescriptor): Better error handling, use the right class loader.
	(readFields): Fields marked as not present in the stream or not to be set are
	not read and set.




--------------000305060508070302040700
Content-Type: text/plain;
 name="patch_no_5"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch_no_5"

Index: java/io/ObjectInputStream.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/io/ObjectInputStream.java,v
retrieving revision 1.33
diff -u -r1.33 ObjectInputStream.java
--- java/io/ObjectInputStream.java	2 Dec 2003 18:35:51 -0000	1.33
+++ java/io/ObjectInputStream.java	2 Dec 2003 20:46:54 -0000
@@ -434,6 +434,7 @@
                                                    flags, fields);
     assignNewHandle (osc);
 	      
+    int real_count;
     for (int i=0; i < field_count; i++)
       {
 	dumpElement ("  TYPE CODE=");
@@ -442,18 +443,46 @@
 	String field_name = this.realInputStream.readUTF ();
 	dumpElementln (field_name);
 	String class_name;
-		  
+	
+	// There're many cases you can't get java.lang.Class from
+	// typename if your context class loader can't load it,
+	// then use typename to construct the field
+	// GL => No. You lose the capability to access the class loader.
+	// Type resolution must be done here. If it is an object we
+	// create the class just here if it is something else we delegate
+	// to TypeSignature.
 	if (type_code == 'L' || type_code == '[')
 	  class_name = (String)readObject ();
 	else
 	  class_name = String.valueOf (type_code);
-		  
-	// There're many cases you can't get java.lang.Class from
-	// typename if your context class loader can't load it,
-	// then use typename to construct the field
+
 	fields[i] =
-	  new ObjectStreamField (field_name, class_name);
+	  new ObjectStreamField (field_name, class_name, currentLoader());
+      }
+
+
+    /* Now that fields have been read we may resolve the class
+     * (and read annotation if needed). */
+    Class clazz = resolveClass(osc);
+    
+    for (int i=0; i < field_count; i++)
+      {
+	Field f;
+	
+	try
+	  {
+	    f = clazz.getDeclaredField (fields[i].getName());
+	    if (f != null && !f.getType().equals(fields[i].getType()))
+	      throw new InvalidClassException("invalid field type for " +
+					      fields[i].getName() + " in class " + name +
+					      " (requested was \"" + fields[i].getType() +
+					      " and found \"" + f.getType() + "\")"); 
+	  }
+	catch (NoSuchFieldException _)
+	  {
+	  }
       }
+
 	      
     Class clazz = resolveClass (osc);
     boolean oldmode = setBlockDataMode (true);
@@ -1424,6 +1453,15 @@
 	      }
 	  }
 
+	if (stream_field.getOffset() < 0)
+	  {
+	    default_initialize = true;
+	    set_value = false;
+	  }
+	
+	if (!stream_field.isToSet()) 
+	  set_value = false;
+
 	try
 	  {
 	    if (type == Boolean.TYPE)
@@ -1571,10 +1609,23 @@
    */
   private static native ClassLoader currentClassLoader (SecurityManager sm);
 
-  private static Field getField (Class klass, String name)
+  /**
+   * This method tries to access a precise field called in the
+   * specified class. Before accessing the field, it tries to
+   * gain control on this field. If the field is either declared as 
+   * not persistent or transient then it returns null
+   * immediately.
+   *
+   * @param klass Class to get the field from.
+   * @param name Name of the field to access.
+   * @return Field instance representing the requested field.
+   * @throws NoSuchFieldException if the field does not exist.
+   */
+  private Field getField (Class klass, String name)
     throws java.lang.NoSuchFieldException
   {
     final Field f = klass.getDeclaredField(name);
+    ObjectStreamField sf = lookupClass (klass).getField(name);
     
     AccessController.doPrivileged(new PrivilegedAction()
       {
@@ -1584,6 +1635,14 @@
 	  return null;
 	}
       });
+
+    /* We do not want to modify transient fields. They should
+     * be left to 0.
+     * N.B.: Not valid if the field is in serialPersistentFields. 
+     */
+    if (Modifier.isTransient(f.getModifiers()) && !sf.isPersistent())
+      return null;
+   
     return f;
   }
 

--------------000305060508070302040700--




From MAILER-DAEMON Tue Dec 02 19:56:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARLHu-0008Su-Sb
	for mharc-classpath@gnu.org; Tue, 02 Dec 2003 19:54:42 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARLHD-0008Du-OI
	for classpath@gnu.org; Tue, 02 Dec 2003 19:53:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARLDZ-0007DD-Um
	for classpath@gnu.org; Tue, 02 Dec 2003 19:50:46 -0500
Received: from [132.208.250.6] (helo=anis.telecom.uqam.ca)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARLDY-0007CZ-N7
	for classpath@gnu.org; Tue, 02 Dec 2003 19:50:12 -0500
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 hB2NjAgZ014286
	for <classpath@gnu.org>; Tue, 2 Dec 2003 18:45:22 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
	by anis.telecom.uqam.ca (SAVSMTP 3.1.1.32) with SMTP id
	M2003120218452209083
	for <classpath@gnu.org>; Tue, 02 Dec 2003 18:45:22 -0500
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
	hB2LRCBU024160
	for <classpath@gnu.org>; Tue, 2 Dec 2003 16:27:12 -0500 (EST)
X-Spam-Filter: Filtre-Uqam re:  abuse@uqam.ca
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by localhost with esmtp (Exim 3.36 #1 (Debian)) id 1ARI37-0007Ey-00
	for <classpath@gnu.org>; Tue, 02 Dec 2003 16:27:13 -0500
Message-ID: <3FCD03AF.9070304@uqam.ca>
Date: Tue, 02 Dec 2003 16:27:11 -0500
From: Etienne Gagnon <gagnon.etienne_m@uqam.ca>
Organization: UQAM
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
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: Retry: Classpath 0.07 + SableVM
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 Dec 2003 00:54:40 -0000

I ought to re-read my messages berfore pressing "send".

Mainly, what I meant, in my previous message, was that you can actually
get a "staging" copy of SableVM + Classpath 0.07 right *now*, by following
the stated instructions.

Usually, you could also get a pre-packages .tar.gz daily snapshot, but our
"snapshot server" is momentarily down.

We are planning to put all our Classpath changes back into GNU Classpath CVS
very soon, so that Classpath developers can use SableVM directly with
CVS Classpath for do day-to-day development, if they wish.

Enjoy!

Etienne

-- 
Etienne M. Gagnon, Ph.D.                             egagnon@j-meg.com
President                                      http://www.sablevm.org/
J-Meg inc.                                     http://www.sablecc.org/





From MAILER-DAEMON Wed Dec 03 00:03:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARPAJ-000091-Lu
	for mharc-classpath@gnu.org; Wed, 03 Dec 2003 00:03:07 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARPAB-0008Kl-Pg
	for classpath@gnu.org; Wed, 03 Dec 2003 00:02:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARP9c-00081N-1m
	for classpath@gnu.org; Wed, 03 Dec 2003 00:02:55 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARP8x-0007q5-BK
	for classpath@gnu.org; Wed, 03 Dec 2003 00:01:43 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id VAA03843
	for <classpath@gnu.org>; Tue, 2 Dec 2003 21:59:23 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hB33xNRl017083
	for <classpath@gnu.org>; Tue, 2 Dec 2003 21:59:23 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hB33xME0017082
	for classpath@gnu.org; Tue, 2 Dec 2003 21:59:22 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312030359.hB33xME0017082@arch20m.dellroad.org>
To: classpath@gnu.org
Date: Tue, 2 Dec 2003 21:59:22 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Subject: FreeBSD build failure
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 Dec 2003 05:03:05 -0000

Hi,

The file native/target/generic/target_generic_file.h has this line:

    #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC

However, FreeBSD uses "O_FSYNC" rather than "O_SYNC", so the build of
Classpath on FreeBSD fails (is it just me?).

Would it be possible to fix this before 0.07?

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com



From MAILER-DAEMON Wed Dec 03 04:36:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARTRA-0000rM-4w
	for mharc-classpath@gnu.org; Wed, 03 Dec 2003 04:36:48 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARTR3-0000pk-Ob
	for classpath@gnu.org; Wed, 03 Dec 2003 04:36:41 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARTQN-0000iW-TG
	for classpath@gnu.org; Wed, 03 Dec 2003 04:36:30 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ARTQN-0000h8-4l
	for classpath@gnu.org; Wed, 03 Dec 2003 04:35:59 -0500
Received: from [80.36.14.55] (helo=servidorcorreo.edunet.es)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1ARSOp-0001SX-Db
	for classpath@gnu.org; Wed, 03 Dec 2003 03:30:19 -0500
Received: from yahoo.es ([80.25.157.178]) by
	servidorcorreo.edunet.es (Netscape Messaging Server 4.15) with
	ESMTP id HPB90V00.P6G for <classpath@gnu.org>; Wed, 3 Dec 2003
	09:31:43 +0100 
Message-ID: <3FCD9EC1.6090306@yahoo.es>
Date: Wed, 03 Dec 2003 09:28:49 +0100
From: Victor Niebla <niebla_negra@yahoo.es>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: GNU Classpath <classpath@gnu.org>
References: <3FB673C1.6010206@kaffe.org>	<1068933449.925.530.camel@elsschot.wildebeest.org>	<3FBA7364.9060206@kaffe.org>	<1069190892.1745.23.camel@elsschot.wildebeest.org>	<3FBAC3ED.1010904@kaffe.org>	<1069266136.2856.42.camel@elsschot.wildebeest.org>	<3FC11B25.50205@kaffe.org>	<1069789112.1298.22.camel@localhost>	<3FC8ED6C.1060107@kaffe.org>	<87n0ac11ev.fsf@fleche.redhat.com>
	<3FCCC13B.3060802@kaffe.org>
In-Reply-To: <3FCCC13B.3060802@kaffe.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: The right way(tm) of writing toString() (Was: Re: [PATCH] Field
 position attribute handling)
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 Dec 2003 09:36:43 -0000

Dalibor Topic wrote:

> Hi Tom,
>
> Tom Tromey wrote:
>
>>>>>>> "Dalibor" == Dalibor Topic <robilad@kaffe.org> writes:
>>>>>>
>>
>>
>> Dalibor> here's my attempt at writing a short passage on the Art of 
>> Writing
>> Dalibor> toString methods. As everyone has written bazillions of 
>> them, it's a
>> Dalibor> perfect subject for bikeshed type of discussions. Feel free 
>> to chip in
>> Dalibor> with your own bits of wisdom ;)
>>
>> My bit of wisdom is: please put this in the classpath hacker's guide.
>> We really should be collecting these how-tos as part of our coding
>> standard, for all the usual reasons...
>
>
> Thanks for your comment. I'll check it in tonight, with the chenges 
> proposed by you and Victor.

Remember that the example that i used (with HttpURLConnection) was wrong.





From MAILER-DAEMON Wed Dec 03 06:10:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARUtn-0003mY-Jw
	for mharc-classpath@gnu.org; Wed, 03 Dec 2003 06:10:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARUtk-0003lx-EA
	for classpath@gnu.org; Wed, 03 Dec 2003 06:10:24 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARUtD-0003ev-CK
	for classpath@gnu.org; Wed, 03 Dec 2003 06:10:22 -0500
Received: from [212.6.122.116] (helo=mail2.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARUtC-0003ed-LW
	for classpath@gnu.org; Wed, 03 Dec 2003 06:09:50 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-73-204.ewetel.net
	[80.228.73.204])
	by mail2.ewetel.de (8.12.1/8.12.9) with ESMTP id hB3A8H6J015442;
	Wed, 3 Dec 2003 11:08:20 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1ARTwp-0005UC-00; Wed, 03 Dec 2003 11:09:31 +0100
Date: Wed, 3 Dec 2003 11:09:31 +0100
From: Michael Koch <konqueror@gmx.de>
To: Archie Cobbs <archie@dellroad.org>
Message-ID: <20031203100931.GA19541@mail.konqueror.de>
References: <200312030359.hB33xME0017082@arch20m.dellroad.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="CE+1k2dSO48ffgeK"
Content-Disposition: inline
In-Reply-To: <200312030359.hB33xME0017082@arch20m.dellroad.org>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: classpath@gnu.org
Subject: Re: FreeBSD build failure
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 Dec 2003 11:10:25 -0000


--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Dec 02, 2003 at 09:59:22PM -0600, Archie Cobbs wrote:
> Hi,
> 
> The file native/target/generic/target_generic_file.h has this line:
> 
>     #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
> 
> However, FreeBSD uses "O_FSYNC" rather than "O_SYNC", so the build of
> Classpath on FreeBSD fails (is it just me?).

Well, I think classpath was not tested on FreeBSD for some month (!!!).
I've a patch that should solve your problems. Please test it and report
back.

> Would it be possible to fix this before 0.07?

Unfortunately not. Classpath 0.07 is already released just not uploaded
to ftp.gnu.org I think.


Michael

--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="sync.diff"

Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.1687
diff -u -b -B -r1.1687 ChangeLog
--- ChangeLog	3 Dec 2003 08:20:03 -0000	1.1687
+++ ChangeLog	3 Dec 2003 10:03:29 -0000
@@ -1,3 +1,9 @@
+2003-12-03  Michael Koch  <konqueror@gmx.de>
+
+	* native/target/generic/target_generic_file.h
+	(TARGET_NATIVE_FILE_FILEFLAG_SYNC): Define to O_FSYNC on systems where
+	O_SYNC doesnt exist but O_FSYNC does (like FreeBSD).
+
 2003-12-03  Fernando Nasser  <fnasser@redhat.com>
 
 	* java/awt/List.java (getSelectedIndex):
Index: native/target/generic/target_generic_file.h
===================================================================
RCS file: /cvsroot/classpath/classpath/native/target/generic/target_generic_file.h,v
retrieving revision 1.11
diff -u -b -B -r1.11 target_generic_file.h
--- native/target/generic/target_generic_file.h	2 Nov 2003 15:51:19 -0000	1.11
+++ native/target/generic/target_generic_file.h	3 Dec 2003 10:03:30 -0000
@@ -90,7 +90,11 @@
   #define TARGET_NATIVE_FILE_FILEFLAG_APPEND O_APPEND
 #endif
 #ifndef TARGET_NATIVE_FILE_FILEFLAG_SYNC
+  #if !defined (O_SYNC) && defined (O_FSYNC)
+    #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_FSYNC
+  #else
   #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
+  #endif
 #endif
 #ifndef TARGET_NATIVE_FILE_FILEFLAG_DSYNC
   #ifdef O_DSYNC

--CE+1k2dSO48ffgeK--



From MAILER-DAEMON Wed Dec 03 10:47:12 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARZDb-0007d0-Qc
	for mharc-classpath@gnu.org; Wed, 03 Dec 2003 10:47:11 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARZDU-0007cM-EX
	for classpath@gnu.org; Wed, 03 Dec 2003 10:47:04 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARZCy-0007QZ-AP
	for classpath@gnu.org; Wed, 03 Dec 2003 10:47:03 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARZCx-0007QV-TH
	for classpath@gnu.org; Wed, 03 Dec 2003 10:46:31 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id IAA09166;
	Wed, 3 Dec 2003 08:40:21 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hB3EeKRl033295;
	Wed, 3 Dec 2003 08:40:20 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hB3EeKtB033294;
	Wed, 3 Dec 2003 08:40:20 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312031440.hB3EeKtB033294@arch20m.dellroad.org>
In-Reply-To: <20031203100931.GA19541@mail.konqueror.de>
To: Michael Koch <konqueror@gmx.de>
Date: Wed, 3 Dec 2003 08:40:20 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Cc: classpath@gnu.org
Subject: Re: FreeBSD build failure
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 Dec 2003 15:47:09 -0000

Michael Koch wrote:
> > The file native/target/generic/target_generic_file.h has this line:
> > 
> >     #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
> > 
> > However, FreeBSD uses "O_FSYNC" rather than "O_SYNC", so the build of
> > Classpath on FreeBSD fails (is it just me?).
> 
> Well, I think classpath was not tested on FreeBSD for some month (!!!).
> I've a patch that should solve your problems. Please test it and report
> back.

Thanks, that should do it.

I also noticed this:

    $ make
    Making all in lib
    "Makefile", line 420: Need an operator
    make: fatal errors encountered -- cannot continue
    *** Error code 1

    Stop in /usr/home/archie/classpath/cvs.

It works if I use "gmake" instead of "make". Line 420 is:

    sinclude $(JAVA_DEPEND)

This seems to be a gmake-specific makefile construct. This line also
exists in Makefile.am so this doesn't seem to be automake's fault.

> > Would it be possible to fix this before 0.07?
> 
> Unfortunately not. Classpath 0.07 is already released just not uploaded
> to ftp.gnu.org I think.

No problem.. eagerly awaiting posting of the new 0.07 tarball :-)

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com



From MAILER-DAEMON Wed Dec 03 11:29:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARZsN-00047q-9z
	for mharc-classpath@gnu.org; Wed, 03 Dec 2003 11:29:19 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARZsK-00046y-8L
	for classpath@gnu.org; Wed, 03 Dec 2003 11:29:16 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARZri-0003zg-BX
	for classpath@gnu.org; Wed, 03 Dec 2003 11:29:09 -0500
Received: from [212.6.122.116] (helo=mail2.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARZrh-0003zK-J8
	for classpath@gnu.org; Wed, 03 Dec 2003 11:28:37 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-73-204.ewetel.net
	[80.228.73.204])
	by mail2.ewetel.de (8.12.1/8.12.9) with ESMTP id hB3FR16J005307;
	Wed, 3 Dec 2003 16:27:02 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1ARYvI-0006L8-00; Wed, 03 Dec 2003 16:28:16 +0100
Date: Wed, 3 Dec 2003 16:28:16 +0100
From: Michael Koch <konqueror@gmx.de>
To: Archie Cobbs <archie@dellroad.org>
Message-ID: <20031203152816.GE22504@mail.konqueror.de>
References: <20031203100931.GA19541@mail.konqueror.de>
	<200312031440.hB3EeKtB033294@arch20m.dellroad.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200312031440.hB3EeKtB033294@arch20m.dellroad.org>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: classpath@gnu.org, Michael Koch <konqueror@gmx.de>
Subject: Re: FreeBSD build failure
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 Dec 2003 16:29:17 -0000

On Wed, Dec 03, 2003 at 08:40:20AM -0600, Archie Cobbs wrote:
> Michael Koch wrote:
> > > The file native/target/generic/target_generic_file.h has this line:
> > > 
> > >     #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
> > > 
> > > However, FreeBSD uses "O_FSYNC" rather than "O_SYNC", so the build of
> > > Classpath on FreeBSD fails (is it just me?).
> > 
> > Well, I think classpath was not tested on FreeBSD for some month (!!!).
> > I've a patch that should solve your problems. Please test it and report
> > back.
> 
> Thanks, that should do it.

It should or it does ?

> I also noticed this:
> 
>     $ make
>     Making all in lib
>     "Makefile", line 420: Need an operator
>     make: fatal errors encountered -- cannot continue
>     *** Error code 1
> 
>     Stop in /usr/home/archie/classpath/cvs.
> 
> It works if I use "gmake" instead of "make". Line 420 is:
> 
>     sinclude $(JAVA_DEPEND)
> 
> This seems to be a gmake-specific makefile construct. This line also
> exists in Makefile.am so this doesn't seem to be automake's fault.

Can you try to replace this with:

	-include $(JABA_DEPEND)

If that works we can commit this as "sinclude" seems to be GNU make
specific.

> No problem.. eagerly awaiting posting of the new 0.07 tarball :-)

We will have daily CVS snapshots soon. 0.08 will out in 3 month.


Michael



From MAILER-DAEMON Wed Dec 03 11:31:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARZu3-0004XO-Uc
	for mharc-classpath@gnu.org; Wed, 03 Dec 2003 11:31:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARZtz-0004Vy-DW
	for classpath@gnu.org; Wed, 03 Dec 2003 11:30:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARZtR-0004Oo-AD
	for classpath@gnu.org; Wed, 03 Dec 2003 11:30:56 -0500
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARZtQ-0004OH-D3
	for classpath@gnu.org; Wed, 03 Dec 2003 11:30:24 -0500
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1ARYvx-0005D8-00
	for <classpath@gnu.org>; Wed, 03 Dec 2003 16:28:57 +0100
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 1ARYvv-0005CW-00; Wed, 03 Dec 2003 16:28:55 +0100
Message-ID: <3FCE0137.9010509@kaffe.org>
Date: Wed, 03 Dec 2003 16:28:55 +0100
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: Guilhem Lavaux <guilhem@kaffe.org>
References: <3FC663CF.50600@kaffe.org>
In-Reply-To: <3FC663CF.50600@kaffe.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: Classpath List <classpath@gnu.org>
Subject: Re: [PATCH] Serialization #4
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 Dec 2003 16:31:01 -0000

Guilhem Lavaux wrote:
> Hi,
> 
> Here is a new part of the patch for serialization. It is mainly about 
> restructuring the class lookup logic. It appeared that you need to build 
> a class lookup table and a class hierarchy for a given input stream. 
> Without that, if you write something with ObjectOutputStream and then 
> read something else the previous code was using the already built class 
> hierarchy to decode this new stream. The solution was obviously to build 
> a full lookup table for each instance of ObjectInputStream. At the same 
> time, ObjectStreamClass continue to manage the "real" class hierarchy 
> (i.e. the one that exists in the VM at the running time).

looks good to me.

cheers,
dalibor topic




From MAILER-DAEMON Wed Dec 03 11:35:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARZyE-0005cD-6C
	for mharc-classpath@gnu.org; Wed, 03 Dec 2003 11:35:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARZyA-0005ax-7k
	for classpath@gnu.org; Wed, 03 Dec 2003 11:35:18 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARZxc-0005RJ-8n
	for classpath@gnu.org; Wed, 03 Dec 2003 11:35:15 -0500
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARZxb-0005R6-Rg
	for classpath@gnu.org; Wed, 03 Dec 2003 11:34:43 -0500
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1ARZ0A-0006KZ-00
	for <classpath@gnu.org>; Wed, 03 Dec 2003 16:33:18 +0100
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 1ARZ07-0006KC-00; Wed, 03 Dec 2003 16:33:15 +0100
Message-ID: <3FCE023B.8050204@kaffe.org>
Date: Wed, 03 Dec 2003 16:33:15 +0100
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: Guilhem Lavaux <guilhem@kaffe.org>
References: <3FCCFDC0.9030902@kaffe.org>
In-Reply-To: <3FCCFDC0.9030902@kaffe.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: Classpath List <classpath@gnu.org>
Subject: Re: [PATCH] Serialization #5
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 Dec 2003 16:35:19 -0000

Salut Guilhem,

Guilhem Lavaux wrote:
> Hi,
> 
> This is the patch #5 (the last will be the #6) about serialization.
> It fixes the following problems:
> * getField handles transient and non persistent field,
> * readClassDescriptor uses the right class loader to decode fields,
> it also verifies that the available fields (and required by the input 
> stream) are
> of the required types.
> * if getOffset() < 0 then readFields() should not try to read any field 
> from
> the input stream.

looks good me. I have one small nit to pick:

> @@ -442,18 +443,46 @@
>  	String field_name = this.realInputStream.readUTF ();
>  	dumpElementln (field_name);
>  	String class_name;
> -		  
> +	
> +	// There're many cases you can't get java.lang.Class from
> +	// typename if your context class loader can't load it,
> +	// then use typename to construct the field
> +	// GL => No. You lose the capability to access the class loader.
> +	// Type resolution must be done here. If it is an object we
> +	// create the class just here if it is something else we delegate
> +	// to TypeSignature.

Just rewrite the comment, don't discuss it in another. ;)

cheers,
dalibor topic




From MAILER-DAEMON Wed Dec 03 14:56:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARd75-0005Vm-L5
	for mharc-classpath@gnu.org; Wed, 03 Dec 2003 14:56:43 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARd72-0005VE-9w
	for classpath@gnu.org; Wed, 03 Dec 2003 14:56:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARd6W-00053Z-Ks
	for classpath@gnu.org; Wed, 03 Dec 2003 14:56:39 -0500
Received: from [213.228.0.44] (helo=postfix3-1.free.fr)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARd6W-00051O-3K
	for classpath@gnu.org; Wed, 03 Dec 2003 14:56:08 -0500
Received: from kaffe.org (cachan-3-82-66-125-112.fbx.proxad.net
	[82.66.125.112]) by postfix3-1.free.fr (Postfix) with ESMTP
	id B26F0C5970; Wed,  3 Dec 2003 19:54:41 +0100 (CET)
Message-ID: <3FCE316A.8040302@kaffe.org>
Date: Wed, 03 Dec 2003 19:54:34 +0100
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Dalibor Topic <robilad@kaffe.org>
References: <3FCCFDC0.9030902@kaffe.org> <3FCE023B.8050204@kaffe.org>
In-Reply-To: <3FCE023B.8050204@kaffe.org>
X-Enigmail-Version: 0.76.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: [PATCH] Serialization #5
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 Dec 2003 19:56:40 -0000

Dalibor Topic wrote:

> Salut Guilhem,
>
>> @@ -442,18 +443,46 @@
>>      String field_name = this.realInputStream.readUTF ();
>>      dumpElementln (field_name);
>>      String class_name;
>> -          +   
>> +    // There're many cases you can't get java.lang.Class from
>> +    // typename if your context class loader can't load it,
>> +    // then use typename to construct the field
>> +    // GL => No. You lose the capability to access the class loader.
>> +    // Type resolution must be done here. If it is an object we
>> +    // create the class just here if it is something else we delegate
>> +    // to TypeSignature.
>
>
> Just rewrite the comment, don't discuss it in another. ;)


Ok. :-) Fixed in the next commit.

Cheers,
Guilhem.




From MAILER-DAEMON Thu Dec 04 07:42:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARsoQ-00057l-Tx
	for mharc-classpath@gnu.org; Thu, 04 Dec 2003 07:42:30 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARsoN-00056Z-Mo
	for classpath@gnu.org; Thu, 04 Dec 2003 07:42:27 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARslZ-0004J8-8s
	for classpath@gnu.org; Thu, 04 Dec 2003 07:40:05 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARrzn-00025L-95
	for classpath@gnu.org; Thu, 04 Dec 2003 06:50:11 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1ARr1m-0001pq-00
	for <classpath@gnu.org>; Thu, 04 Dec 2003 11:48:10 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-+Cz9QS3QIV+pBEfq+WJg"
Message-Id: <1070534924.5326.55.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Thu, 04 Dec 2003 11:48:45 +0100
Subject: savannah.gnu.org compromised
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 Dec 2003 12:42:28 -0000


--=-+Cz9QS3QIV+pBEfq+WJg
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

If you were wondering why CVS doesn't work anymore or why the last
classpath 0.07 release hasn't gone up on the gnu.org servers this is the
reason. From http://savannah.gnu.org/statement.html:

        On December 1st, 2003, we discovered that the "Savannah" system,
        which is maintained by the Free Software Foundation and provides
        CVS and development services to the GNU project and other Free
        Software projects, was compromised at circa November 2nd, 2003.
       =20
        The compromise seems to be of the same nature as the recent
        attacks on Debian project servers; the attacker seemed to
        operate identically. However, this incident was distinctly
        different from the modus operandi we found in the attacks on our
        FTP server in August 2003. We have also confirmed that an
        unauthorized party gained root access and installed a root-kit
        ("SucKIT") on November 2nd, 2003.
       =20
        In the interest of continuing cooperation and in helping to
        improve security for all essential Free Software infrastructure,
        and despite important philosophical differences, we are working
        closely with Debian project members to find the perpetrators and
        to secure essential Free Software infrastructure for the future.
        We hope to have future joint announcements that discuss a
        unified strategy for addressing these problems.
       =20
        For the moment, we are installing replacement hardware for the
        Savannah system, and we will begin restoring the Savannah
        software this week. Initially, there will be some security
        related changes which may be inconvenient for our developers. We
        will try to ease these as we find secure ways to do so. We are
        in particular researching ways to ensure secured authentication
        of the source code trees stored on the system.
       =20
        We will send more detailed announcements about efforts to verify
        the authenticity of the source code hosted on Savannah, and how
        the community can help in that effort once we've brought the
        system back online.
       =20
        We hope to have at least minimal services back up by Friday 5
        December 2003.

[...insert some strong negative statement here, not appropriate for
little children...]

As soon as I have more information I will let you know.

Meanwhile please all check your own machines carefully.
Some help for people running Debian GNU/Linux to do this can be found
at: http://www.wiggy.net/debian/developer-securing/
(It specifically describes what debian developers should do, but is
useful information for everybody.)

Mark

--=-+Cz9QS3QIV+pBEfq+WJg
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/zxEMxVhZCJWr9QwRArAbAJ95CVQjgVzpN3HZABiJQFkbpUxeQACfS+45
s9VQdciOvQdvk5xisRLGOT8=
=nHRH
-----END PGP SIGNATURE-----

--=-+Cz9QS3QIV+pBEfq+WJg--




From MAILER-DAEMON Thu Dec 04 08:06:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARtBC-0005hu-Mz
	for mharc-classpath@gnu.org; Thu, 04 Dec 2003 08:06:02 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARtB8-0005ep-93
	for classpath@gnu.org; Thu, 04 Dec 2003 08:05:58 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARt3A-0001wd-TR
	for classpath@gnu.org; Thu, 04 Dec 2003 07:58:16 -0500
Received: from [212.6.122.141] (helo=mail4.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARsM8-0001oe-6d
	for classpath@gnu.org; Thu, 04 Dec 2003 07:13:16 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-80-168.ewetel.net
	[80.228.80.168])
	by mail4.ewetel.de (8.12.1/8.12.9) with ESMTP id hB4BBhZD022252
	for <classpath@gnu.org>; Thu, 4 Dec 2003 12:11:44 +0100 (MET)
Received: from asterix.konqueror.de ([192.168.1.3])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1ARrPr-0001Fc-00
	for <classpath@gnu.org>; Thu, 04 Dec 2003 12:13:03 +0100
From: Michael Koch <konqueror@gmx.de>
To: classpath <classpath@gnu.org>
Date: Thu, 4 Dec 2003 13:16:51 +0100
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
  boundary="Boundary-00=_zWyz/TgcPpQ87Uv"
Message-Id: <200312041316.51907.konqueror@gmx.de>
X-CheckCompat: OK
Subject: Patch: java.net.DatagramPacket
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 Dec 2003 13:05:59 -0000


--Boundary-00=_zWyz/TgcPpQ87Uv
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Description: clearsigned data
Content-Disposition: inline

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

Hi list,


I commit the attached patch together with some native parts to libgcj.=20
Can some brave soul please test it on classpath (with kissme or so)=20
and report back ?


Michael


P.S. Sorry if the patch doesnt apply cleanly but it was make against=20
libgcj CVS.
=2D --=20
Homepage: http://www.worldforge.org/
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/zyWzWSOgCCdjSDsRAlllAJwL2+fIZkX0lhknxQhzZPu0DqMCvgCdEfKK
lMfQuvFbf2mLGHCMD0FAo+0=3D
=3DvYnR
=2D----END PGP SIGNATURE-----

--Boundary-00=_zWyz/TgcPpQ87Uv
Content-Type: text/x-diff;
  charset="iso-8859-15";
  name="udp.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="udp.diff"

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2415
diff -u -b -B -r1.2415 ChangeLog
--- ChangeLog	4 Dec 2003 00:31:26 -0000	1.2415
+++ ChangeLog	4 Dec 2003 10:42:04 -0000
@@ -1,3 +1,14 @@
+2003-12-04  Michael Koch  <konqueror@gmx.de>
+
+	* java/net/DatagramPacket.java
+	(length): Made packge-private to make it accessible via CNI.
+	(maxlen): New field.
+	(DatagramPacket): Cleaned up.
+	(setSocketAddress): Add message to exception.
+	(setData): Call other setData().
+	(setData): Call setLength().
+	(setLength): Initialize maxlen too.
+
 2003-12-03  Mohan Embar  <gnustuff@thisiscool.com>
 
 	* gnu/java/nio/natSelectorImplPosix.cc
Index: java/net/DatagramPacket.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/DatagramPacket.java,v
retrieving revision 1.13
diff -u -b -B -r1.13 DatagramPacket.java
--- java/net/DatagramPacket.java	26 Nov 2003 10:11:45 -0000	1.13
+++ java/net/DatagramPacket.java	4 Dec 2003 10:42:04 -0000
@@ -78,13 +78,18 @@
   private int offset;
 
   /**
-   * The length of the data buffer to send
+   * The length of the data buffer to send.
    */
-  private int length;
+  int length;
+
+  /**
+   * The maximal length of the buffer.
+   */
+  int maxlen;
 
   /**
    * The address to which the packet should be sent or from which it
-   * was received
+   * was received.
    */
   private InetAddress address;
 
@@ -106,21 +111,9 @@
    */
   public DatagramPacket(byte[] buf, int offset, int length)
   {
-    if (buf == null)
-      throw new NullPointerException("Null buffer");
-    if (offset < 0)
-      throw new IllegalArgumentException("Invalid offset: " + offset);
-    if (length < 0)
-      throw new IllegalArgumentException("Invalid length: " + length);
-    if (offset + length > buf.length)
-      throw new IllegalArgumentException("Potential buffer overflow - offset: "
-			+ offset + " length: " + length);
-
-    buffer = buf;
-    this.offset = offset;
-    this.length = length;
-    this.address = null;
-    this.port = -1;
+    setData(buf, offset, length);
+    address = null;
+    port = -1;
   }
 
   /**
@@ -150,25 +143,9 @@
   public DatagramPacket(byte[] buf, int offset, int length,
 	InetAddress address, int port)
   {
-    if (buf == null)
-      throw new NullPointerException("Null buffer");
-    if (offset < 0)
-      throw new IllegalArgumentException("Invalid offset: " + offset);
-    if (length < 0)
-      throw new IllegalArgumentException("Invalid length: " + length);
-    if (offset + length > buf.length)
-      throw new IllegalArgumentException("Potential buffer overflow - offset: "
-			+ offset + " length: " + length);
-    if (port < 0 || port > 65535)
-      throw new IllegalArgumentException("Invalid port: " + port);
-    if (address == null)
-      throw new NullPointerException("Null address");
-
-    buffer = buf;
-    this.offset = offset;
-    this.length = length;
-    this.address = address;
-    this.port = port;
+    setData(buf, offset, length);
+    setAddress(address);
+    setPort(port);
   }
 
   /**
@@ -203,8 +180,13 @@
 		        SocketAddress address)
      throws SocketException
   {
-    this(buf, offset, length, ((InetSocketAddress)address).getAddress(),
-         ((InetSocketAddress)address).getPort());
+    if (! (address instanceof InetSocketAddress))
+      throw new IllegalArgumentException("unsupported address type");
+
+    InetSocketAddress tmp = (InetSocketAddress) address;
+    setData(buf, offset, length);
+    setAddress(tmp.getAddress());
+    setPort(tmp.getPort());
   }
 
   /**
@@ -223,8 +205,7 @@
   public DatagramPacket(byte[] buf, int length, SocketAddress address)
     throws SocketException
   {
-    this(buf, 0, length, ((InetSocketAddress)address).getAddress(),
-         ((InetSocketAddress)address).getPort());
+    this(buf, 0, length, address);
   }
 
   /**
@@ -330,9 +311,10 @@
   public void setSocketAddress(SocketAddress address)
     throws IllegalArgumentException
   {
-    if (address == null) throw new IllegalArgumentException();
+    if (address == null)
+      throw new IllegalArgumentException("address may not be null");
 
-    InetSocketAddress tmp = (InetSocketAddress)address;
+    InetSocketAddress tmp = (InetSocketAddress) address;
     this.address = tmp.getAddress();
     this.port = tmp.getPort();
   }
@@ -359,14 +341,9 @@
    *
    * @since 1.1
    */
-  public synchronized void setData(byte[] buf)
+  public void setData(byte[] buf)
   {
-    // This form of setData requires setLength to be called separately
-    // and subsequently.
-    if (buf == null)
-      throw new NullPointerException("Null buffer");
-
-    buffer = buf;
+    setData(buf, 0, buf.length);
   }
 
   /**
@@ -388,15 +365,10 @@
       throw new NullPointerException("Null buffer");
     if (offset < 0)
       throw new IllegalArgumentException("Invalid offset: " + offset);
-    if (length < 0)
-      throw new IllegalArgumentException("Invalid length: " + length);
-    if (offset + length > buf.length)
-      throw new IllegalArgumentException("Potential buffer overflow - offset: "
-			+ offset + " length: " + length);
 
     buffer = buf;
     this.offset = offset;
-    this.length = length;
+    setLength(length);
   }
 
   /**
@@ -418,6 +390,6 @@
 			+ offset + " length: " + length);
 
     this.length = length;
+    this.maxlen = length;
   }
-} // class DatagramPacket
-
+}

--Boundary-00=_zWyz/TgcPpQ87Uv--




From MAILER-DAEMON Thu Dec 04 11:23:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARwFx-0005nm-Hr
	for mharc-classpath@gnu.org; Thu, 04 Dec 2003 11:23:09 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARwFu-0005mX-58
	for classpath@gnu.org; Thu, 04 Dec 2003 11:23:06 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARwFN-0005ad-83
	for classpath@gnu.org; Thu, 04 Dec 2003 11:23:04 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARwFM-0005aT-N6
	for classpath@gnu.org; Thu, 04 Dec 2003 11:22:32 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1ARvHL-0002jJ-00
	for <classpath@gnu.org>; Thu, 04 Dec 2003 16:20:31 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath <classpath@gnu.org>
In-Reply-To: <200312041316.51907.konqueror@gmx.de>
References: <200312041316.51907.konqueror@gmx.de>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-tDwHRGBWI4iyS5G0hBSM"
Message-Id: <1070551266.5326.118.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Thu, 04 Dec 2003 16:21:06 +0100
Subject: Re: Patch: java.net.DatagramPacket
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 Dec 2003 16:23:07 -0000


--=-tDwHRGBWI4iyS5G0hBSM
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Thu, 2003-12-04 at 13:16, Michael Koch wrote:
> I commit the attached patch together with some native parts to libgcj.=20
> Can some brave soul please test it on classpath (with kissme or so)=20
> and report back ?

I quickly tried.
There don't seem to be any Mauve tests affected.
But this is the result from running the udp-tests from
http://www.scheinwelt.at/~norbertf/gcj/tests/
We should turn these into mauve tests.

Cheers,

Mark

$ ~/src/kissme/useful_scripts/kissme UDPTest2
Test 0
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
Test 0
got packet:World Hello 0987654321 length=3D22
Test 0
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
Test 0
got packet:World Hello 0987654321 length=3D22
Test 0
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
Test 0
got packet:World Hello 0987654321 length=3D22
Test 0
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
Test 0
got packet:World Hello 0987654321 length=3D22
Test 0
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
Test 0
got packet:World Hello 0987654321 length=3D22
Test 1
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
bad getLength=3D37 - should be 22 or 30.
Test 1
got packet:World Hello 0987654321 length=3D22
Test 1
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
bad getLength=3D37 - should be 22 or 30.
Test 1
got packet:World Hello 0987654321 length=3D22
Test 1
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
bad getLength=3D37 - should be 22 or 30.
Test 1
got packet:World Hello 0987654321 length=3D22
Test 1
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
bad getLength=3D37 - should be 22 or 30.
Test 1
got packet:World Hello 0987654321 length=3D22
Test 1
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
bad getLength=3D37 - should be 22 or 30.
Test 1
got packet:World Hello 0987654321 length=3D22
Test 2
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
bad getLength=3D37 - should be 0.
Test 2
got packet:World Hello 0987654321 length=3D22
bad getLength=3D22 - should be 0.
Test 2
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
bad getLength=3D37 - should be 0.
Test 2
got packet:World Hello 0987654321 length=3D22
bad getLength=3D22 - should be 0.
Test 2
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
bad getLength=3D37 - should be 0.
Test 2
got packet:World Hello 0987654321 length=3D22
bad getLength=3D22 - should be 0.
Test 2
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
bad getLength=3D37 - should be 0.
Test 2
got packet:World Hello 0987654321 length=3D22
bad getLength=3D22 - should be 0.
Test 2
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
bad getLength=3D37 - should be 0.
Test 2
got packet:World Hello 0987654321 length=3D22
bad getLength=3D22 - should be 0.
ERROR COUNT: 15

$ ~/src/kissme/useful_scripts/kissme UDPTest
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
got packet:World Hello 0987654321 length=3D22
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
got packet:World Hello 0987654321 length=3D22
got packet:Hello World 1234567890 ++++++++++++++ length=3D37
got packet:World Hello 0987654321 length=3D22
[... etc ...]

--=-tDwHRGBWI4iyS5G0hBSM
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/z1DhxVhZCJWr9QwRAmkrAJ4p7KsHgeLh5Dgxdt72n3G9KhJ9PgCgnOq0
XRi2yj3Ke3tzErf0gjVd/pY=
=EgOW
-----END PGP SIGNATURE-----

--=-tDwHRGBWI4iyS5G0hBSM--




From MAILER-DAEMON Thu Dec 04 11:57:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARwn3-000052-02
	for mharc-classpath@gnu.org; Thu, 04 Dec 2003 11:57:21 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARwn0-0008Va-4X
	for classpath@gnu.org; Thu, 04 Dec 2003 11:57:18 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARwfl-0006qj-24
	for classpath@gnu.org; Thu, 04 Dec 2003 11:50:21 -0500
Received: from [212.6.122.116] (helo=mail2.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARwfh-0006pl-Ej
	for classpath@gnu.org; Thu, 04 Dec 2003 11:49:45 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-80-168.ewetel.net
	[80.228.80.168])
	by mail2.ewetel.de (8.12.1/8.12.9) with ESMTP id hB4FmF6J010327;
	Thu, 4 Dec 2003 16:48:15 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1ARvjT-0002iC-00; Thu, 04 Dec 2003 16:49:35 +0100
Date: Thu, 4 Dec 2003 16:49:35 +0100
From: Michael Koch <konqueror@gmx.de>
To: Mark Wielaard <mark@klomp.org>
Message-ID: <20031204154935.GA10315@mail.konqueror.de>
References: <200312041316.51907.konqueror@gmx.de>
	<1070551266.5326.118.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="IJpNTDwzlM2Ie8A6"
Content-Disposition: inline
In-Reply-To: <1070551266.5326.118.camel@elsschot.wildebeest.org>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: classpath <classpath@gnu.org>
Subject: Re: Patch: java.net.DatagramPacket
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 Dec 2003 16:57:19 -0000


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

On Thu, Dec 04, 2003 at 04:21:06PM +0100, Mark Wielaard wrote:
> Hi,
> 
> On Thu, 2003-12-04 at 13:16, Michael Koch wrote:
> > I commit the attached patch together with some native parts to libgcj. 
> > Can some brave soul please test it on classpath (with kissme or so) 
> > and report back ?
> 
> I quickly tried.
> There don't seem to be any Mauve tests affected.
> But this is the result from running the udp-tests from
> http://www.scheinwelt.at/~norbertf/gcj/tests/
> We should turn these into mauve tests.

Here is a patch for this. Please test. Its against an old CVS snapshot
and without changelog entry yet as CVS is down anyways.


Michael

--IJpNTDwzlM2Ie8A6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="classpath-udp.patch"

diff -urN /home/mkoch/src/cvs/classpath/java/net/DatagramPacket.java /home/mkoch/src/classpath/java/net/DatagramPacket.java
--- /home/mkoch/src/cvs/classpath/java/net/DatagramPacket.java	2003-11-25 11:15:13.000000000 +0100
+++ /home/mkoch/src/classpath/java/net/DatagramPacket.java	2003-12-04 16:44:14.000000000 +0100
@@ -78,13 +78,18 @@
   private int offset;
 
   /**
-   * The length of the data buffer to send
+   * The length of the data buffer to send.
    */
-  private int length;
+  int length;
 
   /**
+   * The maximal length of the buffer.
+   */
+  int maxlen;
+  
+  /**
    * The address to which the packet should be sent or from which it
-   * was received
+   * was received.
    */
   private InetAddress address;
 
@@ -106,21 +111,9 @@
    */
   public DatagramPacket(byte[] buf, int offset, int length)
   {
-    if (buf == null)
-      throw new NullPointerException("Null buffer");
-    if (offset < 0)
-      throw new IllegalArgumentException("Invalid offset: " + offset);
-    if (length < 0)
-      throw new IllegalArgumentException("Invalid length: " + length);
-    if (offset + length > buf.length)
-      throw new IllegalArgumentException("Potential buffer overflow - offset: "
-			+ offset + " length: " + length);
-
-    buffer = buf;
-    this.offset = offset;
-    this.length = length;
-    this.address = null;
-    this.port = -1;
+    setData(buf, offset, length);
+    address = null;
+    port = -1;
   }
 
   /**
@@ -150,25 +143,9 @@
   public DatagramPacket(byte[] buf, int offset, int length,
 	InetAddress address, int port)
   {
-    if (buf == null)
-      throw new NullPointerException("Null buffer");
-    if (offset < 0)
-      throw new IllegalArgumentException("Invalid offset: " + offset);
-    if (length < 0)
-      throw new IllegalArgumentException("Invalid length: " + length);
-    if (offset + length > buf.length)
-      throw new IllegalArgumentException("Potential buffer overflow - offset: "
-			+ offset + " length: " + length);
-    if (port < 0 || port > 65535)
-      throw new IllegalArgumentException("Invalid port: " + port);
-    if (address == null)
-      throw new NullPointerException("Null address");
-
-    buffer = buf;
-    this.offset = offset;
-    this.length = length;
-    this.address = address;
-    this.port = port;
+    setData(buf, offset, length);
+    setAddress(address);
+    setPort(port);
   }
 
   /**
@@ -203,8 +180,13 @@
 		        SocketAddress address)
      throws SocketException
   {
-    this(buf, offset, length, ((InetSocketAddress)address).getAddress(),
-         ((InetSocketAddress)address).getPort());
+    if (! (address instanceof InetSocketAddress))
+      throw new IllegalArgumentException("unsupported address type");
+
+    InetSocketAddress tmp = (InetSocketAddress) address;
+    setData(buf, offset, length);
+    setAddress(tmp.getAddress());
+    setPort(tmp.getPort());
   }
 
   /**
@@ -223,8 +205,7 @@
   public DatagramPacket(byte[] buf, int length, SocketAddress address)
     throws SocketException
   {
-    this(buf, 0, length, ((InetSocketAddress)address).getAddress(),
-         ((InetSocketAddress)address).getPort());
+    this(buf, 0, length, address);
   }
 
   /**
@@ -330,9 +311,10 @@
   public void setSocketAddress(SocketAddress address)
     throws IllegalArgumentException
   {
-    if (address == null) throw new IllegalArgumentException();
+    if (address == null)
+      throw new IllegalArgumentException("address may not be null");
 
-    InetSocketAddress tmp = (InetSocketAddress)address;
+    InetSocketAddress tmp = (InetSocketAddress) address;
     this.address = tmp.getAddress();
     this.port = tmp.getPort();
   }
@@ -359,14 +341,9 @@
    *
    * @since 1.1
    */
-  public synchronized void setData(byte[] buf)
+  public void setData(byte[] buf)
   {
-    // This form of setData requires setLength to be called separately
-    // and subsequently.
-    if (buf == null)
-      throw new NullPointerException("Null buffer");
-
-    buffer = buf;
+    setData(buf, 0, buf.length);
   }
 
   /**
@@ -388,15 +365,10 @@
       throw new NullPointerException("Null buffer");
     if (offset < 0)
       throw new IllegalArgumentException("Invalid offset: " + offset);
-    if (length < 0)
-      throw new IllegalArgumentException("Invalid length: " + length);
-    if (offset + length > buf.length)
-      throw new IllegalArgumentException("Potential buffer overflow - offset: "
-			+ offset + " length: " + length);
 
     buffer = buf;
     this.offset = offset;
-    this.length = length;
+    setLength(length);
   }
 
   /**
@@ -418,6 +390,6 @@
 			+ offset + " length: " + length);
 
     this.length = length;
+    this.maxlen = length;
   }
-} // class DatagramPacket
-
+}
diff -urN /home/mkoch/src/cvs/classpath/native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c /home/mkoch/src/classpath/native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c
--- /home/mkoch/src/cvs/classpath/native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c	2003-12-02 09:13:17.000000000 +0100
+++ /home/mkoch/src/classpath/native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c	2003-12-04 16:42:33.000000000 +0100
@@ -163,6 +163,7 @@
 #ifndef WITHOUT_NETWORK
   unsigned int  addr, port, maxlen, offset, bytes_read;
   jclass        cls, addr_cls;
+  jfieldID	fid;
   jmethodID     mid;
   jarray        arr;
   unsigned char octets[4];
@@ -224,7 +225,14 @@
   DBG("PlainDatagramSocketImpl.receive(): Got the offset\n");
 
   /* Now get the maximal available length from the packet */
-  maxlen = (*env)->GetArrayLength(env,arr) - offset;
+  fid = (*env)->GetFieldID(env, cls, "maxlen", "I");
+  if (fid == NULL)
+    {
+      JCL_ThrowException(env, IO_EXCEPTION, "Internal error: maxlen");
+      return;
+    }
+  
+  maxlen = (*env)->GetIntField(env, packet, fid);
 
   /* Receive the packet */
   /* should we try some sort of validation on the length? */
@@ -318,20 +326,15 @@
   DBG("PlainDatagramSocketImpl.receive(): Stored the port\n");
 
   /* Store back the length */
-  mid = (*env)->GetMethodID(env, cls, "setLength", "(I)V");
-  if (mid == NULL)
+  fid = (*env)->GetFieldID(env, cls, "length", "I");
+  if (fid == NULL)
     {
-      JCL_ThrowException(env, IO_EXCEPTION, "Internal error: setLength");
-      return;
-    }
-  
-  (*env)->CallVoidMethod(env, packet, mid, bytes_read);
-  if ((*env)->ExceptionOccurred(env))
-    { 
-      JCL_ThrowException(env, IO_EXCEPTION, "Internal error: call setLength");
+      JCL_ThrowException(env, IO_EXCEPTION, "Internal error: length");
       return;
     }
 
+  (*env)->SetIntField(env, packet, fid, bytes_read);
+
   DBG("PlainDatagramSocketImpl.receive(): Stored the length\n");
 #else /* not WITHOUT_NETWORK */
 #endif /* not WITHOUT_NETWORK */

--IJpNTDwzlM2Ie8A6--



From MAILER-DAEMON Thu Dec 04 12:13:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ARx2K-0003iY-OW
	for mharc-classpath@gnu.org; Thu, 04 Dec 2003 12:13:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ARx2H-0003h8-Lf
	for classpath@gnu.org; Thu, 04 Dec 2003 12:13:05 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ARx1g-0003Rv-4s
	for classpath@gnu.org; Thu, 04 Dec 2003 12:13:00 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARwq6-0000py-Kz
	for classpath@gnu.org; Thu, 04 Dec 2003 12:00:30 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1ARvs5-0002l2-00
	for <classpath@gnu.org>; Thu, 04 Dec 2003 16:58:29 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath <classpath@gnu.org>
In-Reply-To: <20031204154935.GA10315@mail.konqueror.de>
References: <200312041316.51907.konqueror@gmx.de>
	<1070551266.5326.118.camel@elsschot.wildebeest.org>
	<20031204154935.GA10315@mail.konqueror.de>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-qlhBCthtiU9/1h0tDfqA"
Message-Id: <1070553544.5329.122.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Thu, 04 Dec 2003 16:59:04 +0100
Subject: Re: Patch: java.net.DatagramPacket
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 Dec 2003 17:13:07 -0000


--=-qlhBCthtiU9/1h0tDfqA
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi Michael,

On Thu, 2003-12-04 at 16:49, Michael Koch wrote:
>=20
> Here is a patch for this. Please test. Its against an old CVS snapshot
> and without changelog entry yet as CVS is down anyways.

You are fast :)
And it seems to work:
ERROR COUNT: 0

Thanks,

Mark

--=-qlhBCthtiU9/1h0tDfqA
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/z1nIxVhZCJWr9QwRAj7KAJ9sGehp8IKPTRTjKvnderCFdJF2kQCgpmFE
0B68A/tlfYmw8DjLt185ijs=
=yHEj
-----END PGP SIGNATURE-----

--=-qlhBCthtiU9/1h0tDfqA--




From MAILER-DAEMON Thu Dec 04 20:20:05 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AS4dV-0003ff-Q2
	for mharc-classpath@gnu.org; Thu, 04 Dec 2003 20:20:01 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AS4dM-0003Ov-Oj
	for classpath@gnu.org; Thu, 04 Dec 2003 20:19:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AS4cR-0001c3-LZ
	for classpath@gnu.org; Thu, 04 Dec 2003 20:19:27 -0500
Received: from [213.86.99.234] (helo=phoenix.infradead.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AS4c7-00013Z-Q9
	for classpath@gnu.org; Thu, 04 Dec 2003 20:18:36 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=localhost)
	by phoenix.infradead.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.22) id 1AS3ea-0003kl-JD; Fri, 05 Dec 2003 00:17:04 +0000
Date: Fri, 5 Dec 2003 00:16:56 +0000 (GMT)
From: James Simmons <jsimmons@infradead.org>
To: Thomas Fitzsimmons <fitzsim@redhat.com>
In-Reply-To: <1070575154.22034.207.camel@tortoise.toronto.redhat.com>
Message-ID: <Pine.LNX.4.44.0312050012400.14139-100000@phoenix.infradead.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: classpath@gnu.org, Kaffe <kaffe@kaffe.org>
Subject: Re: [kaffe] Classpath AWT progress.
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 Dec 2003 01:20:00 -0000

On Thu, 4 Dec 2003, Thomas Fitzsimmons wrote:

> On Thu, 2003-12-04 at 13:42, James Simmons wrote:
> >    Just wanted to give up a update at where I am on the port. I have all 
> > the skeleton classes avalable for a xlib peer. No functionality. I attempted 
> > to make a XFramePeer class but the under lying structue was missing. The 
> > under lying structures are GraphicsEnvironment, GraphicsDevice and friends. 
> > The current classpath implementation is not done so I have started to work on 
> > a full working implementation of these classes. 
> >    I modified GraphicsEnvironment.java in java.awt to actually work 
> > somewhat. Then I created a ClasspathGraphicsEnvironment.java to handle all 
> > the different types of GraphicsDevices. I created a XGraphicsDevice class.
> > In the java specs there is one GraphicsDevice for each screen. At present 
> > the code is incomplete. If you want I can attach the code I currently have 
> > and if any one wants to play with it be my guest.
> > 
> 
> Wow, great to hear that someone is tackling this section of the API! 
> Can you post a patch to the Classpath list?  A lot of AWT/Swing
> discussions take place there, so you'll probably get some feedback on
> the approach you're taking.

Give me a few days to get a patch going. At present I'm working on code 
that hits two targets, X windows and the linux framebuffer console. I want 
to get a system going that runs on X windows and the framebuffer console 
at the same time!!!





From MAILER-DAEMON Fri Dec 05 11:03:16 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ASIQG-00066x-2j
	for mharc-classpath@gnu.org; Fri, 05 Dec 2003 11:03:16 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ASIQD-00066A-99
	for classpath@gnu.org; Fri, 05 Dec 2003 11:03:13 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ASIPg-0005u9-QK
	for classpath@gnu.org; Fri, 05 Dec 2003 11:03:11 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASIPg-0005lZ-8Q
	for classpath@gnu.org; Fri, 05 Dec 2003 11:02:40 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id IAA33602;
	Fri, 5 Dec 2003 08:48:57 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hB5EmuRl053784;
	Fri, 5 Dec 2003 08:48:56 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hB5EmufL053783;
	Fri, 5 Dec 2003 08:48:56 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312051448.hB5EmufL053783@arch20m.dellroad.org>
In-Reply-To: <20031203152816.GE22504@mail.konqueror.de>
To: Michael Koch <konqueror@gmx.de>
Date: Fri, 5 Dec 2003 08:48:56 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Cc: classpath@gnu.org
Subject: Re: FreeBSD build failure
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 Dec 2003 16:03:14 -0000

Michael Koch wrote:
> > > > The file native/target/generic/target_generic_file.h has this line:
> > > > 
> > > >     #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
> > > > 
> > > > However, FreeBSD uses "O_FSYNC" rather than "O_SYNC", so the build of
> > > > Classpath on FreeBSD fails (is it just me?).
> > > 
> > > Well, I think classpath was not tested on FreeBSD for some month (!!!).
> > > I've a patch that should solve your problems. Please test it and report
> > > back.
> > 
> > Thanks, that should do it.
> 
> It should or it does ?

Sorry for the slow response.. I was intending to fully verify but haven't 
been able to due to cvs problems, etc. I will report to this list if it
does NOT work when/if I'm able to test it again.

> > I also noticed this:
> > 
> >     $ make
> >     Making all in lib
> >     "Makefile", line 420: Need an operator
> >     make: fatal errors encountered -- cannot continue
> >     *** Error code 1
> > 
> >     Stop in /usr/home/archie/classpath/cvs.
> > 
> > It works if I use "gmake" instead of "make". Line 420 is:
> > 
> >     sinclude $(JAVA_DEPEND)
> > 
> > This seems to be a gmake-specific makefile construct. This line also
> > exists in Makefile.am so this doesn't seem to be automake's fault.
> 
> Can you try to replace this with:
> 
> 	-include $(JABA_DEPEND)

Hmm.. similar problem.. the resulting Makefile just ends up with:

	-include $(JAVA_DEPEND)

I'm using automake version 1.7.5 .. is that too old?

> > No problem.. eagerly awaiting posting of the new 0.07 tarball :-)
> 
> We will have daily CVS snapshots soon. 0.08 will out in 3 month.

What about this page? It still says 0.06 is the latest:

  http://www.gnu.org/software/classpath/downloads/downloads.html

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com



From MAILER-DAEMON Fri Dec 05 11:26:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ASImN-0006lM-VN
	for mharc-classpath@gnu.org; Fri, 05 Dec 2003 11:26:07 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ASImM-0006kv-4P
	for classpath@gnu.org; Fri, 05 Dec 2003 11:26:06 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ASIlo-0006Zz-Sv
	for classpath@gnu.org; Fri, 05 Dec 2003 11:26:04 -0500
Received: from [212.6.122.116] (helo=mail2.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASIln-0006YM-E5
	for classpath@gnu.org; Fri, 05 Dec 2003 11:25:31 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-83-101.ewetel.net
	[80.228.83.101])
	by mail2.ewetel.de (8.12.1/8.12.9) with ESMTP id hB5FG26J000680;
	Fri, 5 Dec 2003 16:16:05 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1ASHhw-0006eP-00; Fri, 05 Dec 2003 16:17:28 +0100
Date: Fri, 5 Dec 2003 16:17:28 +0100
From: Michael Koch <konqueror@gmx.de>
To: Archie Cobbs <archie@dellroad.org>
Message-ID: <20031205151728.GA24423@mail.konqueror.de>
References: <20031203152816.GE22504@mail.konqueror.de>
	<200312051448.hB5EmufL053783@arch20m.dellroad.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200312051448.hB5EmufL053783@arch20m.dellroad.org>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: classpath@gnu.org, Michael Koch <konqueror@gmx.de>
Subject: Re: FreeBSD build failure
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 Dec 2003 16:26:06 -0000

On Fri, Dec 05, 2003 at 08:48:56AM -0600, Archie Cobbs wrote:
> Michael Koch wrote:
> > > > > The file native/target/generic/target_generic_file.h has this line:
> > > > > 
> > > > >     #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
> > > > > 
> > > > > However, FreeBSD uses "O_FSYNC" rather than "O_SYNC", so the build of
> > > > > Classpath on FreeBSD fails (is it just me?).
> > > > 
> > > > Well, I think classpath was not tested on FreeBSD for some month (!!!).
> > > > I've a patch that should solve your problems. Please test it and report
> > > > back.
> > > 
> > > Thanks, that should do it.
> > 
> > It should or it does ?
> 
> Sorry for the slow response.. I was intending to fully verify but haven't 
> been able to due to cvs problems, etc. I will report to this list if it
> does NOT work when/if I'm able to test it again.

Due to the savannah.gnu.org server hack this can take a while ...

Just download the 0.07 download (see below) and test it please.

> > > I also noticed this:
> > > 
> > >     $ make
> > >     Making all in lib
> > >     "Makefile", line 420: Need an operator
> > >     make: fatal errors encountered -- cannot continue
> > >     *** Error code 1
> > > 
> > >     Stop in /usr/home/archie/classpath/cvs.
> > > 
> > > It works if I use "gmake" instead of "make". Line 420 is:
> > > 
> > >     sinclude $(JAVA_DEPEND)
> > > 
> > > This seems to be a gmake-specific makefile construct. This line also
> > > exists in Makefile.am so this doesn't seem to be automake's fault.
> > 
> > Can you try to replace this with:
> > 
> > 	-include $(JABA_DEPEND)
> 
> Hmm.. similar problem.. the resulting Makefile just ends up with:
> 
> 	-include $(JAVA_DEPEND)
> 
> I'm using automake version 1.7.5 .. is that too old?

Thats a make feature and has nothing to do with automake. From what I
read every make should support "include". The "-" just suppresses error
messages like it does for other commands too. Can you make sure that if
your make version supports "include" or not ?

> > > No problem.. eagerly awaiting posting of the new 0.07 tarball :-)
> > 
> > We will have daily CVS snapshots soon. 0.08 will out in 3 month.
> 
> What about this page? It still says 0.06 is the latest:
> 
>   http://www.gnu.org/software/classpath/downloads/downloads.html

Again due to the server hack this hasnt been uploaded yet. Look here for
GNU Classpath 0.07:

http://www.klomp.org/mark/classpath/



Michael



From MAILER-DAEMON Fri Dec 05 13:15:41 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ASKUK-0000NG-IB
	for mharc-classpath@gnu.org; Fri, 05 Dec 2003 13:15:36 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ASKUD-0000KQ-6o
	for classpath@gnu.org; Fri, 05 Dec 2003 13:15:29 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ASKTe-0008UT-8R
	for classpath@gnu.org; Fri, 05 Dec 2003 13:15:25 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASKTc-0008TP-U2
	for classpath@gnu.org; Fri, 05 Dec 2003 13:14:53 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1ASJW9-0000Lz-00
	for <classpath@gnu.org>; Fri, 05 Dec 2003 18:13:25 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-c4yoTGxNgiC6pVUTnT17"
Message-Id: <1070644405.5334.451.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Fri, 05 Dec 2003 18:13:25 +0100
Subject: classpath-0.07 now available
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 Dec 2003 18:15:30 -0000


--=-c4yoTGxNgiC6pVUTnT17
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

Paul Fisher was so kind to make sure that 0.07 was put on ftp.gnu.org. I
have also uploaded 0.06. Both are also available on alpha.gnu.org for
now (since people will look there as long as we cannot update our
webpages) but I would like to point people only to:
ftp://ftp.gnu.org/gnu/classpath/
(and the mirror list at http://www.gnu.org/order/ftp.html).

Sorry. Savannah (which means CVS) is still down. According to
http://savannah.gnu.org/statement.html at least minimal services are
hopefully back up today. But I don't know how minimal that will be.
Keep you informed as soon as I have more info.

This also means that I didn't publish a formal announcement yet since we
cannot update the webpages yet.

Thanks,

Mark

--=-c4yoTGxNgiC6pVUTnT17
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/0Ly1xVhZCJWr9QwRAmlQAKCC4xAt7zHkTZhay1ndaoKadPf0egCdHoGH
QoiWt+Oqhe01HTbGObieOz8=
=FoP0
-----END PGP SIGNATURE-----

--=-c4yoTGxNgiC6pVUTnT17--




From MAILER-DAEMON Fri Dec 05 18:08:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ASP41-0003bc-ML
	for mharc-classpath@gnu.org; Fri, 05 Dec 2003 18:08:45 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ASP3w-0003T6-7A
	for classpath@gnu.org; Fri, 05 Dec 2003 18:08:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ASP3O-0003G3-Ks
	for classpath@gnu.org; Fri, 05 Dec 2003 18:08:37 -0500
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASOs6-00014E-5c
	for classpath@gnu.org; Fri, 05 Dec 2003 17:56:26 -0500
Received: from fleche.redhat.com (tf0208.peakpeak.com [204.144.239.208])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id OAA15635;
	Fri, 5 Dec 2003 14:39:51 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 49B3E4F883C; Fri,  5 Dec 2003 14:29:24 -0700 (MST)
To: Michael Koch <konqueror@gmx.de>
References: <20031203152816.GE22504@mail.konqueror.de>
	<200312051448.hB5EmufL053783@arch20m.dellroad.org>
	<20031205151728.GA24423@mail.konqueror.de>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: Yow!  Those people look exactly like Donnie and Marie Osmond!!
Date: 05 Dec 2003 14:29:24 -0700
In-Reply-To: <20031205151728.GA24423@mail.konqueror.de>
Message-ID: <87wu9b0x8r.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: text/plain; charset=us-ascii
Cc: classpath@gnu.org
Subject: Re: FreeBSD build failure
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: Fri, 05 Dec 2003 23:08:44 -0000

>>>>> "Michael" == Michael Koch <konqueror@gmx.de> writes:

>> -include $(JAVA_DEPEND)
>> 
>> I'm using automake version 1.7.5 .. is that too old?

Michael> Thats a make feature and has nothing to do with
Michael> automake. From what I read every make should support
Michael> "include". The "-" just suppresses error messages like it
Michael> does for other commands too. Can you make sure that if your
Michael> make version supports "include" or not ?

The spelling of `include' varies from make to make.
BSD makes tend to use something like:

    .include "file"

See the AM_MAKE_INCLUDE macro in automake.

Using `-include' definitely is not portable.  Whether or not we care
is a different issue.  It isn't totally unreasonable to just require
GNU make.

Tom



From MAILER-DAEMON Sat Dec 06 12:34:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ASgJj-0004kv-1Y
	for mharc-classpath@gnu.org; Sat, 06 Dec 2003 12:34:07 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ASgJg-0004kG-8z
	for classpath@gnu.org; Sat, 06 Dec 2003 12:34:04 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ASgJ9-0004cd-9W
	for classpath@gnu.org; Sat, 06 Dec 2003 12:34:03 -0500
Received: from [24.25.9.102] (helo=ms-smtp-03-eri0.southeast.rr.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASgJ8-0004bp-Ou
	for classpath@gnu.org; Sat, 06 Dec 2003 12:33:30 -0500
Received: from lyta.haphazard.org (rdu57-9-048.nc.rr.com [66.57.9.48])
	by ms-smtp-03-eri0.southeast.rr.com (8.12.10/8.12.7) with ESMTP id
	hB6GW1xs022975; Sat, 6 Dec 2003 11:32:02 -0500 (EST)
Received: by lyta.haphazard.org (Postfix, from userid 500)
	id AF7F3BE641; Sat,  6 Dec 2003 11:32:01 -0500 (EST)
Sender: cbj@haphazard.org
To: Guilhem Lavaux <guilhem@kaffe.org>
References: <3FCCFDC0.9030902@kaffe.org> <3FCE023B.8050204@kaffe.org>
	<3FCE316A.8040302@kaffe.org>
From: Brian Jones <cbj@gnu.org>
Date: 06 Dec 2003 11:32:01 -0500
In-Reply-To: <3FCE316A.8040302@kaffe.org>
Message-ID: <m3llpp52m6.fsf@lyta.haphazard.org>
Lines: 34
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: Symantec AntiVirus Scan Engine
Cc: Classpath List <classpath@gnu.org>
Subject: Re: [PATCH] Serialization #5
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, 06 Dec 2003 17:34:04 -0000

Guilhem Lavaux <guilhem@kaffe.org> writes:

> Dalibor Topic wrote:
> 
> > Salut Guilhem,
> >
> >> @@ -442,18 +443,46 @@
> >>      String field_name = this.realInputStream.readUTF ();
> >>      dumpElementln (field_name);
> >>      String class_name;
> >> -          +   +    // There're many cases you can't get
> >> java.lang.Class from
> >> +    // typename if your context class loader can't load it,
> >> +    // then use typename to construct the field
> >> +    // GL => No. You lose the capability to access the class loader.
> >> +    // Type resolution must be done here. If it is an object we
> >> +    // create the class just here if it is something else we delegate
> >> +    // to TypeSignature.
> >
> >
> > Just rewrite the comment, don't discuss it in another. ;)
> 
> 
> Ok. :-) Fixed in the next commit.
> 
> Cheers,
> Guilhem.

Guilhem are you going to be or have committed these to Classpath CVS?

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



From MAILER-DAEMON Sat Dec 06 13:26:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ASh8o-00058w-9l
	for mharc-classpath@gnu.org; Sat, 06 Dec 2003 13:26:54 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ASh8m-00058r-5j
	for classpath@gnu.org; Sat, 06 Dec 2003 13:26:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ASh8G-00053Y-CK
	for classpath@gnu.org; Sat, 06 Dec 2003 13:26:51 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASh8F-00053M-VX
	for classpath@gnu.org; Sat, 06 Dec 2003 13:26:20 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1ASgAf-0002ta-00
	for <classpath@gnu.org>; Sat, 06 Dec 2003 18:24:45 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <200312011120.hB1BKiSX043311@pigsty.cats.cradle>
References: <20031129.134813.123657481.arnaud.vandyck@ulg.ac.be>
	<3FCA3F5C.6080806@kaffe.org>
	<1070226441.2377.200.camel@elsschot.wildebeest.org>
	<200312011120.hB1BKiSX043311@pigsty.cats.cradle>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-LGSKP4eMwXAuacalQIF/"
Message-Id: <1070731485.12790.80.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sat, 06 Dec 2003 18:24:45 +0100
Subject: Re: Revolution Action (was: Re: [Little Off Topic] Revolution is
	on ; ))
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, 06 Dec 2003 18:26:52 -0000


--=-LGSKP4eMwXAuacalQIF/
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Mon, 2003-12-01 at 12:20, Chris Gray wrote:
> I wrote to my contact as follows:
>=20
> CG> I understand that  Tom Tromey is already scheduled to do a talk on gc=
j at=20
> CG> Fosdem 2004.  There is also considerable interest from the rest of th=
e=20
> open=20
> CG> source Java community, certainly enough to justify a BOF and IMO prob=
ably=20
> CG> enough to justify a "lightweight thread" of some kind - e.g. a sub-bl=
ock=20
> CG> within the embedded space. For example we could have short presentati=
ons=20
> from=20
> CG> some of the open source Java projects Out There (Classpath, ikvm, jao=
s,=20
> CG> kaffe, wonka...) and some kind of discussion of the burning issues wr=
t=20
> Java=20
> CG> and open source (JCP, JCK, SCSL).  I'd be willing to act as organiser=
.
>=20
> and he replied that he'd forward this to the Program Comittee with a=20
> recommendation that they accept it.

Thanks. Please let us know if you get any reply.

But please don't refer to GNU Classpath as an open source Java project.
We are a Free Software project (that does use a open source development
model). As Dalibor recently said on debian-java: "The open-source
community is busy making open source programs that work on Sun's JDK,
and rarely cares enough about free runtimes to submit bug reports, or
fixes. That's in large part caused by the (to an extent only perceived)
incapabilities of the free runtimes to compete with Sun's offering in
one way or another (features, stability, etc.)." We really want to
change that attitude and focus on freedom for software users/developers
and not on development or economic models.

BTW Tom Tromey did get his 15 minutes of fame already! See:
http://www.fosdem.org/2004/index/interviews/interviews_tromey

Cheers,

Mark

--=-LGSKP4eMwXAuacalQIF/
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/0hDdxVhZCJWr9QwRArZmAJ9BIKuw+nVnnd/fzJZomQ2zqxec2ACcDMzM
KHrZa+oE+rOHN3c/oprBUz8=
=xQOr
-----END PGP SIGNATURE-----

--=-LGSKP4eMwXAuacalQIF/--




From MAILER-DAEMON Sun Dec 07 01:01:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ASryq-0007dR-QS
	for mharc-classpath@gnu.org; Sun, 07 Dec 2003 01:01:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ASryo-0007dL-0D
	for classpath@gnu.org; Sun, 07 Dec 2003 01:01:18 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ASry9-0007KT-Sv
	for classpath@gnu.org; Sun, 07 Dec 2003 01:01:08 -0500
Received: from [132.208.28.172] (helo=gadek.homelinux.org)
	by monty-python.gnu.org with esmtp (TLSv1:RC4-SHA:128) (Exim 4.24)
	id 1ASry9-0007KQ-HR
	for classpath@gnu.org; Sun, 07 Dec 2003 01:00:37 -0500
Received: from localhost ([127.0.0.1])
	by gadek.homelinux.org with esmtp (Exim 4.24)
	id 1ASr0d-000381-MC; Sat, 06 Dec 2003 23:59:07 -0500
From: "Grzegorz B. Prokopski" <gadek@debian.org>
To: GNU Classpath <classpath@gnu.org>
Content-Type: text/plain
Organization: Debian GNU/Linux http://www.debian.org
Message-Id: <1070773144.30609.206.camel@gadek.homelinux.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sat, 06 Dec 2003 23:59:07 -0500
Content-Transfer-Encoding: 7bit
Cc: SableVM-devel ML <sablevm-developer@lists.sourceforge.net>
Subject: Sockets in 0.07 might be broken on some non-intel arches
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, 07 Dec 2003 06:01:18 -0000

Hi!

It really intrigued me when Mark said that Sockets work for him with
development [1] version of SableVM (which uses latest GNU Classpath).

After doing some tests and many compilations I figured out that the
error doesn't show up on my Intel machine but does on Sparc:

sablebot@oops:~/sablebot$ ../usr/bin/sablevm -Y sb
java.net.SocketException: Invalid argument
   at gnu.java.net.PlainSocketImpl.getOption (PlainSocketImpl.java)
   at gnu.java.net.PlainSocketImpl.connect (PlainSocketImpl.java:216)
   at java.net.Socket.connect (Socket.java:402)
   at java.net.Socket.connect (Socket.java:366)
   at java.net.Socket.Socket (Socket.java:292)
   at java.net.Socket.Socket (Socket.java:149)
   at sb.main (sb.java:9)
   at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
   at java.lang.VirtualMachine.main (VirtualMachine.java:88)

The code of sb.java is simply this:

import java.net.*;
public class sb
{
   public static void main(String[] args) throws Exception
   {
      java.net.Socket socket = new java.net.Socket("irc.sablevm.org",
6667);
      System.out.println(socket);
   }
}

I have no time now to track it further. I belive that it's probably
a problem in Classpath but Cc:ing SableVM-devel just in case.

HTH

				Grzegorz B. Prokopski

[1] http://devel.sablevm.org

-- 
Grzegorz B. Prokopski <gadek@debian.org>
Debian GNU/Linux      http://www.debian.org
SableVM - LGPLed JVM  http://www.sablevm.org




From MAILER-DAEMON Sun Dec 07 03:24:15 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ASuD8-00045Y-U8
	for mharc-classpath@gnu.org; Sun, 07 Dec 2003 03:24:14 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ASuD7-00045S-0h
	for classpath@gnu.org; Sun, 07 Dec 2003 03:24:13 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ASuCa-0003oU-Ap
	for classpath@gnu.org; Sun, 07 Dec 2003 03:24:12 -0500
Received: from [213.228.0.62] (helo=postfix4-1.free.fr)
	by monty-python.gnu.org with esmtp (Exim 4.24)
	id 1ASuC3-0003gz-Jz; Sun, 07 Dec 2003 03:23:07 -0500
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 8839BC815; Sun,  7 Dec 2003 08:21:40 +0100 (CET)
Message-ID: <3FD2D504.9020103@kaffe.org>
Date: Sun, 07 Dec 2003 08:21:40 +0100
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
References: <3FCCFDC0.9030902@kaffe.org>
	<3FCE023B.8050204@kaffe.org>	<3FCE316A.8040302@kaffe.org>
	<m3llpp52m6.fsf@lyta.haphazard.org>
In-Reply-To: <m3llpp52m6.fsf@lyta.haphazard.org>
X-Enigmail-Version: 0.76.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: Classpath List <classpath@gnu.org>
Subject: Re: [PATCH] Serialization #5
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, 07 Dec 2003 08:24:13 -0000

Brian Jones wrote:

>Guilhem Lavaux <guilhem@kaffe.org> writes:
>
>  
>
>>Dalibor Topic wrote:
>>
>>    
>>
>>>Salut Guilhem,
>>>
>>>      
>>>
>>>>@@ -442,18 +443,46 @@
>>>>     String field_name = this.realInputStream.readUTF ();
>>>>     dumpElementln (field_name);
>>>>     String class_name;
>>>>-          +   +    // There're many cases you can't get
>>>>java.lang.Class from
>>>>+    // typename if your context class loader can't load it,
>>>>+    // then use typename to construct the field
>>>>+    // GL => No. You lose the capability to access the class loader.
>>>>+    // Type resolution must be done here. If it is an object we
>>>>+    // create the class just here if it is something else we delegate
>>>>+    // to TypeSignature.
>>>>        
>>>>
>>>Just rewrite the comment, don't discuss it in another. ;)
>>>      
>>>
>>Ok. :-) Fixed in the next commit.
>>
>>Cheers,
>>Guilhem.
>>    
>>
>
>Guilhem are you going to be or have committed these to Classpath CVS?
>  
>

If CVS is back online I'm going to commit these changes.

BTW, I'd like also to commit RuleBasedCollator but I'll send an e-mail 
later about it.

Cheers,
Guilhem.




From MAILER-DAEMON Sun Dec 07 13:20:46 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AT3WQ-0003WO-H1
	for mharc-classpath@gnu.org; Sun, 07 Dec 2003 13:20:46 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AT3WM-0003W5-JP
	for classpath@gnu.org; Sun, 07 Dec 2003 13:20:42 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AT3Vq-0003St-Lq
	for classpath@gnu.org; Sun, 07 Dec 2003 13:20:41 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AT3Vq-0003Sp-4h
	for classpath@gnu.org; Sun, 07 Dec 2003 13:20:10 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AT2YI-0002t3-00; Sun, 07 Dec 2003 18:18:38 +0100
From: Mark Wielaard <mark@klomp.org>
To: Robert Lougher <robert_lougher@mac.com>
In-Reply-To: <13344C6E-249D-11D8-BE41-000A95C53FCC@mac.com>
References: <13344C6E-249D-11D8-BE41-000A95C53FCC@mac.com>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-3c2UidI4h+VMuoPbdJwa"
Message-Id: <1070817518.12792.356.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sun, 07 Dec 2003 18:18:39 +0100
Cc: classpath@gnu.org
Subject: Re: SystemClassLoader
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, 07 Dec 2003 18:20:44 -0000


--=-3c2UidI4h+VMuoPbdJwa
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Tue, 2003-12-02 at 08:56, Robert Lougher wrote:
> I'm the developer of yet another open-source Java VM=20
> (http://jamvm.sourceforge.net).  I'm about to release version 1.1.1=20
> which has been updated to Classpath-0.07 (basically VMThread/Thread).

That is a nice little VM you have there. It just worked out of the box
with 0.06. Can't wait to try out the new version based on 0.07.

In your installation documentation you said to disable awt-peers. But to
my big surprise these just work out of the box when enabled. And it even
works well enough to play with the wonka-visual-test-engine from Mauve
that Thomas setup (which is great since both kissme and sablevm can do
that yet, so jamvm gives me another option to test the peers without
having to use gcj/gij, which take ages to compile). With 0.07 these
peers have seen dramatic improvements so it would be interesting how
well the visual tester does with 1.1.1.

BTW do you use the regular mauve tests? It shows a couple of crashes for
me. Although lots of tests just work and lots of failures will be solved
by upgrading to GNU Classpath 0.07.

I haven't looked yet at the why the option --without-zip, but it doesn't
seem to work with Classpath-0.06. Or whether this is fixed with 0.07 (I
doubt it since I never really use this option.) To keep jamvm small you
probably won't add zip support to your bootstrap classloader, but that
would make it easier to use.

> One of the things I've finally got round to changing is using a system=20
> class loader to load application classes (up to now loaded via the=20
> bootstrap - I've been more interested in getting the Reflection API=20
> fully implemented).
>=20
> Looking at the code, the "default" system class loader (in=20
> gnu.java.lang...) simply delegates to the bootstrap loader - it doesn't=20
> implement findClass.  Obviously, it's not difficult to write my own to=20
> parse and search the classpath (zip, jar, file...).  However, is there=20
> any reason why I can't simply sub-class URLClassLoader, and construct a=20
> list of URLs?  I've got a simple SystemClassLoader based on=20
> URLClassLoader and it seems to work OK.

Others already commented on this and we should rewrite that class and
add support for some sort of extension classloader. A simple approach
that worked for SableVM (when I was trying to get Eclipse working with
is) is attached to:
http://article.gmane.org/gmane.comp.java.vm.sablevm.devel/433

> Performance-wise, the VM keeps it's own list of loaded-classes so a=20
> class-loader isn't continually asked for the same class (although this=20
> will work).   Note, I'm interested in doing this so that JamVM can read=20
> from jar and zip files - implementing zip in the VM duplicates=20
> functionality and I'm trying to keep JamVM small (approx 80K on Intel,=20
> 100K on PowerPC stripped).

Thanks for the feedback. Other VM creators have also commented on this
in the past. So I think it is appropriate to move the loadedClasses
support from ClassLoader to VMClassLoader. To bad Savannah is still down
so we cannot immediately add it to the bug database.

Cheers,

Mark

--=-3c2UidI4h+VMuoPbdJwa
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/02DuxVhZCJWr9QwRApAOAJ4+paT5HaKMoK8QfyocDJsKOsginACgjzBa
fXX6mi3dRzhEmu2ChIylheE=
=l4Q+
-----END PGP SIGNATURE-----

--=-3c2UidI4h+VMuoPbdJwa--




From MAILER-DAEMON Sun Dec 07 13:56:45 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AT45F-0006ud-1O
	for mharc-classpath@gnu.org; Sun, 07 Dec 2003 13:56:45 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AT45B-0006uO-7O
	for classpath@gnu.org; Sun, 07 Dec 2003 13:56:41 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AT44f-000666-FA
	for classpath@gnu.org; Sun, 07 Dec 2003 13:56:40 -0500
Received: from [81.5.129.62] (helo=tangency.co.uk)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AT44f-00063V-0H
	for classpath@gnu.org; Sun, 07 Dec 2003 13:56:09 -0500
Received: from tangency.co.uk (localhost [127.0.0.1])
	by outgoing.tangency.co.uk (Postfix) with ESMTP id 2A4DD5FF73
	for <classpath@gnu.org>; Sun,  7 Dec 2003 17:52:40 +0000 (GMT)
Received: from localhost ([127.0.0.1])
	by tangency.co.uk (MailMonitor for SMTP v1.2.2 ) ;
	Sun, 7 Dec 2003 17:52:39 +0000 (GMT)
Received: from wraith (wraith.tangency.co.uk [192.168.1.4])
	(using TLSv1 with cipher RC4-SHA (128/128 bits))
	(No client certificate requested)
	by tangency.co.uk (Postfix) with ESMTP id 329385FF73
	for <classpath@gnu.org>; Sun,  7 Dec 2003 17:52:39 +0000 (GMT)
To: classpath@gnu.org
References: <13344C6E-249D-11D8-BE41-000A95C53FCC@mac.com>
	<1070817518.12792.356.camel@elsschot.wildebeest.org>
Message-ID: <oprztn1naareuyrv@tangency.co.uk>
From: "S. Meslin-Weber" <twiun@adorphuye.com>
Content-Type: text/plain; format=flowed; charset=iso-8859-15
MIME-Version: 1.0
Date: Sun, 07 Dec 2003 17:54:49 -0000
In-Reply-To: <1070817518.12792.356.camel@elsschot.wildebeest.org>
User-Agent: Opera7.21/Win32 M2 build 3218
Content-Transfer-Encoding: quoted-printable
Subject: Re: SystemClassLoader
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, 07 Dec 2003 18:56:41 -0000

Hi Mark, Robert,

> On Tue, 2003-12-02 at 08:56, Robert Lougher wrote:
>> I'm the developer of yet another open-source Java VM
>> (http://jamvm.sourceforge.net).  I'm about to release version 1.1.1
>> which has been updated to Classpath-0.07 (basically VMThread/Thread).

And I notice you've got the ARM port done - You've got me interested :)

> That is a nice little VM you have there. It just worked out of the box
> with 0.06. Can't wait to try out the new version based on 0.07.
>
> In your installation documentation you said to disable awt-peers. But t=
o
> my big surprise these just work out of the box when enabled. And it eve=
n

Ok, now you've got my *undivided* attention...

>> functionality and I'm trying to keep JamVM small (approx 80K on Intel,
>> 100K on PowerPC stripped).

That's tiny! What's the stripped size on ARM?

All in all a very interesting project!

Steph




From MAILER-DAEMON Sun Dec 07 14:44:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AT4pW-0006TF-BW
	for mharc-classpath@gnu.org; Sun, 07 Dec 2003 14:44:34 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AT4pT-0006PA-0b
	for classpath@gnu.org; Sun, 07 Dec 2003 14:44:31 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AT4ov-0005GF-9G
	for classpath@gnu.org; Sun, 07 Dec 2003 14:44:28 -0500
Received: from [213.228.0.169] (helo=postfix3-2.free.fr)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AT4ou-0005DD-EO
	for classpath@gnu.org; Sun, 07 Dec 2003 14:43:56 -0500
Received: from kaffe.org (cachan-3-82-66-125-112.fbx.proxad.net
	[82.66.125.112])
	by postfix3-2.free.fr (Postfix) with ESMTP id B2852EC14
	for <classpath@gnu.org>; Sun,  7 Dec 2003 19:42:29 +0100 (CET)
Message-ID: <3FD3748E.8060603@kaffe.org>
Date: Sun, 07 Dec 2003 19:42:22 +0100
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Classpath List <classpath@gnu.org>
X-Enigmail-Version: 0.76.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: multipart/mixed; boundary="------------090001090502000305060903"
Subject: [PATCH] Serialization #6 (and final)
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, 07 Dec 2003 19:44:32 -0000

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

Hi,

Here is the last patch on serialization.
This patch fixes the behaviour of readFields() in ObjectInputStream:
* if called multiple times read fields and build field decoder only once.
* more documentation
* GetField methods should take into account the flags concerning
each serialized fields. If transient we have to make it return
a default value, if not we try to get it in the pool of read fields.
If the field doesn't exist we should throw an exception.

ChangeLog entry:

2003-12-07  Guilhem Lavaux <guilhem@kaffe.org>

	* java/io/ObjectInputStream.java:
	(readFields): Changed implementation of GetField.
	(readClassDescriptor): Documented.

Cheers,

Guilhem.


--------------090001090502000305060903
Content-Type: text/plain;
 name="patch_no_6"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch_no_6"

--- java/io/ObjectInputStream.java.orig	2003-12-04 19:36:56.000000000 +0100
+++ java/io/ObjectInputStream.java	2003-12-04 19:57:15.000000000 +0100
@@ -417,6 +417,22 @@
     return ret_val;
   }
 
+  /**
+   * This method reads a class descriptor from the real input stream
+   * and use these data to create a new instance of ObjectStreamClass.
+   * Fields are sorted and ordered for the real read which occurs for
+   * each instance of the described class. Be aware that if you call that
+   * method you must ensure that the stream is synchronized, in the other
+   * case it may be completely desynchronized.
+   *
+   * @return A new instance of ObjectStreamClass containing the freshly
+   * created descriptor.
+   * @throws ClassNotFoundException if the required class to build the
+   * descriptor has not been found in the system.
+   * @throws IOException An input/output error occured.
+   * @throws InvalidClassException If there was a compatibility problem
+   * between the class present in the system and the serialized class.
+   */
   protected ObjectStreamClass readClassDescriptor ()
     throws ClassNotFoundException, IOException
   {
@@ -585,7 +601,15 @@
   {
     return Class.forName (osc.getName(), true, currentLoader()); 
   }
-  
+
+  /**
+   * This method invokes the method currentClassLoader for the
+   * current security manager (or build an empty one if it is not
+   * present).
+   *
+   * @return The most recent non-system ClassLoader on the execution stack.
+   * @see java.lang.SecurityManager#currentClassLoader()
+   */
   private ClassLoader currentLoader ()
   {
     SecurityManager sm = System.getSecurityManager ();
@@ -1014,14 +1038,31 @@
       throws IOException, IllegalArgumentException;
   }
 
+  /**
+   * This method should be called by a method called 'readObject' in the
+   * deserializing class (if present). It cannot (and should not)be called
+   * outside of it. Its goal is to read all fields in the real input stream
+   * and keep them accessible through the {@link #GetField} class. Calling
+   * this method will not alterate the deserializing object.
+   *
+   * @return A valid freshly created 'GetField' instance to get access to
+   * the deserialized stream.
+   * @throws IOException An input/output exception occured. 
+   * @throws ClassNotFoundException 
+   * @throws NotActiveException
+   */
   public GetField readFields ()
     throws IOException, ClassNotFoundException, NotActiveException
   {
     if (this.currentObject == null || this.currentObjectStreamClass == null)
       throw new NotActiveException ("readFields called by non-active class and/or object");
 
+    if (prereadFields != null)
+      return prereadFields;
+
     if (fieldsAlreadyRead)
-      throw new NotActiveException ("readFields called but fields already read from stream (by defaultReadObject or readFields)");
+      throw new NotActiveException ("readFields called but fields already read from"
+				    + " stream (by defaultReadObject or readFields)");
 
     final ObjectStreamClass clazz = this.currentObjectStreamClass;
     final byte[] prim_field_data = new byte[clazz.primFieldSize];
@@ -1036,7 +1077,7 @@
       objs[i] = readObject ();
     setBlockDataMode (oldmode);
 
-    return new GetField ()
+    prereadFields = new GetField ()
       {
 	public ObjectStreamClass getObjectStreamClass ()
 	{
@@ -1046,7 +1087,31 @@
 	public boolean defaulted (String name)
 	  throws IOException, IllegalArgumentException
 	{
-	  return clazz.getField (name) == null;
+	  ObjectStreamField f = clazz.getField (name);
+	  
+	  /* First if we have a serialized field use the descriptor */
+	  if (f != null)
+	    {
+	      /* It is in serialPersistentFields but setClass tells us
+	       * it should not be set. This value is defaulted.
+	       */
+	      if (f.isPersistent() && !f.isToSet())
+		return true;
+	      
+	      return false;
+	    }
+
+	  /* This is not a serialized field. There should be
+	   * a default value only if the field really exists.
+	   */
+	  try
+	    {
+	      return (clazz.forClass().getDeclaredField (name) != null);
+	    }
+	  catch (NoSuchFieldException e)
+	    {
+	      throw new IllegalArgumentException (e.getMessage());
+	    }
 	}
 
 	public boolean get (String name, boolean defvalue)
@@ -1188,24 +1253,73 @@
 	  throws IllegalArgumentException
 	{
 	  ObjectStreamField field = clazz.getField (name);
+	  boolean illegal = false;
 
-	  if (field == null)
-	    return null;
-
-	  Class field_type = field.getType ();
+	  try
+	    {
+	      try
+		{
+		  Class field_type = field.getType();
+		  
+		  if (type == field_type ||
+		      (type == null && !field_type.isPrimitive()))
+		    {
+		      /* See defaulted */
+		      return field;
+		    }
+	 
+		  illegal = true;
+		  throw new IllegalArgumentException ("Field requested is of type "
+						      + field_type.getName ()
+						      + ", but requested type was "
+						      + (type == null ?
+							 "Object" : type.getName ()));
+		}
+	      catch (NullPointerException _)
+		{
+		  /* Here we catch NullPointerException, because it may
+		     only come from the call 'field.getType()'. If field
+		     is null, we have to return null and classpath ethic
+		     say we must try to avoid 'if (xxx == null)'.
+		  */
+		}
+	      catch (IllegalArgumentException e)
+		{
+		  throw e;
+		}
+	      return null;
+	    }
+	  finally
+	    {
+	      /* If this is an unassigned field we should return
+	       * the default value.
+	       */
+	      if (!illegal && field != null && !field.isToSet() && field.isPersistent())
+		return null;
+
+	      /* We do not want to modify transient fields. They should
+	       * be left to 0.
+	       */
+	      try
+		{
+		  Field f = clazz.forClass().getDeclaredField (name);
+		  if (Modifier.isTransient(f.getModifiers()))
+		    throw new IllegalArgumentException("no such field (non transient) " + name);
+		  if (field == null && f.getType() != type)
+		    throw new IllegalArgumentException ("Invalid requested type for field " + name);
+		}
+	      catch (NoSuchFieldException e)
+		{
+		  if (field == null)
+		    throw new IllegalArgumentException (e.getMessage());
+		}
+	       
+	    }
 
-	  if (type == field_type ||
-	      (type == null && ! field_type.isPrimitive ()))
-	    return field;
-
-	  throw new IllegalArgumentException ("Field requested is of type "
-					      + field_type.getName ()
-					      + ", but requested type was "
-					      + (type == null ?
-						 "Object" : type.getName ()));
-	}
       };
 
+    fieldsAlreadyRead = true;
+    return prereadFields;
   }
 
   /**
@@ -1977,6 +2091,7 @@
   private boolean fieldsAlreadyRead;
   private Vector validators;
   private Hashtable classLookupTable;
+  private GetField prereadFields;
 
   private static boolean dump;
 

--------------090001090502000305060903--




From MAILER-DAEMON Sun Dec 07 17:48:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AT7hL-0007mE-Nc
	for mharc-classpath@gnu.org; Sun, 07 Dec 2003 17:48:19 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AT7hJ-0007lf-8M
	for classpath@gnu.org; Sun, 07 Dec 2003 17:48:17 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AT7gl-0007Vj-Ux
	for classpath@gnu.org; Sun, 07 Dec 2003 17:48:15 -0500
Received: from [132.206.3.88] (helo=relay10.cs.mcgill.ca)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AT7gl-0007Va-Kn
	for classpath@gnu.org; Sun, 07 Dec 2003 17:47:43 -0500
Received: from pinto.cs.mcgill.ca (pinto.CS.McGill.CA [132.206.3.79])
	by relay10.cs.mcgill.ca (Postfix) with ESMTP id 98E33536F4C;
	Sun,  7 Dec 2003 16:46:17 -0500 (EST)
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.6) with ESMTP id
	hB7LkHXd031980; Sun, 7 Dec 2003 16:46:17 -0500
Received: (from dbelan2@localhost)
	by pinto.cs.mcgill.ca (8.12.3/8.12.3/Debian-6.6) id hB7LkHn4031978;
	Sun, 7 Dec 2003 16:46:17 -0500
Date: Sun, 7 Dec 2003 16:46:17 -0500
From: David =?iso-8859-1?Q?B=E9langer?= <dbelan2@cs.mcgill.ca>
To: "Grzegorz B. Prokopski" <gadek@debian.org>
Message-ID: <20031207214616.GA31829@pinto.cs.mcgill.ca>
References: <1070773144.30609.206.camel@gadek.homelinux.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <1070773144.30609.206.camel@gadek.homelinux.org>
User-Agent: Mutt/1.3.28i
Content-Transfer-Encoding: quoted-printable
Cc: SableVM-devel ML <sablevm-developer@lists.sourceforge.net>,
	GNU Classpath <classpath@gnu.org>
Subject: Re: [Sablevm-developer] Sockets in 0.07 might be broken on some
	non-intel arches
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, 07 Dec 2003 22:48:18 -0000


Actually, that could explain why I got so many more Mauve test cases
passed on x86.  I was getting less this weekend and was puzzled, but
because I changed arch...

It may be related to small/big endian issues.

David


On Sat, Dec 06, 2003 at 11:59:07PM -0500, Grzegorz B. Prokopski wrote:
> Hi!
>=20
> It really intrigued me when Mark said that Sockets work for him with
> development [1] version of SableVM (which uses latest GNU Classpath).
>=20
> After doing some tests and many compilations I figured out that the
> error doesn't show up on my Intel machine but does on Sparc:
>=20
> sablebot@oops:~/sablebot$ ../usr/bin/sablevm -Y sb
> java.net.SocketException: Invalid argument
>    at gnu.java.net.PlainSocketImpl.getOption (PlainSocketImpl.java)
>    at gnu.java.net.PlainSocketImpl.connect (PlainSocketImpl.java:216)
>    at java.net.Socket.connect (Socket.java:402)
>    at java.net.Socket.connect (Socket.java:366)
>    at java.net.Socket.Socket (Socket.java:292)
>    at java.net.Socket.Socket (Socket.java:149)
>    at sb.main (sb.java:9)
>    at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
>    at java.lang.VirtualMachine.main (VirtualMachine.java:88)
>=20
> The code of sb.java is simply this:
>=20
> import java.net.*;
> public class sb
> {
>    public static void main(String[] args) throws Exception
>    {
>       java.net.Socket socket =3D new java.net.Socket("irc.sablevm.org",
> 6667);
>       System.out.println(socket);
>    }
> }
>=20
> I have no time now to track it further. I belive that it's probably
> a problem in Classpath but Cc:ing SableVM-devel just in case.
>=20
> HTH
>=20
> 				Grzegorz B. Prokopski
>=20
> [1] http://devel.sablevm.org
>=20
> --=20
> Grzegorz B. Prokopski <gadek@debian.org>
> Debian GNU/Linux      http://www.debian.org
> SableVM - LGPLed JVM  http://www.sablevm.org
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM=
's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admi=
n.
> Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick
> _______________________________________________
> Sablevm-developer mailing list
> Sablevm-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sablevm-developer

--=20

---

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 Sun Dec 07 18:13:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AT85w-0004pr-LZ
	for mharc-classpath@gnu.org; Sun, 07 Dec 2003 18:13:44 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AT85e-0004DP-UA
	for classpath@gnu.org; Sun, 07 Dec 2003 18:13:26 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AT851-0003Pi-U2
	for classpath@gnu.org; Sun, 07 Dec 2003 18:13:19 -0500
Received: from [132.208.250.6] (helo=anis.telecom.uqam.ca)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AT851-0003MB-Jd
	for classpath@gnu.org; Sun, 07 Dec 2003 18:12:47 -0500
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 hB7M8IS2029308
	for <classpath@gnu.org>; Sun, 7 Dec 2003 17:08:30 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
	by anis.telecom.uqam.ca (SAVSMTP 3.1.1.32) with SMTP id
	M2003120717082904557
	for <classpath@gnu.org>; Sun, 07 Dec 2003 17:08:29 -0500
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
	hB7M1STQ025514; Sun, 7 Dec 2003 17:01:28 -0500 (EST)
X-Spam-Filter: Filtre-Uqam re:  abuse@uqam.ca
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by localhost with esmtp (Exim 3.36 #1 (Debian))
	id 1AT6y0-0007bO-00; Sun, 07 Dec 2003 17:01:29 -0500
Message-ID: <3FD3A336.3090804@uqam.ca>
Date: Sun, 07 Dec 2003 17:01:26 -0500
From: Etienne Gagnon <gagnon.etienne_m@uqam.ca>
Organization: UQAM
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: GNU Classpath <classpath@gnu.org>
Subject: CVS access?
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, 07 Dec 2003 23:13:40 -0000

Hi Mark,

Is there any ETA for CVS to be back up?  It's already 2 days past the
announced ETA on savannah.gnu.org.

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 Dec 07 18:24:15 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AT8G7-0001cZ-30
	for mharc-classpath@gnu.org; Sun, 07 Dec 2003 18:24:15 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AT8G5-0001cP-9w
	for classpath@gnu.org; Sun, 07 Dec 2003 18:24:13 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AT8FZ-0001a5-Kg
	for classpath@gnu.org; Sun, 07 Dec 2003 18:24:12 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AT8FZ-0001Zu-6J
	for classpath@gnu.org; Sun, 07 Dec 2003 18:23:41 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AT7Hx-0003Rq-00; Sun, 07 Dec 2003 23:22:05 +0100
From: Mark Wielaard <mark@klomp.org>
To: Etienne Gagnon <gagnon.etienne_m@uqam.ca>
In-Reply-To: <3FD3A336.3090804@uqam.ca>
References: <3FD3A336.3090804@uqam.ca>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-5zOF/DDFJVg/aBxPpPPI"
Message-Id: <1070835725.12790.359.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sun, 07 Dec 2003 23:22:05 +0100
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: CVS access?
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, 07 Dec 2003 23:24:13 -0000


--=-5zOF/DDFJVg/aBxPpPPI
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Sun, 2003-12-07 at 23:01, Etienne Gagnon wrote:
> Is there any ETA for CVS to be back up?  It's already 2 days past the
> announced ETA on savannah.gnu.org.

No. As soon as I know more I make sure to let you all know.
For now. Just monitor http://savannah.gnu.org/ from time to time.

Mark

--=-5zOF/DDFJVg/aBxPpPPI
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/06gNxVhZCJWr9QwRAgrLAJ92KLMImzUSrooaFLa8JZKHJvRllACfQ5q/
YfuY+zd+RDCab2w+4sDKy3E=
=kWMo
-----END PGP SIGNATURE-----

--=-5zOF/DDFJVg/aBxPpPPI--




From MAILER-DAEMON Mon Dec 08 00:25:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATDtw-0000lT-9h
	for mharc-classpath@gnu.org; Mon, 08 Dec 2003 00:25:44 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATDts-0000iX-OF
	for classpath@gnu.org; Mon, 08 Dec 2003 00:25:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATDtM-0000ef-Gb
	for classpath@gnu.org; Mon, 08 Dec 2003 00:25:39 -0500
Received: from [64.4.21.6] (helo=hotmail.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATDtM-0000dy-2r
	for classpath@gnu.org; Mon, 08 Dec 2003 00:25:08 -0500
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	Sun, 7 Dec 2003 20:23:41 -0800
Received: from 80.177.127.218 by lw14fd.law14.hotmail.msn.com with HTTP;
	Mon, 08 Dec 2003 04:23:41 GMT
X-Originating-IP: [80.177.127.218]
X-Originating-Email: [robert_lougher@hotmail.com]
X-Sender: robert_lougher@hotmail.com
From: "Robert Lougher" <robert_lougher@hotmail.com>
To: mark@klomp.org, robert_lougher@mac.com
Bcc: 
Date: Mon, 08 Dec 2003 04:23:41 +0000
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <LAW14-F6d3gwhDCvY3P0001bd22@hotmail.com>
X-OriginalArrivalTime: 08 Dec 2003 04:23:41.0635 (UTC)
	FILETIME=[0F75E930:01C3BD43]
Cc: classpath@gnu.org
Subject: Re: SystemClassLoader
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, 08 Dec 2003 05:25:42 -0000

Hi Mark,

Thanks for taking the time to give JamVM a test -- it's really nice to get 
positive feedback.

JamVM-1.1.1 should be out in the next few days.  It's basically done apart 
from modifying the build/install files.  The release of JamVM-1.1.0 was a 
bit rushed as I had a company in Canada that needed Reflection support (for 
Jetty) and I've found a couple of nasty bugs since.  In particular, testing 
of the changes for the VMClass/Class split didn't catch a segv in 
isAssignableFrom, so this may explain some of the Mauve crashes...

I'm really pleased the gtk-peers work -- as long as the VM's threading and 
JNI are OK it should just work as expected but I haven't really tested.  The 
comment dates back to when I released 1.0.0 using Classpath-0.04.  I just 
left it in as a get-out clause because I'd not tested graphics with 0.06 at 
all.  I'll remove it...

Your SableVM/Eclipse "hack" is exactly what I'm doing (I just create a set 
of URL's for the classpath).  If you think it's OK then I'm happy to use it.

I'll check --without-zip on Classpath-0.07.  Perhaps it's something to do 
with the pre-built glibj.zip file added in 0.06?  I'm still not decided 
about adding zip support to the VM bootstrap loader.  It would be nicer, but 
it depends on how much code it adds (it can always be optional).  Anyway, 
I'll get 1.1.1 out before re-looking at this...

One last point - I guess if JamVM runs OK with 0.07, it should work with 
CVS?

Thanks,

Rob.

----Original Message Follows----
From: Mark Wielaard <mark@klomp.org>

Hi,

On Tue, 2003-12-02 at 08:56, Robert Lougher wrote:
 > I'm the developer of yet another open-source Java VM
 > (http://jamvm.sourceforge.net).  I'm about to release version 1.1.1
 > which has been updated to Classpath-0.07 (basically VMThread/Thread).

That is a nice little VM you have there. It just worked out of the box
with 0.06. Can't wait to try out the new version based on 0.07.

In your installation documentation you said to disable awt-peers. But to
my big surprise these just work out of the box when enabled. And it even
works well enough to play with the wonka-visual-test-engine from Mauve
that Thomas setup (which is great since both kissme and sablevm can do
that yet, so jamvm gives me another option to test the peers without
having to use gcj/gij, which take ages to compile). With 0.07 these
peers have seen dramatic improvements so it would be interesting how
well the visual tester does with 1.1.1.

BTW do you use the regular mauve tests? It shows a couple of crashes for
me. Although lots of tests just work and lots of failures will be solved
by upgrading to GNU Classpath 0.07.

I haven't looked yet at the why the option --without-zip, but it doesn't
seem to work with Classpath-0.06. Or whether this is fixed with 0.07 (I
doubt it since I never really use this option.) To keep jamvm small you
probably won't add zip support to your bootstrap classloader, but that
would make it easier to use.

 > One of the things I've finally got round to changing is using a system
 > class loader to load application classes (up to now loaded via the
 > bootstrap - I've been more interested in getting the Reflection API
 > fully implemented).
 >
 > Looking at the code, the "default" system class loader (in
 > gnu.java.lang...) simply delegates to the bootstrap loader - it doesn't
 > implement findClass.  Obviously, it's not difficult to write my own to
 > parse and search the classpath (zip, jar, file...).  However, is there
 > any reason why I can't simply sub-class URLClassLoader, and construct a
 > list of URLs?  I've got a simple SystemClassLoader based on
 > URLClassLoader and it seems to work OK.

Others already commented on this and we should rewrite that class and
add support for some sort of extension classloader. A simple approach
that worked for SableVM (when I was trying to get Eclipse working with
is) is attached to:
http://article.gmane.org/gmane.comp.java.vm.sablevm.devel/433

 > Performance-wise, the VM keeps it's own list of loaded-classes so a
 > class-loader isn't continually asked for the same class (although this
 > will work).   Note, I'm interested in doing this so that JamVM can read
 > from jar and zip files - implementing zip in the VM duplicates
 > functionality and I'm trying to keep JamVM small (approx 80K on Intel,
 > 100K on PowerPC stripped).

Thanks for the feedback. Other VM creators have also commented on this
in the past. So I think it is appropriate to move the loadedClasses
support from ClassLoader to VMClassLoader. To bad Savannah is still down
so we cannot immediately add it to the bug database.

Cheers,

Mark
<< signature.asc >>
_______________________________________________
Classpath mailing list
Classpath@gnu.org
http://mail.gnu.org/mailman/listinfo/classpath

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger




From MAILER-DAEMON Mon Dec 08 00:58:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATEPw-0000Gq-Pp
	for mharc-classpath@gnu.org; Mon, 08 Dec 2003 00:58:48 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATEPu-0000FK-9T
	for classpath@gnu.org; Mon, 08 Dec 2003 00:58:46 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATEPM-000063-Je
	for classpath@gnu.org; Mon, 08 Dec 2003 00:58:43 -0500
Received: from [64.4.21.26] (helo=hotmail.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATEPM-00005R-Av
	for classpath@gnu.org; Mon, 08 Dec 2003 00:58:12 -0500
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	Sun, 7 Dec 2003 20:56:46 -0800
Received: from 80.177.127.218 by lw14fd.law14.hotmail.msn.com with HTTP;
	Mon, 08 Dec 2003 04:56:46 GMT
X-Originating-IP: [80.177.127.218]
X-Originating-Email: [robert_lougher@hotmail.com]
X-Sender: robert_lougher@hotmail.com
From: "Robert Lougher" <robert_lougher@hotmail.com>
To: twiun@adorphuye.com, classpath@gnu.org
Bcc: 
Date: Mon, 08 Dec 2003 04:56:46 +0000
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <Law14-F26FK7dcLdZs30001c19d@hotmail.com>
X-OriginalArrivalTime: 08 Dec 2003 04:56:46.0562 (UTC)
	FILETIME=[AE91BC20:01C3BD47]
Cc: 
Subject: Re: SystemClassLoader
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, 08 Dec 2003 05:58:47 -0000

Hi Steph,

Thanks for your comments.

Yes, the ARM port is fully functional.  It even uses thin-locks without 
spin-locking (something that linuxthreads doesn't do on ARM as it normally 
requires a compare_and_swap instruction - ARM only has swap).

The stripped size on ARM is similar to Intel - approx 80K...

Thanks,

Rob.

----Original Message Follows----
From: "S. Meslin-Weber" <twiun@adorphuye.com>

Hi Mark, Robert,

>On Tue, 2003-12-02 at 08:56, Robert Lougher wrote:
>>I'm the developer of yet another open-source Java VM
>>(http://jamvm.sourceforge.net).  I'm about to release version 1.1.1
>>which has been updated to Classpath-0.07 (basically VMThread/Thread).

And I notice you've got the ARM port done - You've got me interested :)

>That is a nice little VM you have there. It just worked out of the box
>with 0.06. Can't wait to try out the new version based on 0.07.
>
>In your installation documentation you said to disable awt-peers. But to
>my big surprise these just work out of the box when enabled. And it even

Ok, now you've got my *undivided* attention...

>>functionality and I'm trying to keep JamVM small (approx 80K on Intel,
>>100K on PowerPC stripped).

That's tiny! What's the stripped size on ARM?

All in all a very interesting project!

Steph



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

_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today! 
http://www.msn.co.uk/messenger




From MAILER-DAEMON Mon Dec 08 01:11:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATEbp-000166-9f
	for mharc-classpath@gnu.org; Mon, 08 Dec 2003 01:11:05 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATEb3-0008JM-HI
	for classpath@gnu.org; Mon, 08 Dec 2003 01:10:17 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATEaE-0006fY-2i
	for classpath@gnu.org; Mon, 08 Dec 2003 01:09:57 -0500
Received: from [132.206.3.88] (helo=relay10.cs.mcgill.ca)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATEaD-0006dn-2l
	for classpath@gnu.org; Mon, 08 Dec 2003 01:09:25 -0500
Received: from pinto.cs.mcgill.ca (pinto.CS.McGill.CA [132.206.3.79])
	by relay10.cs.mcgill.ca (Postfix) with ESMTP id 30ADD536F4F;
	Mon,  8 Dec 2003 00:07:59 -0500 (EST)
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.6) with ESMTP id
	hB857xXd000596; Mon, 8 Dec 2003 00:07:59 -0500
Received: (from dbelan2@localhost)
	by pinto.cs.mcgill.ca (8.12.3/8.12.3/Debian-6.6) id hB857wDo000594;
	Mon, 8 Dec 2003 00:07:58 -0500
Date: Mon, 8 Dec 2003 00:07:58 -0500
From: David =?iso-8859-1?Q?B=E9langer?= <dbelan2@cs.mcgill.ca>
To: David =?iso-8859-1?Q?B=E9langer?= <dbelan2@cs.mcgill.ca>
Message-ID: <20031208050758.GA582@pinto.cs.mcgill.ca>
References: <1070773144.30609.206.camel@gadek.homelinux.org>
	<20031207214616.GA31829@pinto.cs.mcgill.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
In-Reply-To: <20031207214616.GA31829@pinto.cs.mcgill.ca>
User-Agent: Mutt/1.3.28i
Cc: SableVM-devel ML <sablevm-developer@lists.sourceforge.net>,
	GNU Classpath <classpath@gnu.org>
Subject: Re: [Sablevm-developer] Sockets in 0.07 might be broken on some
	non-intel arches
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, 08 Dec 2003 06:11:03 -0000


Actually, not really, I'm getting about the same Mauve results on both
my platforms now (x86 and ppc).  So ignore my previous comments.

BTW, I tested your code on Linux/ppc and it worked.  So, it may be sparc
specific.


David


On Sun, Dec 07, 2003 at 04:46:17PM -0500, David B=E9langer wrote:
>=20
> Actually, that could explain why I got so many more Mauve test cases
> passed on x86.  I was getting less this weekend and was puzzled, but
> because I changed arch...
>=20
> It may be related to small/big endian issues.
>=20
> David
>=20
>=20
> On Sat, Dec 06, 2003 at 11:59:07PM -0500, Grzegorz B. Prokopski wrote:
> > Hi!
> >=20
> > It really intrigued me when Mark said that Sockets work for him with
> > development [1] version of SableVM (which uses latest GNU Classpath).
> >=20
> > After doing some tests and many compilations I figured out that the
> > error doesn't show up on my Intel machine but does on Sparc:
> >=20
> > sablebot@oops:~/sablebot$ ../usr/bin/sablevm -Y sb
> > java.net.SocketException: Invalid argument
> >    at gnu.java.net.PlainSocketImpl.getOption (PlainSocketImpl.java)
> >    at gnu.java.net.PlainSocketImpl.connect (PlainSocketImpl.java:216)
> >    at java.net.Socket.connect (Socket.java:402)
> >    at java.net.Socket.connect (Socket.java:366)
> >    at java.net.Socket.Socket (Socket.java:292)
> >    at java.net.Socket.Socket (Socket.java:149)
> >    at sb.main (sb.java:9)
> >    at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
> >    at java.lang.VirtualMachine.main (VirtualMachine.java:88)
> >=20
> > The code of sb.java is simply this:
> >=20
> > import java.net.*;
> > public class sb
> > {
> >    public static void main(String[] args) throws Exception
> >    {
> >       java.net.Socket socket =3D new java.net.Socket("irc.sablevm.org",
> > 6667);
> >       System.out.println(socket);
> >    }
> > }
> >=20
> > I have no time now to track it further. I belive that it's probably
> > a problem in Classpath but Cc:ing SableVM-devel just in case.
> >=20
> > HTH
> >=20
> > 				Grzegorz B. Prokopski
> >=20
> > [1] http://devel.sablevm.org
> >=20
> > --=20
> > Grzegorz B. Prokopski <gadek@debian.org>
> > Debian GNU/Linux      http://www.debian.org
> > SableVM - LGPLed JVM  http://www.sablevm.org
> >=20
> >=20
> >=20
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IBM Linux Tutorials.
> > Become an expert in LINUX or just sharpen your skills.  Sign up for IBM=
's
> > Free Linux Tutorials.  Learn everything from the bash shell to sys admi=
n.
> > Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick
> > _______________________________________________
> > Sablevm-developer mailing list
> > Sablevm-developer@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sablevm-developer
>=20
> --=20
>=20
> ---
>=20
> David B=E9langer
> Graduate Student
> School of Computer Science
> McGill University
> Office: MC226
>=20
> Web page:   http://www.cs.mcgill.ca/~dbelan2/
> Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=CCk
> _______________________________________________
> Sablevm-developer mailing list
> Sablevm-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sablevm-developer
>=20

--=20

---

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 Mon Dec 08 12:37:12 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATPJo-00080k-E3
	for mharc-classpath@gnu.org; Mon, 08 Dec 2003 12:37:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATPJX-0007xS-2H
	for classpath@gnu.org; Mon, 08 Dec 2003 12:36:55 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATPEg-0006T4-Cj
	for classpath@gnu.org; Mon, 08 Dec 2003 12:32:25 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATPES-00065I-NA
	for classpath@gnu.org; Mon, 08 Dec 2003 12:31:40 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id KAA72460;
	Mon, 8 Dec 2003 10:29:57 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hB8GTuRl089830;
	Mon, 8 Dec 2003 10:29:56 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hB8GTt6F089829;
	Mon, 8 Dec 2003 10:29:55 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312081629.hB8GTt6F089829@arch20m.dellroad.org>
In-Reply-To: <1070817518.12792.356.camel@elsschot.wildebeest.org>
To: Mark Wielaard <mark@klomp.org>
Date: Mon, 8 Dec 2003 10:29:55 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Cc: classpath@gnu.org, Robert Lougher <robert_lougher@mac.com>
Subject: Re: SystemClassLoader
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, 08 Dec 2003 17:36:56 -0000

Mark Wielaard wrote:
> > Performance-wise, the VM keeps it's own list of loaded-classes so a 
> > class-loader isn't continually asked for the same class (although this 
> > will work).   Note, I'm interested in doing this so that JamVM can read 
> > from jar and zip files - implementing zip in the VM duplicates 
> > functionality and I'm trying to keep JamVM small (approx 80K on Intel, 
> > 100K on PowerPC stripped).

FYI,

If any VM developers out there are interested, I have some code that can
read ZIP files and is based on libz. So if you are willing to link your
VM with libz, then the code required in the VM itself to support ZIP/JAR
files is small (one file "zip.c" which about 530 lines). GPL copyright.

This is part of a yet another JVM (!) based on Classpath-0.07 that I hope
to release in the next couple of months.

-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com



From MAILER-DAEMON Mon Dec 08 15:28:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATRzw-00081S-Au
	for mharc-classpath@gnu.org; Mon, 08 Dec 2003 15:28:52 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATRzs-0007zy-An
	for classpath@gnu.org; Mon, 08 Dec 2003 15:28:48 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATRzL-0007d0-Kr
	for classpath@gnu.org; Mon, 08 Dec 2003 15:28:46 -0500
Received: from [213.86.99.234] (helo=phoenix.infradead.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ATRzJ-0007bI-SV
	for classpath@gnu.org; Mon, 08 Dec 2003 15:28:14 -0500
Received: from localhost ([127.0.0.1])
	by phoenix.infradead.org with esmtp (Exim 4.30 #5 (Red Hat Linux))
	id 1ATR0h-0002PA-Me; Mon, 08 Dec 2003 19:25:35 +0000
Date: Mon, 8 Dec 2003 19:25:35 +0000 (GMT)
From: James Simmons <jsimmons@infradead.org>
To: Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
In-Reply-To: <87he0fmwtf.fsf@oz.fapse.ulg.ac.be>
Message-ID: <Pine.LNX.4.44.0312081825520.7463-300000@phoenix.infradead.org>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1456859747-212071696-1070911535=:9241"
X-Spam-Score: 0.0 (/)
Cc: classpath@gnu.org, Kaffe <kaffe@kaffe.org>
Subject: Re: [kaffe] Classpath AWT progress.
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, 08 Dec 2003 20:28:49 -0000

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1456859747-212071696-1070911535=:9241
Content-Type: TEXT/PLAIN; charset=US-ASCII


> James Simmons <jsimmons@infradead.org> writes:
> 
> > Give me a few days to get a patch going. At present I'm working on
> > code  that hits two targets, X windows and the linux framebuffer
> > console. I want  to get a system going that runs on X windows and the
> > framebuffer console  at the same time!!!
> 
> Can we call you Santa Claus?

Here is the code I have so far. I extended GraphicsEnvironment to actually 
work. At present it gives exceptions. The main file is 
ClasspathGraphicsEnvironment.java. Its goal is to load each type of 
GraphicsDevice driver. I have fbinput and xlib drivers of which I attached 
XGraphicsDevice. What I'm attempting to tackle now is loading more than 
one object for each type of driver. I haven't got it to work just yet.
Improvements and comments welcomed.

/* ClasspathGraphicsEnvironment.java -- information about the graphics environment
   Copyright (C) 2003 Free Software Foundation, Inc.

This file is part of GNU Classpath.

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

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

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

Linking this library statically or dynamically with other modules is
making a combined work based on this library.  Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.

As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module.  An independent module is a module which is not derived from
or based on this library.  If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so.  If you do not wish to do so, delete this
exception statement from your version. */


package gnu.java.awt;

import gnu.classpath.Configuration;
import java.awt.HeadlessException;
import java.awt.image.BufferedImage;
import java.awt.GraphicsEnvironment;
import java.awt.GraphicsDevice;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.Point;
import java.awt.Font;
import java.util.Locale;

/**
 * This descibes the collection of GraphicsDevice and Font objects available
 * on a given platform. The resources might be local or remote, and specify
 * the valid configurations for displaying graphics.
 *
 * @author James Simmons <jsimmons@infradead.org>
 * @see GraphicsDevice
 * @see GraphicsConfiguration
 * @since 1.4
 * @status updated to 1.4
 */
public class ClasspathGraphicsEnvironment extends GraphicsEnvironment
{
  String [] drivers = { "gnu.java.awt.peer.xlib.XGraphicsDevice" ,
  			"gnu.java.awt.peer.fbinput.FBGraphicsDevice" };
  GraphicsDevice [] displays = new GraphicsDevice [drivers.length];
  GraphicsDevice firstpick;
  boolean unplugged = true;
  
  static
  {
    if (Configuration.INIT_LOAD_LIBRARY)
      System.loadLibrary("awt");
  }  
  
  /**
   * The environment must be obtained from a factory or query method, hence
   * this constructor is protected.
   *
   * At present we only work with a local X Windows connection. In the future
   * we could expand this to include remote connections. To do that I have to 
   * do two things. First pass in the hostname of the machines I want to 
   * connect to. Second tell the difference between the local connection and 
   * the remote.
   */
  protected ClasspathGraphicsEnvironment()
  {
    int count = 0, i = 0;

    while (i < drivers.length) {
    	try {
		Class cls = Class.forName(drivers[i]);
		while (true) {
			Object obj = cls.newInstance();
			if (obj instanceof GraphicsDevice) {
  	   			displays[count++] = (GraphicsDevice) obj;   
			} else {
				break;
			}	
		}	
    	} catch (Throwable t) {
    		System.err.println("Driver "+drivers[i]+" not avaliable");
    	}
	i++;
    }	
    if (count == 0) {
     	throw new HeadlessException("No Displays avaliable");
    } else 
	firstpick = displays[0];    
  }  

  /**
   * Get an array of all the GraphicsDevice objects.
   *
   * @return the available graphics devices, may be 0 length
   * @throws HeadlessException if the environment is headless
   */
  public GraphicsDevice[] getScreenDevices()
  {
    return displays;
  }

  /**
   * Get the default screen GraphicsDevice object.
   *
   * @return the default screen device
   * @throws HeadlessException if the environment is headless
   */
  public GraphicsDevice getDefaultScreenDevice()
  {
    return firstpick;  
  }

  /**
   * Return a Graphics2D object which will render into the specified image.
   *
   * @param image the image to render into
   * @return the object that renders into the image
   */
  public Graphics2D createGraphics(BufferedImage image)
  {
    return null;
  }	  

  /**
   * Returns an array of the one-point size fonts available in this
   * environment. From there, the user can select the font and derive the
   * correct one of proper size and attributes, using <code>deriveFont</code>.
   * Only one master version of each font appears in this array; if a font
   * can be derived from another, it must be created in that way.
   *
   * @return the array of available fonts
   * @see #getAvailableFontFamilyNames()
   * @see Font#deriveFont(int, float)
   * @since 1.2
   */
  public Font[] getAllFonts()
  {
    return null;
  }	  

  /**
   * Returns an array of the font family names available in this environment.
   * This allows flexibility in choosing the style of font, while still letting
   * the Font class decide its best match.
   *
   * @return the array of available font families
   * @see #getAllFonts()
   * @see Font#getFamily()
   * @since 1.2
   */
  public String[] getAvailableFontFamilyNames()
  {
    return null;	  
  }

  /**
   * Returns an array of the font family names available in this environment,
   * localized to the current Locale if l is non-null. This allows
   * flexibility in choosing the style of font, while still letting the Font
   * class decide its best match.
   *
   * @param l the locale to use
   * @return the array of available font families, localized
   * @see #getAllFonts()
   * @see Font#getFamily()
   * @since 1.2
   */
  public String[] getAvailableFontFamilyNames(Locale l)
  {
    return null;
  }

  /**
   * Returns the point where a window should be centered. You should probably
   * also check that the window fits within the screen bounds. The default
   * simply returns the center of the maximum window bounds; subclasses should
   * override this if native objects (like scrollbars) make that off-centered.
   *
   * @return the centering point
   * @throws HeadlessException if the environment is headless
   * @see #getMaximumWindowBounds()
   * @since 1.4
   */
  public Point getCenterPoint()
  {
    Rectangle r = getMaximumWindowBounds();
    return new Point(r.x + r.width / 2, r.y + r.height / 2);
  }

  /**
   * Returns the maximum bounds for a centered window object. The default
   * implementation simply returns the bounds of the default configuration
   * of the default screen; subclasses should override this to if native
   * objects (like scrollbars) reduce what is truly available. Also,
   * subclasses should override this if the window should be centered across
   * a multi-screen display.
   *
   * @return the maximum window bounds
   * @throws HeadlessException if the environment is headless
   * @see #getCenterPoint()
   * @see GraphicsConfiguration#getBounds()
   * @see Toolkit#getScreenInsets(GraphicsConfiguration)
   * @since 1.4
   */
  public Rectangle getMaximumWindowBounds()
  {
    return getDefaultScreenDevice().getDefaultConfiguration().getBounds();
  }
} // class ClasspathGraphicsEnvironment



--1456859747-212071696-1070911535=:9241
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="XGraphicsDevice.java"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0312081925350.9241@phoenix.infradead.org>
Content-Description: 
Content-Disposition: attachment; filename="XGraphicsDevice.java"

LyogWEdyYXBoaWNzRGV2aWNlLmphdmEgLS0gaW5mb3JtYXRpb24gYWJvdXQg
YSBncmFwaGljc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DQogIH0NCn0gLy8gY2xhc3Mg
R3JhcGhpY3NEZXZpY2UNCg==
--1456859747-212071696-1070911535=:9241
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="GraphicsEnvironment.java"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0312081925351.9241@phoenix.infradead.org>
Content-Description: 
Content-Disposition: attachment; filename="GraphicsEnvironment.java"

LyogR3JhcGhpY3NFbnZpcm9ubWVudC5qYXZhIC0tIGluZm9ybWF0aW9uIGFi
b3V0IHRoZSBncmFwaGljcyBlbnZpcm9ubWVudA0KICAgQ29weXJpZ2h0IChD
KSAyMDAyIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgSW5jLg0KDQpUaGlz
IGZpbGUgaXMgcGFydCBvZiBHTlUgQ2xhc3NwYXRoLg0KDQpHTlUgQ2xhc3Nw
YXRoIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0
IGFuZC9vciBtb2RpZnkNCml0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05V
IEdlbmVyYWwgUHVibGljIExpY2Vuc2UgYXMgcHVibGlzaGVkIGJ5DQp0aGUg
RnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uOyBlaXRoZXIgdmVyc2lvbiAyLCBv
ciAoYXQgeW91ciBvcHRpb24pDQphbnkgbGF0ZXIgdmVyc2lvbi4NCg0KR05V
IENsYXNzcGF0aCBpcyBkaXN0cmlidXRlZCBpbiB0aGUgaG9wZSB0aGF0IGl0
IHdpbGwgYmUgdXNlZnVsLCBidXQNCldJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3
aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2YNCk1FUkNIQU5U
QUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4g
IFNlZSB0aGUgR05VDQpHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIG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m5zIHRoZSBib3VuZHMg
b2YgdGhlIGRlZmF1bHQgY29uZmlndXJhdGlvbg0KICAgKiBvZiB0aGUgZGVm
YXVsdCBzY3JlZW47IHN1YmNsYXNzZXMgc2hvdWxkIG92ZXJyaWRlIHRoaXMg
dG8gaWYgbmF0aXZlDQogICAqIG9iamVjdHMgKGxpa2Ugc2Nyb2xsYmFycykg
cmVkdWNlIHdoYXQgaXMgdHJ1bHkgYXZhaWxhYmxlLiBBbHNvLA0KICAgKiBz
dWJjbGFzc2VzIHNob3VsZCBvdmVycmlkZSB0aGlzIGlmIHRoZSB3aW5kb3cg
c2hvdWxkIGJlIGNlbnRlcmVkIGFjcm9zcw0KICAgKiBhIG11bHRpLXNjcmVl
biBkaXNwbGF5Lg0KICAgKg0KICAgKiBAcmV0dXJuIHRoZSBtYXhpbXVtIHdp
bmRvdyBib3VuZHMNCiAgICogQHRocm93cyBIZWFkbGVzc0V4Y2VwdGlvbiBp
ZiB0aGUgZW52aXJvbm1lbnQgaXMgaGVhZGxlc3MNCiAgICogQHNlZSAjZ2V0
Q2VudGVyUG9pbnQoKQ0KICAgKiBAc2VlIEdyYXBoaWNzQ29uZmlndXJhdGlv
biNnZXRCb3VuZHMoKQ0KICAgKiBAc2VlIFRvb2xraXQjZ2V0U2NyZWVuSW5z
ZXRzKEdyYXBoaWNzQ29uZmlndXJhdGlvbikNCiAgICogQHNpbmNlIDEuNA0K
ICAgKi8NCiAgcHVibGljIFJlY3RhbmdsZSBnZXRNYXhpbXVtV2luZG93Qm91
bmRzKCkNCiAgew0KICAgIHJldHVybiBnZXREZWZhdWx0U2NyZWVuRGV2aWNl
KCkuZ2V0RGVmYXVsdENvbmZpZ3VyYXRpb24oKS5nZXRCb3VuZHMoKTsNCiAg
fQ0KfSAvLyBjbGFzcyBHcmFwaGljc0Vudmlyb25tZW50DQo=
--1456859747-212071696-1070911535=:9241--



From MAILER-DAEMON Mon Dec 08 16:15:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATSj8-0005Sk-2c
	for mharc-classpath@gnu.org; Mon, 08 Dec 2003 16:15:34 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATSj3-0005RR-Lp
	for classpath@gnu.org; Mon, 08 Dec 2003 16:15:29 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATSiW-0005Je-PY
	for classpath@gnu.org; Mon, 08 Dec 2003 16:15:28 -0500
Received: from [132.208.250.6] (helo=anis.telecom.uqam.ca)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATSiW-0005JK-9w
	for classpath@gnu.org; Mon, 08 Dec 2003 16:14:56 -0500
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 hB8Jl8gr004585
	for <classpath@gnu.org>; Mon, 8 Dec 2003 15:06:26 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
	by anis.telecom.uqam.ca (SAVSMTP 3.1.1.32) with SMTP id
	M2003120815062531115
	for <classpath@gnu.org>; Mon, 08 Dec 2003 15:06:25 -0500
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
	hB8JQmdW012640; Mon, 8 Dec 2003 14:26:49 -0500 (EST)
X-Spam-Filter: Filtre-Uqam re:  abuse@uqam.ca
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by localhost with esmtp (Exim 3.36 #1 (Debian))
	id 1ATR1t-0003VS-00; Mon, 08 Dec 2003 14:26:49 -0500
Message-ID: <3FD4D07A.7080408@uqam.ca>
Date: Mon, 08 Dec 2003 14:26:50 -0500
From: Etienne Gagnon <gagnon.etienne_m@uqam.ca>
Organization: UQAM
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: Archie Cobbs <archie@dellroad.org>
References: <200312081629.hB8GTt6F089829@arch20m.dellroad.org>
In-Reply-To: <200312081629.hB8GTt6F089829@arch20m.dellroad.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: Mark Wielaard <mark@klomp.org>, classpath@gnu.org,
	Robert Lougher <robert_lougher@mac.com>
Subject: Re: SystemClassLoader
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, 08 Dec 2003 21:15:32 -0000

Hi Archie,

I would be interested in using your code if it was licensed under the
less restrictive LGPL.  Some people even suggested that it would be
very nice of you if you could put this code in the public domain, so
that any jvm, regardless of license, would be able to use it...

Are you up to making a great donation to the world, and conquer it?

:-))

Etienne


Archie Cobbs wrote:
> Mark Wielaard wrote:
> 
>>>Performance-wise, the VM keeps it's own list of loaded-classes so a 
>>>class-loader isn't continually asked for the same class (although this 
>>>will work).   Note, I'm interested in doing this so that JamVM can read 
>>>from jar and zip files - implementing zip in the VM duplicates 
>>>functionality and I'm trying to keep JamVM small (approx 80K on Intel, 
>>>100K on PowerPC stripped).
> 
> 
> FYI,
> 
> If any VM developers out there are interested, I have some code that can
> read ZIP files and is based on libz. So if you are willing to link your
> VM with libz, then the code required in the VM itself to support ZIP/JAR
> files is small (one file "zip.c" which about 530 lines). GPL copyright.
> 
> This is part of a yet another JVM (!) based on Classpath-0.07 that I hope
> to release in the next couple of months.
> 
> -Archie
> 
> __________________________________________________________________________
> Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com
> 
> 
> _______________________________________________
> 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 Dec 08 18:02:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATUOJ-0000oe-Em
	for mharc-classpath@gnu.org; Mon, 08 Dec 2003 18:02:11 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATUOG-0000lO-VV
	for classpath@gnu.org; Mon, 08 Dec 2003 18:02:08 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATUNj-00005K-5j
	for classpath@gnu.org; Mon, 08 Dec 2003 18:02:07 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATUNi-0008Vv-MV
	for classpath@gnu.org; Mon, 08 Dec 2003 18:01:34 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id PAA75558;
	Mon, 8 Dec 2003 15:52:30 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hB8LqURl091405;
	Mon, 8 Dec 2003 15:52:30 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hB8LqU6X091404;
	Mon, 8 Dec 2003 15:52:30 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312082152.hB8LqU6X091404@arch20m.dellroad.org>
In-Reply-To: <3FD4D07A.7080408@uqam.ca>
To: Etienne Gagnon <gagnon.etienne_m@uqam.ca>
Date: Mon, 8 Dec 2003 15:52:30 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Cc: Mark Wielaard <mark@klomp.org>, classpath@gnu.org,
	Robert Lougher <robert_lougher@mac.com>
Subject: Re: SystemClassLoader
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, 08 Dec 2003 23:02:10 -0000

Etienne Gagnon wrote:
> I would be interested in using your code if it was licensed under the
> less restrictive LGPL.  Some people even suggested that it would be
> very nice of you if you could put this code in the public domain, so
> that any jvm, regardless of license, would be able to use it...

Oops, sorry - forgot to include this part from the header file:

    struct _jc_zip_entry {
	    char            *name;
	    jshort          method;
	    jint            comp_len;
	    jint            uncomp_len;
	    jint            crc;
	    off_t           offset;
    };

    struct _jc_zip {
	    int             fd;
	    char            *path;
	    int             num_entries;
	    _jc_zip_entry   *entries;
    };


-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com



From MAILER-DAEMON Mon Dec 08 18:02:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATUOc-0000z1-DZ
	for mharc-classpath@gnu.org; Mon, 08 Dec 2003 18:02:30 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATUOS-0000wz-S5
	for classpath@gnu.org; Mon, 08 Dec 2003 18:02:20 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATUNv-0000Qk-LY
	for classpath@gnu.org; Mon, 08 Dec 2003 18:02:18 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATUNu-0000Ok-BK
	for classpath@gnu.org; Mon, 08 Dec 2003 18:01:46 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id PAA75554;
	Mon, 8 Dec 2003 15:50:53 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hB8LoqRl091393;
	Mon, 8 Dec 2003 15:50:52 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hB8LoqIc091392;
	Mon, 8 Dec 2003 15:50:52 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312082150.hB8LoqIc091392@arch20m.dellroad.org>
In-Reply-To: <3FD4D07A.7080408@uqam.ca>
To: Etienne Gagnon <gagnon.etienne_m@uqam.ca>
Date: Mon, 8 Dec 2003 15:50:52 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Cc: Mark Wielaard <mark@klomp.org>, classpath@gnu.org,
	Robert Lougher <robert_lougher@mac.com>
Subject: Re: SystemClassLoader
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, 08 Dec 2003 23:02:27 -0000

Etienne Gagnon wrote:
> I would be interested in using your code if it was licensed under the
> less restrictive LGPL.  Some people even suggested that it would be
> very nice of you if you could put this code in the public domain, so
> that any jvm, regardless of license, would be able to use it...

Here it is.. have at it :-) You'll need to replace the calls to
_jc_vm_alloc(), _jc_post_exception(), etc.

I'm not a license freak so if LGPL doesn't work for somebody let me know.

Cheers,
-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com


/*
 * 
 * Copyright (C) 2003 Archie L. Cobbs <archie@dellroad.org>
 * All rights reserved.
 * 
 * See the file "AUTHORS" for the name of all copyright holders.
 * 
 * This software is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 * 
 * This software 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 Lesser General Public
 * License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software in the file "COPYING.LIB"; if not,
 * write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307 USA
 *
 * $Id: zip.c,v 1.7 2003/11/28 22:07:06 archie Exp $
 */

#include "libjc.h"

/* ZIP file constants */
#define ZIP_DIRECTORY_SIGNATURE		0x06054b50
#define ZIP_DIRENTRY_SIGNATURE		0x02014b50
#define ZIP_ENTRY_SIGNATURE		0x03044b50
#define ZIP_DIRECTORY_INFO_LEN		22
#define ZIP_LOCAL_HEADER_EXTRA_OFFSET	28
#define ZIP_LOCAL_HEADER_LEN		30

#define ZIP_METHOD_STORED		0
#define ZIP_METHOD_DEFLATED		8

/* Public functions */
extern _jc_zip	*_jc_zip_open(_jc_env *env, const char *path);
extern void	_jc_zip_close(_jc_zip **zipp);
extern int	_jc_zip_search(_jc_zip *zip, const char *name);
extern jint	_jc_zip_read(_jc_env *env, _jc_zip *zip,
			int indx, u_char *data);

/* Internal functions */
static int	_jc_zip_scan(_jc_zip *zip, ...);
static jint	_jc_zip_unstore(_jc_env *env, _jc_zip *zip,
			_jc_zip_entry *zent, void *data);
static jint	_jc_zip_inflate(_jc_env *env, _jc_zip *zip,
			_jc_zip_entry *zent, void *data);
static void	*_jc_zip_alloc(void *cookie, unsigned int num,
			unsigned int size);
static void	_jc_zip_free(void *cookie, void *mem);
static int	_jc_zip_entry_cmp(const void *v1, const void *v2);

/*
 * Open a ZIP file.
 *
 * If there is an error, an InternalError is posted and NULL is returned.
 */
_jc_zip *
_jc_zip_open(_jc_env *env, const char *path)
{
	jshort num_entries;
	jint signature;
	jint offset;
	_jc_zip *zip;
	int i;

	/* Create new zip structure */
	if ((zip = _jc_vm_zalloc(env, sizeof(*zip))) == NULL)
		goto fail;
	zip->fd = -1;
	if ((zip->path = _jc_vm_strdup(env, path)) == NULL)
		goto fail;

	/* Open file */
	if ((zip->fd = open(path, O_RDONLY)) == -1) {
		_jc_post_exception_msg(env, _JC_InternalError,
		    "can't open ZIP file `%s': %s", zip->path, strerror(errno));
		goto fail;
	}
	(void)fcntl(zip->fd, F_SETFD, 1);

	/* Seek to start of central directory meta-info at end of file */
	if (lseek(zip->fd, (off_t)-ZIP_DIRECTORY_INFO_LEN, SEEK_END) == -1) {
		_jc_post_exception_msg(env, _JC_InternalError,
		    "can't seek to directory meta-info in ZIP file `%s': %s",
		    zip->path, strerror(errno));
		goto fail;
	}

	/* Read central directory meta-info */
	if (_jc_zip_scan(zip, -4, &signature, 6, NULL,
	    -2, &num_entries, 4, NULL, -4, &offset, 0) != JNI_OK) {
		_jc_post_exception_msg(env, _JC_InternalError,
		    "can't read directory meta-info in ZIP file `%s': %s",
		    zip->path, strerror(errno));
		goto fail;
	}

	/* Check signature */
	if (signature != ZIP_DIRECTORY_SIGNATURE) {
		_jc_post_exception_msg(env, _JC_InternalError,
		    "invalid directory signature 0x%08x in ZIP file `%s'",
		    signature, zip->path);
		goto fail;
	}

	/* Seek to start of central directory */
	if (lseek(zip->fd, (off_t)offset, SEEK_SET) == -1) {
		_jc_post_exception_msg(env, _JC_InternalError,
		    "can't seek to directory in ZIP file `%s': %s",
		    zip->path, strerror(errno));
		goto fail;
	}

	/* Allocate directory entries */
	if ((zip->entries = _jc_vm_zalloc(env,
	    num_entries * sizeof(*zip->entries))) == NULL)
		goto fail;
	zip->num_entries = num_entries;

	/* Read directory entries */
	for (i = 0; i < num_entries; i++) {
		_jc_zip_entry *const zent = &zip->entries[i];
		jshort comment_len;
		jshort extra_len;
		jshort name_len;
		off_t pos;

		/* Read directory entry */
		if (_jc_zip_scan(zip, -4, &signature, 6, NULL,
		    -2, &zent->method, 4, NULL, -4, &zent->crc,
		    -4, &zent->comp_len, -4, &zent->uncomp_len,
		    -2, &name_len, -2, &extra_len, -2, &comment_len,
		    8, NULL, -4, &offset, 0) != JNI_OK) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "can't read entry directory #%d in ZIP file `%s':"
			    " %s", i + 1, zip->path, strerror(errno));
			goto fail;
		}

		/* Check signature */
		if (signature != ZIP_DIRENTRY_SIGNATURE) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "invalid signature 0x%08x for directory entry #%d"
			    " in ZIP file `%s'",
			    signature, i + 1, zip->path);
			goto fail;
		}

		/* Allocate buffer for file name */
		if ((zent->name = _jc_vm_alloc(env, name_len + 1)) == NULL)
			goto fail;

		/* Read entry file name */
		if (_jc_zip_scan(zip, name_len, zent->name, 0) != JNI_OK) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "can't read directory entry #%d in ZIP file `%s':"
			    " %s", i + 1, zip->path, strerror(errno));
			goto fail;
		}
		zent->name[name_len] = '\0';

		/* Skip over extra and comment fields */
		if (_jc_zip_scan(zip,
		    extra_len + comment_len, NULL, 0) != JNI_OK) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "can't read entry `%s' in ZIP file `%s': %s",
			    zent->name, zip->path, strerror(errno));
			goto fail;
		}

		/* Save current position */
		if ((pos = lseek(zip->fd, 0, SEEK_CUR)) == (off_t)-1) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "can't seek entry `%s' in ZIP file `%s': %s",
			    zent->name, zip->path, strerror(errno));
			goto fail;
		}

		/* Jump to entry local header extra data length field */
		if (lseek(zip->fd,
		    (off_t)(offset + ZIP_LOCAL_HEADER_EXTRA_OFFSET),
		    SEEK_SET) == (off_t)-1) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "can't seek entry `%s' in ZIP file `%s': %s",
			    zent->name, zip->path, strerror(errno));
			goto fail;
		}

		/* Read length of local extra data */
		if (_jc_zip_scan(zip, -2, &extra_len, 0) != JNI_OK) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "can't read entry `%s' in ZIP file `%s': %s",
			    zent->name, zip->path, strerror(errno));
			goto fail;
		}

		/* Compute offset of actual file data */
		zent->offset = offset
		    + ZIP_LOCAL_HEADER_LEN + name_len + extra_len;

		/* Jump back to previous position in directory */
		if (lseek(zip->fd, pos, SEEK_SET) == (off_t)-1) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "can't seek entry `%s' in ZIP file `%s': %s",
			    zent->name, zip->path, strerror(errno));
			goto fail;
		}
	}

	/* Sort the entries by name for faster searching */
	qsort(zip->entries, zip->num_entries,
	    sizeof(*zip->entries), _jc_zip_entry_cmp);

	/* Done */
	return zip;

fail:
	/* Clean up after failure */
	_jc_zip_close(&zip);
	return NULL;
}

/*
 * Close a ZIP file.
 */
void
_jc_zip_close(_jc_zip **zipp)
{
	_jc_zip *zip = *zipp;

	/* Sanity check */
	if (zip == NULL)
		return;
	*zipp = NULL;

	/* Free resources */
	while (zip->num_entries > 0) {
		_jc_zip_entry *const zent = &zip->entries[--zip->num_entries];

		_jc_vm_free(&zent->name);
	}
	_jc_vm_free(&zip->entries);
	_jc_vm_free(&zip->path);
	if (zip->fd != -1)
		close(zip->fd);
	_jc_vm_free(&zip);
}

/*
 * Search for an entry in a ZIP file.
 *
 * Returns the entry index, or -1 if unsuccessful.
 */
int
_jc_zip_search(_jc_zip *zip, const char *name)
{
	int base;
	int lim;

	/* Search for entry using binary search */
        for (base = 0, lim = zip->num_entries; lim != 0; lim >>= 1) {
		const int target = base + (lim >> 1);
		const _jc_zip_entry *const zent = &zip->entries[target];
		int diff;

		if ((diff = strcmp(name, zent->name)) == 0)
			return target;
		if (diff > 0) {
			base = target + 1;
			lim--;
		}
        }
	return -1;
}

/*
 * Extract an entry from a ZIP file and return its length.
 *
 * Posts an exception and returns -1 if unsuccessful.
 */
jint
_jc_zip_read(_jc_env *env, _jc_zip *zip, int indx, u_char *data)
{
	_jc_zip_entry *const zent = &zip->entries[indx];

	/* Sanity check */
	_JC_ASSERT(indx >= 0 && indx < zip->num_entries);

	/* Decompress data */
	switch (zent->method) {
	case ZIP_METHOD_STORED:
		if (_jc_zip_unstore(env, zip, zent, data) != JNI_OK)
			return JNI_ERR;
		break;
	case ZIP_METHOD_DEFLATED:
		if (_jc_zip_inflate(env, zip, zent, data) != JNI_OK)
			return JNI_ERR;
		break;
	default:
		_jc_post_exception_msg(env, _JC_InternalError,
		    "unsupported compression method %d for entry `%s'"
		    " in ZIP file `%s'", zent->method, zent->name, zip->path);
		return JNI_ERR;
	}

	/* Done */
	return JNI_OK;
}

/*
 * Extract a stored entry.
 */
static jint
_jc_zip_unstore(_jc_env *env, _jc_zip *zip, _jc_zip_entry *zent, void *data)
{
	int i;
	int r;

	/* Sanity check */
	if (zent->comp_len != zent->uncomp_len) {
		_jc_post_exception_msg(env, _JC_InternalError,
		    "inconsistent lengths %d != %d for entry `%s'"
		    " in ZIP file `%s'", zent->comp_len,
		    zent->uncomp_len, zent->name, zip->path);
		return JNI_ERR;
	}

	/* Read data */
	for (i = 0; i < zent->comp_len; i += r) {
		if ((r = pread(zip->fd, (char *)data + i,
		    zent->comp_len - i, zent->offset + i)) == -1) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "can't read entry `%s' in ZIP file `%s': %s",
			    zent->name, zip->path, strerror(errno));
			return JNI_ERR;
		}
		if (r == 0) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "premature EOF reading entry `%s' in ZIP file `%s'",
			    zent->name, zip->path);
			return JNI_ERR;
		}
	}

	/* Done */
	return JNI_OK;
}

/*
 * Extract a deflated entry.
 */
static jint
_jc_zip_inflate(_jc_env *env, _jc_zip *zip, _jc_zip_entry *zent, void *data)
{
	z_stream zs;
	int i;
	int r;

	/* Initialize decompression state */
	memset(&zs, 0, sizeof(zs));
	zs.zalloc = _jc_zip_alloc;
	zs.zfree = _jc_zip_free;
	zs.opaque = env;
	zs.next_out = data;
	zs.avail_out = zent->uncomp_len;
	switch (inflateInit2(&zs, -MAX_WBITS)) {
	case Z_OK:
		break;
	case Z_MEM_ERROR:
		return JNI_ERR;
	case Z_VERSION_ERROR:
		_jc_post_exception_msg(env, _JC_InternalError,
		    "error reading entry `%s' in ZIP file `%s': %s",
		    zent->name, zip->path, "incompatible zlib version");
		return JNI_ERR;
	default:
		_JC_ASSERT(JNI_FALSE);
	}

	/* Read and inflate data */
	for (i = 0; i < zent->comp_len; i += r) {
		char buf[512];
		int to_read;
		int flush;

		/* Read the next chunk of data */
		to_read = zent->comp_len - i;
		if (to_read > sizeof(buf))
			to_read = sizeof(buf);
		if ((r = pread(zip->fd, buf,
		    to_read, zent->offset + i)) == -1) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "error reading entry `%s' in ZIP file `%s': %s",
			    zent->name, zip->path, strerror(errno));
			goto fail;
		}
		if (r == 0) {
			_jc_post_exception_msg(env, _JC_InternalError,
			    "error reading entry `%s' in ZIP file `%s': %s",
			    zent->name, zip->path, "premature EOF");
			goto fail;
		}

		/*
		 * Check for uncompressed data appearing to be too big.
		 * A bug in zlib somewhere causes this to happen sometimes.
		 */
		if (zs.avail_out == 0) {
			r = inflateEnd(&zs);
			_JC_ASSERT(r == Z_OK);
			return JNI_OK;
		}

		/* Decompress the chunk we just read */
		zs.next_in = buf;
		zs.avail_in = r;
		flush = (i + r == zent->comp_len) ? Z_FINISH : Z_SYNC_FLUSH;
		switch (inflate(&zs, flush)) {
		case Z_OK:
			_JC_ASSERT(zs.avail_in == 0);
			continue;
		case Z_BUF_ERROR:		/* bug in zlib causes this */
		case Z_STREAM_END:
			if (zs.avail_out != 0 || i + r != zent->comp_len)
				goto bad_length;
			r = inflateEnd(&zs);
			_JC_ASSERT(r == Z_OK);
			return JNI_OK;
		case Z_NEED_DICT:
			_jc_post_exception_msg(env, _JC_InternalError,
			    "error reading entry `%s' in ZIP file `%s': %s",
			    zent->name, zip->path, "dictionary required");
			goto fail;
		case Z_DATA_ERROR:
			_jc_post_exception_msg(env, _JC_InternalError,
			    "error reading entry `%s' in ZIP file `%s': %s",
			    zent->name, zip->path, "corrupted entry");
			goto fail;
		case Z_MEM_ERROR:
			goto fail;
		default:
			_JC_ASSERT(JNI_FALSE);
		}
	}

bad_length:
	/* Uncompressed data had the wrong length */
	_jc_post_exception_msg(env, _JC_InternalError,
	    "error reading entry `%s' in ZIP file `%s': %s",
	    zent->name, zip->path, "incorrect length");

fail:
	/* Clean up after failure */
	inflateEnd(&zs);
	return JNI_ERR;
}

/*
 * Function to read consecutive data bytes from the ZIP file and perform
 * optional conversion from little endian. A negative count means 16 or
 * 32 bit conversion is performed.
 *
 * NOTE: Does not post an exception in the error case.
 */
static int
_jc_zip_scan(_jc_zip *zip, ...)
{
	jint rtn = JNI_OK;
	va_list args;

	va_start(args, zip);
	while (JNI_TRUE) {
		const int count = va_arg(args, int);
		const int num_bytes = (count < 0 ? -count : count);
		void *const data = va_arg(args, void *);
		u_char buf[16];
		u_char *dest;
		int i;
		int r;

		/* A zero count terminates the list */
		if (count == 0)
			break;

		/* Read bytes into provided buffer or byte-swap buffer */
		if (data == NULL || count < 0) {
			_JC_ASSERT(num_bytes <= sizeof(buf));
			dest = buf;
		} else
			dest = data;
		for (i = 0; i < num_bytes; i += r) {
			if ((r = read(zip->fd,
			    dest + i, num_bytes - i)) == -1) {
				rtn = JNI_ERR;
				goto done;
			}
			if (r == 0) {
				errno = ESPIPE;			/* XXX */
				rtn = JNI_ERR;
				goto done;
			}
		}

		/* If no conversion needed, just continue */
		if (data == NULL || count >= 0)
			continue;

		/* Do byte-swapping */
		switch (num_bytes) {
		case 1:
			*((u_char *)data) = buf[0];
			break;
		case 2:
			*((jshort *)data) = buf[0] | (buf[1] << 8);
			break;
		case 4:
			*((jint *)data) = buf[0] | (buf[1] << 8)
			    | (buf[2] << 16) | (buf[3] << 24);
			break;
		default:
			_JC_ASSERT(JNI_FALSE);
		}
	}

done:
	/* Clean up and return */
	va_end(args);
	return rtn;
}

/*
 * Function to sort ZIP entries by name.
 */
static int
_jc_zip_entry_cmp(const void *v1, const void *v2)
{
	const _jc_zip_entry *const zent1 = v1;
	const _jc_zip_entry *const zent2 = v2;

	return strcmp(zent1->name, zent2->name);
}

/*
 * Memory allocation callback for zlib.
 */
static void *
_jc_zip_alloc(void *cookie, unsigned int num, unsigned int size)
{
	_jc_env *const env = cookie;

	return _jc_vm_alloc(env, num * size);
}

/*
 * Memory free callback for zlib.
 */
static void
_jc_zip_free(void *cookie, void *mem)
{
	_jc_vm_free(&mem);
}





From MAILER-DAEMON Mon Dec 08 18:38:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATUxW-0002mF-Pz
	for mharc-classpath@gnu.org; Mon, 08 Dec 2003 18:38:34 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATUxU-0002m1-08
	for classpath@gnu.org; Mon, 08 Dec 2003 18:38:32 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATUwx-0002iU-4U
	for classpath@gnu.org; Mon, 08 Dec 2003 18:38:31 -0500
Received: from [32.97.182.103] (helo=e3.ny.us.ibm.com)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1ATUww-0002hB-Au
	for classpath@gnu.org; Mon, 08 Dec 2003 18:37:58 -0500
Received: from northrelay02.pok.ibm.com (northrelay02.pok.ibm.com
	[9.56.224.150])
	by e3.ny.us.ibm.com (8.12.10/8.12.2) with ESMTP id hB8MaRg6626578
	for <classpath@gnu.org>; Mon, 8 Dec 2003 17:36:27 -0500
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
	hB8MaQWK228456
	for <classpath@gnu.org>; Mon, 8 Dec 2003 17:36:26 -0500
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: <OF2A6C389C.90465DF5-ON85256DF6.007B911E-85256DF6.007C06ED@us.ibm.com>
Date: Mon, 8 Dec 2003 17:36:19 -0500
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 6.5HF149 |
	November 14, 2003) at 12/08/2003 17:36:27,
	Serialize complete at 12/08/2003 17:36:27
Content-Type: multipart/alternative;
	boundary="=_alternative 007BF41B85256DF6_="
Subject: Jikes RVM 2.3.1 released (uses classpath 0.07)
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, 08 Dec 2003 23:38:32 -0000

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

Hi,

        We thought some people on this list might be interested in knowing 
that we've released a new version of Jikes RVM that is using classpath 
0.07.  If this kind of posting is not appropriate, let me know and we 
won't cross post release announcements in the future.  Appended below is 
the release announcement.

--dave

Jikes RVM 2.3.1 is now available from the developerworks web site (
http://www-124.ibm.com/developerworks/oss/jikesrvm/). 

The release notes are appended below. 

*Sections of this document: 
 *Highlights 
 *Other Notes 
 *Bug Fixes 

*Highlights of this release include: 

**Mac OSX is now supported! 
Generously contributed by Chris Hoffman of the University of 
Massachusetts (USA). 
***Details: 
If you want to build Jikes RVM for Mac OSX, you will need to patch 
your copy (version 0.06 or better) of GNU Classpath with the patch 
file located in aux/gnu-classpath-on-mac-osx.patch. 

** Seven user contributions incorporated since 2.3.0 
*** Contributions were improvements to JMTk from Robin Garner, 
port to OSX from Chris Hoffman, refCount coalescing extension from Ian 
Warrington, bug fixes for the OSX port and opt compiler on PPC from 
Alan Lawrence, implementation of -jar cmd line arg from Anders Biehl 
Norgaard, and support for getting the classpath from CLASSPATH envar 
from Philippe Faes. 

** Switched to classpath 0.07 
*** Classpath 0.06 is expected to also work with this release of Jikes 
RVM, 
but we recommend upgrading to the latest classpath release. 

**Build system improvements: 
***If you run "jbuild" with --trace, 
you actually get all of the relevant shell commands printed out. 

***Under jbuild --trace=make, whenever we change directories, we report it 

This is parseable by Emacs's compilation-mode.  --trace=make is 
enabled automatically by "--trace" without any arguments. 

***More error-checking functionality added to the build system. 

***Cleaned up a couple of bogus warnings 
one could get in some versions of the Bourne-Again Shell (Bash). 

***We can make automatic binary installations of Jikes RVM 
There's a new generated script, "$RVM_BUILD/jbuild.install", that does 
this.  Handy way to save off a configuration that works before making 
changes.  Also lets us make a binary distribution of Jikes RVM, should 
it be desirable. 

***New build options, JAVAC_WARNING_FLAGS and JIKES_WARNING_FLAGS 
These variables replace the former hardcoded "-nowarn", and can be set 
arbitrarily. They default to "-nowarn" for historical compatibility. 
It means you can now get helpful warnings from the Java compiler. 

**Improvements to automatic download of GNU Classpath libraries. 
***We now use wget to download a classpath release instead of doing a 
cvs checkout.  This avoids the problematic aclocal/autoconf/etc step 
and means that automatic downloading should work for all users and is 
now the recommended default. 

**Progress in PowerPC64 port: we can run hello world 
***The Jikes RVM port to PPC64 has progressed to the point where a 
prototype 
configuration boots and can run many simple programs. 
Getting this far requires that lots of things are working, so it is a 
fairly significant step.  However, there is more work to do with 
prototype and we haven't started work on the opt compiler. This is very 
much a work in progress (and members of the community are encouraged 
to help!). 

*Other notes: 

***We have fixed all C and C++ compiler warnings in the Linux/x86 source 
code, under GCC 2.96, GCC 3.3, and GCC 3.3.1.  The only exception is 
warnings from GCC 2.96 of the form: 

        ihnpdsm.C:4942: warning: `unused' attribute ignored 

They are benign; ignore them. 

***__linuxsmp__ has now been officially exorcised from the source. 

*Bug Fixes: 

***Debugging output no longer can drift into InterfaceDeclarations.h; 
GenerateInterfaceDeclarations.java takes a new "-out" option. 

***--trace=preprocessor now lists all of the directories consistently. 

***Cross-building from Linux to AIX now works better. 
You can now set RVM_ROOT and RVM_BUILD to different values on the host 
and the target machines. 
****Details: 
If you don't have RVM_ROOT and/or RVM_BUILD set in your environment 
when you run the booter on the target, then "jbuild -booter" will use 
the (recorded) values from the host.  If you do have one or both of 
them set, they'll be used as appropriate. 

It is now the case that, when you run "jconfigure" and "jbuild", you 
should have your PATH set so that there is some Bash version in it 
somewhere under the name "bash". 

*** Other misc bugs fixed as well; see the bug tracking software.
--=_alternative 007BF41B85256DF6_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; We
thought some people on this list might be interested in knowing that we've
released a new version of Jikes RVM that is using classpath 0.07. &nbsp;If
this kind of posting is not appropriate, let me know and we won't cross
post release announcements in the future. &nbsp;Appended below is the release
announcement.</font>
<br>
<br><font size=2 face="sans-serif">--dave</font>
<br>
<br><font size=2 face="sans-serif">Jikes RVM 2.3.1 is now available from
the developerworks web site (http://www-124.ibm.com/developerworks/oss/jikesrvm/).</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
The release notes are appended below.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
*Sections of this document:</font><font size=3> </font><font size=2 face="sans-serif"><br>
 *Highlights</font><font size=3> </font><font size=2 face="sans-serif"><br>
 *Other Notes</font><font size=3> </font><font size=2 face="sans-serif"><br>
 *Bug Fixes</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
*Highlights of this release include:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
**Mac OSX is now supported!</font><font size=3> </font><font size=2 face="sans-serif"><br>
Generously contributed by Chris Hoffman of the University of</font><font size=3>
</font><font size=2 face="sans-serif"><br>
Massachusetts (USA).</font><font size=3> </font><font size=2 face="sans-serif"><br>
***Details:</font><font size=3> </font><font size=2 face="sans-serif"><br>
If you want to build Jikes RVM for Mac OSX, you will need to patch</font><font size=3>
</font><font size=2 face="sans-serif"><br>
your copy (version 0.06 or better) of GNU Classpath with the patch</font><font size=3>
</font><font size=2 face="sans-serif"><br>
file located in aux/gnu-classpath-on-mac-osx.patch.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
** Seven user contributions incorporated since 2.3.0</font><font size=3>
</font><font size=2 face="sans-serif"><br>
*** Contributions were improvements to JMTk from Robin Garner,</font><font size=3>
</font><font size=2 face="sans-serif"><br>
port to OSX from Chris Hoffman, refCount coalescing extension from Ian</font><font size=3>
</font><font size=2 face="sans-serif"><br>
Warrington, bug fixes for the OSX port and opt compiler on PPC from</font><font size=3>
</font><font size=2 face="sans-serif"><br>
Alan Lawrence, implementation of -jar cmd line arg from Anders Biehl</font><font size=3>
</font><font size=2 face="sans-serif"><br>
Norgaard, and support for getting the classpath from CLASSPATH envar</font><font size=3>
</font><font size=2 face="sans-serif"><br>
from Philippe Faes.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
** Switched to classpath 0.07</font><font size=3> </font><font size=2 face="sans-serif"><br>
*** Classpath 0.06 is expected to also work with this release of Jikes
RVM,</font><font size=3> </font><font size=2 face="sans-serif"><br>
but we recommend upgrading to the latest classpath release.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
**Build system improvements:</font><font size=3> </font><font size=2 face="sans-serif"><br>
***If you run &quot;jbuild&quot; with --trace,</font><font size=3> </font><font size=2 face="sans-serif"><br>
you actually get all of the relevant shell commands printed out.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
***Under jbuild --trace=make, whenever we change directories, we report
it</font><font size=3> </font><font size=2 face="sans-serif"><br>
This is parseable by Emacs's compilation-mode. &nbsp;--trace=make is</font><font size=3>
</font><font size=2 face="sans-serif"><br>
enabled automatically by &quot;--trace&quot; without any arguments.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
***More error-checking functionality added to the build system.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
***Cleaned up a couple of bogus warnings</font><font size=3> </font><font size=2 face="sans-serif"><br>
one could get in some versions of the Bourne-Again Shell (Bash).</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
***We can make automatic binary installations of Jikes RVM</font><font size=3>
</font><font size=2 face="sans-serif"><br>
There's a new generated script, &quot;$RVM_BUILD/jbuild.install&quot;,
that does</font><font size=3> </font><font size=2 face="sans-serif"><br>
this. &nbsp;Handy way to save off a configuration that works before making</font><font size=3>
</font><font size=2 face="sans-serif"><br>
changes. &nbsp;Also lets us make a binary distribution of Jikes RVM, should</font><font size=3>
</font><font size=2 face="sans-serif"><br>
it be desirable.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
***New build options, JAVAC_WARNING_FLAGS and JIKES_WARNING_FLAGS</font><font size=3>
</font><font size=2 face="sans-serif"><br>
These variables replace the former hardcoded &quot;-nowarn&quot;, and can
be set</font><font size=3> </font><font size=2 face="sans-serif"><br>
arbitrarily. They default to &quot;-nowarn&quot; for historical compatibility.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
It means you can now get helpful warnings from the Java compiler.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
**Improvements to automatic download of GNU Classpath libraries.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
***We now use wget to download a classpath release instead of doing a</font><font size=3>
</font><font size=2 face="sans-serif"><br>
cvs checkout. &nbsp;This avoids the problematic aclocal/autoconf/etc step</font><font size=3>
</font><font size=2 face="sans-serif"><br>
and means that automatic downloading should work for all users and is</font><font size=3>
</font><font size=2 face="sans-serif"><br>
now the recommended default.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
**Progress in PowerPC64 port: we can run hello world</font><font size=3>
</font><font size=2 face="sans-serif"><br>
***The Jikes RVM port to PPC64 has progressed to the point where a prototype</font><font size=3>
</font><font size=2 face="sans-serif"><br>
configuration boots and can run many simple programs.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
Getting this far requires that lots of things are working, so it is a</font><font size=3>
</font><font size=2 face="sans-serif"><br>
fairly significant step. &nbsp;However, there is more work to do with</font><font size=3>
</font><font size=2 face="sans-serif"><br>
prototype and we haven't started work on the opt compiler. This is very</font><font size=3>
</font><font size=2 face="sans-serif"><br>
much a work in progress (and members of the community are encouraged</font><font size=3>
</font><font size=2 face="sans-serif"><br>
to help!).</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
*Other notes:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
***We have fixed all C and C++ compiler warnings in the Linux/x86 source</font><font size=3>
</font><font size=2 face="sans-serif"><br>
code, under GCC 2.96, GCC 3.3, and GCC 3.3.1. &nbsp;The only exception
is</font><font size=3> </font><font size=2 face="sans-serif"><br>
warnings from GCC 2.96 of the form:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;ihnpdsm.C:4942: warning: `unused' attribute
ignored</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
They are benign; ignore them.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
***__linuxsmp__ has now been officially exorcised from the source.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
*Bug Fixes:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
***Debugging output no longer can drift into InterfaceDeclarations.h;</font><font size=3>
</font><font size=2 face="sans-serif"><br>
GenerateInterfaceDeclarations.java takes a new &quot;-out&quot; option.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
***--trace=preprocessor now lists all of the directories consistently.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
***Cross-building from Linux to AIX now works better.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
You can now set RVM_ROOT and RVM_BUILD to different values on the host</font><font size=3>
</font><font size=2 face="sans-serif"><br>
and the target machines.</font><font size=3> </font><font size=2 face="sans-serif"><br>
****Details:</font><font size=3> </font><font size=2 face="sans-serif"><br>
If you don't have RVM_ROOT and/or RVM_BUILD set in your environment</font><font size=3>
</font><font size=2 face="sans-serif"><br>
when you run the booter on the target, then &quot;jbuild -booter&quot;
will use</font><font size=3> </font><font size=2 face="sans-serif"><br>
the (recorded) values from the host. &nbsp;If you do have one or both of</font><font size=3>
</font><font size=2 face="sans-serif"><br>
them set, they'll be used as appropriate.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
It is now the case that, when you run &quot;jconfigure&quot; and &quot;jbuild&quot;,
you</font><font size=3> </font><font size=2 face="sans-serif"><br>
should have your PATH set so that there is some Bash version in it</font><font size=3>
</font><font size=2 face="sans-serif"><br>
somewhere under the name &quot;bash&quot;.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
*** Other misc bugs fixed as well; see the bug tracking software.</font>
--=_alternative 007BF41B85256DF6_=--



From MAILER-DAEMON Tue Dec 09 05:14:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATet9-0006pZ-Ca
	for mharc-classpath@gnu.org; Tue, 09 Dec 2003 05:14:43 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATet7-0006mZ-DF
	for classpath@gnu.org; Tue, 09 Dec 2003 05:14:41 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATesK-0005GP-Jq
	for classpath@gnu.org; Tue, 09 Dec 2003 05:14:23 -0500
Received: from [217.8.192.20] (helo=smtp1.mail.ch.easynet.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATesE-0004zR-L3
	for classpath@gnu.org; Tue, 09 Dec 2003 05:13:46 -0500
Received: from [192.168.1.33] (215.178.static-adsl.customer.ch.easynet.net
	[217.8.215.178]) by smtp1.mail.ch.easynet.net (Postfix) with ESMTP
	id 0796049F35; Tue,  9 Dec 2003 10:12:18 +0100 (CET)
From: Sascha Brawer <brawer@dandelis.ch>
To: James Simmons <jsimmons@infradead.org>
Date: Tue, 9 Dec 2003 10:10:55 +0100
Message-Id: <20031209091055.11503@smtp.mail.ch.easynet.net>
In-Reply-To: <Pine.LNX.4.44.0312081825520.7463-300000@phoenix.infradead.org>
References: <Pine.LNX.4.44.0312081825520.7463-300000@phoenix.infradead.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: GNU Classpath <classpath@gnu.org>, Kaffe <kaffe@kaffe.org>
Subject: Re: [kaffe] Classpath AWT progress.
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 Dec 2003 10:14:42 -0000

James Simmons <jsimmons@infradead.org> wrote on Mon, 8 Dec 2003 19:25:35
+0000:

>Here is the code I have so far. I extended GraphicsEnvironment to actually 
>work. At present it gives exceptions. The main file is 
>ClasspathGraphicsEnvironment.java. Its goal is to load each type of 
>GraphicsDevice driver.

Some time ago, there was a discussion on the Classpath mailing list about
this topic. The discussion was mostly between Graydon Hoare and me, but
IIRC others had expressed their opinions as well. The conclusion was that
it seemed like a good idea to delegate the implementation of

 java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()

to the toolkit. All Classpath toolkits would be mandated to subclass
gnu.java.awt.ClasspathToolkit. The intention is to keep the platform
dependencies limited to as few places as possible. There was some debate
about whether GraphicsEnvironment or Toolkit would be the appropriate
place for this, and the apparent conclusion, at the time, was that
Toolkit would be preferable.

(For some reason, gnu.java.awt.peer.gtk.GtkToolkit does not yet extend
gnu.java.awt.ClasspathToolkit. However, if I remember correctly, Graydon
said he wants to change this in the future.)

So, IMHO, java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment should
look as follows:

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

public static GraphicsEnvironment getLocalGraphicsEnvironment()
{
  return ((ClasspathToolkit) Toolkit.getDefaultToolkit())
    .getLocalGraphicsEnvironment();
}

Would you have a problem with this for your xlib implementation? If so,
it would be interesting to know the reason.

Just a side comment from reading your code:
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment() should never
throw a HeadlessException. Instead, it should return a headless instance
of GraphicsEnvironment when it is called in a server environment. The
returned instance is supposed to throw a HeadlessException when it gets
asked to perform things that only make sense in a GUI, such as
determining the maximal size of any attached screen.

>package gnu.java.awt;
>public class ClasspathGraphicsEnvironment extends GraphicsEnvironment

This may just be my personal opinion, but I'm currently not convinced why
this class is needed at all. It seems that pretty much all of its
functionality would be highly specific to the platform, with the
exception of the getBounds() and getCenterPoint() methods -- so why
introduce a concrete-but-not-functional subclass of the abstract
GraphicsEnvironment? But this may be different when it turns out that we
can refactor the implementation of other GraphicsEnvironment methods
(such as getAllFonts).

By the way: Thanks for having documented your code, it makes it so much
easier to read.

-- Sascha

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





From MAILER-DAEMON Tue Dec 09 13:50:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATmOc-0002pi-Th
	for mharc-classpath@gnu.org; Tue, 09 Dec 2003 13:15:42 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATmOP-0002oE-6t
	for classpath@gnu.org; Tue, 09 Dec 2003 13:15:29 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATmNm-0002fE-QA
	for classpath@gnu.org; Tue, 09 Dec 2003 13:15:21 -0500
Received: from [81.5.129.62] (helo=tangency.co.uk)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATmNm-0002ef-8q
	for classpath@gnu.org; Tue, 09 Dec 2003 13:14:50 -0500
Received: from tangency.co.uk (localhost [127.0.0.1])
	by outgoing.tangency.co.uk (Postfix) with ESMTP
	id DEE405FF73; Tue,  9 Dec 2003 13:45:36 +0000 (GMT)
Received: from localhost ([127.0.0.1])
	by tangency.co.uk (MailMonitor for SMTP v1.2.2 ) ;
	Tue, 9 Dec 2003 13:45:36 +0000 (GMT)
Received: from wraith (wraith.tangency.co.uk [192.168.1.4])
	(using TLSv1 with cipher RC4-SHA (128/128 bits))
	(No client certificate requested)
	by tangency.co.uk (Postfix) with ESMTP
	id 3B7865FF73; Tue,  9 Dec 2003 13:45:33 +0000 (GMT)
To: GNU Classpath <classpath@gnu.org>
References: <Pine.LNX.4.44.0312081825520.7463-300000@phoenix.infradead.org>
	<20031209091055.11503@smtp.mail.ch.easynet.net>
Message-ID: <oprzw1xmkzreuyrv@tangency.co.uk>
From: "S. Meslin-Weber" <twiun@adorphuye.com>
Content-Type: text/plain; format=flowed; charset=iso-8859-15
MIME-Version: 1.0
Date: Tue, 09 Dec 2003 13:47:36 -0000
In-Reply-To: <20031209091055.11503@smtp.mail.ch.easynet.net>
User-Agent: Opera7.21/Win32 M2 build 3218
Content-Transfer-Encoding: quoted-printable
Cc: Kaffe <kaffe@kaffe.org>
Subject: Re: [kaffe] Classpath AWT progress.
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 Dec 2003 18:15:41 -0000

Hi Sascha, James,

> to the toolkit. All Classpath toolkits would be mandated to subclass
> gnu.java.awt.ClasspathToolkit. The intention is to keep the platform
> dependencies limited to as few places as possible. There was some debat=
e
> about whether GraphicsEnvironment or Toolkit would be the appropriate
> place for this, and the apparent conclusion, at the time, was that
> Toolkit would be preferable.

I fear that this will limit the usefulness of non-Classpath toolkits as=20
the majority of them are intended for use in a cross-JVM way and have a=20
Toolkit implementation that derives directly from java.awt.Toolkit.

These external toolkits/peers would either have to replace Classpath's=20
java.awt.Toolkit in the bootclasspath or use some other class gymnastics=20
to avoid using Classpath-specific interfaces.

I'll explain:

I'm concerned with the Classpath-specific interface aspect because this=20
brings in the dreaded 'linking' clause of the GPL (as understood by=20
debian-legal). Such linkage implies the requirement for the external=20
toolkit to be GPL'd too. This would limit the appeal for companies to mak=
e=20
the effort to be Classpath-compatible. QtAWT from Trolltech for instance=20
is not going to be GPL'd anytime soon.

It's been suggested that external toolkit implementors provide an empty=20
ClasspathToolkit and this would work; but requires additional work from=20
toolkit implementors. Most Open Source toolkit implementors would probabl=
y=20
be prepared to do this - commercial ones are unlikely to.

Just in case people are wondering, other toolkits include:

- PJA at http://www.eteks.com/pja/en/
- Charva at http://www.pitman.co.za/projects/charva/
- fbAWT at=20
http://adorphuye.com/zaurus/java/faq.jsp?section=3DJava+Extensions&subsec=
tion=3DfbAWT
- QtAWT from http://www.trolltech.com (unfortunately not publicly=20
available _yet_)
- ... and few others

I understand that certain awt classes that have platform dependencies can=
=20
be constructed directly by user applications and as such need custom=20
handling directly in the java.awt.* class. But so far, only java.awt.Font=
=20
seems to require this as both Toolkit and GraphicsEnvironment on Sun's SD=
K=20
use the system properties to set platform dependent ones:

java.awt.graphicsenv=3D
awt.Toolkit=3D

These can be inferred from a dump of the System properties, an example of=
=20
which can be found at:
http://bbs.rhaon.co.kr/mywiki/moin.cgi/ProgrammingTips_2fSystemProperties

For me, the GPL issue is not that important, but if we want companies wit=
h=20
their own Toolkits to use GNU Classpath we need to offer them a way of=20
doing this without resorting to GPL-ing their code (as that is something=20
they may not be allowed to do).

Thanks,

Steph Meslin-Weber




From MAILER-DAEMON Tue Dec 09 16:36:47 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATpWN-00012U-9t
	for mharc-classpath@gnu.org; Tue, 09 Dec 2003 16:35:55 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATpWD-00011C-P5
	for classpath@gnu.org; Tue, 09 Dec 2003 16:35:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATpEs-0005Zs-31
	for classpath@gnu.org; Tue, 09 Dec 2003 16:18:21 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AToWA-0003x4-G2
	for classpath@gnu.org; Tue, 09 Dec 2003 15:31:38 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id NAA86711
	for <classpath@gnu.org>; Tue, 9 Dec 2003 13:20:59 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hB9JKwRl014005
	for <classpath@gnu.org>; Tue, 9 Dec 2003 13:20:58 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hB9JKwdq014004
	for classpath@gnu.org; Tue, 9 Dec 2003 13:20:58 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312091920.hB9JKwdq014004@arch20m.dellroad.org>
To: classpath@gnu.org
Date: Tue, 9 Dec 2003 13:20:58 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Subject: ZipFile 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, 09 Dec 2003 21:35:47 -0000

Hi,

The web site still seems to be down, so here is a bug report FWIW...

    public class xx {
	public static void main(String[] args) throws Exception {
	    ZipFile f = new ZipFile("/dev/null");
	}
    }

This program generates a ZipException on JDK, but Classpath
does not try to verify the file at all so doesn't throw any
exception... even if you then try to read the file's entries.

Instead what happens is you get null back from ZipFile.entries()
which is not according to spec. The ZipFile constructor should try
to do some minimal verification of the files's signature, etc.

I think a simple fix would be to try to read the directory
(which you are most likely going to have to do later anyway)
in the constructor(s).

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com



From MAILER-DAEMON Tue Dec 09 17:29:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATqLy-00066R-4V
	for mharc-classpath@gnu.org; Tue, 09 Dec 2003 17:29:14 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATqLu-000654-Rv
	for classpath@gnu.org; Tue, 09 Dec 2003 17:29:10 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATqLJ-0005sL-48
	for classpath@gnu.org; Tue, 09 Dec 2003 17:29:05 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATqLI-0005ru-9X
	for classpath@gnu.org; Tue, 09 Dec 2003 17:28:32 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1ATpNm-0005ME-00; Tue, 09 Dec 2003 22:27:02 +0100
From: Mark Wielaard <mark@klomp.org>
To: Archie Cobbs <archie@dellroad.org>
In-Reply-To: <200312091920.hB9JKwdq014004@arch20m.dellroad.org>
References: <200312091920.hB9JKwdq014004@arch20m.dellroad.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-5UAuysy0oyWmDoeGO53J"
Message-Id: <1071005222.29676.18.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Tue, 09 Dec 2003 22:27:02 +0100
Cc: classpath@gnu.org
Subject: Re: ZipFile 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, 09 Dec 2003 22:29:11 -0000


--=-5UAuysy0oyWmDoeGO53J
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Tue, 2003-12-09 at 20:20, Archie Cobbs wrote:
> The web site still seems to be down, so here is a bug report FWIW...
>=20
>     public class xx {
> 	public static void main(String[] args) throws Exception {
> 	    ZipFile f =3D new ZipFile("/dev/null");
> 	}
>     }
>=20
> This program generates a ZipException on JDK, but Classpath
> does not try to verify the file at all so doesn't throw any
> exception... even if you then try to read the file's entries.
>=20
> Instead what happens is you get null back from ZipFile.entries()
> which is not according to spec. The ZipFile constructor should try
> to do some minimal verification of the files's signature, etc.

Thanks for the report. Still don't know when savannah will be up again.
During a large part of the day all the other gnu servers were also down.
They are up again now. But I don't know why.

> I think a simple fix would be to try to read the directory
> (which you are most likely going to have to do later anyway)
> in the constructor(s).

I believe that was what the code did in the past. But some programs open
lots of zip/jar files while starting up and we didn't want to read the
whole zip directory and construct all those ZipEntries during opening
when the entries might not be needed much later (or at all).

A good fix would be to only put the check that the file starts with
LOCSIG (PK\003\004) in the constructor, but not explicitly try to read
all entries.

Also nice would be to make the reading/construction of the whole
directory lazy and stop when the entry that was needed is found. But
that is much more work since you then have to remember where in the
directory you were when another entry is needed that is not yet in the
map but you haven't read the complete directory yet.

Cheers,

Mark

--=-5UAuysy0oyWmDoeGO53J
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/1j4mxVhZCJWr9QwRArcrAKCtHLOrtGQQqV/mynxC0lKKQDRbZwCghCfU
JBy5C+/STTUbAaCBcPLH7/Y=
=sjLc
-----END PGP SIGNATURE-----

--=-5UAuysy0oyWmDoeGO53J--




From MAILER-DAEMON Tue Dec 09 17:50:18 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATqgL-0000eD-TB
	for mharc-classpath@gnu.org; Tue, 09 Dec 2003 17:50:17 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATqgD-0000bl-2r
	for classpath@gnu.org; Tue, 09 Dec 2003 17:50:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATqfh-0000Lp-9b
	for classpath@gnu.org; Tue, 09 Dec 2003 17:50:08 -0500
Received: from [212.6.122.106] (helo=mail1.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATqfg-0000LQ-8q
	for classpath@gnu.org; Tue, 09 Dec 2003 17:49:36 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-74-251.ewetel.net
	[80.228.74.251])
	by mail1.ewetel.de (8.12.1/8.12.9) with ESMTP id hB9Lm0Iw011160;
	Tue, 9 Dec 2003 22:48:01 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1ATpjo-0001WK-00; Tue, 09 Dec 2003 22:49:48 +0100
Date: Tue, 9 Dec 2003 22:49:48 +0100
From: Michael Koch <konqueror@gmx.de>
To: Mark Wielaard <mark@klomp.org>
Message-ID: <20031209214948.GC31512@mail.konqueror.de>
References: <200312091920.hB9JKwdq014004@arch20m.dellroad.org>
	<1071005222.29676.18.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1071005222.29676.18.camel@elsschot.wildebeest.org>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: classpath@gnu.org
Subject: Re: ZipFile 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, 09 Dec 2003 22:50:16 -0000

On Tue, Dec 09, 2003 at 10:27:02PM +0100, Mark Wielaard wrote:
> Hi,
> 
> On Tue, 2003-12-09 at 20:20, Archie Cobbs wrote:
> > The web site still seems to be down, so here is a bug report FWIW...
> > 
> >     public class xx {
> > 	public static void main(String[] args) throws Exception {
> > 	    ZipFile f = new ZipFile("/dev/null");
> > 	}
> >     }
> > 
> > This program generates a ZipException on JDK, but Classpath
> > does not try to verify the file at all so doesn't throw any
> > exception... even if you then try to read the file's entries.
> > 
> > Instead what happens is you get null back from ZipFile.entries()
> > which is not according to spec. The ZipFile constructor should try
> > to do some minimal verification of the files's signature, etc.
> 
> Thanks for the report. Still don't know when savannah will be up again.
> During a large part of the day all the other gnu servers were also down.
> They are up again now. But I don't know why.
> 
> > I think a simple fix would be to try to read the directory
> > (which you are most likely going to have to do later anyway)
> > in the constructor(s).
> 
> I believe that was what the code did in the past. But some programs open
> lots of zip/jar files while starting up and we didn't want to read the
> whole zip directory and construct all those ZipEntries during opening
> when the entries might not be needed much later (or at all).
> 
> A good fix would be to only put the check that the file starts with
> LOCSIG (PK\003\004) in the constructor, but not explicitly try to read
> all entries.
> 
> Also nice would be to make the reading/construction of the whole
> directory lazy and stop when the entry that was needed is found. But
> that is much more work since you then have to remember where in the
> directory you were when another entry is needed that is not yet in the
> map but you haven't read the complete directory yet.

I dont checked if the JDK reads the file or only the directory entry.
/dev/null is no normal file. its a char driver:

crw-rw-rw-    1 root     root       1,   3 2003-10-29 11:18 /dev/null

ZipFile uses RandomAccessFile and this should throw an exception if
the file is not a regular file and char driver files are not regular
files.


Michael




From MAILER-DAEMON Tue Dec 09 20:02:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1ATsjw-0007qY-S4
	for mharc-classpath@gnu.org; Tue, 09 Dec 2003 20:02:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1ATsjs-0007p8-G6
	for classpath@gnu.org; Tue, 09 Dec 2003 20:02:04 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1ATsjL-0007av-Q5
	for classpath@gnu.org; Tue, 09 Dec 2003 20:02:02 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1ATsjL-0007ag-DV
	for classpath@gnu.org; Tue, 09 Dec 2003 20:01:31 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id RAA89147;
	Tue, 9 Dec 2003 17:49:40 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hB9NndRl015090;
	Tue, 9 Dec 2003 17:49:39 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hB9NndoY015089;
	Tue, 9 Dec 2003 17:49:39 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312092349.hB9NndoY015089@arch20m.dellroad.org>
In-Reply-To: <20031209214948.GC31512@mail.konqueror.de>
To: Michael Koch <konqueror@gmx.de>
Date: Tue, 9 Dec 2003 17:49:39 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Cc: Mark Wielaard <mark@klomp.org>, classpath@gnu.org
Subject: Re: ZipFile 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, 10 Dec 2003 01:02:06 -0000

Michael Koch wrote:
> I dont checked if the JDK reads the file or only the directory entry.
> /dev/null is no normal file. its a char driver:
> 
> crw-rw-rw-    1 root     root       1,   3 2003-10-29 11:18 /dev/null
> 
> ZipFile uses RandomAccessFile and this should throw an exception if
> the file is not a regular file and char driver files are not regular
> files.

/dev/null was just an example. Using any normal non-ZIP file gives
the same results.

So I guess RandomAccessFile is broken too? Well that's a different
question. Some might argue that /dev/null *should* appear as a normal
file... ?

I agree that just reading the magic number (first four bytes) would
be plenty sufficient.

Cheers,
-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com



From MAILER-DAEMON Wed Dec 10 04:13:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AU0PK-0004cK-VF
	for mharc-classpath@gnu.org; Wed, 10 Dec 2003 04:13:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AU0PF-0004TZ-0j
	for classpath@gnu.org; Wed, 10 Dec 2003 04:13:17 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AU0Og-0003lJ-Ir
	for classpath@gnu.org; Wed, 10 Dec 2003 04:13:13 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AU0OX-0003RM-7g
	for classpath@gnu.org; Wed, 10 Dec 2003 04:12:33 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1ATzR3-0006Ug-00
	for <classpath@gnu.org>; Wed, 10 Dec 2003 09:11:05 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-cMXEEI6Dhrj+JtImJ0wq"
Message-Id: <1071043866.29676.45.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Wed, 10 Dec 2003 09:11:06 +0100
Subject: Savannah update
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 Dec 2003 09:13:19 -0000


--=-cMXEEI6Dhrj+JtImJ0wq
Content-Type: multipart/mixed; boundary="=-U20T5nb4pooZ2KcpXDhw"


--=-U20T5nb4pooZ2KcpXDhw
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

Attached is an update from Bradley Kuhn (the FSF Executive Director)
about Savannah.

Short summary:
- Only anonymous CVS access is available now.
- Only access through SSH Protocol 2 (check your ~/.ssh/config to see if
  you had previously set it to Protocol 1 as was required in the past)
- GNU Privacy Guard (GPG) keys will be required in the future for
  savannah (see http://www.gnupg.org/ and please generate one if you
  don't have one yet, but do want classpath developer access.)
- No set date for restoration of any other savannah service at this
  point.

To access the latest CVS tree as it was just before savannah was shut
down use:
cvs -d:ext:anoncvs@subversions.gnu.org:/cvs-latest/classpath co classpath

I think we can be reasonably sure that no unknown code was inserted
during the breach since multiple projects regularly import and check
code from us manually. But if you can help check that changes since 16
September 2003 have not seen any irregularities then please contact me.

I'll keep you updated when I have more info.

Cheers,

Mark

--=-U20T5nb4pooZ2KcpXDhw
Content-Disposition: attachment; filename=mail
Content-Transfer-Encoding: base64
Content-Type: text/plain; name=mail; charset=ISO-8859-1

LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQ0KSGFzaDogU0hBMQ0KDQpTYXZhbm5h
aCBpcyBhZ2FpbiBhIHJ1bm5pbmcgYW5kIG5ldHdvcmtlZCBzeXN0ZW0sIGFsYmVpdCB3aXRoIG1v
c3QNCmZlYXR1cmVzIHR1cm5lZCBvZmYuICBXZSBoYXZlIHJlaW5zdGFsbGVkIHRoZSBvcGVyYXRp
bmcgc3lzdGVtIG9uDQpjb21wbGV0ZWx5IG5ldyBoYXJkd2FyZSBhbmQgcm9sbGVkIG91dCB0aGUg
bmV3IHN5c3RlbS4NCg0KQ3VycmVudGx5LCB3ZSBhcmUgcHJvdmlkaW5nIG9ubHkgYW5vbnltb3Vz
IGFjY2VzcyB0byB0d28gc2VwYXJhdGUgQ1ZTDQp0cmVlcyB2aWEgU1NIdjI6DQoNCiAgICgwKSBU
aGUgQ1ZTIHRyZWVzIGZyb20gMTYgU2VwdGVtYmVyIDIwMDMsIHdoaWNoIGFyZSBhdmFpbGFibGUg
dmlhOg0KDQogICAgICAgICA6ZXh0OmFub25jdnNAc3VidmVyc2lvbnMuZ251Lm9yZzovY3ZzLTIw
MDMtMDktMTYvPFBST0pFQ1Q+DQoNCiAgICgxKSBUaGUgQ1ZTIHRyZWVzIGFzIHRoZXkgd2VyZSB3
aGVuIHdlIGJyb3VnaHQgdGhlIHN5c3RlbSBkb3duLCB3aGljaA0KICAgICAgIGFyZSBhdmFpbGFi
bGUgdmlhOg0KDQogICAgICAgICA6ZXh0OmFub25jdnNAc3VidmVyc2lvbnMuZ251Lm9yZzovY3Zz
LWxhdGVzdC88UFJPSkVDV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S0tLS1FTkQgUEdQIFNJR05BVFVS
RS0tLS0tDQoNCg0KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X18NCg0KR05VIE1haW50YWluZXJzIEFubm91bmNlbWVudCBMaXN0IGdudS1wcm9nQGdudS5vcmcN
Cmh0dHA6Ly9tYWlsLmdudS5vcmcvbWFpbG1hbi9saXN0aW5mby9nbnUtcHJvZw0KDQoNCg==

--=-U20T5nb4pooZ2KcpXDhw--

--=-cMXEEI6Dhrj+JtImJ0wq
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/1tUZxVhZCJWr9QwRAihbAJ9+6itcPdhL1zADzs8/P8GaqZPavgCgmQ8D
49V4PqVReO3GfmcDZL2jrsE=
=gr07
-----END PGP SIGNATURE-----

--=-cMXEEI6Dhrj+JtImJ0wq--




From MAILER-DAEMON Thu Dec 11 09:44:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUS38-0004So-4Z
	for mharc-classpath@gnu.org; Thu, 11 Dec 2003 09:44:18 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUS34-0004Rg-Tq
	for classpath@gnu.org; Thu, 11 Dec 2003 09:44:14 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUS2Y-0004ND-Pz
	for classpath@gnu.org; Thu, 11 Dec 2003 09:44:13 -0500
Received: from [139.165.32.78] (helo=serv09.segi.ulg.ac.be)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUS1f-0003ht-U8
	for classpath@gnu.org; Thu, 11 Dec 2003 09:42:48 -0500
Received: (qmail 18155 invoked by uid 504); 11 Dec 2003 14:41:18 +0100
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 2.425748 secs); 11 Dec 2003 13:41:18 -0000
Received: from unknown (HELO oz.fapse.ulg.ac.be) ([139.165.77.198])
	(envelope-sender <arnaud.vandyck@ulg.ac.be>)
	by serv09.segi.ulg.ac.be (qmail-ldap-1.03) with SMTP
	for <classpath@gnu.org>; 11 Dec 2003 14:41:15 +0100
To: Victor Niebla <niebla_negra@yahoo.es>
References: <3FCC7E7E.2070806@yahoo.es>
From: Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>
Organization: ULg, STE-Formations Informatiques
X-Face: >U]gI'=hKRtZE@~Svh"mU,aS"">yCT*dBkVAFl'!]!&k@R8fEr{-)Ql6{xhuXKb+!>}x;
	^2ck7Ytr'EABxt~)3q?AO}$:wwSva.$uNN9x.w4+uVmMMSB1~EbJgo|9E0yQXONuM'~c*20^
Date: Thu, 11 Dec 2003 14:41:12 +0100
In-Reply-To: <3FCC7E7E.2070806@yahoo.es> (Victor Niebla's message of "Tue,
	02 Dec 2003 12:58:54 +0100")
Message-ID: <871xrbxyiv.fsf@oz.fapse.ulg.ac.be>
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Cc: ClassPath List <classpath@gnu.org>
Subject: Re: Classpath API
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 Dec 2003 14:44:16 -0000

What did you try to build from sources and how?

Victor Niebla <niebla_negra@yahoo.es> writes:

> I have tried to build it from the sources and get it from the classpath-doc
> package, but both tries where unsuccesfull.
>
> The debian package contains:
> /usr/share/doc/classpath-doc/api/classpath-copyright.xml
> /usr/share/doc/classpath-doc/api/Makefile.am
> /usr/share/doc/classpath-doc/api/Makefile.gz
> /usr/share/doc/classpath-doc/api/Makefile.in.gz
> /usr/share/doc/classpath-doc/texinfo.tex.gz
> /usr/share/doc/classpath-doc/Makefile.am
> /usr/share/doc/classpath-doc/Makefile.gz
> /usr/share/doc/classpath-doc/vmintegration.info.gz
> /usr/share/doc/classpath-doc/copyright
> /usr/share/doc/classpath-doc/hacking.texinfo.gz
> /usr/share/doc/classpath-doc/vmintegration.texinfo.gz
> /usr/share/doc/classpath-doc/hacking.info.gz
> /usr/share/doc/classpath-doc/changelog.gz
> /usr/share/doc/classpath-doc/Makefile.in.gz
> /usr/share/doc/classpath-doc/changelog.Debian.gz
>
> Should i inform of a bad builded package???

-- Arnaud Vandyck, STE fi, ULg
   Formateur Cellule Programmation.




From MAILER-DAEMON Thu Dec 11 18:19:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUa60-0003iJ-1Y
	for mharc-classpath@gnu.org; Thu, 11 Dec 2003 18:19:48 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUa5n-0003Wg-JT
	for classpath@gnu.org; Thu, 11 Dec 2003 18:19:35 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUa32-0001z9-F7
	for classpath@gnu.org; Thu, 11 Dec 2003 18:17:15 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUa2n-0001Zl-OY
	for classpath@gnu.org; Thu, 11 Dec 2003 18:16:29 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id QAA13562
	for <classpath@gnu.org>; Thu, 11 Dec 2003 16:07:01 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hBBM71Rl024527
	for <classpath@gnu.org>; Thu, 11 Dec 2003 16:07:01 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hBBM71JM024526
	for classpath@gnu.org; Thu, 11 Dec 2003 16:07:01 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312112207.hBBM71JM024526@arch20m.dellroad.org>
To: classpath@gnu.org
Date: Thu, 11 Dec 2003 16:07:01 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Subject: Bug in java.io.File.listInternal()
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 Dec 2003 23:19:42 -0000

Hi,

Bug DB still down.. here's another bug report with patch.

The native function java.io.File.readInternal(), when scanning a large
directory, uses up too many native references. The JNI spec only guarantees
a native function up to 16 references; unfortunately this is sometimes
an overlooked fact.

The patch below (expanded to show context) should fix this particular
bug, but there may very well be other similar bugs elsewhere...

Cheers,
-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com

--- java_io_File.c.orig	Thu Dec 11 15:53:02 2003
+++ java_io_File.c	Thu Dec 11 15:54:06 2003
@@ -665,35 +665,38 @@
       return(0);
     }
   for (i = 0; i < filelist_count; i++)
     {
       /* create new string */
       str = (*env)->NewStringUTF(env, filelist[i]);
       if (str==NULL) 
         {
           /* We don't clean up everything here, but if this failed,
               something serious happened anyway */
           for (i = 0; i < filelist_count; i++)
             {
               JCL_free(env,filelist[i]);
             }
           JCL_free(env,filelist);
           return(0);
         }
 
       /* save into array */
       (*env)->SetObjectArrayElement(env, filearray, i, str);
+
+      /* free native reference */
+      (*env->DeleteLocalRef(env, str);
     }
 
   /* free resources */
   for (i = 0; i < filelist_count; i++)
     {
       JCL_free(env,filelist[i]);
     }
   JCL_free(env,filelist);
 
   return(filearray);
 #else /* not WITHOUT_FILESYSTEM */
   return(0);
 #endif /* not WITHOUT_FILESYSTEM */
 }
 



From MAILER-DAEMON Thu Dec 11 18:20:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUa6E-00042T-B3
	for mharc-classpath@gnu.org; Thu, 11 Dec 2003 18:20:02 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUa69-0003ta-85
	for classpath@gnu.org; Thu, 11 Dec 2003 18:19:57 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUa3N-0002ad-I7
	for classpath@gnu.org; Thu, 11 Dec 2003 18:17:36 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUa36-000292-Ll
	for classpath@gnu.org; Thu, 11 Dec 2003 18:16:48 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id QAA13593;
	Thu, 11 Dec 2003 16:14:05 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hBBME5Rl027597;
	Thu, 11 Dec 2003 16:14:05 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hBBME5NZ027596;
	Thu, 11 Dec 2003 16:14:05 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312112214.hBBME5NZ027596@arch20m.dellroad.org>
In-Reply-To: <20031205151728.GA24423@mail.konqueror.de>
To: Michael Koch <konqueror@gmx.de>
Date: Thu, 11 Dec 2003 16:14:04 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Cc: classpath@gnu.org
Subject: Re: FreeBSD build failure
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 Dec 2003 23:20:00 -0000

Michael Koch wrote:
> > > > > > The file native/target/generic/target_generic_file.h has this line:
> > > > > > 
> > > > > >     #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
> > > > > > 
> > > > > > However, FreeBSD uses "O_FSYNC" rather than "O_SYNC", so the build of
> > > > > > Classpath on FreeBSD fails (is it just me?).
> > > > > 
> > > > > Well, I think classpath was not tested on FreeBSD for some month (!!!).
> > > > > I've a patch that should solve your problems. Please test it and report
> > > > > back.
> > > > 
> > > > Thanks, that should do it.
> > > 
> > > It should or it does ?
> > 
> > Sorry for the slow response.. I was intending to fully verify but haven't 
> > been able to due to cvs problems, etc. I will report to this list if it
> > does NOT work when/if I'm able to test it again.

OK, finally back to this issue.. I lost your original patch but
the one below (I think it's pretty much the same) fixes the build
problem.

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com


Index: target_generic_file.h
===================================================================
RCS file: /cvs-latest/classpath/classpath/native/target/generic/target_generic_file.h,v
retrieving revision 1.11
diff -u -r1.11 target_generic_file.h
--- target_generic_file.h	2 Nov 2003 15:51:19 -0000	1.11
+++ target_generic_file.h	11 Dec 2003 22:13:31 -0000
@@ -90,7 +90,13 @@
   #define TARGET_NATIVE_FILE_FILEFLAG_APPEND O_APPEND
 #endif
 #ifndef TARGET_NATIVE_FILE_FILEFLAG_SYNC
-  #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
+  #if defined(O_FSYNC)
+    #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_FSYNC
+  #elif defined(O_SYNC)
+    #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
+  #else
+    #define TARGET_NATIVE_FILE_FILEFLAG_SYNC 0
+  #endif
 #endif
 #ifndef TARGET_NATIVE_FILE_FILEFLAG_DSYNC
   #ifdef O_DSYNC



From MAILER-DAEMON Thu Dec 11 18:47:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUaWN-0008UY-9X
	for mharc-classpath@gnu.org; Thu, 11 Dec 2003 18:47:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUaWL-0008U4-9C
	for classpath@gnu.org; Thu, 11 Dec 2003 18:47:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUaVo-0008KM-Em
	for classpath@gnu.org; Thu, 11 Dec 2003 18:46:59 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUaVo-0008KE-4A
	for classpath@gnu.org; Thu, 11 Dec 2003 18:46:28 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id QAA13808
	for <classpath@gnu.org>; Thu, 11 Dec 2003 16:31:57 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hBBMVvRl028039
	for <classpath@gnu.org>; Thu, 11 Dec 2003 16:31:57 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hBBMVvS7028038
	for classpath@gnu.org; Thu, 11 Dec 2003 16:31:57 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312112231.hBBMVvS7028038@arch20m.dellroad.org>
In-Reply-To: <200312112207.hBBM71JM024526@arch20m.dellroad.org>
To: classpath@gnu.org
Date: Thu, 11 Dec 2003 16:31:57 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Subject: Re: Bug in java.io.File.listInternal()
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 Dec 2003 23:47:01 -0000

Archie Cobbs wrote:
> +
> +      /* free native reference */
> +      (*env->DeleteLocalRef(env, str);
             ^^

Sorry, lost a ")" in there somehow..

-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com



From MAILER-DAEMON Fri Dec 12 10:47:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUpVY-0002cv-Pz
	for mharc-classpath@gnu.org; Fri, 12 Dec 2003 10:47:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUpVW-0002c5-EM
	for classpath@gnu.org; Fri, 12 Dec 2003 10:47:10 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUpV0-0002Rm-NP
	for classpath@gnu.org; Fri, 12 Dec 2003 10:47:09 -0500
Received: from [24.196.18.187] (helo=InterJet.dellroad.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUpV0-0002R4-Ar
	for classpath@gnu.org; Fri, 12 Dec 2003 10:46:38 -0500
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id IAA21854;
	Fri, 12 Dec 2003 08:39:50 -0600 (CST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id hBCEdmRl033507;
	Fri, 12 Dec 2003 08:39:48 -0600 (CST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id hBCEdmRR033506;
	Fri, 12 Dec 2003 08:39:48 -0600 (CST)
From: Archie Cobbs <archie@dellroad.org>
Message-Id: <200312121439.hBCEdmRR033506@arch20m.dellroad.org>
In-Reply-To: <1071195412.12261.25.camel@gadek.homelinux.org>
To: "Grzegorz B. Prokopski" <gadek@debian.org>
Date: Fri, 12 Dec 2003 08:39:48 -0600 (CST)
X-Mailer: ELM [version 2.4ME+ PL99b (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Cc: =?ISO-8859-1?Q?David_B=E9langer?= <dbelan2@CS.McGill.CA>,
	SableVM-devel ML <sablevm-developer@lists.sourceforge.net>,
	classpath@gnu.org
Subject: Re: [Sablevm-developer] Re: [Sablevm-developer]
 Java_java_lang_Runtime_getBootstrapClassPath unused?
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 Dec 2003 15:47:11 -0000

Grzegorz B. Prokopski wrote:
> In current trunk it is used to set
> 
> 	sun.boot.class.path
> 
> property. This has to be done from Classpath in
> 
> private static void insertSystemProperties(Properties p)
> {
> [...]
>   // We now set a non-standard property used by software like Ant
>   // which depend on it.
>   p.setProperty("sun.boot.class.path", getBootstrapClassPath()); 
>   p.setProperty("sun.boot.library.path", getBootstrapLibraryPath());
> 
> see
> 
> svn://svn.sablevm.org/archives/sablevm-class-library/trunk/src/java/lang/Runtime.java
> 
> Of course this is sun.* thing and should not be used. But this *is* used
> by many programs so ex. Kaffe sets this property.

Seems like this "fix" (really workaround) should be merged into
Classpath itself too, no?

-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com



From MAILER-DAEMON Fri Dec 12 14:15:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUslF-0006Hf-FY
	for mharc-classpath@gnu.org; Fri, 12 Dec 2003 14:15:37 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUskf-00056t-LE
	for classpath@gnu.org; Fri, 12 Dec 2003 14:15:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUsjf-0002oC-AQ
	for classpath@gnu.org; Fri, 12 Dec 2003 14:14:31 -0500
Received: from [212.101.4.135] (helo=mail01.solnet.ch)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUsjb-0002eK-I7
	for classpath@gnu.org; Fri, 12 Dec 2003 14:13:55 -0500
Received: from localhost (localhost [127.0.0.1])
	by mail01.solnet.ch (Postfix) with ESMTP
	id 5389C62584; Fri, 12 Dec 2003 18:12:28 +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 66712-03; Fri, 12 Dec 2003 18:12:25 +0000 (GMT)
Received: from reali.dnsalias.net (adsl-212-41-80-199.solnet.ch
	[212.41.80.199]) by mail01.solnet.ch (Postfix) with ESMTP
	id 05FCF62512; Fri, 12 Dec 2003 18:12:23 +0000 (GMT)
Received: from pcprr
	(192-168-001-003-at-home-your-network.privateiprange.solnet.ch
	[192.168.1.3]) by reali.dnsalias.net (Postfix) with SMTP
	id A3B5D32012; Fri, 12 Dec 2003 19:02:15 +0100 (CET)
Message-ID: <000a01c3c0db$9be78cc0$0301a8c0@pcprr>
From: "Patrik Reali" <reali@acm.org>
To: "Mark Wielaard" <mark@klomp.org>,
	"Dalibor Topic" <robilad@kaffe.org>, <classpath@gnu.org>
References: <20031129.134813.123657481.arnaud.vandyck@ulg.ac.be><200311292333.hATNX8SX041287@pigsty.cats.cradle><3FCA3F5C.6080806@kaffe.org>
	<1070226441.2377.200.camel@elsschot.wildebeest.org>
Date: Mon, 8 Dec 2003 14:26:05 +0100
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: 
Subject: Re: Revolution Action (was: Re: [Little Off Topic] Revolution ison ;
	))
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 Dec 2003 19:15:35 -0000

> How many people want to attend (Brussels, Belgium, the weekend of 21-22
> February 2004)? If I followed the messages and irc discussions correctly
> then Arnaud, Chris, Tom, Dalibor, Stephane, Michael and myself will be
> there at least.

I really want, but cannot tell yet (depends on my army schedule for next
year). It should be fixed in the next weeks.

-Patrik




From MAILER-DAEMON Fri Dec 12 15:18:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUtk2-0000yJ-Dm
	for mharc-classpath@gnu.org; Fri, 12 Dec 2003 15:18:26 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUtjD-0000O9-Pc
	for classpath@gnu.org; Fri, 12 Dec 2003 15:17:35 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUtiL-0008A6-5A
	for classpath@gnu.org; Fri, 12 Dec 2003 15:17:12 -0500
Received: from [213.49.17.120] (helo=pigsty.cats.cradle)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AUths-0007WC-01
	for classpath@gnu.org; Fri, 12 Dec 2003 15:16:12 -0500
Received: from there (localhost.cats.cradle [127.0.0.1])
	by pigsty.cats.cradle (8.12.6/8.11.6) with SMTP id hBCJGeSX072823;
	Fri, 12 Dec 2003 20:16:41 +0100 (CET)
	(envelope-from chris@kiffer.eunet.be)
Message-Id: <200312121916.hBCJGeSX072823@pigsty.cats.cradle>
From: Chris Gray <chris@kiffer.eunet.be>
To: "Patrik Reali" <reali@acm.org>, "Mark Wielaard" <mark@klomp.org>,
	"Dalibor Topic" <robilad@kaffe.org>, <classpath@gnu.org>
Date: Fri, 12 Dec 2003 20:16:40 +0100
X-Mailer: KMail [version 1.3]
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
	boundary="------------Boundary-00=_SVQS2R45FND3CW9JLCOR"
Cc: 
Subject: Re: Revolution Action (was: Re: [Little Off Topic] Revolution ison ;
	))
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 Dec 2003 20:18:24 -0000


--------------Boundary-00=_SVQS2R45FND3CW9JLCOR
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Guys,

The Call for Papers is already out (for 10 days already; it was posted on a 
couple of mailing lists but not sent to me directly). The deadline is 18 dec 
2003 (not 2004 :>), so we need to get something together quite quickly.

Given that we have only a part of the Embedded track, I would suggest that we 
do a group paper presenting the whole spectrum of Free / open VMs; maybe 
Classpath should be part of this, maybe we should try for a separate 
Classpath paper. We could try to get some kind of extended slot for this, if 
the organisers will agree. I'd also like to have an item on the 
standardisation issue : by the time FOSDEM comes, either we will have some 
positive news or a lot of bitching to do. ;>

All the best

-- 
Chris Gray                                  /k/ Embedded Java Solutions
Embedded & Mobile Java, OSGi              http://www.kiffer.be/k/
chris.gray@kiffer.be                                      +32 477 599 703
--------------Boundary-00=_SVQS2R45FND3CW9JLCOR
Content-Type: text/plain; charset="iso-8859-1"; name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VLkxldXZlbiwgQmVsZ2l1bQoqIEdlZXJ0
IFV5dHRlcmhvZXZlbiwgU29ueSBOU0NFLCBCZWxnaXVtCiogS2FyaW0gWWFnaG1vdXIsIE9wZXJz
eXMsIENhbmFkYQoqIE1hcmN1cyBCcmlua21hbiwgVW5pdmVyc2l0eSBCb2NodW0sIEdlcm1hbnkK
KiBQZXRlciAncDInIERlIFNjaHJpanZlciwgTWluZCwgQmVsZ2l1bQoKUGV0ZXIgVmFuZGVuYWJl
ZWxlLCBhY3RzIGFzIHByYWN0aWNhbCBvcmdhbmlzZXIgZm9yIHRoaXMgdHJhY2suCkFsbCBjb21t
dW5pY2F0aW9uIHNob3VsZCBiZSBhZGRyZXNzZWQgdG8gZW1iZWRkZWRAZm9zZGVtLm9yZwoK

--------------Boundary-00=_SVQS2R45FND3CW9JLCOR--



From MAILER-DAEMON Fri Dec 12 17:51:59 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUw8c-00043Q-FU
	for mharc-classpath@gnu.org; Fri, 12 Dec 2003 17:51:58 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUw8W-00040j-Re
	for classpath@gnu.org; Fri, 12 Dec 2003 17:51:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUw7z-0003i4-5x
	for classpath@gnu.org; Fri, 12 Dec 2003 17:51:51 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUw7y-0003ho-O5
	for classpath@gnu.org; Fri, 12 Dec 2003 17:51:18 -0500
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 1AUvAK-0004o7-00; Fri, 12 Dec 2003 22:49:40 +0100
Received: from mark by localhost with local (Exim 3.36 #1 (Debian))
	id 1AUvAM-0000k3-00; Fri, 12 Dec 2003 22:49:42 +0100
From: Mark Wielaard <mark@klomp.org>
To: Chris Gray <chris@kiffer.eunet.be>
In-Reply-To: <200312121916.hBCJGeSX072823@pigsty.cats.cradle>
References: <200312121916.hBCJGeSX072823@pigsty.cats.cradle>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Message-Id: <1071265782.2743.52.camel@localhost>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Fri, 12 Dec 2003 22:49:42 +0100
Sender: Mark Wielaard <mark@slauerhoff>
Cc: classpath@gnu.org
Subject: Re: Revolution Action (was: Re: [Little Off Topic] Revolution ison
	; ))
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 Dec 2003 22:51:53 -0000

Hi,

On Fri, 2003-12-12 at 20:16, Chris Gray wrote:
> Given that we have only a part of the Embedded track, I would suggest that we 
> do a group paper presenting the whole spectrum of Free / open VMs; maybe 
> Classpath should be part of this, maybe we should try for a separate 
> Classpath paper. We could try to get some kind of extended slot for this, if 
> the organisers will agree.

I didn't realize that they still accepted presentations. Sascha and I
made an abstract about a possible GNU Classpath talk which I send to two
people from Fosdem. Since the talks were already announced on the Fosdem
website I hoped to sneak it in as an unofficial talk. Knowing that there
is still time to do a real abstract submission I am happy to discuss the
current abstract and/or submit it properly. But I am not sure that the
embedded track is to correct forum for GNU Classpath related stuff.

Fosdem people are kind of hard to get hold off. Tried sending email to
several addresses, but only yesterday got a small response. I did tell
them that we are expecting at least 10 people already so that it would
be nice to have a developer room were people can meet/hack/discuss. Will
let you know if I get any reply. They said there would be a meeting next
week to discuss Fosdem planning and requests from the community. So
please try to contact them with ideas soon.

> I'd also like to have an item on the 
> standardisation issue : by the time FOSDEM comes, either we will have some 
> positive news or a lot of bitching to do. ;>

Richard Stallman recently asked about the JSPA and the JSR process.
We are still discussing it. If we reach a conclusion I will email the
list. If people have experience with the JSPA or serving on a JSR expert
team and know what to expect from the process in regards to creating
specs and/or software that is free software (friendly) I would like to
hear.

Cheers,

Mark



From MAILER-DAEMON Fri Dec 12 19:08:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AUxL8-0003G2-DL
	for mharc-classpath@gnu.org; Fri, 12 Dec 2003 19:08:58 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AUxL1-00039S-F3
	for classpath@gnu.org; Fri, 12 Dec 2003 19:08:51 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AUxKS-0002my-SR
	for classpath@gnu.org; Fri, 12 Dec 2003 19:08:49 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUxKS-0002mT-7v
	for classpath@gnu.org; Fri, 12 Dec 2003 19:08:16 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AUwMw-0004zO-00; Sat, 13 Dec 2003 00:06:46 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-eR4dhN+cCcAomD2apFrh"
Message-Id: <1071270408.7218.56.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sat, 13 Dec 2003 00:06:48 +0100
Cc: Mark Howard <mh@tildemh.com>
Subject: java-gnome bindings
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 Dec 2003 00:08:55 -0000


--=-eR4dhN+cCcAomD2apFrh
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

Since Savannah is still down and it might take some time till it comes
back up (*) I thought it was nice to mention the java-gnome effort to
get into the official Gnome binding release.

Work on the core classes and various execution environments is very
important as base for future programs based on our free frameworks. But
I think that for the GNU/Linux desktop having Gnome bindings will be the
most important task after that. And luckily we already have most of that
already (glib, gdk, gtk, gnome, pango, atk, gtkhtml, glade are all in
java-gnome).

Although the progress on the gtk AWT peers has been enormous lately,
java-gnome is still better for creating a UI around your program. See
for example my gnome frontend for snark:
http://www.klomp.org/snark/snark-gnome.html

Mark Howard has been making java-gnome packages for Debian and also
makes sure that they work with gcj. So our free environments are already
supported quite well. If you haven't tried your VM with java-gnome yet
you might want to try it! (For kaffe I did have to fix some JNI issues
in the past, so it is also a nice JNI stress tests for a VM.)

He is currently restructuring the CVS and build structure to conform to
the way the standard gnome bindings should be packaged and making sure
the build system works for (native) gcj. I believe he could use help
from people who are experienced with make and gcj/java files since the
first gnome-bindings deadline is already in 10 days.

For more information on this effort see:
http://java-gnome.sourceforge.net/
http://www.gnome.org/start/2.5/bindings/

There is also a poll and some discussion on various gnome bindings at:
http://www.gnomedesktop.org/pollBooth.php?pollID=3D50

And please join the mailinglist to help with the fun:
http://sourceforge.net/mail/?group_id=3D1522

Cheers,

Mark

(*) Sorry still no estimate. Latest info is as always on
http://savannah.gnu.org/ which currently says:

        We are currently auditing the Savannah source code and the
        surrounding CVS tools to ensure that they have no security
        problems that can be exploited to give local user shell access.=20
        Given the advent of many local-user-exploitable security
        problems, we want to verify that shell access cannot be acquired
        through any of Savannah's interfaces.
        [...]
        We appreciate the assistance and cooperation of the Free
        Software development community as we work through these
        difficulties.  We are moving slowly so that everyone will be
        assured that the replacement Savannah system is more secure than
        the previous system.

--=-eR4dhN+cCcAomD2apFrh
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/2koIxVhZCJWr9QwRApibAJ95NQ///mmwdWMQsrk0/e8gBzElmwCePHzP
D0T9DLWSBusI/FqcDUX7JQ0=
=5tLx
-----END PGP SIGNATURE-----

--=-eR4dhN+cCcAomD2apFrh--




From MAILER-DAEMON Sat Dec 13 05:39:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AV7Bg-0002w1-Ll
	for mharc-classpath@gnu.org; Sat, 13 Dec 2003 05:39:52 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AV7Be-0002ub-BA
	for classpath@gnu.org; Sat, 13 Dec 2003 05:39:50 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AV7B8-0002oh-Iw
	for classpath@gnu.org; Sat, 13 Dec 2003 05:39:49 -0500
Received: from [132.208.28.186] (helo=gadek.homelinux.org)
	by monty-python.gnu.org with esmtp (TLSv1:RC4-SHA:128) (Exim 4.24)
	id 1AV7B8-0002oc-48
	for classpath@gnu.org; Sat, 13 Dec 2003 05:39:18 -0500
Received: from localhost ([127.0.0.1])
	by gadek.homelinux.org with esmtp (Exim 4.24)
	id 1AV6Da-0006pR-Ue; Sat, 13 Dec 2003 04:37:46 -0500
From: "Grzegorz B. Prokopski" <gadek@debian.org>
To: Mark Wielaard <mark@klomp.org>
In-Reply-To: <1071265782.2743.52.camel@localhost>
References: <200312121916.hBCJGeSX072823@pigsty.cats.cradle>
	<1071265782.2743.52.camel@localhost>
Content-Type: text/plain; charset=ISO-8859-2
Organization: Debian GNU/Linux http://www.debian.org
Message-Id: <1071308263.12261.143.camel@gadek.homelinux.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sat, 13 Dec 2003 04:37:46 -0500
Content-Transfer-Encoding: quoted-printable
Cc: SableVM-devel ML <sablevm-developer@lists.sourceforge.net>,
	GNU Classpath <classpath@gnu.org>
Subject: Re: Revolution Action (was: Re: [Little Off Topic] Revolution ison
	; ))
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 Dec 2003 10:39:50 -0000

W li=B6cie z pi=B1, 12-12-2003, godz. 16:49, Mark Wielaard pisze:=20
> Fosdem people are kind of hard to get hold off. Tried sending email to
> several addresses, but only yesterday got a small response. I did tell
> them that we are expecting at least 10 people already so that it would
> be nice to have a developer room were people can meet/hack/discuss. Will
> let you know if I get any reply. They said there would be a meeting next
> week to discuss Fosdem planning and requests from the community. So
> please try to contact them with ideas soon.

I think it's really great opportunity for Free Java folks to meet.
I don't mean that we need to separate ourselves from all the rest of the
meeting ;) but it would certainely be good if we had our place.

In fact - I'd be very happy to be able to give a presentation about
SableVM during FOSDEM. There's a whole bunch of technical things that
are quite hard to explan and show via email or IRC so I view it as
a great opportunity to actually get down to strictly technical matters.

I was evaluating 3 possibilities (in order of my preference):
1. Give complete SableVM presentation in "Free Java" track
2. Get into "unofficial talks" section
3. Narrow the presentation a bit and get into "Embedded" track

Now - I am not sure how I should proceed from here.=20

But I am certain that I would want to utilze my time during FOSDEM in
the best ways and, because I view this as one of these ways,
- I'd be rather unhappy if this didn't work out because of some
oversight on my side.

Opinions? Advices?

					Grzegorz B. Prokopski

--=20
Grzegorz B. Prokopski <gadek@debian.org>
Debian GNU/Linux      http://www.debian.org
SableVM - LGPLed JVM  http://www.sablevm.org




From MAILER-DAEMON Sat Dec 13 07:55:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AV9Ie-0005Q7-Th
	for mharc-classpath@gnu.org; Sat, 13 Dec 2003 07:55:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AV9Ib-0005Me-SS
	for classpath@gnu.org; Sat, 13 Dec 2003 07:55:09 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AV9I3-0004kY-W9
	for classpath@gnu.org; Sat, 13 Dec 2003 07:55:07 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AV9I3-0004jD-Dv
	for classpath@gnu.org; Sat, 13 Dec 2003 07:54:35 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AV8KL-0006HH-00; Sat, 13 Dec 2003 12:52:53 +0100
From: Mark Wielaard <mark@klomp.org>
To: "Grzegorz B. Prokopski" <gadek@debian.org>
In-Reply-To: <1071308263.12261.143.camel@gadek.homelinux.org>
References: <200312121916.hBCJGeSX072823@pigsty.cats.cradle>
	<1071265782.2743.52.camel@localhost>
	<1071308263.12261.143.camel@gadek.homelinux.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-vJodlCuiGqRQHS8mAx2t"
Message-Id: <1071316376.7211.93.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sat, 13 Dec 2003 12:52:56 +0100
Cc: SableVM-devel ML <sablevm-developer@lists.sourceforge.net>,
	GNU Classpath <classpath@gnu.org>
Subject: Re: Revolution Action (was: Re: [Little Off Topic] Revolution ison
	; ))
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 Dec 2003 12:55:11 -0000


--=-vJodlCuiGqRQHS8mAx2t
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Sat, 2003-12-13 at 10:37, Grzegorz B. Prokopski wrote:
>
> I think it's really great opportunity for Free Java folks to meet.
> I don't mean that we need to separate ourselves from all the rest of the
> meeting ;) but it would certainely be good if we had our place.

I went last year and it is certainly nice to hear about all those free
software projects out there. It is done by volunteers and the people who
come really want to present their projects and attract new hackers that
want to be work together. It is great fun and gives you a good overview
of the big picture.

> Now - I am not sure how I should proceed from here.=20
>=20
> But I am certain that I would want to utilze my time during FOSDEM in
> the best ways and, because I view this as one of these ways,
> - I'd be rather unhappy if this didn't work out because of some
> oversight on my side.
>=20
> Opinions? Advices?

Make sure that you try to contact the organization about your plans.
http://www.fosdem.org/2004/index/contact/
It is good to make sure they know how many people are interested in
meeting. And they can advise what is the best for the conference. Having
a developer room where we can all meet from time to time between the
general talks will be great since then we can discuss some of the things
in a smaller setting which can be much more technical then a general
talk. But having more general talks will certainly be nice to attract
more (future) free software hackers. I am really not sure how much of
the program has already been set in stone at this stage.

And even if we cannot present all our technical knowledge and wonders to
the masses it will be nice to meet each other. I would be very glad even
if all we did was shake hands and got a drink somewhere together. Being
able to sit down and just talk face-to-face is great for people who
normally can only work virtually together.

Cheers,

Mark

--=-vJodlCuiGqRQHS8mAx2t
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/2v2XxVhZCJWr9QwRApbbAKCOirYObG+SvKoQmONYoMAjTSUGFACgohWT
tdEYzJz3gs8PtCFTzWMXyPs=
=bmOv
-----END PGP SIGNATURE-----

--=-vJodlCuiGqRQHS8mAx2t--




From MAILER-DAEMON Sat Dec 13 13:08:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AVEBz-00018F-S5
	for mharc-classpath@gnu.org; Sat, 13 Dec 2003 13:08:39 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AVEBx-00017q-QN
	for classpath@gnu.org; Sat, 13 Dec 2003 13:08:37 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AVEBR-0000zs-PQ
	for classpath@gnu.org; Sat, 13 Dec 2003 13:08:36 -0500
Received: from [213.49.17.120] (helo=pigsty.cats.cradle)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AVEBR-0000z0-3N
	for classpath@gnu.org; Sat, 13 Dec 2003 13:08:05 -0500
Received: from there (localhost.cats.cradle [127.0.0.1])
	by pigsty.cats.cradle (8.12.6/8.11.6) with SMTP id hBDH8dSX076379;
	Sat, 13 Dec 2003 18:08:40 +0100 (CET)
	(envelope-from chris@kiffer.eunet.be)
Message-Id: <200312131708.hBDH8dSX076379@pigsty.cats.cradle>
Content-Type: text/plain;
  charset="iso-8859-1"
From: Chris Gray <chris@kiffer.eunet.be>
To: Mark Wielaard <mark@klomp.org>
Date: Sat, 13 Dec 2003 18:08:39 +0100
X-Mailer: KMail [version 1.3]
References: <200312121916.hBCJGeSX072823@pigsty.cats.cradle>
	<1071265782.2743.52.camel@localhost>
In-Reply-To: <1071265782.2743.52.camel@localhost>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Cc: classpath@gnu.org
Subject: Re: Revolution Action (was: Re: [Little Off Topic] Revolution ison ;
	))
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 Dec 2003 18:08:38 -0000

Mark (and everyone),

I happen to know the organiser of the Embedded track at FOSDEM quite well, so 
I was able to persuade him to [get his committee to agree to] put an extra 
item on the Call for Papers. Of course the Embedded track isn't the obvious 
place for a talk on Classpath, but most of the VM projects have a 
mobile/embedded angle to them, and most also happen to use Classpath ...

Dali was happy to see Kaffe mentioned by name: my aplogies to everyone else 
for "forgetting" your project. :) It would be good to have as many projects 
as possible represented, certainly as attendees and better still as [joint] 
authors. I think we should try to emphasise two aspects:
 - on the one hand, the diversity of projects and their special features;
 - on the other, the unifying factors, including the need to comply with a 
"proprietary" standard. In this Classpath of course plays a major role.

If we put on a good show then maybe we'll be able to get more space for Java 
next time around ...

On the JCP/JSPA/JCK thing, I'm also making enquiries quite independently of 
Mark/RMS (but I will keep Mark informed). So the chances that we'll have 
something to report by FOSDEM time are rather high.

Best wishes,

Chris
 
On Friday 12 December 2003 22:49, Mark Wielaard wrote:
> Hi,
>
> On Fri, 2003-12-12 at 20:16, Chris Gray wrote:
> > Given that we have only a part of the Embedded track, I would suggest
> > that we do a group paper presenting the whole spectrum of Free / open
> > VMs; maybe Classpath should be part of this, maybe we should try for a
> > separate Classpath paper. We could try to get some kind of extended slot
> > for this, if the organisers will agree.
>
> I didn't realize that they still accepted presentations. Sascha and I
> made an abstract about a possible GNU Classpath talk which I send to two
> people from Fosdem. Since the talks were already announced on the Fosdem
> website I hoped to sneak it in as an unofficial talk. Knowing that there
> is still time to do a real abstract submission I am happy to discuss the
> current abstract and/or submit it properly. But I am not sure that the
> embedded track is to correct forum for GNU Classpath related stuff.
>
> Fosdem people are kind of hard to get hold off. Tried sending email to
> several addresses, but only yesterday got a small response. I did tell
> them that we are expecting at least 10 people already so that it would
> be nice to have a developer room were people can meet/hack/discuss. Will
> let you know if I get any reply. They said there would be a meeting next
> week to discuss Fosdem planning and requests from the community. So
> please try to contact them with ideas soon.
>
> > I'd also like to have an item on the
> > standardisation issue : by the time FOSDEM comes, either we will have
> > some positive news or a lot of bitching to do. ;>
>
> Richard Stallman recently asked about the JSPA and the JSR process.
> We are still discussing it. If we reach a conclusion I will email the
> list. If people have experience with the JSPA or serving on a JSR expert
> team and know what to expect from the process in regards to creating
> specs and/or software that is free software (friendly) I would like to
> hear.
>
> Cheers,
>
> Mark

-- 
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 Sat Dec 13 13:09:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AVEDA-0001Y7-GM
	for mharc-classpath@gnu.org; Sat, 13 Dec 2003 13:09:52 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AVED8-0001X6-39
	for classpath@gnu.org; Sat, 13 Dec 2003 13:09:50 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AVECa-0001N6-VQ
	for classpath@gnu.org; Sat, 13 Dec 2003 13:09:49 -0500
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AVECa-0001MO-F2
	for classpath@gnu.org; Sat, 13 Dec 2003 13:09:16 -0500
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1AVDF6-0001UN-00
	for <classpath@gnu.org>; Sat, 13 Dec 2003 18:07:48 +0100
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 1AVDF4-0001U0-00; Sat, 13 Dec 2003 18:07:46 +0100
Message-ID: <3FDB4762.3060009@kaffe.org>
Date: Sat, 13 Dec 2003 18:07:46 +0100
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: Guilhem Lavaux <guilhem@kaffe.org>
References: <3FD3748E.8060603@kaffe.org>
In-Reply-To: <3FD3748E.8060603@kaffe.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: Classpath List <classpath@gnu.org>
Subject: Re: [PATCH] Serialization #6 (and final)
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 Dec 2003 18:09:51 -0000

Guilhem Lavaux wrote:
> Hi,
> 
> Here is the last patch on serialization.
> This patch fixes the behaviour of readFields() in ObjectInputStream:
> * if called multiple times read fields and build field decoder only once.
> * more documentation
> * GetField methods should take into account the flags concerning
> each serialized fields. If transient we have to make it return
> a default value, if not we try to get it in the pool of read fields.
> If the field doesn't exist we should throw an exception.

Looks good to me. Please check itin when Savannah comes back online.

cheers,
dalibor topic




From MAILER-DAEMON Sat Dec 13 13:16:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AVEJU-000768-3Y
	for mharc-classpath@gnu.org; Sat, 13 Dec 2003 13:16:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AVEJP-000719-T4
	for classpath@gnu.org; Sat, 13 Dec 2003 13:16:19 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AVEHe-0004fa-Dt
	for classpath@gnu.org; Sat, 13 Dec 2003 13:15:04 -0500
Received: from [213.49.17.120] (helo=pigsty.cats.cradle)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AVEHQ-0004By-RE
	for classpath@gnu.org; Sat, 13 Dec 2003 13:14:17 -0500
Received: from there (localhost.cats.cradle [127.0.0.1])
	by pigsty.cats.cradle (8.12.6/8.11.6) with SMTP id hBDHEtSX076389;
	Sat, 13 Dec 2003 18:14:55 +0100 (CET)
	(envelope-from chris@kiffer.eunet.be)
Message-Id: <200312131714.hBDHEtSX076389@pigsty.cats.cradle>
Content-Type: text/plain;
  charset="iso-8859-1"
From: Chris Gray <chris@kiffer.eunet.be>
To: Mark Wielaard <mark@klomp.org>, "Grzegorz B. Prokopski" <gadek@debian.org>
Date: Sat, 13 Dec 2003 18:14:54 +0100
X-Mailer: KMail [version 1.3]
References: <200312121916.hBCJGeSX072823@pigsty.cats.cradle>
	<1071308263.12261.143.camel@gadek.homelinux.org>
	<1071316376.7211.93.camel@elsschot.wildebeest.org>
In-Reply-To: <1071316376.7211.93.camel@elsschot.wildebeest.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Cc: SableVM-devel ML <sablevm-developer@lists.sourceforge.net>,
	GNU Classpath <classpath@gnu.org>
Subject: Re: Revolution Action (was: Re: [Little Off Topic] Revolution ison ;
	))
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 Dec 2003 18:16:22 -0000

On Saturday 13 December 2003 12:52, Mark Wielaard wrote:

> Make sure that you try to contact the organization about your plans.
> http://www.fosdem.org/2004/index/contact/

Peter Vandenabeele is the one to whom I have been talking, and who added Java 
topics to the Embedded room. He's also a very busy man (as are probably most 
of the other volunteer organisers).

I think the developer room is a great idea, and I expect the organisers will 
be receptive.

Best wishes

-- 
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 Sat Dec 13 14:59:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AVFvM-00030n-CA
	for mharc-classpath@gnu.org; Sat, 13 Dec 2003 14:59:36 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AVFvI-0002yx-Qs
	for classpath@gnu.org; Sat, 13 Dec 2003 14:59:32 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AVFul-0002k3-RX
	for classpath@gnu.org; Sat, 13 Dec 2003 14:59:31 -0500
Received: from [213.228.0.176] (helo=postfix4-2.free.fr)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AVFuk-0002hJ-Mj
	for classpath@gnu.org; Sat, 13 Dec 2003 14:58:58 -0500
Received: from kaffe.org (cachan-3-82-66-125-112.fbx.proxad.net
	[82.66.125.112]) by postfix4-2.free.fr (Postfix) with ESMTP
	id 8C08125D3F; Sat, 13 Dec 2003 19:57:28 +0100 (CET)
Message-ID: <3FDB6112.9010205@kaffe.org>
Date: Sat, 13 Dec 2003 19:57:22 +0100
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: java-patches@gcc.gnu.org, Classpath List <classpath@gnu.org>
X-Enigmail-Version: 0.76.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig3D3CB7E0FFBEC88B7CDB1841"
Cc: 
Subject: [PATCH] RuleBasedCollator
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 Dec 2003 19:59:33 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig3D3CB7E0FFBEC88B7CDB1841
Content-Type: multipart/mixed; boundary="------------090506030504000506010208"

This is a multi-part message in MIME format.
--------------090506030504000506010208
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

As Savannah is down, here is the patch concerning java.text.RuleBasedCollator.
I should say instead a major rewrite of the rule parser. I send you the first file both in 
diff format and the complete file because some parts are only small changes and some others
are purely rewritten. The change concerns java/text/RuleBasedCollator.java and
java/text/CollationElementIterator.java.

The diff were taken against the last available Classpath before savannah shutdown.
Some methods are still undocumented but I'll add the doc later when the last incompatibilities
will have been removed.

Here is a short summary of the new parser:
* rules are first translated into internal sorted representation. All characters are interpreted
but the collation sorting numbers are not generated.
* The internal generated representations is used to build sorting numbers, at that time there 
shouldn't be any RESET tag in the representation.
* '!' is still not supported, because I need some more documentation on accented character
inversion.
* setText has been upgraded to match pattern into the input text. The previous text analyzer
didn't make an extensive search of all prefix and caused some strings to be sorted wrongly.
With the new algorithm, it should be able to sort strings using the best sorting element in the
rules.
* Character expansion is now supported: in some cases one character should be translater into
multiple characters, e.g. ä into ae it should be done partially in setText (which adds
some extra character in the input text on demand) and by the parser (which should recall
when some characters should be added).

I'm not proposing ChangeLog entry for the moment.

Please review.

Cheers,
Guilhem.


--------------090506030504000506010208
Content-Type: text/plain;
 name="RuleBasedCollator.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="RuleBasedCollator.java"

/* RuleBasedCollator.java -- Concrete Collator Class
   Copyright (C) 1998, 1999, 2000, 2001, 2003  Free Software Foundation, Inc.

This file is part of GNU Classpath.

GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
 
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

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

Linking this library statically or dynamically with other modules is
making a combined work based on this library.  Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.

As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module.  An independent module is a module which is not derived from
or based on this library.  If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so.  If you do not wish to do so, delete this
exception statement from your version. */


package java.text;

import java.util.Vector;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Comparator;

/* Written using "Java Class Libraries", 2nd edition, plus online
 * API docs for JDK 1.2 from http://www.javasoft.com.
 * Status: Believed complete and correct
 */

/**
 * This class is a concrete subclass of <code>Collator</code> suitable
 * for string collation in a wide variety of languages.  An instance of
 * this class is normally returned by the <code>getInstance</code> method
 * of <code>Collator</code> with rules predefined for the requested
 * locale.  However, an instance of this class can be created manually
 * with any desired rules.
 * <p>
 * Rules take the form of a <code>String</code> with the following syntax
 * <ul>
 * <li> Modifier: '@' 
 * <li> Relation: '&lt;' | ';' | ',' | '=' : <text>
 * <li> Reset: '&amp;' : <text>
 * </ul>
 * The modifier character indicates that accents sort backward as is the
 * case with French.  The modifier applies to all rules <b>after</b>
 * the modifier but before the next primary sequence. If placed at the end
 * of the sequence if applies to all unknown accented character.
 * The relational operators specify how the text 
 * argument relates to the previous term.  The relation characters have
 * the following meanings:
 * <ul>
 * <li>'&lt;' - The text argument is greater than the prior term at the primary
 * difference level.
 * <li>';' - The text argument is greater than the prior term at the secondary
 * difference level.
 * <li>',' - The text argument is greater than the prior term at the tertiary
 * difference level.
 * <li>'=' - The text argument is equal to the prior term
 * </ul>
 * <p>
 * As for the text argument itself, this is any sequence of Unicode
 * characters not in the following ranges: 0x0009-0x000D, 0x0020-0x002F,
 * 0x003A-0x0040, 0x005B-0x0060, and 0x007B-0x007E. If these characters are 
 * desired, they must be enclosed in single quotes.  If any whitespace is 
 * encountered, it is ignored.  (For example, "a b" is equal to "ab").  
 * <p>
 * The reset operation inserts the following rule at the point where the
 * text argument to it exists in the previously declared rule string.  This
 * makes it easy to add new rules to an existing string by simply including
 * them in a reset sequence at the end.  Note that the text argument, or
 * at least the first character of it, must be present somewhere in the
 * previously declared rules in order to be inserted properly.  If this
 * is not satisfied, a <code>ParseException</code> will be thrown. 
 * <p>
 * This system of configuring <code>RuleBasedCollator</code> is needlessly
 * complex and the people at Taligent who developed it (along with the folks
 * at Sun who accepted it into the Java standard library) deserve a slow
 * and agonizing death.
 * <p>
 * Here are a couple of example of rule strings:
 * <p>
 * "&lt; a &lt; b &lt; c" - This string says that a is greater than b which is 
 * greater than c, with all differences being primary differences.
 * <p>
 * "&lt; a,A &lt; b,B &lt; c,C" - This string says that 'A' is greater than 'a' with
 * a tertiary strength comparison.  Both 'b' and 'B' are greater than 'a' and
 * 'A' during a primary strength comparison.  But 'B' is greater than 'b'
 * under a tertiary strength comparison.
 * <p>
 * "&lt; a &lt; c &amp; a &lt; b " - This sequence is identical in function to the 
 * "&lt; a &lt; b &lt; c" rule string above.  The '&amp;' reset symbol indicates that
 * the rule "&lt; b" is to be inserted after the text argument "a" in the
 * previous rule string segment.
 * <p>
 * "&lt; a &lt; b &amp; y &lt; z" - This is an error.  The character 'y' does not appear
 * anywhere in the previous rule string segment so the rule following the
 * reset rule cannot be inserted.
 * <p>
 * "&lt; a &amp; A @ &lt e &amp; E &lt f&amp; F" - This sequence is equivalent to the following
 * "&lt; a &amp; A &lt E &amp; e &lt f &amp; F".
 * <p>
 * For a description of the various comparison strength types, see the
 * documentation for the <code>Collator</code> class.
 * <p>
 * As an additional complication to this already overly complex rule scheme,
 * if any characters precede the first rule, these characters are considered
 * ignorable.  They will be treated as if they did not exist during 
 * comparisons.  For example, "- &lt; a &lt; b ..." would make '-' an ignorable
 * character such that the strings "high-tech" and "hightech" would
 * be considered identical.
 * <p>
 * A <code>ParseException</code> will be thrown for any of the following
 * conditions:
 * <ul>
 * <li>Unquoted punctuation characters in a text argument.
 * <li>A relational or reset operator not followed by a text argument
 * <li>A reset operator where the text argument is not present in
 * the previous rule string section.
 * </ul>
 *
 * @author Aaron M. Renn <arenn@urbanophile.com>
 * @author Tom Tromey <tromey@cygnus.com>
 * @author Guilhem Lavaux <guilhem@kaffe.org>
 * @date August 17, 2003
 */
public class RuleBasedCollator extends Collator
{
  class CollationElement
  {
    String char_seq;
    int primary;
    short secondary;
    short tertiary;
    short equality;
    boolean ignore;
    String expansion;

    CollationElement(String char_seq, int primary, short secondary, short tertiary,
		     short equality, String expansion)
    {
      this.char_seq = char_seq;
      this.primary = primary;
      this.secondary = secondary;
      this.tertiary = tertiary;
      this.equality = equality;
      this.ignore = false;
      this.expansion = expansion;
    }

    CollationElement(String char_seq)
    {
      this.char_seq = char_seq;
      this.ignore = true;
    }

    final int getValue()
    {
      return (primary << 16) + (secondary << 8) + tertiary;
    }

  } // inner class CollationElement

  class CollationBlock
  {
    int value;
    String textBlock;
  }

  class CollationSorter
  {
    static final int GREATERP = 0;
    static final int GREATERS = 1;
    static final int GREATERT = 2;
    static final int EQUAL = 3;
    static final int RESET = 4;
    static final int IGNORE = 5;
    static final int INVERSE_SECONDARY = 6;
    
    int comparisonType;
    String textElement;
    int hashText;
    int offset;

    String expansionOrdering;
  }

  static int findPrefixLength(String prefix, String s)
  {
    int i;

    for (i=0;i<prefix.length() && i < s.length();i++)
      {
	if (prefix.charAt(i) != s.charAt(i))
	  return i;
      }
    return i;
  }

  void mergeRules(int offset, String starter, Vector main, Vector patch)
    throws ParseException 
  {
    Enumeration elements = main.elements();
    int insertion_point = -1;
    int max_length = 0;
    
    /* We must check that no rules conflict with another already present. If it
     * is the case delete the old rule. 
     */
    
    /* For the moment good old O(N^2) algorithm.
     */
    for (int i=0;i<patch.size();i++)
      {
	int j = 0;
	
	while (j < main.size())
	  {
	    CollationSorter rule1 = (CollationSorter)patch.elementAt (i);
	    CollationSorter rule2 = (CollationSorter)main.elementAt (j);
	    
	    if (rule1.textElement.equals (rule2.textElement))
	      main.removeElementAt (j);
	    else
	      j++;
	  }
      }

    // Find the insertion point... O(N)
    for (int i=0;i<main.size();i++)
      {
	CollationSorter sorter = (CollationSorter)main.elementAt(i);
	int length = findPrefixLength (starter, sorter.textElement);
		
	if (length > max_length)
	  {
	    max_length = length;
	    insertion_point = i+1;
	  }
      }

    if (insertion_point < 0)
      throw new ParseException("no insertion point found for " + starter, offset);

    if (max_length < starter.length())
      {
	/*
	 * We need to expand the first entry. It must be sorted
	 * like if it was the reference key itself (like the spec
	 * said. So the first entry is special: the element is
	 * replaced by the specified text element for the sorting.
	 * This text replace the old one for comparisons. However
	 * to preserve the behaviour we replace the first key (corresponding
	 * to the found prefix) by a new code rightly ordered in the
	 * sequence. The rest of the subsequence must be appended
	 * to the end of the sequence.
	 */
	CollationSorter sorter = (CollationSorter)patch.elementAt (0);
	CollationSorter expansionPrefix = (CollationSorter)main.elementAt (insertion_point-1);
	
	sorter.expansionOrdering = starter.substring (max_length); // Skip the first good prefix element
	
	main.insertElementAt (sorter, insertion_point);
	
	/*
	 * This is a new set of rules. Append to the list.
	 */
	patch.removeElementAt (0);
	insertion_point = main.size();
      }

    // Now insert all elements of patch at the insertion point.
    for (int i=0;i<patch.size();i++)
      main.insertElementAt (patch.elementAt (i), i+insertion_point);

  }

  int subParseString(boolean stop_on_reset, Vector v, int base_offset, String rules) throws ParseException
  {
    boolean ignoreChars = (base_offset == 0);
    int operator = -1;
    StringBuffer sb = new StringBuffer ("");
    boolean doubleQuote = false;
    boolean eatingChars = false;
    boolean nextIsModifier = false;
    boolean isModifier = false;
    int i;
    
main_parse_loop:
    for (i=0;i<rules.length();i++)
      {
	char c = rules.charAt (i);
	int type = -1;
	
	if (!eatingChars &&
	    ((c >= 0x09 && c <= 0x0D) || (c == 0x20)))
	      continue;

	isModifier = nextIsModifier;
	nextIsModifier = false;

	if (eatingChars && c != '\'')
	  {
	    doubleQuote = false;
	    sb.append (c);
	    continue;
	  }
	if (doubleQuote && eatingChars)
	  {
	    sb.append (c);
	    doubleQuote = false;
	    continue;
	  }

	switch (c) {
	case '!':
	  throw new ParseException ("Modifier '!' is not yet supported by Classpath", i+base_offset);
	case '<':
	  ignoreChars = false;
	  type = CollationSorter.GREATERP;
	  break;
	case ';':
	  if (!ignoreChars)
	    type = CollationSorter.GREATERS;
	  else
	    type = CollationSorter.IGNORE;
	  break;
	case ',':
	  if (!ignoreChars)
	    type = CollationSorter.GREATERT;
	  else
	    type = CollationSorter.IGNORE;
	  break;
	case '=':
	  if (!ignoreChars)
	    type = CollationSorter.EQUAL;
	  else
	    type = CollationSorter.IGNORE;
	  break;
	case '\'':
	  eatingChars = !eatingChars;
	  doubleQuote = true;
	  break;
	case '@':
	  if (ignoreChars)
	    throw new ParseException ("comparison list has not yet been started. You may only use"
				      + "(<,;=&)", i+base_offset);
	  // Inverse the order of secondaries from now on.
	  nextIsModifier = true;
	  type = CollationSorter.INVERSE_SECONDARY;
	  break;
	case '&':
	  type = CollationSorter.RESET;
	  if (stop_on_reset)
	    break main_parse_loop;
	  break;
	default:
	  if (operator < 0)
	    throw new ParseException ("operator missing at " + (i+base_offset), i+base_offset);
	  if (!eatingChars &&
	      ((c >= 0x21 && c <= 0x2F) || (c >= 0x3A && c <= 0x40) || (c >= 0x5B && c <= 0x60) ||
	       (c >= 0x7B && c <= 0x7E)))
	    throw new ParseException ("unquoted punctuation character '"+c+"'", i+base_offset);

	  //type = ignoreChars ? CollationSorter.IGNORE : -1;
	  sb.append(c);
	  break;
	}

	if (type  < 0)
	  continue;

	if (operator < 0)
	  {
	    operator = type;
	    continue;
	  }

	if (sb.length() == 0 && !isModifier)
	  throw new ParseException ("text element empty at " + (i+base_offset), i+base_offset);

	if (operator == CollationSorter.RESET)
	  {
	    /* Reposition in the sorting list at the position
	     * indicated by the text element.
	     */
	    String subrules = rules.substring (i);
	    Vector sorted_rules = new Vector();
	    int idx;

	    // Parse the subrules but do not iterate through all
	    // sublist. This is the priviledge of the first call.
	    idx = subParseString (true, sorted_rules, base_offset+i, subrules);
    
	    // Merge new parsed rules into the list.
	    mergeRules (base_offset+i, sb.toString(), v, sorted_rules);
	    sb.setLength(0);
	    
	    // Reset state to none.
	    operator = -1;
	    type = -1;
	    // We have found a new subrule at 'idx' but it has not been parsed.
	    if (idx >= 0)
	      {
		i += idx-1;
		continue main_parse_loop;
	      }
	    else
		// No more rules.
		break main_parse_loop;
	  }

	CollationSorter sorter = new CollationSorter();
	
	sorter.comparisonType = operator;
	sorter.textElement = sb.toString();
	sorter.hashText = sorter.textElement.hashCode();
	sorter.offset = base_offset+rules.length();
	sb.setLength(0);

	v.add(sorter);
	operator = type;
      }

    if (operator >= 0)
      {
	CollationSorter sorter = new CollationSorter();
	int pos = rules.length() + base_offset;

	if ((sb.length() != 0 && nextIsModifier) ||
	    (sb.length() == 0 && !nextIsModifier && !eatingChars))
	  throw new ParseException ("text element empty at " + pos, pos);

	sorter.comparisonType = operator;
	sorter.textElement = sb.toString();
 	sorter.hashText = sorter.textElement.hashCode();
	sorter.offset = base_offset+pos;
	v.add (sorter);
      }

    if (i == rules.length())
      return -1;
    else
      return i;
  }

  private Vector parseString(String rules) throws ParseException
  {
    Vector v = new Vector();

    // result of the first subParseString is not certain (may be -1 or a positive integer). But we
    // do not care.
    subParseString (false, v, 0, rules);
    
    return v;
  }

  /**
   * This the the original rule string.
   */
  private String rules;

  /**
   * This is the table of collation element values
   */
  private Object[] ce_table;

  /**
   * Quick-prefix finder.
   */
  HashMap prefix_tree;

  /**
   * This is the value of the last sequence entered into
   * <code>ce_table</code>. It is used to compute the
   * ordering value of unspecified character.
   */
  private int last_primary_value;

  /**
   * This variable is true if accents need to be sorted
   * in the other direction.
   */
  private boolean inverseAccentComparison;

  private void buildCollationVector(Vector parsedElements) throws ParseException
  {
    int primary_seq = 0;
    short secondary_seq = 0;
    short tertiary_seq = 0;
    short equality_seq = 0;
    boolean inverseComparisons = false;
    final boolean DECREASING = false;
    final boolean INCREASING = true;
    boolean secondaryType = INCREASING;
    Vector v = new Vector();

    // elts is completely sorted.
element_loop:
    for (int i=0;i<parsedElements.size();i++)
      {
	CollationSorter elt = (CollationSorter)parsedElements.elementAt (i);
	boolean ignoreChar = false;

	switch (elt.comparisonType)
	  {
	  case CollationSorter.GREATERP:
	    primary_seq++;
	    if (inverseComparisons)
	      {
		secondary_seq = Short.MAX_VALUE;
		secondaryType = DECREASING;
	      }
	    else
	      {
		secondary_seq = 0;
		secondaryType = INCREASING;
	      }
	    tertiary_seq = 0;
	    equality_seq = 0;
	    inverseComparisons = false;
	    break;
	  case CollationSorter.GREATERS:
	    if (secondaryType == DECREASING)
	      secondary_seq--;
	    else
	      secondary_seq++;
	    tertiary_seq = 0;
	    equality_seq = 0;
	    break;
	  case CollationSorter.INVERSE_SECONDARY:
	    inverseComparisons = true;
	    continue element_loop;
	  case CollationSorter.GREATERT:
	    tertiary_seq++;
	    equality_seq = 0;
	    break;
	  case CollationSorter.IGNORE:
	    ignoreChar = true;
	  case CollationSorter.EQUAL:
	    equality_seq++;
	    break;
	  case CollationSorter.RESET:
	    throw new ParseException ("Invalid reached state 'RESET'. Internal error", elt.offset);
	  default:
	    throw new ParseException ("Invalid unknown state '"+elt.comparisonType+"'", elt.offset);
	  }

	CollationElement e;

	if (!ignoreChar)
	  {
	    e = new CollationElement (elt.textElement, primary_seq,
				      secondary_seq, tertiary_seq,
				      equality_seq, elt.expansionOrdering);
	  }
	else
	  e = new CollationElement (elt.textElement);

	v.add(e);
      }

    this.inverseAccentComparison = inverseComparisons; 

    ce_table = v.toArray();

    last_primary_value = primary_seq+1;
  }

  /**
   * Build a tree where all keys are the texts of collation elements and data is
   * the collation element itself. The tree is used when extracting all prefix
   * for a given text.
   */
  private void buildPrefixAccess()
  {
    prefix_tree = new HashMap();

    for (int i=0;i<ce_table.length;i++)
      {
	CollationElement e = (CollationElement)ce_table[i];

	prefix_tree.put (e.char_seq, e);
      }
  }

  /**
   * This method initializes a new instance of <code>RuleBasedCollator</code>
   * with the specified collation rules.  Note that an application normally
   * obtains an instance of <code>RuleBasedCollator</code> by calling the
   * <code>getInstance</code> method of <code>Collator</code>.  That method
   * automatically loads the proper set of rules for the desired locale.
   *
   * @param rules The collation rule string.
   *
   * @exception ParseException If the rule string contains syntax errors.
   */
  public RuleBasedCollator(String rules) throws ParseException
  {
    this.rules = rules;

    if (rules.equals (""))
      throw new ParseException ("Empty rule set", 0);

    buildCollationVector (parseString (rules));
    buildPrefixAccess();
  }

  /**
   * This method returns a <code>String</code> containing the collation rules
   * for this object.
   *
   * @return The collation rules for this object.
   */
  public String getRules()
  {
    return(rules);
  }

  /**
   * This method builds a default collation element without invoking
   * the database created from the rules passed to the constructor.
   */
  CollationElement getDefaultElement(char c)
  {
    int v;

    // Preliminary support for generic accent sorting inversion (I don't know if all
    // characters in the range should be sorted backward). This is the place
    // to fix this if needed.
    if (inverseAccentComparison && (c >= 0x02B9 && c <= 0x0361))
      v = 0x0361 - ((int)c - 0x02B9);
    else
      v = (short)c;
    return new CollationElement (""+c, last_primary_value + v, (short)0, (short)0, (short) 0, null);
  }

  /**
   * This method returns an instance for <code>CollationElementIterator</code>
   * for the specified <code>String</code> under the collation rules for this
   * object.
   *
   * @param str The <code>String</code> to return the <code>CollationElementIterator</code> instance for.
   *
   * @return A <code>CollationElementIterator</code> for the specified <code>String</code>.
   */
  public CollationElementIterator getCollationElementIterator(String str)
  {
    return new CollationElementIterator (this, str);
  }  

  /**
   * This method returns an instance of <code>CollationElementIterator</code>
   * for the <code>String</code> represented by the specified
   * <code>CharacterIterator</code>.
   *
   * @param ci The <code>CharacterIterator</code> with the desired <code>String</code>.
   *
   * @return A <code>CollationElementIterator</code> for the specified <code>String</code>.
   */
  public CollationElementIterator getCollationElementIterator(CharacterIterator ci)
  {
    StringBuffer sb = new StringBuffer("");

    // Right now we assume that we will read from the beginning of the string.
    char c = ci.first();
    while (c != CharacterIterator.DONE) 
      {
        sb.append(c);
        c = ci.next();
      }

    return getCollationElementIterator (sb.toString());
  }

  /**
   * This method returns an integer which indicates whether the first
   * specified <code>String</code> is less than, greater than, or equal to
   * the second.  The value depends not only on the collation rules in
   * effect, but also the strength and decomposition settings of this object.
   *
   * @param s1 The first <code>String</code> to compare.
   * @param s2 A second <code>String</code> to compare to the first.
   *
   * @return A negative integer if s1 &lt; s2, a positive integer
   * if s1 &gt; s2, or 0 if s1 == s2.
   */
  public int compare(String s1, String s2)
  {
    CollationElementIterator cei1 = getCollationElementIterator (s1);
    CollationElementIterator cei2 = getCollationElementIterator (s2);

    for(;;)
      {
        CollationElement ord1block = cei1.nextBlock(); 
        CollationElement ord2block = cei2.nextBlock(); 
	int ord1;
	int ord2;

	// Hehehe. What we would do not to use if.
	try
	  {
	    ord1 = ord1block.getValue();
	  }
	catch (NullPointerException _)
	  {
	    if (ord2block == null)
	      return 0;
	    return -1;
	  }

	try
	  {
	    ord2 = ord2block.getValue();
	  }
	catch (NullPointerException _)
	  {
	    return 1;
	  }
	
       // We know chars are totally equal, so skip
        if (ord1 == ord2)
	  {
	    if (getStrength() == IDENTICAL)
	      if (!ord1block.char_seq.equals (ord2block.char_seq))
		return ord1block.char_seq.compareTo (ord2block.char_seq);
	    continue;
	  }

        // Check for primary strength differences
        int prim1 = cei1.primaryOrder (ord1); 
        int prim2 = cei2.primaryOrder (ord2); 

        if (prim1 < prim2)
          return(-1);
        else if (prim1 > prim2)
          return(1);
        else if (getStrength() == PRIMARY)
          continue;

        // Check for secondary strength differences
        int sec1 = cei1.secondaryOrder (ord1);
        int sec2 = cei2.secondaryOrder (ord2);

        if (sec1 < sec2)
          return(-1);
        else if (sec1 > sec2)
          return(1);
        else if (getStrength() == SECONDARY)
          continue;

        // Check for tertiary differences
        int tert1 = cei1.tertiaryOrder (ord1);
        int tert2 = cei2.tertiaryOrder (ord2);

        if (tert1 < tert2)
          return(-1);
        else if (tert1 > tert2)
          return(1);
	else if (getStrength() == TERTIARY)
	  continue;

	// Apparently JDK does this (at least for my test case).
	return ord1block.char_seq.compareTo (ord2block.char_seq);    
      }
  }

  /**
   * This method returns an instance of <code>CollationKey</code> for the
   * specified <code>String</code>.  The object returned will have a
   * more efficient mechanism for its comparison function that could
   * provide speed benefits if multiple comparisons are performed, such
   * as during a sort.
   *
   * @param str The <code>String</code> to create a <code>CollationKey</code> for.
   *
   * @return A <code>CollationKey</code> for the specified <code>String</code>.
   */
  public CollationKey getCollationKey(String str)
  {
    CollationElementIterator cei = getCollationElementIterator (str);
    Vector vect = new Vector(25);

    int ord = cei.next();
    cei.reset(); //set to start of string

    while (ord != CollationElementIterator.NULLORDER)
      {
        switch (getStrength())
          {
            case PRIMARY:
               ord = cei.primaryOrder (ord);
               break;

            case SECONDARY:
               ord = cei.secondaryOrder (ord);

            default:
               break;
          }

        vect.add (new Integer (ord)); 
	ord = cei.next(); //increment to next key
      }

    Object[] objarr = vect.toArray();
    byte[] key = new byte[objarr.length * 4];

    for (int i = 0; i < objarr.length; i++)
      {
        int j = ((Integer)objarr[i]).intValue();
        key [i * 4] = (byte)((j & 0xFF000000) >> 24);
        key [i * 4 + 1] = (byte)((j & 0x00FF0000) >> 16);
        key [i * 4 + 2] = (byte)((j & 0x0000FF00) >> 8);
        key [i * 4 + 3] = (byte)(j & 0x000000FF);
      }

    return new CollationKey (this, str, key);
  }

  /**
   * This method tests this object for equality against the specified 
   * object.  This will be true if and only if the specified object is
   * another reference to this object.
   *
   * @param obj The <code>Object</code> to compare against this object.
   *
   * @return <code>true</code> if the specified object is equal to this object, <code>false</code> otherwise.
   */
  public boolean equals(Object obj)
  {
    if (obj == this)
      return true;
    else
      return false;
  }

  /**
   * This method returns a hash value for this object.
   *
   * @return A hash value for this object.
   */
  public int hashCode()
  {
    return System.identityHashCode(this);
  }

  /**
   * This method creates a copy of this object.
   *
   * @return A copy of this object.
   */
  public Object clone()
  {
    return super.clone();
  }
}

--------------090506030504000506010208
Content-Type: text/plain;
 name="CollationElementIterator.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="CollationElementIterator.java"

/* CollationElementIterator.java -- Walks through collation elements
   Copyright (C) 1998, 1999, 2001, 2002, 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 java.text;

import java.util.Vector;
import java.util.NoSuchElementException;
import java.util.Map;
import java.util.SortedMap;

/* Written using "Java Class Libraries", 2nd edition, plus online
 * API docs for JDK 1.2 from http://www.javasoft.com.
 * Status: Believed complete and correct to JDK 1.1.
 */

/**
 * This class walks through the character collation elements of a 
 * <code>String</code> as defined by the collation rules in an instance of 
 * <code>RuleBasedCollator</code>.  There is no public constructor for
 * this class.  An instance is created by calling the
 * <code>getCollationElementIterator</code> method on 
 * <code>RuleBasedCollator</code>.
 *
 * @author Aaron M. Renn <arenn@urbanophile.com>
 * @author Tom Tromey <tromey@cygnus.com>
 */
public final class CollationElementIterator
{
  /**
   * This is a constant value that is returned to indicate that the end of 
   * the string was encountered.
   */
  public static final int NULLORDER = -1;

  /**
   * This is the RuleBasedCollator this object was created from.
   */
  private RuleBasedCollator collator;

  /**
   * This is the String that is being iterated over.
   */
  private String text;

  /**
   * This is the index into the collation decomposition where we are currently scanning.
   */
  private int index;

  /**
   * This is the index into the String where we are currently scanning.
   */
  private int textIndex;

  /**
   * Array containing the collation decomposition of the
   * text given to the constructor.
   */
  private Object[] text_decomposition;

  /**
   * This method initializes a new instance of <code>CollationElementIterator</code>
   * to iterate over the specified <code>String</code> using the rules in the
   * specified <code>RuleBasedCollator</code>.
   *
   * @param collator The <code>RuleBasedCollation</code> used for calculating collation values
   * @param text The <code>String</code> to iterate over.
   */
  CollationElementIterator (RuleBasedCollator collator, String text)
  {
    this.collator = collator;
    
    setText (text);    
  }

  RuleBasedCollator.CollationElement nextBlock()
  {
    if (index >= text_decomposition.length)
      return null;
    
    RuleBasedCollator.CollationElement e =
      (RuleBasedCollator.CollationElement) text_decomposition[index++];
    
    textIndex += e.char_seq.length();

    return e;
  }

  RuleBasedCollator.CollationElement previousBlock()
  {
    if (index == 0)
      return null;
    
    index--;
    RuleBasedCollator.CollationElement e =
      (RuleBasedCollator.CollationElement) text_decomposition[index];

    textIndex -= e.char_seq.length();
    
    return e;
  }

  /**
   * This method returns the collation ordering value of the next character sequence
   * in the string (it may be an extended character following collation rules).
   * This method will return <code>NULLORDER</code> if the
   * end of the string was reached.
   *
   * @return The collation ordering value.
   */
  public int next ()
  {
    RuleBasedCollator.CollationElement e = nextBlock ();

    if (e == null)
      return NULLORDER;
    
    return e.getValue();
  }

  /**
   * This method returns the collation ordering value of the previous character
   * in the string.  This method will return <code>NULLORDER</code> if the
   * beginning of the string was reached.
   *
   * @return The collation ordering value.
   */
  public int previous ()
  {
    RuleBasedCollator.CollationElement e = previousBlock ();

    if (e == null)
      return NULLORDER;
    
    return e.getValue();
  }

  /**
   * This method returns the primary order value for the given collation
   * value.
   *
   * @param value The collation value returned from <code>next()</code> or <code>previous()</code>.
   *
   * @return The primary order value of the specified collation value.  This is the high 16 bits.
   */
  public static final int primaryOrder (int order)
  {
    // From the JDK 1.2 spec.
    return order >>> 16;
  }

  /**
   * This method resets the internal position pointer to read from the
   * beginning of the <code>String again.
   */
  public void reset ()
  {
    index = 0;
    textIndex = 0;
  }

  /**
   * This method returns the secondary order value for the given collation
   * value.
   *
   * @param value The collation value returned from <code>next()</code> or <code>previous()</code>.
   *
   * @return The secondary order value of the specified collation value.  This is the bits 8-15.
   */
  public static final short secondaryOrder (int order)
  {
    // From the JDK 1.2 spec.
    return (short) ((order >>> 8) & 255);
  }

  /**
   * This method returns the tertiary order value for the given collation
   * value.
   *
   * @param value The collation value returned from <code>next()</code> or <code>previous()</code>.
   *
   * @return The tertiary order value of the specified collation value.  This is the low eight bits.
   */
  public static final short tertiaryOrder (int order)
  {
    // From the JDK 1.2 spec.
    return (short) (order & 255);
  }

  /**
   * This method sets the <code>String</code> that it is iterating over
   * to the specified <code>String</code>.
   *
   * @param The new <code>String</code> to iterate over.
   */
  public void setText (String text)
  {
    int idx = 0;

    this.text = text;
    index = 0;

    String work_text = text.intern();

    Vector v = new Vector();
    // Build element collection ordered as they come in "text".
    while (idx < work_text.length())
      {
	String key, key_old;

	try
	  {
	    Object object = null;
	    int p = 1;
	    
	    // IMPROVE: use a TreeMap with a prefix-ordering rule.
	    key_old = key = null;
	    do
	      {
		if (object != null)
		  key_old = key;
		key = work_text.substring (idx, idx+p);
		object = collator.prefix_tree.get (key);
		p++;
	      }
	    while (idx+p <= work_text.length());

	    if (object == null)
	      key = key_old;
	
	    RuleBasedCollator.CollationElement prefix =
	      (RuleBasedCollator.CollationElement)collator.prefix_tree.get (key);

	    if (prefix.expansion != null)
	      {
		work_text = prefix.expansion + work_text.substring (idx+prefix.char_seq.length());
		idx = 0;
		v.add (prefix);
	      }
	    else
	      {
		if (!prefix.ignore)
		  v.add (prefix);
		idx += prefix.char_seq.length ();
	      }
	  }
	catch (NullPointerException _)
	  {
	    RuleBasedCollator.CollationElement e = collator.getDefaultElement(work_text.charAt (idx));
	    
	    v.add (e);
	    idx++;
	  }
      }

    text_decomposition = v.toArray();
  }

  /**
   * This method sets the <code>String</code> that it is iterating over
   * to the <code>String</code> represented by the specified
   * <code>CharacterIterator</code>.
   *
   * @param ci The <code>CharacterIterator</code> containing the new <code>String</code> to iterate over.
   */
  public void setText (CharacterIterator ci)
  {
    StringBuffer sb = new StringBuffer ("");

    // For now assume we read from the beginning of the string.
    char c = ci.first ();
    while (c != CharacterIterator.DONE)
      {
        sb.append (c);
        c = ci.next ();
      }

    setText (sb.toString ());
  }

  /**
   * This method returns the current offset into the <code>String</code>
   * that is being iterated over.
   *
   * @return The iteration index position.
   */
  public int getOffset ()
  {
    return textIndex;
  }

  /**
   * This method sets the iteration index position into the current
   * <code>String</code> to the specified value.  This value must not
   * be negative and must not be greater than the last index position
   * in the <code>String</code>.
   *
   * @param offset The new iteration index position.
   *
   * @exception IllegalArgumentException If the new offset is not valid.
   */
  public void setOffset (int offset)
  {
    if (offset < 0)
      throw new IllegalArgumentException ("Negative offset: " + offset);

    if ((text.length () > 0) && (offset > 0))
      throw new IllegalArgumentException ("Offset too large: " + offset);
    else if (offset > (text.length () - 1))
      throw new IllegalArgumentException ("Offset too large: " + offset);

    textIndex = 0;
    for (int i=0;i<text_decomposition.length;i++)
      {
	RuleBasedCollator.CollationElement e =
	  (RuleBasedCollator.CollationElement) text_decomposition[i];
	int idx = textIndex + e.char_seq.length();
	
	if (idx > offset)
	  break;
	textIndex = idx;
      }
  }

  /**
   * This method returns the maximum length of any expansion sequence that
   * ends with the specified collation order value.  (Whatever that means).
   *
   * @param value The collation order value
   *
   * @param The maximum length of an expansion sequence.
   */
  public int getMaxExpansion (int value)
  {
    return 1;
  }
}

--------------090506030504000506010208
Content-Type: text/plain;
 name="patch_rule"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch_rule"

--- classpath-public/java/text/RuleBasedCollator.java	2003-11-19 20:44:22.000000000 +0100
+++ classpath/java/text/RuleBasedCollator.java	2003-12-13 19:39:31.000000000 +0100
@@ -39,6 +39,9 @@
 package java.text;
 
 import java.util.Vector;
+import java.util.Enumeration;
+import java.util.HashMap;
+import java.util.Comparator;
 
 /* Written using "Java Class Libraries", 2nd edition, plus online
  * API docs for JDK 1.2 from http://www.javasoft.com.
@@ -60,7 +63,10 @@
  * <li> Reset: '&amp;' : <text>
  * </ul>
  * The modifier character indicates that accents sort backward as is the
- * case with French.  The relational operators specify how the text 
+ * case with French.  The modifier applies to all rules <b>after</b>
+ * the modifier but before the next primary sequence. If placed at the end
+ * of the sequence if applies to all unknown accented character.
+ * The relational operators specify how the text 
  * argument relates to the previous term.  The relation characters have
  * the following meanings:
  * <ul>
@@ -111,6 +117,9 @@
  * anywhere in the previous rule string segment so the rule following the
  * reset rule cannot be inserted.
  * <p>
+ * "&lt; a &amp; A @ &lt e &amp; E &lt f&amp; F" - This sequence is equivalent to the following
+ * "&lt; a &amp; A &lt E &amp; e &lt f &amp; F".
+ * <p>
  * For a description of the various comparison strength types, see the
  * documentation for the <code>Collator</code> class.
  * <p>
@@ -132,270 +141,518 @@
  *
  * @author Aaron M. Renn <arenn@urbanophile.com>
  * @author Tom Tromey <tromey@cygnus.com>
- * @date March 25, 1999
+ * @author Guilhem Lavaux <guilhem@kaffe.org>
+ * @date August 17, 2003
  */
 public class RuleBasedCollator extends Collator
 {
-  final class CollationElement
+  class CollationElement
   {
     String char_seq;
     int primary;
     short secondary;
     short tertiary;
+    short equality;
+    boolean ignore;
+    String expansion;
 
-    CollationElement (String char_seq, int primary, short secondary, short tertiary)
+    CollationElement(String char_seq, int primary, short secondary, short tertiary,
+		     short equality, String expansion)
     {
       this.char_seq = char_seq;
       this.primary = primary;
       this.secondary = secondary;
       this.tertiary = tertiary;
+      this.equality = equality;
+      this.ignore = false;
+      this.expansion = expansion;
+    }
+
+    CollationElement(String char_seq)
+    {
+      this.char_seq = char_seq;
+      this.ignore = true;
+    }
+
+    final int getValue()
+    {
+      return (primary << 16) + (secondary << 8) + tertiary;
     }
 
   } // inner class CollationElement
 
-  /**
-   * This the the original rule string.
-   */
-  private String rules;
+  class CollationBlock
+  {
+    int value;
+    String textBlock;
+  }
 
-  /**
-   * This is the table of collation element values
-   */
-  private Object[] ce_table;
-  
-  /**
-   * This method initializes a new instance of <code>RuleBasedCollator</code>
-   * with the specified collation rules.  Note that an application normally
-   * obtains an instance of <code>RuleBasedCollator</code> by calling the
-   * <code>getInstance</code> method of <code>Collator</code>.  That method
-   * automatically loads the proper set of rules for the desired locale.
-   *
-   * @param rules The collation rule string.
-   *
-   * @exception ParseException If the rule string contains syntax errors.
-   */
-  public RuleBasedCollator (String rules) throws ParseException
+  class CollationSorter
   {
-    if (rules.equals (""))
-      throw new ParseException ("empty rule set", 0);
+    static final int GREATERP = 0;
+    static final int GREATERS = 1;
+    static final int GREATERT = 2;
+    static final int EQUAL = 3;
+    static final int RESET = 4;
+    static final int IGNORE = 5;
+    static final int INVERSE_SECONDARY = 6;
     
-    this.rules = rules;
-    Vector vec = new Vector();
-    boolean ignore_chars = true;
-    int primary_seq = 0;
-    short secondary_seq = 0;
-    short tertiary_seq = 0;
-    StringBuffer argument = new StringBuffer();
-    int len = rules.length();
+    int comparisonType;
+    String textElement;
+    int hashText;
+    int offset;
+
+    String expansionOrdering;
+  }
+
+  static int findPrefixLength(String prefix, String s)
+  {
+    int i;
+
+    for (i=0;i<prefix.length() && i < s.length();i++)
+      {
+	if (prefix.charAt(i) != s.charAt(i))
+	  return i;
+      }
+    return i;
+  }
+
+  void mergeRules(int offset, String starter, Vector main, Vector patch)
+    throws ParseException 
+  {
+    Enumeration elements = main.elements();
+    int insertion_point = -1;
+    int max_length = 0;
     
-    for (int index = 0; index < len; ++index)
+    /* We must check that no rules conflict with another already present. If it
+     * is the case delete the old rule. 
+     */
+    
+    /* For the moment good old O(N^2) algorithm.
+     */
+    for (int i=0;i<patch.size();i++)
       {
-	char c = rules.charAt (index);
+	int j = 0;
+	
+	while (j < main.size())
+	  {
+	    CollationSorter rule1 = (CollationSorter)patch.elementAt (i);
+	    CollationSorter rule2 = (CollationSorter)main.elementAt (j);
+	    
+	    if (rule1.textElement.equals (rule2.textElement))
+	      main.removeElementAt (j);
+	    else
+	      j++;
+	  }
+      }
 
-	// Just skip whitespace.
-	if (Character.isWhitespace (c))
-	  continue;
+    // Find the insertion point... O(N)
+    for (int i=0;i<main.size();i++)
+      {
+	CollationSorter sorter = (CollationSorter)main.elementAt(i);
+	int length = findPrefixLength (starter, sorter.textElement);
+		
+	if (length > max_length)
+	  {
+	    max_length = length;
+	    insertion_point = i+1;
+	  }
+      }
 
-        // Primary difference
-        if (c == '<')
-          {
-            ignore_chars = false;
-            CollationElement e = new CollationElement (argument.toString(), primary_seq,
-                                                       secondary_seq,
-                                                       tertiary_seq);
-            secondary_seq = 0;
-            tertiary_seq = 0;
-            ++primary_seq;
-
-            vec.add (e);
-            argument.setLength (0);
-            continue;
-          }
+    if (insertion_point < 0)
+      throw new ParseException("no insertion point found for " + starter, offset);
 
-        // Secondary difference
-        if (c == ';')
-          {
-            if (primary_seq == 0)
-              throw new ParseException (rules, index);
+    if (max_length < starter.length())
+      {
+	/*
+	 * We need to expand the first entry. It must be sorted
+	 * like if it was the reference key itself (like the spec
+	 * said. So the first entry is special: the element is
+	 * replaced by the specified text element for the sorting.
+	 * This text replace the old one for comparisons. However
+	 * to preserve the behaviour we replace the first key (corresponding
+	 * to the found prefix) by a new code rightly ordered in the
+	 * sequence. The rest of the subsequence must be appended
+	 * to the end of the sequence.
+	 */
+	CollationSorter sorter = (CollationSorter)patch.elementAt (0);
+	CollationSorter expansionPrefix = (CollationSorter)main.elementAt (insertion_point-1);
+	
+	sorter.expansionOrdering = starter.substring (max_length); // Skip the first good prefix element
+	
+	main.insertElementAt (sorter, insertion_point);
+	
+	/*
+	 * This is a new set of rules. Append to the list.
+	 */
+	patch.removeElementAt (0);
+	insertion_point = main.size();
+      }
 
-            CollationElement e = new CollationElement (argument.toString(), primary_seq,
-                                                       secondary_seq,
-                                                       tertiary_seq);
-            ++secondary_seq;
-            tertiary_seq = 0;
-
-            vec.add (e);
-            argument.setLength (0);
-            continue;
-          }
+    // Now insert all elements of patch at the insertion point.
+    for (int i=0;i<patch.size();i++)
+      main.insertElementAt (patch.elementAt (i), i+insertion_point);
 
-        // Tertiary difference
-        if (c == ',')
-          {
-            if (primary_seq == 0)
-              throw new ParseException (rules, index);
+  }
 
-            CollationElement e = new CollationElement (argument.toString(), primary_seq,
-                                                       secondary_seq,
-                                                       tertiary_seq);
-            ++tertiary_seq;
-
-            vec.add (e);
-            argument.setLength (0);
-            continue;
-          }
+  int subParseString(boolean stop_on_reset, Vector v, int base_offset, String rules) throws ParseException
+  {
+    boolean ignoreChars = (base_offset == 0);
+    int operator = -1;
+    StringBuffer sb = new StringBuffer ("");
+    boolean doubleQuote = false;
+    boolean eatingChars = false;
+    boolean nextIsModifier = false;
+    boolean isModifier = false;
+    int i;
+    
+main_parse_loop:
+    for (i=0;i<rules.length();i++)
+      {
+	char c = rules.charAt (i);
+	int type = -1;
+	
+	if (!eatingChars &&
+	    ((c >= 0x09 && c <= 0x0D) || (c == 0x20)))
+	      continue;
 
-        // Is equal to
-        if (c == '=')
-          {
-            if (primary_seq == 0)
-              throw new ParseException (rules, index);
+	isModifier = nextIsModifier;
+	nextIsModifier = false;
 
-            CollationElement e = new CollationElement (argument.toString(), primary_seq,
-                                                       secondary_seq,
-                                                       tertiary_seq);
-            vec.add (e);
-            argument.setLength (0);
-            continue;
-          }
+	if (eatingChars && c != '\'')
+	  {
+	    doubleQuote = false;
+	    sb.append (c);
+	    continue;
+	  }
+	if (doubleQuote && eatingChars)
+	  {
+	    sb.append (c);
+	    doubleQuote = false;
+	    continue;
+	  }
 
-        // Sort accents backwards
-        if (c == '@')
-          {
-            throw new ParseException("French style accents not implemented yet", 0);
-          }
+	switch (c) {
+	case '!':
+	  throw new ParseException ("Modifier '!' is not yet supported by Classpath", i+base_offset);
+	case '<':
+	  ignoreChars = false;
+	  type = CollationSorter.GREATERP;
+	  break;
+	case ';':
+	  if (!ignoreChars)
+	    type = CollationSorter.GREATERS;
+	  else
+	    type = CollationSorter.IGNORE;
+	  break;
+	case ',':
+	  if (!ignoreChars)
+	    type = CollationSorter.GREATERT;
+	  else
+	    type = CollationSorter.IGNORE;
+	  break;
+	case '=':
+	  if (!ignoreChars)
+	    type = CollationSorter.EQUAL;
+	  else
+	    type = CollationSorter.IGNORE;
+	  break;
+	case '\'':
+	  eatingChars = !eatingChars;
+	  doubleQuote = true;
+	  break;
+	case '@':
+	  if (ignoreChars)
+	    throw new ParseException ("comparison list has not yet been started. You may only use"
+				      + "(<,;=&)", i+base_offset);
+	  // Inverse the order of secondaries from now on.
+	  nextIsModifier = true;
+	  type = CollationSorter.INVERSE_SECONDARY;
+	  break;
+	case '&':
+	  type = CollationSorter.RESET;
+	  if (stop_on_reset)
+	    break main_parse_loop;
+	  break;
+	default:
+	  if (operator < 0)
+	    throw new ParseException ("operator missing at " + (i+base_offset), i+base_offset);
+	  if (!eatingChars &&
+	      ((c >= 0x21 && c <= 0x2F) || (c >= 0x3A && c <= 0x40) || (c >= 0x5B && c <= 0x60) ||
+	       (c >= 0x7B && c <= 0x7E)))
+	    throw new ParseException ("unquoted punctuation character '"+c+"'", i+base_offset);
+
+	  //type = ignoreChars ? CollationSorter.IGNORE : -1;
+	  sb.append(c);
+	  break;
+	}
 
-        // Reset command
-        if (c == '&')
-          {
-            throw new ParseException("Reset not implemented yet", 0);
-          }
+	if (type  < 0)
+	  continue;
 
-        // See if we are still reading characters to skip
-        if (ignore_chars == true)
-          {
-            CollationElement e = new CollationElement (c + "", 0, (short)0, 
-                                                       (short)0);
-            vec.add(e);
-            continue;
-          }
+	if (operator < 0)
+	  {
+	    operator = type;
+	    continue;
+	  }
+
+	if (sb.length() == 0 && !isModifier)
+	  throw new ParseException ("text element empty at " + (i+base_offset), i+base_offset);
+
+	if (operator == CollationSorter.RESET)
+	  {
+	    /* Reposition in the sorting list at the position
+	     * indicated by the text element.
+	     */
+	    String subrules = rules.substring (i);
+	    Vector sorted_rules = new Vector();
+	    int idx;
+
+	    // Parse the subrules but do not iterate through all
+	    // sublist. This is the priviledge of the first call.
+	    idx = subParseString (true, sorted_rules, base_offset+i, subrules);
+    
+	    // Merge new parsed rules into the list.
+	    mergeRules (base_offset+i, sb.toString(), v, sorted_rules);
+	    sb.setLength(0);
+	    
+	    // Reset state to none.
+	    operator = -1;
+	    type = -1;
+	    // We have found a new subrule at 'idx' but it has not been parsed.
+	    if (idx >= 0)
+	      {
+		i += idx-1;
+		continue main_parse_loop;
+	      }
+	    else
+		// No more rules.
+		break main_parse_loop;
+	  }
 
-        argument.append (c);
+	CollationSorter sorter = new CollationSorter();
+	
+	sorter.comparisonType = operator;
+	sorter.textElement = sb.toString();
+	sorter.hashText = sorter.textElement.hashCode();
+	sorter.offset = base_offset+rules.length();
+	sb.setLength(0);
+
+	v.add(sorter);
+	operator = type;
       }
 
-    if (argument.length() > 0)
+    if (operator >= 0)
       {
-	CollationElement e = new CollationElement (argument.toString(), primary_seq,
-						   secondary_seq, tertiary_seq);
-	vec.add (e);
+	CollationSorter sorter = new CollationSorter();
+	int pos = rules.length() + base_offset;
+
+	if ((sb.length() != 0 && nextIsModifier) ||
+	    (sb.length() == 0 && !nextIsModifier && !eatingChars))
+	  throw new ParseException ("text element empty at " + pos, pos);
+
+	sorter.comparisonType = operator;
+	sorter.textElement = sb.toString();
+ 	sorter.hashText = sorter.textElement.hashCode();
+	sorter.offset = base_offset+pos;
+	v.add (sorter);
       }
 
-    ce_table = vec.toArray();
+    if (i == rules.length())
+      return -1;
+    else
+      return i;
   }
 
-  /**
-   * This method creates a copy of this object.
-   *
-   * @return A copy of this object.
-   */
-  public Object clone()
+  private Vector parseString(String rules) throws ParseException
   {
-    RuleBasedCollator c = (RuleBasedCollator) super.clone ();
-    return c;
+    Vector v = new Vector();
+
+    // result of the first subParseString is not certain (may be -1 or a positive integer). But we
+    // do not care.
+    subParseString (false, v, 0, rules);
+    
+    return v;
   }
 
   /**
-   * This method returns an integer which indicates whether the first
-   * specified <code>String</code> is less than, greater than, or equal to
-   * the second.  The value depends not only on the collation rules in
-   * effect, but also the strength and decomposition settings of this object.
-   *
-   * @param source The first <code>String</code> to compare.
-   * @param target A second <code>String</code> to compare to the first.
-   *
-   * @return A negative integer if source &lt; target, a positive integer
-   * if source &gt; target, or 0 if source == target.
+   * This the the original rule string.
    */
-  public int compare (String source, String target)
-  {
-    CollationElementIterator cs = getCollationElementIterator (source);
-    CollationElementIterator ct = getCollationElementIterator (target);
+  private String rules;
+
+  /**
+   * This is the table of collation element values
+   */
+  private Object[] ce_table;
 
-    while (true)
+  /**
+   * Quick-prefix finder.
+   */
+  HashMap prefix_tree;
+
+  /**
+   * This is the value of the last sequence entered into
+   * <code>ce_table</code>. It is used to compute the
+   * ordering value of unspecified character.
+   */
+  private int last_primary_value;
+
+  /**
+   * This variable is true if accents need to be sorted
+   * in the other direction.
+   */
+  private boolean inverseAccentComparison;
+
+  private void buildCollationVector(Vector parsedElements) throws ParseException
+  {
+    int primary_seq = 0;
+    short secondary_seq = 0;
+    short tertiary_seq = 0;
+    short equality_seq = 0;
+    boolean inverseComparisons = false;
+    final boolean DECREASING = false;
+    final boolean INCREASING = true;
+    boolean secondaryType = INCREASING;
+    Vector v = new Vector();
+
+    // elts is completely sorted.
+element_loop:
+    for (int i=0;i<parsedElements.size();i++)
       {
-	int os = cs.next();
-	int ot = ct.next();
+	CollationSorter elt = (CollationSorter)parsedElements.elementAt (i);
+	boolean ignoreChar = false;
 
-	// Check for end of string
-	if (os == CollationElementIterator.NULLORDER
-	    && ot == CollationElementIterator.NULLORDER)
+	switch (elt.comparisonType)
 	  {
-	    // Source and target string are equal.
-	    return 0;
+	  case CollationSorter.GREATERP:
+	    primary_seq++;
+	    if (inverseComparisons)
+	      {
+		secondary_seq = Short.MAX_VALUE;
+		secondaryType = DECREASING;
+	      }
+	    else
+	      {
+		secondary_seq = 0;
+		secondaryType = INCREASING;
+	      }
+	    tertiary_seq = 0;
+	    equality_seq = 0;
+	    inverseComparisons = false;
+	    break;
+	  case CollationSorter.GREATERS:
+	    if (secondaryType == DECREASING)
+	      secondary_seq--;
+	    else
+	      secondary_seq++;
+	    tertiary_seq = 0;
+	    equality_seq = 0;
+	    break;
+	  case CollationSorter.INVERSE_SECONDARY:
+	    inverseComparisons = true;
+	    continue element_loop;
+	  case CollationSorter.GREATERT:
+	    tertiary_seq++;
+	    equality_seq = 0;
+	    break;
+	  case CollationSorter.IGNORE:
+	    ignoreChar = true;
+	  case CollationSorter.EQUAL:
+	    equality_seq++;
+	    break;
+	  case CollationSorter.RESET:
+	    throw new ParseException ("Invalid reached state 'RESET'. Internal error", elt.offset);
+	  default:
+	    throw new ParseException ("Invalid unknown state '"+elt.comparisonType+"'", elt.offset);
 	  }
-	else if (os == CollationElementIterator.NULLORDER)
-	  {
-	    // Source string is shorter, so return "less than".
-	    return -1;
-	  }
-	else if (ot == CollationElementIterator.NULLORDER)
+
+	CollationElement e;
+
+	if (!ignoreChar)
 	  {
-	    // Target string is shorter, so return "greater than".
-	    return 1;
+	    e = new CollationElement (elt.textElement, primary_seq,
+				      secondary_seq, tertiary_seq,
+				      equality_seq, elt.expansionOrdering);
 	  }
+	else
+	  e = new CollationElement (elt.textElement);
 
-        // We know chars are totally equal, so skip
-        if (os == ot)
-          continue;
+	v.add(e);
+      }
 
-        // Check for primary strength differences
-        int prim1 = cs.primaryOrder (os); 
-        int prim2 = ct.primaryOrder (ot); 
+    this.inverseAccentComparison = inverseComparisons; 
 
-        if (prim1 < prim2)
-          return -1;
-        else if (prim1 > prim2)
-          return 1;
-        else if (getStrength() == PRIMARY)
-          continue;
+    ce_table = v.toArray();
 
-        // Check for secondary strength differences
-        int sec1 = cs.secondaryOrder (os);
-        int sec2 = ct.secondaryOrder (ot);
+    last_primary_value = primary_seq+1;
+  }
 
-        if (sec1 < sec2)
-          return -1;
-        else if (sec1 > sec2)
-          return 1;
-        else if (getStrength() == SECONDARY)
-          continue;
+  /**
+   * Build a tree where all keys are the texts of collation elements and data is
+   * the collation element itself. The tree is used when extracting all prefix
+   * for a given text.
+   */
+  private void buildPrefixAccess()
+  {
+    prefix_tree = new HashMap();
 
-        // Check for tertiary differences
-        int tert1 = cs.tertiaryOrder (os);
-        int tert2 = ct.tertiaryOrder (ot);
+    for (int i=0;i<ce_table.length;i++)
+      {
+	CollationElement e = (CollationElement)ce_table[i];
 
-        if (tert1 < tert2)
-          return -1;
-        else if (tert1 > tert2)
-          return 1;
+	prefix_tree.put (e.char_seq, e);
       }
   }
 
   /**
-   * This method tests this object for equality against the specified 
-   * object.  This will be true if and only if the specified object is
-   * another reference to this object.
+   * This method initializes a new instance of <code>RuleBasedCollator</code>
+   * with the specified collation rules.  Note that an application normally
+   * obtains an instance of <code>RuleBasedCollator</code> by calling the
+   * <code>getInstance</code> method of <code>Collator</code>.  That method
+   * automatically loads the proper set of rules for the desired locale.
    *
-   * @param obj The <code>Object</code> to compare against this object.
+   * @param rules The collation rule string.
    *
-   * @return <code>true</code> if the specified object is equal to this object, <code>false</code> otherwise.
+   * @exception ParseException If the rule string contains syntax errors.
    */
-  public boolean equals (Object obj)
+  public RuleBasedCollator(String rules) throws ParseException
   {
-    if (obj == this)
-      return true;
+    this.rules = rules;
+
+    if (rules.equals (""))
+      throw new ParseException ("Empty rule set", 0);
 
-    return false;
+    buildCollationVector (parseString (rules));
+    buildPrefixAccess();
+  }
+
+  /**
+   * This method returns a <code>String</code> containing the collation rules
+   * for this object.
+   *
+   * @return The collation rules for this object.
+   */
+  public String getRules()
+  {
+    return(rules);
+  }
+
+  /**
+   * This method builds a default collation element without invoking
+   * the database created from the rules passed to the constructor.
+   */
+  CollationElement getDefaultElement(char c)
+  {
+    int v;
+
+    // Preliminary support for generic accent sorting inversion (I don't know if all
+    // characters in the range should be sorted backward). This is the place
+    // to fix this if needed.
+    if (inverseAccentComparison && (c >= 0x02B9 && c <= 0x0361))
+      v = 0x0361 - ((int)c - 0x02B9);
+    else
+      v = (short)c;
+    return new CollationElement (""+c, last_primary_value + v, (short)0, (short)0, (short) 0, null);
   }
 
   /**
@@ -403,52 +660,146 @@
    * for the specified <code>String</code> under the collation rules for this
    * object.
    *
-   * @param source The <code>String</code> to return the <code>CollationElementIterator</code> instance for.
+   * @param str The <code>String</code> to return the <code>CollationElementIterator</code> instance for.
    *
    * @return A <code>CollationElementIterator</code> for the specified <code>String</code>.
    */
-  public CollationElementIterator getCollationElementIterator (String source)
+  public CollationElementIterator getCollationElementIterator(String str)
   {
-    return new CollationElementIterator (source, this);
-  }
+    return new CollationElementIterator (this, str);
+  }  
 
   /**
    * This method returns an instance of <code>CollationElementIterator</code>
    * for the <code>String</code> represented by the specified
    * <code>CharacterIterator</code>.
    *
-   * @param source The <code>CharacterIterator</code> with the desired <code>String</code>.
+   * @param ci The <code>CharacterIterator</code> with the desired <code>String</code>.
    *
    * @return A <code>CollationElementIterator</code> for the specified <code>String</code>.
    */
-  public CollationElementIterator getCollationElementIterator (CharacterIterator source)
+  public CollationElementIterator getCollationElementIterator(CharacterIterator ci)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuffer sb = new StringBuffer("");
 
     // Right now we assume that we will read from the beginning of the string.
-    for (char c = source.first(); c != CharacterIterator.DONE; c = source.next()) 
+    char c = ci.first();
+    while (c != CharacterIterator.DONE) 
       {
-        sb.append (c);
+        sb.append(c);
+        c = ci.next();
       }
 
     return getCollationElementIterator (sb.toString());
   }
 
   /**
+   * This method returns an integer which indicates whether the first
+   * specified <code>String</code> is less than, greater than, or equal to
+   * the second.  The value depends not only on the collation rules in
+   * effect, but also the strength and decomposition settings of this object.
+   *
+   * @param s1 The first <code>String</code> to compare.
+   * @param s2 A second <code>String</code> to compare to the first.
+   *
+   * @return A negative integer if s1 &lt; s2, a positive integer
+   * if s1 &gt; s2, or 0 if s1 == s2.
+   */
+  public int compare(String s1, String s2)
+  {
+    CollationElementIterator cei1 = getCollationElementIterator (s1);
+    CollationElementIterator cei2 = getCollationElementIterator (s2);
+
+    for(;;)
+      {
+        CollationElement ord1block = cei1.nextBlock(); 
+        CollationElement ord2block = cei2.nextBlock(); 
+	int ord1;
+	int ord2;
+
+	// Hehehe. What we would do not to use if.
+	try
+	  {
+	    ord1 = ord1block.getValue();
+	  }
+	catch (NullPointerException _)
+	  {
+	    if (ord2block == null)
+	      return 0;
+	    return -1;
+	  }
+
+	try
+	  {
+	    ord2 = ord2block.getValue();
+	  }
+	catch (NullPointerException _)
+	  {
+	    return 1;
+	  }
+	
+       // We know chars are totally equal, so skip
+        if (ord1 == ord2)
+	  {
+	    if (getStrength() == IDENTICAL)
+	      if (!ord1block.char_seq.equals (ord2block.char_seq))
+		return ord1block.char_seq.compareTo (ord2block.char_seq);
+	    continue;
+	  }
+
+        // Check for primary strength differences
+        int prim1 = cei1.primaryOrder (ord1); 
+        int prim2 = cei2.primaryOrder (ord2); 
+
+        if (prim1 < prim2)
+          return(-1);
+        else if (prim1 > prim2)
+          return(1);
+        else if (getStrength() == PRIMARY)
+          continue;
+
+        // Check for secondary strength differences
+        int sec1 = cei1.secondaryOrder (ord1);
+        int sec2 = cei2.secondaryOrder (ord2);
+
+        if (sec1 < sec2)
+          return(-1);
+        else if (sec1 > sec2)
+          return(1);
+        else if (getStrength() == SECONDARY)
+          continue;
+
+        // Check for tertiary differences
+        int tert1 = cei1.tertiaryOrder (ord1);
+        int tert2 = cei2.tertiaryOrder (ord2);
+
+        if (tert1 < tert2)
+          return(-1);
+        else if (tert1 > tert2)
+          return(1);
+	else if (getStrength() == TERTIARY)
+	  continue;
+
+	// Apparently JDK does this (at least for my test case).
+	return ord1block.char_seq.compareTo (ord2block.char_seq);    
+      }
+  }
+
+  /**
    * This method returns an instance of <code>CollationKey</code> for the
    * specified <code>String</code>.  The object returned will have a
    * more efficient mechanism for its comparison function that could
    * provide speed benefits if multiple comparisons are performed, such
    * as during a sort.
    *
-   * @param source The <code>String</code> to create a <code>CollationKey</code> for.
+   * @param str The <code>String</code> to create a <code>CollationKey</code> for.
    *
    * @return A <code>CollationKey</code> for the specified <code>String</code>.
    */
-  public CollationKey getCollationKey (String source)
+  public CollationKey getCollationKey(String str)
   {
-    CollationElementIterator cei = getCollationElementIterator (source);
-    Vector vec = new Vector (25);
+    CollationElementIterator cei = getCollationElementIterator (str);
+    Vector vect = new Vector(25);
 
     int ord = cei.next();
     cei.reset(); //set to start of string
@@ -468,34 +819,40 @@
                break;
           }
 
-        vec.add (new Integer (ord)); 
+        vect.add (new Integer (ord)); 
 	ord = cei.next(); //increment to next key
       }
 
-    Object[] objarr = vec.toArray();
-    byte[] key = new byte [objarr.length * 4];
+    Object[] objarr = vect.toArray();
+    byte[] key = new byte[objarr.length * 4];
 
     for (int i = 0; i < objarr.length; i++)
       {
-        int j = ((Integer) objarr [i]).intValue();
-        key [i * 4] = (byte) ((j & 0xFF000000) >> 24);
-        key [i * 4 + 1] = (byte) ((j & 0x00FF0000) >> 16);
-        key [i * 4 + 2] = (byte) ((j & 0x0000FF00) >> 8);
-        key [i * 4 + 3] = (byte) (j & 0x000000FF);
+        int j = ((Integer)objarr[i]).intValue();
+        key [i * 4] = (byte)((j & 0xFF000000) >> 24);
+        key [i * 4 + 1] = (byte)((j & 0x00FF0000) >> 16);
+        key [i * 4 + 2] = (byte)((j & 0x0000FF00) >> 8);
+        key [i * 4 + 3] = (byte)(j & 0x000000FF);
       }
 
-    return new CollationKey (this, source, key);
+    return new CollationKey (this, str, key);
   }
 
   /**
-   * This method returns a <code>String</code> containing the collation rules
-   * for this object.
+   * This method tests this object for equality against the specified 
+   * object.  This will be true if and only if the specified object is
+   * another reference to this object.
    *
-   * @return The collation rules for this object.
+   * @param obj The <code>Object</code> to compare against this object.
+   *
+   * @return <code>true</code> if the specified object is equal to this object, <code>false</code> otherwise.
    */
-  public String getRules()
+  public boolean equals(Object obj)
   {
-    return rules;
+    if (obj == this)
+      return true;
+    else
+      return false;
   }
 
   /**
@@ -505,31 +862,16 @@
    */
   public int hashCode()
   {
-    return System.identityHashCode (this);
+    return System.identityHashCode(this);
   }
 
   /**
-   * This method calculates the collation element value for the specified
-   * character(s).
+   * This method creates a copy of this object.
+   *
+   * @return A copy of this object.
    */
-  int getCollationElementValue (String source)
+  public Object clone()
   {
-    CollationElement e = null;
-
-    // The table is sorted.  Change to a binary search later.
-    for (int i = 0; i < ce_table.length; i++) 
-      if (((CollationElement) ce_table [i]).char_seq.equals (source))
-        {
-          e = (CollationElement) ce_table [i];
-          break;
-        }
-
-    if (e == null)
-      e = new CollationElement (source, 0xFFFF, (short)0xFF, (short)0xFF);
-
-    int retval = (e.primary << 16) + (e.secondary << 8) + e.tertiary;
-
-    return retval;
+    return super.clone();
   }
-
-} // class RuleBaseCollator
+}
--- classpath-public/java/text/CollationElementIterator.java	2003-11-19 20:44:22.000000000 +0100
+++ classpath/java/text/CollationElementIterator.java	2003-12-07 19:47:47.000000000 +0100
@@ -38,6 +38,11 @@
 
 package java.text;
 
+import java.util.Vector;
+import java.util.NoSuchElementException;
+import java.util.Map;
+import java.util.SortedMap;
+
 /* Written using "Java Class Libraries", 2nd edition, plus online
  * API docs for JDK 1.2 from http://www.javasoft.com.
  * Status: Believed complete and correct to JDK 1.1.
@@ -73,11 +78,22 @@
   private String text;
 
   /**
-   * This is the index into the String where we are currently scanning.
+   * This is the index into the collation decomposition where we are currently scanning.
    */
   private int index;
 
   /**
+   * This is the index into the String where we are currently scanning.
+   */
+  private int textIndex;
+
+  /**
+   * Array containing the collation decomposition of the
+   * text given to the constructor.
+   */
+  private Object[] text_decomposition;
+
+  /**
    * This method initializes a new instance of <code>CollationElementIterator</code>
    * to iterate over the specified <code>String</code> using the rules in the
    * specified <code>RuleBasedCollator</code>.
@@ -85,27 +101,73 @@
    * @param collator The <code>RuleBasedCollation</code> used for calculating collation values
    * @param text The <code>String</code> to iterate over.
    */
-  CollationElementIterator (String text, RuleBasedCollator collator)
+  CollationElementIterator (RuleBasedCollator collator, String text)
   {
-    setText (text);
     this.collator = collator;
+    
+    setText (text);    
+  }
+
+  RuleBasedCollator.CollationElement nextBlock()
+  {
+    if (index >= text_decomposition.length)
+      return null;
+    
+    RuleBasedCollator.CollationElement e =
+      (RuleBasedCollator.CollationElement) text_decomposition[index++];
+    
+    textIndex += e.char_seq.length();
+
+    return e;
+  }
+
+  RuleBasedCollator.CollationElement previousBlock()
+  {
+    if (index == 0)
+      return null;
+    
+    index--;
+    RuleBasedCollator.CollationElement e =
+      (RuleBasedCollator.CollationElement) text_decomposition[index];
+
+    textIndex -= e.char_seq.length();
+    
+    return e;
   }
 
   /**
-   * This method returns the collation ordering value of the next character
-   * in the string.  This method will return <code>NULLORDER</code> if the
+   * This method returns the collation ordering value of the next character sequence
+   * in the string (it may be an extended character following collation rules).
+   * This method will return <code>NULLORDER</code> if the
    * end of the string was reached.
    *
    * @return The collation ordering value.
    */
-  public int next()
+  public int next ()
   {
-    if (index == text.length())
+    RuleBasedCollator.CollationElement e = nextBlock ();
+
+    if (e == null)
       return NULLORDER;
+    
+    return e.getValue();
+  }
+
+  /**
+   * This method returns the collation ordering value of the previous character
+   * in the string.  This method will return <code>NULLORDER</code> if the
+   * beginning of the string was reached.
+   *
+   * @return The collation ordering value.
+   */
+  public int previous ()
+  {
+    RuleBasedCollator.CollationElement e = previousBlock ();
 
-    String s = text.charAt (index) + "";
-    index++;
-    return collator.getCollationElementValue (s);
+    if (e == null)
+      return NULLORDER;
+    
+    return e.getValue();
   }
 
   /**
@@ -126,9 +188,10 @@
    * This method resets the internal position pointer to read from the
    * beginning of the <code>String again.
    */
-  public void reset()
+  public void reset ()
   {
     index = 0;
+    textIndex = 0;
   }
 
   /**
@@ -163,14 +226,69 @@
    * This method sets the <code>String</code> that it is iterating over
    * to the specified <code>String</code>.
    *
-   * @param text The new <code>String</code> to iterate over.
-   *
-   * @since 1.2
+   * @param The new <code>String</code> to iterate over.
    */
   public void setText (String text)
   {
+    int idx = 0;
+
     this.text = text;
     index = 0;
+
+    String work_text = text.intern();
+
+    Vector v = new Vector();
+    // Build element collection ordered as they come in "text".
+    while (idx < work_text.length())
+      {
+	String key, key_old;
+
+	try
+	  {
+	    Object object = null;
+	    int p = 1;
+	    
+	    // IMPROVE: use a TreeMap with a prefix-ordering rule.
+	    key_old = key = null;
+	    do
+	      {
+		if (object != null)
+		  key_old = key;
+		key = work_text.substring (idx, idx+p);
+		object = collator.prefix_tree.get (key);
+		p++;
+	      }
+	    while (idx+p <= work_text.length());
+
+	    if (object == null)
+	      key = key_old;
+	
+	    RuleBasedCollator.CollationElement prefix =
+	      (RuleBasedCollator.CollationElement)collator.prefix_tree.get (key);
+
+	    if (prefix.expansion != null)
+	      {
+		work_text = prefix.expansion + work_text.substring (idx+prefix.char_seq.length());
+		idx = 0;
+		v.add (prefix);
+	      }
+	    else
+	      {
+		if (!prefix.ignore)
+		  v.add (prefix);
+		idx += prefix.char_seq.length ();
+	      }
+	  }
+	catch (NullPointerException _)
+	  {
+	    RuleBasedCollator.CollationElement e = collator.getDefaultElement(work_text.charAt (idx));
+	    
+	    v.add (e);
+	    idx++;
+	  }
+      }
+
+    text_decomposition = v.toArray();
   }
 
   /**
@@ -182,17 +300,17 @@
    */
   public void setText (CharacterIterator ci)
   {
-    // For now assume we read from the beginning of the string.
-    char c = ci.first();
     StringBuffer sb = new StringBuffer ("");
 
+    // For now assume we read from the beginning of the string.
+    char c = ci.first ();
     while (c != CharacterIterator.DONE)
       {
         sb.append (c);
-        c = ci.next();
+        c = ci.next ();
       }
 
-    setText (sb.toString());
+    setText (sb.toString ());
   }
 
   /**
@@ -200,12 +318,10 @@
    * that is being iterated over.
    *
    * @return The iteration index position.
-   *
-   * @since 1.2
    */
-  public int getOffset()
+  public int getOffset ()
   {
-    return index;
+    return textIndex;
   }
 
   /**
@@ -228,8 +344,18 @@
     else if (offset > (text.length () - 1))
       throw new IllegalArgumentException ("Offset too large: " + offset);
 
-    index = offset;
-  }    
+    textIndex = 0;
+    for (int i=0;i<text_decomposition.length;i++)
+      {
+	RuleBasedCollator.CollationElement e =
+	  (RuleBasedCollator.CollationElement) text_decomposition[i];
+	int idx = textIndex + e.char_seq.length();
+	
+	if (idx > offset)
+	  break;
+	textIndex = idx;
+      }
+  }
 
   /**
    * This method returns the maximum length of any expansion sequence that
@@ -241,26 +367,6 @@
    */
   public int getMaxExpansion (int value)
   {
-    //************ Implement me!!!!!!!!!
-    return 5;
+    return 1;
   }
-
-  /**
-   * This method returns the collation ordering value of the previous character
-   * in the string.  This method will return <code>NULLORDER</code> if the
-   * beginning of the string was reached.
-   *
-   * @return The collation ordering value.
-   */
-  public int previous()
-  {
-    --index;
-    if (index < 0)
-      return NULLORDER;
-
-    String s = text.charAt (index) + "";
-    return collator.getCollationElementValue (s);
-  }
-
-} // class CollationElementIterator
-
+}

--------------090506030504000506010208--

--------------enig3D3CB7E0FFBEC88B7CDB1841
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/22EXWRk4qbNiTwgRAngIAKCN9NnxW8RYsDncsz6PAlFkmuQQIQCfaPkb
6piFi+OI+bNVD133ft+LrVQ=
=gX4F
-----END PGP SIGNATURE-----

--------------enig3D3CB7E0FFBEC88B7CDB1841--




From MAILER-DAEMON Sat Dec 13 15:13:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AVG98-0002lx-5l
	for mharc-classpath@gnu.org; Sat, 13 Dec 2003 15:13:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AVG93-0002iy-GW
	for classpath@gnu.org; Sat, 13 Dec 2003 15:13:45 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AVG8V-0002Pr-9E
	for classpath@gnu.org; Sat, 13 Dec 2003 15:13:42 -0500
Received: from [132.208.250.6] (helo=anis.telecom.uqam.ca)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AVG8U-0002NU-Rr
	for classpath@gnu.org; Sat, 13 Dec 2003 15:13:10 -0500
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 hBDJ8ISK020499
	for <classpath@gnu.org>; Sat, 13 Dec 2003 14:08:31 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
	by anis.telecom.uqam.ca (SAVSMTP 3.1.1.32) with SMTP id
	M2003121314083103409
	for <classpath@gnu.org>; Sat, 13 Dec 2003 14:08:31 -0500
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
	hBDJ1EWc016839; Sat, 13 Dec 2003 14:01:14 -0500 (EST)
X-Spam-Filter: Filtre-Uqam re:  abuse@uqam.ca
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by localhost with esmtp (Exim 3.36 #1 (Debian))
	id 1AVF0t-0007jK-00; Sat, 13 Dec 2003 14:01:15 -0500
Message-ID: <3FDB61F8.8090409@uqam.ca>
Date: Sat, 13 Dec 2003 14:01:12 -0500
From: Etienne Gagnon <gagnon.etienne_m@uqam.ca>
Organization: UQAM
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: Archie Cobbs <archie@dellroad.org>
References: <200312121439.hBCEdmRR033506@arch20m.dellroad.org>
In-Reply-To: <200312121439.hBCEdmRR033506@arch20m.dellroad.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: SableVM-devel ML <sablevm-developer@lists.sourceforge.net>,
	=?ISO-8859-1?Q?David_B=E9?=@gnu.org, 
	classpath@gnu.org
Subject: Re: [Sablevm-developer] Re: [Sablevm-developer]
 Java_java_lang_Runtime_getBootstrapClassPath unused?
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 Dec 2003 20:13:47 -0000

Hi Archie,

Sorry for the late answers.  This was the last teaching week at UQAM, so I lacked time
to answer all my emails.

See below.

Archie Cobbs wrote:
> Seems like this "fix" (really workaround) should be merged into
> Classpath itself too, no?

Theoretically:  I really dislike seeing "com.sun" anywhere in classpath or sablevm.
This is "non-portability" bug of Ant.  :-(

Pragmatically:  You and Greg are right. :-)

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 Sat Dec 13 15:24:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AVGJP-0001Ze-1d
	for mharc-classpath@gnu.org; Sat, 13 Dec 2003 15:24:27 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AVGJF-0001Tq-QN
	for classpath@gnu.org; Sat, 13 Dec 2003 15:24:17 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AVGEt-0007K3-Oh
	for classpath@gnu.org; Sat, 13 Dec 2003 15:20:21 -0500
Received: from [132.208.250.6] (helo=anis.telecom.uqam.ca)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AVGEb-0006vM-Ef
	for classpath@gnu.org; Sat, 13 Dec 2003 15:19:29 -0500
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 hBDJGXRw005849
	for <classpath@gnu.org>; Sat, 13 Dec 2003 14:16:36 -0500 (EST)
Received: from antivirus.uqam.ca ([127.0.0.1])
	by anis.telecom.uqam.ca (SAVSMTP 3.1.1.32) with SMTP id
	M2003121314163603674
	for <classpath@gnu.org>; Sat, 13 Dec 2003 14:16:36 -0500
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
	hBDJ9rWc029541; Sat, 13 Dec 2003 14:09:53 -0500 (EST)
X-Spam-Filter: Filtre-Uqam re:  abuse@uqam.ca
Received: from localhost ([127.0.0.1] helo=uqam.ca)
	by localhost with esmtp (Exim 3.36 #1 (Debian))
	id 1AVF9G-0007jx-00; Sat, 13 Dec 2003 14:09:54 -0500
Message-ID: <3FDB63FE.1090200@uqam.ca>
Date: Sat, 13 Dec 2003 14:09:50 -0500
From: Etienne Gagnon <gagnon.etienne_m@uqam.ca>
Organization: UQAM
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US;
	rv:1.5) Gecko/20031110 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: Archie Cobbs <archie@dellroad.org>
References: <200312082150.hB8LoqIc091392@arch20m.dellroad.org>
In-Reply-To: <200312082150.hB8LoqIc091392@arch20m.dellroad.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org
Subject: Re: SystemClassLoader
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 Dec 2003 20:24:19 -0000

Hi Archie,

Archie Cobbs wrote:
> 
> I'm not a license freak so if LGPL doesn't work for somebody let me know.

This is really generous of you.  Thanks a lot.  I will be integrating this code
in SableVM in a few days.  [I am experiencing end of term overload... ;-)]

Have fun!

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 Dec 14 11:13:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AVYrk-0004CR-7L
	for mharc-classpath@gnu.org; Sun, 14 Dec 2003 11:13:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AVYrc-0003zO-Li
	for classpath@gnu.org; Sun, 14 Dec 2003 11:13:00 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AVYr3-0003Q2-Us
	for classpath@gnu.org; Sun, 14 Dec 2003 11:12:57 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AVYr3-0003Ox-67
	for classpath@gnu.org; Sun, 14 Dec 2003 11:12:25 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AVXtS-00018m-00; Sun, 14 Dec 2003 16:10:50 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <1071270408.7218.56.camel@elsschot.wildebeest.org>
References: <1071270408.7218.56.camel@elsschot.wildebeest.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-LXev1lW3M+NeML40npAc"
Message-Id: <1071414653.7215.311.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sun, 14 Dec 2003 16:10:54 +0100
Cc: Mark Howard <mh@tildemh.com>
Subject: Re: java-gnome bindings
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 Dec 2003 16:13:03 -0000


--=-LXev1lW3M+NeML40npAc
Content-Type: multipart/mixed; boundary="=-5IGLo4CSsKNCUgJPZBCx"


--=-5IGLo4CSsKNCUgJPZBCx
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

On Sat, 2003-12-13 at 00:06, Mark Wielaard wrote:
> He is currently restructuring the CVS and build structure to conform to
> the way the standard gnome bindings should be packaged and making sure
> the build system works for (native) gcj. I believe he could use help
> from people who are experienced with make and gcj/java files since the
> first gnome-bindings deadline is already in 10 days.
>=20
> For more information on this effort see:
> http://java-gnome.sourceforge.net/
> http://www.gnome.org/start/2.5/bindings/
>=20
> There is also a poll and some discussion on various gnome bindings at:
> http://www.gnomedesktop.org/pollBooth.php?pollID=3D50
>=20
> And please join the mailinglist to help with the fun:
> http://sourceforge.net/mail/?group_id=3D1522

For those that are not on that list yet attached is the proof that Mark
Howard has been working really, really hard on this. Please try this out
with your favorite VM/Compiler/Library combination. I tried with kaffe
(kjc) but it was not up to the job (missing --sourcepath), so I had to
use jikes. It does include natively compiled gcj libraries!

Sorry for pushing the java-gnome bindings a bit, but I think this is a
really nice thing to have for Gnome 2.5/2.6. And since I don't have that
much time myself I hope some people can poke a bit at it so that when
the first deadline (22 December) arrives the java-gnome hackers have a
good candidate release. That is kind of a hard deadline since it
determines which bindings will make it into the official Gnome Developer
Platform 2.6 release in March.

Cheers,

Mark

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

>From java-gnome-developer-admin@lists.sourceforge.net Sun Dec 14 14: 34:02
	2003
Received: from mail by nescio.wildebeest.org with spam-scanned (Exim 3.35
	#1 (Debian)) id 1AVWNK-0000wY-00 for <mark@localhost>; Sun, 14 Dec 2003
	14:34:02 +0100
Received: from localhost ([127.0.0.1]) by nescio.wildebeest.org with esmtp
	(Exim 3.35 #1 (Debian)) id 1AVWNJ-0000wT-00 for <mark@localhost>;
	Sun, 14 Dec 2003 14:33:33 +0100
Delivered-To: klomp.org-mark@klomp.org
Received: from mail.qwknetllc.com [209.161.29.2] by localhost with POP3
	(fetchmail-5.9.11) for mark@localhost (single-drop); Sun, 14 Dec 2003
	14:33:33 +0100 (CET)
Received: (qmail 11338 invoked from network); 14 Dec 2003 13:32:03 -0000
Received: from unknown (HELO sc8-sf-mx1.sourceforge.net) (66.35.250.206) by
	209-161-29-2-arthur.qwknet.boi.fiberpipe.net with SMTP; 14 Dec 2003
	13:32:03 -0000
Received: from sc8-sf-list1-b.sourceforge.net ([10.3.1.7]
	helo=sc8-sf-list1.sourceforge.net) by sc8-sf-mx1.sourceforge.net with
	esmtp
	(TLSv1:AES256-SHA:256) (Exim 4.24) id 1AVWLo-00005C-V1; Sun, 14 Dec 2003
	05:32:01 -0800
Received: from localhost.localdomain ([127.0.0.1]
	helo=projects.sourceforge.net) by sc8-sf-list1.sourceforge.net with
	esmtp
	(Exim 4.24) id 1AVWLo-0000ia-NQ; Sun, 14 Dec 2003 05:32:00 -0800
Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11]
	helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with
	esmtp (Exim 4.24) id 1AVWLK-0000hk-Ri for
	java-gnome-developer@lists.sourceforge.net;
	Sun, 14 Dec 2003 05:31:30 -0800
Received: from cmailg4.svr.pol.co.uk ([195.92.195.174]) by
	sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.24) id 1AVWLK-0008Tu-Gz
	for java-gnome-developer@lists.sourceforge.net;
	Sun, 14 Dec 2003 05:31:30 -0800
Received: from modem-3035.lynx.dialup.pol.co.uk ([217.135.203.219]
	helo=pathfinderii.chu.cam.ac.uk) by cmailg4.svr.pol.co.uk with esmtp
	(Exim 4.14) id 1AVWLD-00061G-3D for
	java-gnome-developer@lists.sourceforge.net; 
	Sun, 14 Dec 2003 13:31:26 +0000
Received: from mh by pathfinderii.chu.cam.ac.uk with local (Exim 4.24) id
	1AVWKv-0001s6-2p for java-gnome-developer@lists.sourceforge.net; Sun, 14
	Dec 2003 13:31:05 +0000
From: Mark Howard <mh344@cam.ac.uk>
To: java-gnome-developer@lists.sourceforge.net
Message-ID: <20031214133102.GA18370@myfreeserver.freeserve.co.uk>
Mail-Followup-To: Mark Howard <mh344@cam.ac.uk>,
	java-gnome-developer@lists.sourceforge.net
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="2fHTh5uZTiUOsy+g"
Content-Disposition: inline
User-Agent: Mutt/1.5.4i
X-Spam-Score: 1.9 (+)
Subject: [Java-gnome-developer] Java-Gnome 0.8.2rc1
Sender: java-gnome-developer-admin@lists.sourceforge.net
Errors-To: java-gnome-developer-admin@lists.sourceforge.net
X-BeenThere: java-gnome-developer@lists.sourceforge.net
X-Mailman-Version: 2.0.9-sf.net
Precedence: bulk
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/java-gnome-developer>,
	<mailto:java-gnome-developer-request@lists.sourceforge.net?subject=unsubscribe>
List-Id: Java GNOME Binding Developers
	<java-gnome-developer.lists.sourceforge.net>
List-Post: <mailto:java-gnome-developer@lists.sourceforge.net>
List-Help: <mailto:java-gnome-developer-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/java-gnome-developer>,
	<mailto:java-gnome-developer-request@lists.sourceforge.net?subject=subscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=java-gnome-developer>
X-Original-Date: Sun, 14 Dec 2003 13:31:02 +0000
Date: Sun, 14 Dec 2003 13:31:02 +0000
X-Spam-Score: 1.9 (+)
X-Spam-Status: No, hits=-4.8 required=5.0
	tests=FROM_ENDS_IN_NUMS,KNOWN_MAILING_LIST,MAILTO_TO_SPAM_ADDR,
	PGP_SIGNATURE_2,USER_AGENT_MUTT version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
Delivered-To: localhost-mark@localhost
X-Evolution-Source: imap://mark@nescio.klomp.org/


--2fHTh5uZTiUOsy+g
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,
  I have spent yet more hours working on the build scripts this morning.
Most of the major problems should now be solved - install (and
uninstall) targets work right for all modules, including documentation
modules; libraries loading has been fixed, including an api version.

We now need people to give these a real good test. To make this easier,
I've used the new tarball building script and create 0.8.2rc1 tarballs.
I'm uploading them to http://java-gnome.sf.net/tmp/.=20

The tarballs most urgently in need of testing are:
java-gnome-0.8.2rc1.tar.bz2 - The 'all-in-one' tarball. This is the one
we recommend people actually use
libgtk-java-0.8.2rc1.tar.bz2
libgnome-java-0.8.2rc1.tar.bz2
libglade-java-0.8.2rc1.tar.bz2
doc-core-java-0.8.2rc1.tar.bz2
doc-gnome-java-0.8.2rc1.tar.bz2
doc-glade-java-0.8.2rc1.tar.bz2
(the other tarballs are still under development. We have limited
resources, so will only propose that we can complete the above modules
for the gnome bindings release team (for now at least)).

Important Dates:
14/12 - Gnome 2.5.1 released
14/12 - Java-Gnome 0.8.2rc1 released

[16,17?]/12 - Java-Gnome 0.8.2 release
		0.8 maintenance moved to new 0.8 branch in cvs.
		0.9 development starts in cvs HEAD

20/12 - Java-Gnome 0.9.0 release
		- Ideally, this will compile with gnome 2.5.0 libraries, but not
		  fully support them.
(21/12) /me on vacation
22/12 - Gnome bindings tarball deadline

Remaining issues:
- Need to check separate tarballs (I've done a little testing, but
  mostly concentrated on the all-in-one tarball)
- Need to check that java-gnome is fully parallel installable. Should be
  ok for JVM version, but I'm not sure about gcj compiled.
- Do we want to make gcj native compiles optional with configure
  options? IMHO, making ppl build everything is a good idea - then
  they're more likely to try out the different options.
- (low priority) vte problems - need to check it

0.8.2rc1 release md5sums:
bc2b51b98bad3cc03a69c1878dffc9c6  java-gnome-0.8.2rc1.tar.bz2
de1f39f67bcfecdcb88600bd1274ca7f  libgtk-java-0.8.2rc1.tar.bz2
cdb69f0afc0f32d4644d1c9e7dd59058  libgnome-java-0.8.2rc1.tar.bz2
c071e2e1f096115d4374b4610356da6f  libglade-java-0.8.2rc1.tar.bz2
6804eb3469ddaf473685c42fdfc85668  libgconf-java-0.8.2rc1.tar.bz2
45106f509110fe99b59e1f26e9c1b3a0  libvte-java-0.8.2rc1.tar.bz2
30719abf224ca513de9b2d0aa64af753  libgtkhtml-java-0.8.2rc1.tar.bz2
1056ee4f4bdcefca707d1c625aaa779a  doc-core-java-0.8.2rc1.tar.bz2
caec1d7cea93af05e290945b30c57202  doc-gnome-java-0.8.2rc1.tar.bz2
3ef47a192924fbaf20dc52507740a302  doc-glade-java-0.8.2rc1.tar.bz2

--=20
  .''`. Mark Howard
 : :' :
 `. `'  http://www.tildemh.com=20
   `-   mh@debian.org | mh@tildemh.com | mh344@cam.ac.uk=20

--2fHTh5uZTiUOsy+g
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQE/3GYWRIB09ZZvujwRAoXQAKDrdgA105g2M1InrRkbh9zm+dC03wCggvrb
yQGyiczgQe+VSev8ZIdFTFY=
=ZDSf
-----END PGP SIGNATURE-----

--2fHTh5uZTiUOsy+g--


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
java-gnome-developer mailing list
java-gnome-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/java-gnome-developer


--=-5IGLo4CSsKNCUgJPZBCx--

--=-LXev1lW3M+NeML40npAc
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/3H19xVhZCJWr9QwRAmtRAJ4v1TH0KsCzO6xGsqRid1RQlXHZ+gCeI2xk
6iIZXd2ZcsoJnm1EppOhNiU=
=QZHa
-----END PGP SIGNATURE-----

--=-LXev1lW3M+NeML40npAc--




From MAILER-DAEMON Sun Dec 14 14:07:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AVbaM-0006uX-Md
	for mharc-classpath@gnu.org; Sun, 14 Dec 2003 14:07:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AVbaK-0006tH-6u
	for classpath@gnu.org; Sun, 14 Dec 2003 14:07:20 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AVbZn-0006hK-1j
	for classpath@gnu.org; Sun, 14 Dec 2003 14:07:18 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AVbZm-0006h9-In
	for classpath@gnu.org; Sun, 14 Dec 2003 14:06:46 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AVacF-0001TS-00
	for <classpath@gnu.org>; Sun, 14 Dec 2003 19:05:15 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-lVBVPcI2sPOkSMeZxiWk"
Message-Id: <1071425118.7218.438.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sun, 14 Dec 2003 19:05:18 +0100
Subject: Help and input needed
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 Dec 2003 19:07:20 -0000


--=-lVBVPcI2sPOkSMeZxiWk
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

My GNU Classpath TODO list is growing. And during the last weeks of this
year my time for playing and hacking on GNU Classpath will be minimal.
So I am asking for some help on issues that I cannot handle right now
and that might have to wait till next year otherwise. They are mainly
giving input to other groups about our current status and/or
compatibility with their projects. Just sending a nicely worded email to
the appropriate mailinglist will probably do the trick to get the
discussion started (and we might learn a lot about what is required from
GNU Classpath for other projects).

- java-gnome bindings. I have already posted it on this list twice so I
  won't repeat how important I think it is to have our stuff work nicely
  with it!

- freedesktop.org has a Desktop Technology Road Map at
  http://freedesktop.org/~jg/roadmap.html
  The current entry for "Java" now says:

        Java is available from Sun for Linux, and there are several
        static Java compilers (e.g. GCJ, part of the GCC compiler suite
        and Jikes from IBM), and may be preinstalled. The Blackdown
        project provides community source distributions of Sun's Java
        for additional platforms that Sun may not. Java release 1.4.2
        introduces Swing support based on GTK2 look and feel, which aids
        in the natural integration of GUI applications built with Java
        on the open source desktop. As this deploys widely over 2004,
        Java applications using Sun's VM will share the look and feel of
        Gnome desktops.

  Since they do have a big entry on 'Microsoft Interoperability' it
  would be nice if we could give suggestions for 'Java Interoperability
  and/or Compatibility'. Two very important things to mention would be
  at least the above mentioned java-gnome bindings and of course our
  gtk+ peers and the recent 2D work. See the whole document for
  technologies that are interesting to them and us. I think we have (or
  should have) hooks for almost anything they thing is important
  (especially when you add related projects like libxmlj, tritonous,
  etc.). Comments can be send to
  <https://listman.redhat.com/mailman/listinfo/xdg-list>. But can of
  course also be discussed on this mailinglist first.

- A similar initiative is "UserLinux" which has a white paper at
  http://userlinux.com/white_paper.html from Bruce Perens.
  Their knowledge about GNU Classpath and friends is also a bit out of
  tune with reality. It currently says: "Java-like environment: It
  sounds as if GCJ/Classpath is in the lead among free Java-like
  implementations, but is not up to Java 2.0 and even misses the Java
  1.3 standard. There is an implementation of Swing, and Eclipse can now
  be built . Some of the service providers will need to provide a
  Sun-derived JDK as an option." Discussion about a better description
  for that document for the our different free platforms can be done at:
  http://lists.userlinux.com/cgi-bin/mailman/listinfo/discuss
  (Or again first on this mailinglist.) The fact that kaffe can now run
  JBoss must be mentioned!
  http://www.kaffe.org/~robilad/jboss-3.2.2-screenshot.png

Note that I think that both of the above initiatives are a bit to eager
to get popular really quickly. They seem to not mind that much if "kind
of proprietary technology" slips through. Probably the idea is that they
can fix that up later. Personally I think that is a big mistake. (That
is also the reason I always focus on Free Software explicitly.)

Both the above items depend a bit (but can also help us with clearly
formulating) the next entry:

- GNU Classpath 1.0 Roadmap
  Our current "Roadmap" says:

        GNU Classpath 1.0 will be fully compatible with the 1.1 and
        largely compliant with the 1.2 API specification and will have a
        stable API for interacting with virtual machines.

  This is a bit minimal. It should say something about the minimal
  coverage, the state of the documentation and the testsuite.
  I have idea about it, but nothing concrete yet. Hopefully giving input
  to the above to items on the overview/white papers will help us focus
  a bit more. Discussion of our goals for what we would consider 1.0 is
  very welcome. This is also an important point we can discuss/present
  at Fosdem.

- java.util.regex/gnu.regexp
  Two copyright holders are missing in action :{
  I am currently discussing how to proceed on this with Wes Biggs.
  If you have experience (or want to get experience with) regular
  expressions please let me know.

- Savannah GNU Classpath code checking
  We need to check if someone has tempered with any code when they had
  access to the CVS server. Doing checks against kaffe and libgcj
  sources should help with this.
  See also http://savannah.gnu.org/statement.html

- GNU Classpath task list.
  Sascha has already made a start with one and Patrik has already turned
  them into a nice web page (but since savannah is down, we cannot
  publish it...)
  If Patrik can post the current tasks to the mailinglist then other can
  comment on it and/or add tasks.

Other items on my list are discussing standardization, JCP, JSPA, Apache
RI/TCK licensing issues and looking at US encryption export regulations
to see what is required to better mix and match the standard crypto
(hook) APIs from GNU Crypto/Jessie with GNU Classpath.

As you can see very little coding, reviewing or even testing of code :(
My new year resolution will be: Less talking, More coding!

Let me know if you can help with any of the above things.

Cheers,

Mark

--=-lVBVPcI2sPOkSMeZxiWk
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/3KZexVhZCJWr9QwRAjNCAKCbHDQTNsWBhkS534GhWUgIVkfizgCgiJ/K
THrsh/6yQ0dG7esQUmvNANU=
=k90Z
-----END PGP SIGNATURE-----

--=-lVBVPcI2sPOkSMeZxiWk--




From MAILER-DAEMON Mon Dec 15 16:54:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AW0f3-0002BJ-Fe
	for mharc-classpath@gnu.org; Mon, 15 Dec 2003 16:53:53 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AW0ed-0001Yo-2p
	for classpath@gnu.org; Mon, 15 Dec 2003 16:53:27 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AW0dx-0000cD-Jl
	for classpath@gnu.org; Mon, 15 Dec 2003 16:53:17 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AW0dw-0000b7-Pp
	for classpath@gnu.org; Mon, 15 Dec 2003 16:52:45 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AVzfg-0004kG-00; Mon, 15 Dec 2003 21:50:28 +0100
From: Mark Wielaard <mark@klomp.org>
To: java@gcc.gnu.org, classpath@gnu.org
In-Reply-To: <F9EB309E-2DC2-11D8-BA93-003065F97F7C@mckinlay.net.nz>
References: <3FDA26F5.8000907@redhat.com> <87oeudshna.fsf@fleche.redhat.com>
	<F9EB309E-2DC2-11D8-BA93-003065F97F7C@mckinlay.net.nz>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-uZJgJ+jFzH54URn7+zry"
Message-Id: <1071521431.15206.13.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Mon, 15 Dec 2003 21:50:31 +0100
Cc: Chris Burdess <dog@bluezoo.org>,
	Stephane Meslin-Weber <twiun@adorphuye.com>
Subject: AWT peers (Was: [PATCH] More List fixes)
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, 15 Dec 2003 21:53:41 -0000


--=-uZJgJ+jFzH54URn7+zry
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

(Moved to java@gcc.gnu.org/classpath@gnu.org and added Chris and
Stephane since they both work on AWT peers.)

On Sun, 2003-12-14 at 00:20, Bryce McKinlay wrote:
> On Dec 13, 2003, at 1:09 PM, Tom Tromey wrote:
> > There's been some discussion about trying to make our peers conform to
> > the JDK specification, even though it is undocumented.  It turns out
> > there are other peer implementations around, it might be useful to let
> > them work with our implementation.
>=20
> > What do you think about the compatibility idea?
>=20
> Are there any independently developed peer implementations (for Sun's=20
> JRE) that work with anything newer than JDK1.1? I'm not aware of any.
>=20
> Compatibility would be difficult given that there is no published spec,=20
> also the interface is no doubt quite complex. The benefits would be=20
> questionable - it would let us run our peers on Sun's JDK for debugging=20
> purposes, but I don't think that advantage is worth the effort that=20
> would be involved.
>=20
> In the long run, however, it may well be worth stabilizing and=20
> documenting _our_ peer interface so that others can develop peers=20
> independently of libgcj.

The only free AWT peer implementation I know of is PJA (Pure Java AWT).
But I haven't tried it with any of the free VMs and our awt
implementation. http://www.eteks.com/pja/en/

Both Chris and Stephane are working on AWT peers so they might have an
opinion.

Cheers,

Mark

--=-uZJgJ+jFzH54URn7+zry
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)

iD4DBQA/3h6XxVhZCJWr9QwRAh6nAJ9MgERTIvywCfptudFtE1bar0kttQCYxxiY
HhWKbeteWUdCx8Zm1453Ag==
=baF0
-----END PGP SIGNATURE-----

--=-uZJgJ+jFzH54URn7+zry--




From MAILER-DAEMON Mon Dec 15 18:10:37 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AW1rI-0000MF-Mr
	for mharc-classpath@gnu.org; Mon, 15 Dec 2003 18:10:36 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AW1r8-0008Vj-5b
	for classpath@gnu.org; Mon, 15 Dec 2003 18:10:26 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AW1qX-0007oT-Mo
	for classpath@gnu.org; Mon, 15 Dec 2003 18:10:21 -0500
Received: from [212.101.4.135] (helo=mail01.solnet.ch)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AW1qX-0007oH-BH
	for classpath@gnu.org; Mon, 15 Dec 2003 18:09:49 -0500
Received: from localhost (localhost [127.0.0.1])
	by mail01.solnet.ch (Postfix) with ESMTP
	id DD6D461F15; Mon, 15 Dec 2003 22:08:21 +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 50840-02; Mon, 15 Dec 2003 22:08:20 +0000 (GMT)
Received: from reali.dnsalias.net (adsl-212-41-80-199.solnet.ch
	[212.41.80.199]) by mail01.solnet.ch (Postfix) with ESMTP
	id 16EC460C17; Mon, 15 Dec 2003 22:08:19 +0000 (GMT)
Received: from pcprr (reali.dnsalias.net [192.168.1.2])
	by reali.dnsalias.net (Postfix) with ESMTP
	id 6F4C052D05; Mon, 15 Dec 2003 22:58:08 +0100 (CET)
Date: Mon, 15 Dec 2003 23:09:10 +0100
From: Patrik Reali <reali@acm.org>
To: Mark Wielaard <mark@klomp.org>, classpath@gnu.org
Message-ID: <53450017.1071529750@[192.168.1.3]>
X-Mailer: Mulberry/3.1.0 (Win32 Demo)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-Virus-Scanned: by SolNet
Cc: 
Subject: Re: Help and input needed
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, 15 Dec 2003 23:10:30 -0000



--On Sonntag, 14. Dezember 2003 19:05 +0100 Mark Wielaard <mark@klomp.org> 
wrote:
> - GNU Classpath task list.
>   Sascha has already made a start with one and Patrik has already turned
>   them into a nice web page (but since savannah is down, we cannot
>   publish it...)
>   If Patrik can post the current tasks to the mailinglist then other can
>   comment on it and/or add tasks.


The current draft of the task list is here:

http://www.reali.ch/~reali/classpath/tasks.html

Please be patient and kind to my site, the downlink is only 64 kbit/s.

Some entries a still quite raw (or just a placeholder). I'm still not sure 
how to handle the contact person (because of the current spam levels, I'm 
reluctant to post emails on a webpage)

Feedback, new entries, and time or skill estimations for the existing 
entries are welcome! I'll update the list regularly on my site, waiting for 
savannah's great comeback.

-Patrik





From MAILER-DAEMON Mon Dec 15 19:03:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AW2go-0002Ew-GQ
	for mharc-classpath@gnu.org; Mon, 15 Dec 2003 19:03:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AW2gh-0002AX-DI
	for classpath@gnu.org; Mon, 15 Dec 2003 19:03:43 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AW2eK-0000xG-EW
	for classpath@gnu.org; Mon, 15 Dec 2003 19:01:48 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AW2eI-0000tP-7f
	for classpath@gnu.org; Mon, 15 Dec 2003 19:01:14 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AW1gj-00050B-00
	for <classpath@gnu.org>; Mon, 15 Dec 2003 23:59:41 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <1071043866.29676.45.camel@elsschot.wildebeest.org>
References: <1071043866.29676.45.camel@elsschot.wildebeest.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-N4D//iwhvsNwQkL74j/z"
Message-Id: <1071529184.15197.41.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Mon, 15 Dec 2003 23:59:45 +0100
Subject: Re: Savannah update
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 Dec 2003 00:03:45 -0000


--=-N4D//iwhvsNwQkL74j/z
Content-Type: multipart/mixed; boundary="=-p/7TPANbXrRBaoBVd4i5"


--=-p/7TPANbXrRBaoBVd4i5
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

Attached is the latest savannah update.
They are still checking and setting up the system.
Another update is expected later this week.

We need to check if the person that compromised the system has tried to
change any code on the server.

There are now diffs available to check at:
ftp://ftp.gnu.org/savannah/changesets/classpath-changes.tar.gz
(636K - MD5: f2d0763a5d944610f40d0ca8752efa5b)

Unpacked this becomes 5.4MB of diffs...
So we first need to check the latest available tree against at least
libgcj and kaffe to see what the differences are and if they can be
explained. (I assume that both libgcj and kaffe have audited what they
merged into their own tree.) Then we have a list of files that are
certainly not compromised. Then we only need to check the diffs of the
files not yet merged into libgcj/kaffe.

I don't have a good plan for inetlib though. inetlib is in the same
changeset tarbal and also has seen lots of changes during the
compromise... :{

The following information can help make the "clean-list":

On Wed, 2003-12-10 at 09:11, Mark Wielaard wrote:
> To access the latest CVS tree as it was just before savannah was shut
> down use:
> cvs -d:ext:anoncvs@subversions.gnu.org:/cvs-latest/classpath co classpath

Please let me know if you can help check the integrity of the code.

Cheers,

Mark

--=-p/7TPANbXrRBaoBVd4i5
Content-Disposition: inline; filename=message
Content-Type: text/plain; name=message; charset=iso-8859-1
Content-Transfer-Encoding: base64

LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQ0KSGFzaDogU0hBMQ0KDQogICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU3VuZGF5IDE0IERlY2VtYmV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ZSwNCm1hdGNoIGNvbXBsZXRlbHksIG9y
IGhhdmUgdHJpdmlhbCBkaWZmZXJlbmNlcyB0aGF0IGNhbiBiZSBleHBsYWluZWQuDQoNCg0KV2Ug
Y29udGludWUgd29ya2luZyBhcyBxdWlja2x5IGFzIHdlIGNhbiB0byBicmluZyB0aGUgc2Vydmlj
ZXMgYmFjaw0Kb25saW5lLiAgV2Ugd2lsbCBwb3N0IGFub3RoZXIgdXBkYXRlIG9uIHRoZSBldmVu
aW5nIChFU1QpIG9mIFdlZG5lc2RheSAxNw0KRGVjZW1iZXIgMjAwMy4NCg0KDQpTaW5jZXJlbHks
DQoNCkJyYWRsZXkgTS4gS3Vobg0KRXhlY3V0aXZlIERpcmVjdG9yLCBGcmVlIFNvZnR3YXJlIEZv
dW5kYXRpb24NCi0tLS0tQkVHSU4gUEdQIFNJR05BVFVSRS0tLS0tDQpWZXJzaW9uOiBHbnVQRyB2
MS4yLjEgKEdOVS9MaW51eCkNCg0KaUQ4REJRRS8zRWNlNTNYakpOdEJzNGNSQXFBdEFKOWJBaHJG
aDE4bERidXVPaUN4ZlpiL2tvdXNrQUNjQ2U4RQ0KQkRQV1FGclo2MjlQZDNiM1NPSGUxNTA9DQo9
NE8yRA0KLS0tLS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tDQo=

--=-p/7TPANbXrRBaoBVd4i5--

--=-N4D//iwhvsNwQkL74j/z
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/3jzgxVhZCJWr9QwRAlyyAJwLv01nhi7Rr7Qt3BX+rLZSp/y01QCfeluI
Bp3pPKTtzoaGlkKJKYXePhQ=
=izfN
-----END PGP SIGNATURE-----

--=-N4D//iwhvsNwQkL74j/z--




From MAILER-DAEMON Tue Dec 16 10:02:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWGiM-0004Jc-BF
	for mharc-classpath@gnu.org; Tue, 16 Dec 2003 10:02:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWGiJ-0004IP-0O
	for classpath@gnu.org; Tue, 16 Dec 2003 10:02:19 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWGhm-00048v-7x
	for classpath@gnu.org; Tue, 16 Dec 2003 10:02:18 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AWGhl-0003t1-EM
	for classpath@gnu.org; Tue, 16 Dec 2003 10:01:45 -0500
Received: from [81.5.129.62] (helo=tangency.co.uk)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AWFeA-0005jG-1f
	for classpath@gnu.org; Tue, 16 Dec 2003 08:53:58 -0500
Received: from tangency.co.uk (localhost [127.0.0.1])
	by outgoing.tangency.co.uk (Postfix) with ESMTP
	id 49FE36058D; Tue, 16 Dec 2003 13:51:34 +0000 (GMT)
Received: from localhost ([127.0.0.1])
	by tangency.co.uk (MailMonitor for SMTP v1.2.2 ) ;
	Tue, 16 Dec 2003 13:51:34 +0000 (GMT)
Received: from wraith (wraith.tangency.co.uk [192.168.1.4])
	(using TLSv1 with cipher RC4-SHA (128/128 bits))
	(No client certificate requested)
	by tangency.co.uk (Postfix) with ESMTP
	id A16286058D; Tue, 16 Dec 2003 13:51:33 +0000 (GMT)
Date: Tue, 16 Dec 2003 13:53:52 -0000
To: java@gcc.gnu.org
References: <3FDA26F5.8000907@redhat.com> <87oeudshna.fsf@fleche.redhat.com>
	<F9EB309E-2DC2-11D8-BA93-003065F97F7C@mckinlay.net.nz>
	<1071521431.15206.13.camel@elsschot.wildebeest.org>
From: "S. Meslin-Weber" <twiun@adorphuye.com>
Content-Type: text/plain; format=flowed; charset=iso-8859-15
MIME-Version: 1.0
Message-ID: <oprz90v2zereuyrv@tangency.co.uk>
In-Reply-To: <1071521431.15206.13.camel@elsschot.wildebeest.org>
User-Agent: Opera7.21/Win32 M2 build 3218
Content-Transfer-Encoding: quoted-printable
Cc: Chris Burdess <dog@bluezoo.org>, classpath@gnu.org
Subject: Re: AWT peers (Was: [PATCH] More List fixes)
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 Dec 2003 15:02:20 -0000

Hi everyone,

As a latecomer to this discussion, I'll reply to several parts at once:

On Mon, 15 Dec 2003 21:50:31 +0100, Mark Wielaard <mark@klomp.org> wrote:
> Hi,
>
> (Moved to java@gcc.gnu.org/classpath@gnu.org and added Chris and
> Stephane since they both work on AWT peers.)
>
> On Sun, 2003-12-14 at 00:20, Bryce McKinlay wrote:
>> On Dec 13, 2003, at 1:09 PM, Tom Tromey wrote:
>> > There's been some discussion about trying to make our peers conform =
to
>> > the JDK specification, even though it is undocumented.  It turns out
>> > there are other peer implementations around, it might be useful to l=
et
>> > them work with our implementation.
>>
>> > What do you think about the compatibility idea?

My only reason for writing fbAWT and (re)writing QteAWT is specifically=20
for use across JVMs, Sun's and Open Source ones; hence the compatibility=20
idea is a must for me.

>> Are there any independently developed peer implementations (for Sun's
>> JRE) that work with anything newer than JDK1.1? I'm not aware of any.

Definately. The AWT Peer interfaces present in Sun's JDK have been pretty=
=20
consistent from 1.1 to 1.4.2 (the one I currently use). I debug/develop m=
y=20
fbAWT peers under Sun's 1.4.2, but they work fine with Blackdown's 1.1.8=20
linux port and the Jeode JVM. I've had limited success with J9 from IBM,=20
namely because of their strange packaging strategy.

Kaffe, SableVM and JamVM testing is going well - currently held up by a=20
Thread implementation bug.

See below for a list of independent open source AWT peer implementations.=
=20
Note that searching for commercial ones is particularly difficult as=20
they're not usually advertised directly.

>> Compatibility would be difficult given that there is no published spec=
,
>> also the interface is no doubt quite complex. The benefits would be
>> questionable - it would let us run our peers on Sun's JDK for debuggin=
g
>> purposes, but I don't think that advantage is worth the effort that
>> would be involved.

I disagree, although undocumented by Sun, Sun's Peer interface is=20
reasonably well structured and intuitive to implement (if somewhat=20
painstaking to understand without docs). And as Dalibor just found, there=
=20
*is* published documentation for AWT peers, see my footnotes [1.1] and=20
[1.2].

As GNU Classpath already implements big chunks according to this spec=20
there wouldn't be a great deal more 'effort' involved. Any effort require=
d=20
is to keep GNU-isms segregated as much as possible outside of the java*=20
packages (yes, I know that's not feasible for java.awt.Font yet).

And as for benefits, I think you're looking at this through a keyhole.=20
Don't you want commercial development companies to be able to use open=20
source JVMs for their peer implementations? Off the top of my head,=20
Trolltech in Norway do QtAWT and they supply this to commercial JVM=20
vendors (part of the Qtopia OEM bundle) and it's used in Jeode, J9, J2ME=20
PersonalProfile. I'm reasonably confident that device OEMs would be=20
interested in cutting companies like Esmertec (for Jeode) out of the cost=
=20
equation for providing a JVM on their device.

Acunia, the guys that do the Wonka JVM also have a set of custom peers an=
d=20
they use Sun's AWT Peer interfaces - wouldn't we like to be able to use=20
their implementations (native framebuffer and framebuffer in X)?

>> In the long run, however, it may well be worth stabilizing and
>> documenting _our_ peer interface so that others can develop peers
>> independently of libgcj.

Agreed - whatever those interfaces look like, documentation and stability=
=20
is key.

> The only free AWT peer implementation I know of is PJA (Pure Java AWT).
> But I haven't tried it with any of the free VMs and our awt
> implementation. http://www.eteks.com/pja/en/

I listed a few others as well on the kaffe mailing list[2.1], but here's=20
the list again:

- PJA, Pure Java AWT [2.2]
- Charva, Java Windowing Toolkit for Text Terminals[2.3]
- RAWT, Remote AWT from IBM [2.4][2.5]
- TUIAWT, Text UI AWT [2.5][2.6]
- fbAWT, pure java framebuffer AWT peers [2.7]
- QtAWT, Peers for the Qt widget toolkit [2.8] (unfortunately not publicl=
y=20
available _yet_)
- QteAWT, not complete or publicly released yet and tested under Wonka=20
[2.9] - waiting for Classpath integration into Kaffe.
- EWT, Embedded Windowing Toolkit [2.10]
- Goodness, Extended AWT Toolkit [2.11]
- and a few other AWT replacements that could be quickly reimplemented as=
=20
peers (jcurses, VNCj, etc).

> Both Chris and Stephane are working on AWT peers so they might have an
> opinion.

Thanks for CC-ing me in this thread Mark, I'm now subscribed to java@gcc=20
as well.

Stephane

P.S. Thanks Dalibor for the first two links below and for giving me the=20
idea of using such footnotes.

Some footnotes:
[1.1] Chapter 23 of the Java AWT Reference,=20
http://www.oreilly.com/catalog/javawt/book/
[1.2] UML of the whole AWT, including peers,=20
http://www.soberit.hut.fi/tik-76.278/group6/awtpat.html
[2.1] http://www.kaffe.org/pipermail/kaffe/2003-December/044644.html
[2.2] PJA: http://www.eteks.com/pja/en/
[2.3] Charva: http://www.pitman.co.za/projects/charva/
[2.4] RAWT from IBM,=20
http://www.alphaworks.ibm.com/aw.nsf/toolpreview/3EAF80466042CC4B8825671B=
0067D1E3
[2.5] RAWT and TUIAWT in action=20
http://www.ii.uib.no/~rolfwr/seminar/bridge/notes/bridge53.html
[2.6] TUIAWT: http://www.bmsi.com/tuipeer/
[2.7] fbAWT:=20
http://adorphuye.com/zaurus/java/faq.jsp?section=3DJava+Extensions&subsec=
tion=3DfbAWT
[2.8] QtAWT: http://www.trolltech.com
[2.9] QteAWT: http://adorphuye.com/~twiun/
[2.10] EWT: Mentioned in http://alumni.cse.ucsc.edu/~wholt/thesis.pdf,=20
believed to exist in his Java Nanokernel
[2.11] Goodness:=20
http://www.mooseyard.com/Jens/Software/RichChocolatyGoodness/RichChocolat=
yGoodness.html




From MAILER-DAEMON Tue Dec 16 10:22:16 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWH1b-0001oH-Ii
	for mharc-classpath@gnu.org; Tue, 16 Dec 2003 10:22:15 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWH1Y-0001n2-H1
	for classpath@gnu.org; Tue, 16 Dec 2003 10:22:12 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWH12-0001M1-Me
	for classpath@gnu.org; Tue, 16 Dec 2003 10:22:11 -0500
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWH0x-0001Ks-Mj
	for classpath@gnu.org; Tue, 16 Dec 2003 10:21:37 -0500
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1AWG3T-0001Es-00
	for <classpath@gnu.org>; Tue, 16 Dec 2003 15:20:07 +0100
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 1AWG3P-0001Dq-00; Tue, 16 Dec 2003 15:20:03 +0100
Message-ID: <3FDF1492.5030609@kaffe.org>
Date: Tue, 16 Dec 2003 15:20:02 +0100
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: Patrik Reali <reali@acm.org>
References: <53450017.1071529750@[192.168.1.3]>
In-Reply-To: <53450017.1071529750@[192.168.1.3]>
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: Help and input needed
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 Dec 2003 15:22:13 -0000

Patrik Reali wrote:
> 
> 
> --On Sonntag, 14. Dezember 2003 19:05 +0100 Mark Wielaard 
> <mark@klomp.org> wrote:
> 
>> - GNU Classpath task list.
>>   Sascha has already made a start with one and Patrik has already turned
>>   them into a nice web page (but since savannah is down, we cannot
>>   publish it...)
>>   If Patrik can post the current tasks to the mailinglist then other can
>>   comment on it and/or add tasks.
> 
> 
> 
> The current draft of the task list is here:
> 
> http://www.reali.ch/~reali/classpath/tasks.html

Looks very nice to me. Good work!

> Feedback, new entries, and time or skill estimations for the existing 
> entries are welcome! I'll update the list regularly on my site, waiting 
> for savannah's great comeback.

The test generation bit has me as a contact person, that's fine. I'd 
estimate 2 weeks to come up with a good prototype, and another 2 weeks 
to get it working for real.

cheers,
dalibor topic




From MAILER-DAEMON Tue Dec 16 13:25:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWJso-0003Y5-Dz
	for mharc-classpath@gnu.org; Tue, 16 Dec 2003 13:25:22 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWJsf-0003VM-2P
	for classpath@gnu.org; Tue, 16 Dec 2003 13:25:13 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWJs7-0003Cw-OI
	for classpath@gnu.org; Tue, 16 Dec 2003 13:25:10 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AWJs7-00037q-9m
	for classpath@gnu.org; Tue, 16 Dec 2003 13:24:39 -0500
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AWIua-00065D-TX
	for classpath@gnu.org; Tue, 16 Dec 2003 12:23:09 -0500
Received: from fleche.redhat.com (tf0208.peakpeak.com [204.144.239.208])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id KAA01300;
	Tue, 16 Dec 2003 10:22:51 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 65A974F824B; Tue, 16 Dec 2003 10:11:39 -0700 (MST)
To: "S. Meslin-Weber" <twiun@adorphuye.com>
References: <3FDA26F5.8000907@redhat.com> <87oeudshna.fsf@fleche.redhat.com>
	<F9EB309E-2DC2-11D8-BA93-003065F97F7C@mckinlay.net.nz>
	<1071521431.15206.13.camel@elsschot.wildebeest.org>
	<oprz90v2zereuyrv@tangency.co.uk>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I need "RONDO".
Date: 16 Dec 2003 10:11:39 -0700
In-Reply-To: <oprz90v2zereuyrv@tangency.co.uk>
Message-ID: <87d6aopu0k.fsf@fleche.redhat.com>
Lines: 28
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: Chris Burdess <dog@bluezoo.org>, classpath@gnu.org, java@gcc.gnu.org
Subject: Re: AWT peers (Was: [PATCH] More List 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: Tue, 16 Dec 2003 18:25:14 -0000

>>>>> ">" == S Meslin-Weber <twiun@adorphuye.com> writes:

>> See below for a list of independent open source AWT peer
>> implementations.

Thanks.  This is great information, good arguments I think for us to
aim for compatibility.

>> I disagree, although undocumented by Sun, Sun's Peer interface is
>> reasonably well structured and intuitive to implement

One problem we've run into has to do with List.  With the Gtk peers,
and the replace operation implemented as "remove + add", we get
flickering.  So Fernando's first solution -- entirely reasonable IMO
-- was to add a new "replace" method to ListPeer.

What would you suggest for a case like this?

One idea is to somehow suppress Gtk redisplay while some java-side
lock is held.  We're pretty reluctant to do this, though.

Another idea we came up with is to have a new
"gnu.java.awt.peer.ClasspathListPeer" interface that extends ListPeer
and adds the new method we want.  Then the java code can decide what
to do dynamically.  This is compatible but also allows us to make
extensions when necessary.

Tom



From MAILER-DAEMON Tue Dec 16 15:27:48 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWLnI-0008AD-MK
	for mharc-classpath@gnu.org; Tue, 16 Dec 2003 15:27:48 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWLnG-00089f-8Q
	for classpath@gnu.org; Tue, 16 Dec 2003 15:27:46 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWLmj-0007qq-3d
	for classpath@gnu.org; Tue, 16 Dec 2003 15:27:45 -0500
Received: from [213.86.99.234] (helo=phoenix.infradead.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AWLmi-0007qF-HJ
	for classpath@gnu.org; Tue, 16 Dec 2003 15:27:12 -0500
Received: from localhost ([127.0.0.1])
	by phoenix.infradead.org with esmtp (Exim 4.30 #5 (Red Hat Linux))
	id 1AWKpC-0006mv-Fq; Tue, 16 Dec 2003 19:25:42 +0000
Date: Tue, 16 Dec 2003 19:25:42 +0000 (GMT)
From: James Simmons <jsimmons@infradead.org>
To: Sascha Brawer <brawer@dandelis.ch>
In-Reply-To: <20031209091055.11503@smtp.mail.ch.easynet.net>
Message-ID: <Pine.LNX.4.44.0312101736260.5540-100000@phoenix.infradead.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: GNU Classpath <classpath@gnu.org>, Kaffe <kaffe@kaffe.org>
Subject: Re: [kaffe] Classpath AWT progress.
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 Dec 2003 20:27:47 -0000


> Would you have a problem with this for your xlib implementation? If so,
> it would be interesting to know the reason.

I have to see if it would work with my design goal. The basic goal is to 
have two totally different environments work together as if they we one 
environment. One screen would be X windows and the other screen would be 
a linux framebuffer implementation. The problem is two very different 
environments are going to have two different toolkits. Since it is 
possible to pass in a GraphicsConfiguration to a Frame, Window etc I was 
thinking it would be easiest to grab the proper toolkit from the 
GraphicsConfiguration. Do you see any other way to grab the proper 
toolkit?

> Just a side comment from reading your code:
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment() should never
> throw a HeadlessException. Instead, it should return a headless instance
> of GraphicsEnvironment when it is called in a server environment. The
> returned instance is supposed to throw a HeadlessException when it gets
> asked to perform things that only make sense in a GUI, such as
> determining the maximal size of any attached screen.

Fixed.
 
> >package gnu.java.awt;
> >public class ClasspathGraphicsEnvironment extends GraphicsEnvironment
> 
> This may just be my personal opinion, but I'm currently not convinced why
> this class is needed at all. It seems that pretty much all of its
> functionality would be highly specific to the platform, with the
> exception of the getBounds() and getCenterPoint() methods -- so why
> introduce a concrete-but-not-functional subclass of the abstract
> GraphicsEnvironment? But this may be different when it turns out that we
> can refactor the implementation of other GraphicsEnvironment methods
> (such as getAllFonts).

>From what I interpet from the java specs it is a collect of all 
GraphicsDevices and all Fonts. Its up to the Toolkit to tell the app which 
fonts it can actually use. The tricky one is createGraphics. I haven't 
figured that one out yet :-( If I have a different xxxGraphicsEnvironment 
then my goal wouldn't work. It would be only one Toolkit at a time which 
would grab only that one type of environment.

> By the way: Thanks for having documented your code, it makes it so much
> easier to read.

No problem.





From MAILER-DAEMON Tue Dec 16 16:48:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWN37-0004aj-JE
	for mharc-classpath@gnu.org; Tue, 16 Dec 2003 16:48:13 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWN31-0004Yr-MO
	for classpath@gnu.org; Tue, 16 Dec 2003 16:48:07 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWN2S-0004Nt-Fw
	for classpath@gnu.org; Tue, 16 Dec 2003 16:48:03 -0500
Received: from [217.185.152.67] (helo=clerks.local)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWN2Q-0004NJ-UC
	for classpath@gnu.org; Tue, 16 Dec 2003 16:47:31 -0500
Received: from kaffe.org (localhost [127.0.0.1])
	by clerks.local (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id
	hBGMA2r01660; Tue, 16 Dec 2003 23:10:02 +0100
Message-ID: <3FDF82B8.6090109@kaffe.org>
Date: Tue, 16 Dec 2003 23:10:00 +0100
From: Dalibor Topic <robilad@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
References: <1071425118.7218.438.camel@elsschot.wildebeest.org>
In-Reply-To: <1071425118.7218.438.camel@elsschot.wildebeest.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org, Jan Schulz <jasc@gmx.net>
Subject: Re: Help and input needed
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 Dec 2003 21:48:10 -0000

Hi Mark,

Mark Wielaard wrote:
> Hi all,

> - java-gnome bindings. I have already posted it on this list twice so I
>   won't repeat how important I think it is to have our stuff work nicely
>   with it!

O.K., I've done a little bit on this today, and got in touch with the 
java-gnome devs. I still haven't managed to build java-gnome with kaffe, 
but I'll give it another go on thursday. Otoh, the devs have told me 
that their build now works with kaffe, so there is some progress there ;)

> - freedesktop.org has a Desktop Technology Road Map at
>   http://freedesktop.org/~jg/roadmap.html
>   The current entry for "Java" now says:
> 
>         Java is available from Sun for Linux, and there are several
>         static Java compilers (e.g. GCJ, part of the GCC compiler suite
>         and Jikes from IBM), and may be preinstalled. The Blackdown
>         project provides community source distributions of Sun's Java
>         for additional platforms that Sun may not. Java release 1.4.2
>         introduces Swing support based on GTK2 look and feel, which aids
>         in the natural integration of GUI applications built with Java
>         on the open source desktop. As this deploys widely over 2004,
>         Java applications using Sun's VM will share the look and feel of
>         Gnome desktops.
> 
>   Since they do have a big entry on 'Microsoft Interoperability' it
>   would be nice if we could give suggestions for 'Java Interoperability
>   and/or Compatibility'. Two very important things to mention would be
>   at least the above mentioned java-gnome bindings and of course our
>   gtk+ peers and the recent 2D work. See the whole document for
>   technologies that are interesting to them and us. I think we have (or
>   should have) hooks for almost anything they thing is important
>   (especially when you add related projects like libxmlj, tritonous,
>   etc.). Comments can be send to
>   <https://listman.redhat.com/mailman/listinfo/xdg-list>. But can of
>   course also be discussed on this mailinglist first.

I've been thinking about freedesktop.org today. Initially I thought it 
was another desktop project, so that presenting our positions and goals 
should be left to the people who make AWTs work (Graydon, Sascha, 
Stephane, Thomas, etc.). But in a recent discussion about packaging java 
projects on debian-java mailing list, the idea to combine effort on 
packaging java apps between debian, JPackage and gentoo came up, and Jan 
Schulz proposed to place such work under the umbrella of 
freedesktop.org. I believe that this might be good way to approach 
freedesktop.org: on one hand with an effort to ease the deployment of 
java applications & libraries on the desktop, on the other hand 
elaborating how that could be achieved by using free java runtimes based 
on Classpath.

> - A similar initiative is "UserLinux" which has a white paper at
>   http://userlinux.com/white_paper.html from Bruce Perens.
>   Their knowledge about GNU Classpath and friends is also a bit out of
>   tune with reality. It currently says: "Java-like environment: It
>   sounds as if GCJ/Classpath is in the lead among free Java-like
>   implementations, but is not up to Java 2.0 and even misses the Java
>   1.3 standard. There is an implementation of Swing, and Eclipse can now
>   be built . Some of the service providers will need to provide a
>   Sun-derived JDK as an option." Discussion about a better description
>   for that document for the our different free platforms can be done at:
>   http://lists.userlinux.com/cgi-bin/mailman/listinfo/discuss
>   (Or again first on this mailinglist.) The fact that kaffe can now run
>   JBoss must be mentioned!
>   http://www.kaffe.org/~robilad/jboss-3.2.2-screenshot.png

UserLinux white paper sounds a little polemic ocassionally. Anyway, 
competiton is good for GNU/Linux, so one more distribution targetting 
enterprise users can't harm.

Their idea of Java is not very up to date, though, it seems that whoever 
wrote the white paper comes from a LAMP backgroud, with Python replacing 
Perl for some reason or another. They have one policy that could be seen 
as controversial here: contrary to old Noah, they want only one of each 
kind. One web server. One database. One desktop. And I guess one VM as 
well. As I don't want to incite virtual machine dick size competitions 
on the classpath mailing lists, I want to approach them with a balanced 
e-mail that corrects their mistakes and recommends a GNU classpath based 
VM, offering a general overview (names, links) of Classpath based VMs, 
like my recent post to debian-java, just without the details about the 
VMs. Then I'd follow up with an e-mail on kaffe, and our efforts to run 
enterprise-ish software on it. I'd cross-post to GNU Classpath mailing 
list and invite other VM developers to reply to the mail then as well, 
describing their VMs and why they think it would be a good choice for 
UserLinux. Then whoever is making the decisions about UserLinux can make 
those decisions with a little bit more background than they have now.

> - GNU Classpath 1.0 Roadmap
>   Our current "Roadmap" says:
> 
>         GNU Classpath 1.0 will be fully compatible with the 1.1 and
>         largely compliant with the 1.2 API specification and will have a
>         stable API for interacting with virtual machines.
> 
>   This is a bit minimal. It should say something about the minimal
>   coverage, the state of the documentation and the testsuite.

0 mauve faiures on at least one official VM release sounds like a good 
goal to me.

> - Savannah GNU Classpath code checking
>   We need to check if someone has tempered with any code when they had
>   access to the CVS server. Doing checks against kaffe and libgcj
>   sources should help with this.
>   See also http://savannah.gnu.org/statement.html

I've never (fortunately) had to do someting like this before, so I'm 
slightly confused about what exactly I am supposed to do. Should I check 
if my diffs match my patches I contributed to GNU Classpath? diff 
everything against kaffe's source tree?

cheers,
dalibor topic




From MAILER-DAEMON Tue Dec 16 18:34:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWOi3-0007fk-H9
	for mharc-classpath@gnu.org; Tue, 16 Dec 2003 18:34:35 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWOhM-0007EX-N9
	for classpath@gnu.org; Tue, 16 Dec 2003 18:33:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWOgg-0006gZ-Kl
	for classpath@gnu.org; Tue, 16 Dec 2003 18:33:41 -0500
Received: from [210.55.57.198] (helo=server.flinders.co.nz)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AWOgf-0006dE-JM
	for classpath@gnu.org; Tue, 16 Dec 2003 18:33:09 -0500
Received: from [192.168.0.191] by server.flinders.co.nz (AppleMailServer
	10.2.3.0) id 139585 via TCP with SMTP;
	Wed, 17 Dec 2003 11:45:39 +1300
In-Reply-To: <oprz90v2zereuyrv@tangency.co.uk>
References: <3FDA26F5.8000907@redhat.com> <87oeudshna.fsf@fleche.redhat.com>
	<F9EB309E-2DC2-11D8-BA93-003065F97F7C@mckinlay.net.nz>
	<1071521431.15206.13.camel@elsschot.wildebeest.org>
	<oprz90v2zereuyrv@tangency.co.uk>
Mime-Version: 1.0 (Apple Message framework v606)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <9C6C007A-3017-11D8-99A2-003065F97F7C@mckinlay.net.nz>
Content-Transfer-Encoding: 7bit
From: Bryce McKinlay <bryce@mckinlay.net.nz>
Date: Wed, 17 Dec 2003 11:31:37 +1300
To: "S. Meslin-Weber" <twiun@adorphuye.com>
X-Mailer: Apple Mail (2.606)
Cc: Chris Burdess <dog@bluezoo.org>, classpath@gnu.org, java@gcc.gnu.org
Subject: Re: AWT peers (Was: [PATCH] More List fixes)
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 Dec 2003 23:34:31 -0000

S. Meslin-Weber wrote:

>>> Compatibility would be difficult given that there is no published 
>>> spec,
>>> also the interface is no doubt quite complex. The benefits would be
>>> questionable - it would let us run our peers on Sun's JDK for 
>>> debugging
>>> purposes, but I don't think that advantage is worth the effort that
>>> would be involved.
>
> I disagree, although undocumented by Sun, Sun's Peer interface is 
> reasonably well structured and intuitive to implement (if somewhat 
> painstaking to understand without docs). And as Dalibor just found, 
> there *is* published documentation for AWT peers, see my footnotes 
> [1.1] and [1.2].

> As GNU Classpath already implements big chunks according to this spec 
> there wouldn't be a great deal more 'effort' involved. Any effort 
> required is to keep GNU-isms segregated as much as possible outside of 
> the java* packages (yes, I know that's not feasible for java.awt.Font 
> yet).

OK, your arguments make sense. There certainly does seem to be more 
third-party peers out there than I had thought. But we still need a 
spec to write to. Note that [1.2] you mentioned doesn't look anything 
like being complete!

As someone who has implemented their own AWT peers that work with the 
Sun JRE, you seem to be in a good position to write a specification (to 
the JRE 1.4.2 level) that we can use for our clean-room implementation. 
This could perhaps be in the form of java/awt/peer/*.java files with 
Javadoc comments. Once we have a sufficiently complete spec, we would 
be in a much better position to implement it faithfully. Would you be 
interested in doing this?


Tom Tromey wrote:

>>> I disagree, although undocumented by Sun, Sun's Peer interface is
>>> reasonably well structured and intuitive to implement
>
> One problem we've run into has to do with List.  With the Gtk peers,
> and the replace operation implemented as "remove + add", we get
> flickering.  So Fernando's first solution -- entirely reasonable IMO
> -- was to add a new "replace" method to ListPeer.
>
> What would you suggest for a case like this?
>
> One idea is to somehow suppress Gtk redisplay while some java-side
> lock is held.  We're pretty reluctant to do this, though.

Well, this is basically how GUI toolkits generally work, and no extra 
lock should be needed. In the case of a "lightweight" java toolkit, 
what would happen is the updates to the internal state of the GUI are 
made but the actual drawing does not take place synchronously. Once 
control is returned to the event dispatch mechanism, any pending 
paint/refresh events are combined and the repainting takes place 
without any flicker. "heavyweight" peers may well work differently in 
the AWT, however, and currently I don't have enough knowledge of GTK to 
say whether we have sufficient control over GTK's internal refresh 
mechanism to do that.

Regards

Bryce.





From MAILER-DAEMON Tue Dec 16 19:07:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWPEL-00006e-Qm
	for mharc-classpath@gnu.org; Tue, 16 Dec 2003 19:07:57 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWPEE-00005J-W9
	for classpath@gnu.org; Tue, 16 Dec 2003 19:07:51 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWPDZ-0008Gd-Rx
	for classpath@gnu.org; Tue, 16 Dec 2003 19:07:41 -0500
Received: from [66.33.197.214] (helo=ludo.dreamhost.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWPDY-0008Ep-UC
	for classpath@gnu.org; Tue, 16 Dec 2003 19:07:09 -0500
Received: from dexter (c-24-6-46-122.client.comcast.net [24.6.46.122])
	by ludo.dreamhost.com (Postfix) with ESMTP
	id A9DD02803C; Tue, 16 Dec 2003 15:05:38 -0800 (PST)
Received: by dexter (Postfix, from userid 1000)
	id 145974CE; Tue, 16 Dec 2003 15:06:03 -0800 (PST)
To: Mark Wielaard <mark@klomp.org>
References: <1071425118.7218.438.camel@elsschot.wildebeest.org>
From: Casey Marshall <rsdio@metastatic.org>
Date: Tue, 16 Dec 2003 15:06:03 -0800
In-Reply-To: <1071425118.7218.438.camel@elsschot.wildebeest.org> (Mark
	Wielaard's message of "Sun, 14 Dec 2003 19:05:18 +0100")
Message-ID: <87ekv47484.fsf@metastatic.org>
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Cc: classpath@gnu.org
Subject: Re: Help and input needed
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 Dec 2003 00:07:53 -0000

--=-=-=

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

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

Mark> [...]

Mark> As you can see very little coding, reviewing or even testing of
Mark> code :( My new year resolution will be: Less talking, More
Mark> coding!

There's a few things relating to the security/crypto bits of Classpath
and friends that I'd like to mention, and get opinions on:

  - Jessie looks like it will become a GNU package someday, but there
    is still some question of where it should go. Suggestions include

       * Classpathx, but Nic has indicated that he thinks Classpathx
         would be better off in Classpath proper.

       * Classpath, possibly as an optional/sub- project.

       * On its own, all by its lonesome.

    Above all I'd like to see this project keep some level of
    independence from Classpath, so it can evolve at its own pace.

  - I've been extending the X.509 classes I put into Classpath a while
    ago to complete the PKI platform with things such as
    CertPathValidator implementations, and have started implementing
    NIST's giant PKI test suite [1] around Mauve. There is a *totally*
    unofficial tarball of this at [2] (the username is "pki" and the
    password "gnupki" -- I don't want Joe Searchengine downloading
    this quite yet). I currently have 73 tests (out of hundreds)
    implemented, and they all pass.

    The questions here are similar to those for Jessie: where should
    this go?

    The PKIX standard is giant and complicated. Anyone with copious
    spare time (...) is welcome to help.

  - Classpath, Jessie, and the GNU PKI packages all have their own
    copies of some simple ASN.1 DER codec classes. This isn't good.
    Some sort of grand unified ASN.1 library would be nice to have.

  - KeyStores. We have a brand-new keyring format in GNU Crypto, and
    attached is a minimal read-only version for public keyrings.

  - Policy files. I have been working on and off on an implementation
    of java.security.Policy that reads JDK-style policy files. I've
    attached my current version.

  - javax.crypto and javax.net.ssl should go into Classpath, in my
    opinion.

  - My own list for future additions include

      * Kerberos and GSSAPI.
      * OpenPGP.
      * Keytool and jarsigner equivalents.

- ---
[1] http://csrc.nist.gov/pki/testing/x509paths.html
[2] http://metastatic.org/source/gnu-pki/

- -- 
Casey Marshall || rsdio@metastatic.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQE/349wgAuWMgRGsWsRAt6OAJ9G+nmGO5e2LNtlg8Fzk3XDr9JgLgCfXUed
dX6Agjacd3S2QrBD+uf+Qxo=
=RMwn
-----END PGP SIGNATURE-----

--=-=-=
Content-Disposition: attachment; filename=GnuKeyring.java

/* GnuKeyring.java -- minimal, read-only GNU Keyring implementation.
   Copyright (C) 2003 Free Software Foundation, Inc.

This file is part of GNU Classpath.

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

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

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

Linking this library statically or dynamically with other modules is
making a combined work based on this library.  Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.

As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module.  An independent module is a module which is not derived from
or based on this library.  If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so.  If you do not wish to do so, delete this
exception statement from your version. */


package gnu.java.security.provider;

import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.InputStream;
import java.io.IOException;
import java.io.OutputStream;

import java.security.Key;
import java.security.KeyStoreSpi;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.cert.Certificate;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;

import java.util.Date;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Vector;
import java.util.zip.InflaterInputStream;

public class GnuKeyring extends KeyStoreSpi
{

  // Constants and fields.
  // -------------------------------------------------------------------------

  // The value "GKR" | 0x01
  private static final int MAGIC = 0x474b5201;

  // Keyring usage type 2: trusted certificates only.
  private static final int USAGE = 04;

  // Packet types. Types not appearing in public keyrings are omitted.
  private static final int TYPE_PBMAC      = 3;
  private static final int TYPE_COMPRESSED = 4;
  private static final int TYPE_CERT       = 5;

  private final HashMap entries;

  // Constructor.
  // -------------------------------------------------------------------------

  public GnuKeyring()
  {
    entries = new HashMap();
  }

  // Instance methods.
  // -------------------------------------------------------------------------

  public Key engineGetKey(String alias, char[] password)
  {
    throw new UnsupportedOperationException("this is a public keyring");
  }

  public Certificate[] engineGetCertificateChain(String alias)
  {
    throw new UnsupportedOperationException("this is a public keyring");
  }

  public Certificate engineGetCertificate(String alias)
  {
    Entry e = (Entry) entries.get(canonicalize(alias));
    if (e == null)
      {
        return null;
      }
    return e.getCertificate();
  }

  public Date engineGetCreationDate(String alias)
  {
    Entry e = (Entry) entries.get(canonicalize(alias));
    if (e == null)
      {
        return null;
      }
    return e.getCreationDate();
  }

  public void engineSetKeyEntry(String alias, Key key, char[] passwd, Certificate[] chain)
  {
    throw new UnsupportedOperationException("this is a read-only keyring");
  }

  public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)
  {
    throw new UnsupportedOperationException("this is a read-only keyring");
  }

  public void engineSetCertificateEntry(String alias, Certificate certificate)
  {
    throw new UnsupportedOperationException("this is a read-only keyring");
  }

  public void engineDeleteEntry(String alias)
  {
    throw new UnsupportedOperationException("this is a read-only keyring");
  }

  public Enumeration engineAliases()
  {
    return new Vector(entries.keySet()).elements();
  }

  public boolean engineContainsAlias(String alias)
  {
    return entries.containsKey(canonicalize(alias));
  }

  public int engineSize()
  {
    return entries.size();
  }

  public boolean engineIsKeyEntry(String alias)
  {
    return false;
  }

  public boolean engineIsCertificateEntry(String alias)
  {
    return engineContainsAlias(alias);
  }

  public String engineGetCertificateAlias(Certificate certificate)
  {
    for (Iterator it = entries.entrySet().iterator(); it.hasNext(); )
      {
        Map.Entry e = (Map.Entry) it.next();
        if (certificate.equals(e.getValue()))
          {
            return (String) e.getKey();
          }
      }
    return null;
  }

  public void engineStore(OutputStream out, char[] password)
  {
    throw new UnsupportedOperationException("this is a read-only keyring");
  }

  public synchronized void engineLoad(InputStream _in, char[] password)
    throws IOException, NoSuchAlgorithmException, CertificateException
  {
    entries.clear();
    DataInputStream din = new DataInputStream(_in);
    if (din.readInt() != MAGIC)
      {
        throw new IOException("expecting magic bytes");
      }
    if (din.read() != USAGE)
      {
        throw new IOException("not a public keyring");
      }

    // Top-level is a password-based MAC entry.
    if (din.read() != TYPE_PBMAC)
      {
        throw new IOException("expecting password-based MAC");
      }

    Map props = readProperties(din);
    int macLen = 0;
    try
      {
        macLen = Integer.parseInt((String) props.get("maclen"));
        if (macLen <= 0)
          {
            throw new NumberFormatException("must be positive");
          }
      }
    catch (Exception x)
      {
        throw new IOException("malformed mac length: " + x.toString());
      }

    int len = din.readInt();
    byte[] payload = new byte[len - macLen];
    byte[] mac = new byte[macLen];
    din.readFully(payload);
    din.readFully(mac);

    if (!verifyHash(props, payload, mac, password))
      {
        throw new IOException("MAC could not be verified");
      }

    DataInputStream in2 = new DataInputStream(new ByteArrayInputStream(payload));
    CertificateFactory factory = null;
    Certificate cert = null;
    Date date = null;

    while (in2.available() > 0)
      {
        int type = in2.read();
        switch (type)
          {
          case TYPE_COMPRESSED:
            props = readProperties(in2);
            String comp = (String) props.get("algorithm");
            if (comp == null || !comp.equalsIgnoreCase("DEFLATE"))
              {
                throw new NoSuchAlgorithmException(comp);
              }
            payload = new byte[in2.readInt()];
            in2.readFully(payload);
            in2 = new DataInputStream(new InflaterInputStream(
              new ByteArrayInputStream(payload)));
            break;

          case TYPE_CERT:
            props = readProperties(in2);
            String alias = (String) props.get("alias");
            if (alias == null || alias.length() == 0)
              {
                throw new IOException("no alias for certificate entry");
              }
            date = null;
            try
              {
                String s = (String) props.get("creation-date");
                if (s == null)
                  {
                    throw new IOException("missing creation date");
                  }
                date = new Date(Long.parseLong(s));
              }
            catch (NumberFormatException x)
              {
                throw new IOException("malformed date: " + x.toString());
              }
            factory = CertificateFactory.getInstance((String) props.get("type"));
            payload = new byte[in2.readInt()];
            in2.readFully(payload);
            cert = factory.generateCertificate(new ByteArrayInputStream(payload));
            entries.put(alias, new Entry(cert, date));
            break;

          case -1:
            return;
          default:
            throw new IOException("unknown packet type: " + type);
          }
      }
  }

  // Own methods.
  // -------------------------------------------------------------------------

  private String canonicalize(String key)
  {
    if (key == null)
      {
        return null;
      }
    return key.toLowerCase();
  }

  private boolean verifyHash(Map props, byte[] payload, byte[] hash, char[] password)
    throws IOException, NoSuchAlgorithmException
  {
    // If no password is supplied, don't check the hash.
    if (password == null)
      {
        return true;
      }

    String macName = (String) props.get("mac");
    if (macName == null || !macName.toLowerCase().startsWith("hmac-"))
      {
        throw new NoSuchAlgorithmException("invalid MAC");
      }
    HMac mac = new HMac(MessageDigest.getInstance(macName.substring(5), new Gnu()));

    // Generate a key from the password.
    byte[] mackey = new byte[mac.getDigestLength()];
    HMac kdfmac = new HMac(MessageDigest.getInstance("SHA-1", new Gnu()));
    kdfmac.setup(new String(password).getBytes("UTF-8"));
    byte[] salt = decodeSalt((String) props.get("salt"));

    int limit = salt.length;
    byte[] in = new byte[limit + 4];
    System.arraycopy(salt, 0, in, 0, salt.length);
    // The count is appended to 'in', but in this case it is always 1.
    in[in.length - 1] = 1;
    for (int i = 0; i < 1000; i++)
      {
        kdfmac.reset();
        kdfmac.update(in, 0, in.length);
        in = kdfmac.digest();
        for (int j = 0; j < mackey.length; j++)
          {
            mackey[j] ^= in[j];
          }
      }

    // Compute and check the MAC.
    mac.setup(mackey);
    mac.update(payload, 0, payload.length);
    byte[] d = mac.digest();

    for (int i = 0; i < d.length && i < hash.length; i++)
      {
        if (d[i] != hash[i])
          {
            return false;
          }
      }
    return true;
  }

  private Map readProperties(DataInputStream in) throws IOException
  {
    HashMap props = new HashMap();
    int len = in.readInt();
    byte[] buf = new byte[len];
    in.readFully(buf);
    DataInputStream in2 = new DataInputStream(new ByteArrayInputStream(buf));
    while (in2.available() > 0)
      {
        String key = in2.readUTF();
        String value = in2.readUTF();
        props.put(canonicalize(key), value);
      }
    return props;
  }

  private byte[] decodeSalt(String salt)
  {
    int limit = salt.length();
    byte[] result = new byte[((limit + 1) / 2)];
    int i = 0, j = 0;
    if ((limit & 1) == 1)
      {
        result[j++] = (byte) Character.digit(salt.charAt(i++), 16);
      }
    while (i < limit)
      {
        result[j  ]  = (byte) (Character.digit(salt.charAt(i++), 16) << 4);
        result[j++] |= (byte)  Character.digit(salt.charAt(i++), 16);
      }
    return result;
  }

  // Inner classes.
  // -------------------------------------------------------------------------

  /**
   * A single certificate entry.
   */
  private static final class Entry
  {

    // Fields.
    // -----------------------------------------------------------------------

    private final Certificate certificate;
    private final Date creationDate;

    // Constructor.
    // -----------------------------------------------------------------------

    Entry(Certificate certificate, Date creationDate)
    {
      this.certificate = certificate;
      this.creationDate = creationDate;
    }

    // Instance methods.
    // -----------------------------------------------------------------------

    Certificate getCertificate()
    {
      return certificate;
    }

    Date getCreationDate()
    {
      return (Date) creationDate.clone();
    }
  }

  /**
   * Minimal HMac implemnentation, derived from GNU Crypto.
   */
  private static final class HMac
  {

    // Constants and fields.
    // -----------------------------------------------------------------------

    private MessageDigest md, ipadHash, opadHash;
    private byte[] ipad;

    // Constructor.
    // -----------------------------------------------------------------------

    HMac(MessageDigest md)
    {
      this.md = md;
    }

    // Instance methods.
    // -----------------------------------------------------------------------

    void setup(byte[] key)
    {
      if (key.length > 64)
        {
          key = md.digest(key);
        }
      if (key.length < 64)
        {
          byte[] b = new byte[64];
          System.arraycopy(key, 0, b, 0, key.length);
          key = b;
        }

      ipad = new byte[64];
      for (int i = 0; i < ipad.length; i++)
        {
          ipad[i] = (byte) (key[i] ^ 0x36);
        }

      md.reset();
      try
        {
          opadHash = (MessageDigest) md.clone();
        }
      catch (CloneNotSupportedException shouldNotHappen)
        {
          throw new Error(shouldNotHappen);
        }
      for (int i = 0; i < key.length; i++)
        {
          opadHash.update((byte) (key[i] ^ 0x5C));
        }
      md.update(ipad);
      try
        {
          ipadHash = (MessageDigest) md.clone();
        }
      catch (CloneNotSupportedException shouldNotHappen)
        {
          throw new Error(shouldNotHappen);
        }
    }

    void update(byte[] buf, int off, int len)
    {
      md.update(buf, off, len);
    }

    byte[] digest()
    {
      byte[] result = md.digest();
      try
        {
          md = (MessageDigest) opadHash.clone();
        }
      catch (CloneNotSupportedException shouldNotHappen)
        {
          throw new Error(shouldNotHappen);
        }
      result = md.digest(result);
      md.reset();
      return result;
    }

    void reset()
    {
      md.reset();
      if (ipad == null)
        {
          return;
        }
      md.update(ipad);
      try
        {
          ipadHash = (MessageDigest) md.clone();
        }
      catch (CloneNotSupportedException shouldNotHappen)
        {
          throw new Error(shouldNotHappen);
        }
    }

    int getDigestLength()
    {
      return md.getDigestLength();
    }
  }
}

--=-=-=
Content-Disposition: attachment; filename=PolicyFile.java

/* PolicyFile.java -- policy file reader.
   Copyright (C) 2003  Free Software Foundation, Inc.

This file is part of GNU Classpath.

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

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

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

Linking this library statically or dynamically with other modules is
making a combined work based on this library.  Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.

As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module.  An independent module is a module which is not derived from
or based on this library.  If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so.  If you do not wish to do so, delete this
exception statement from your version. */


package gnu.java.security;

import java.io.File;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.Reader;
import java.io.StreamTokenizer;

import java.lang.reflect.Constructor;
import java.net.URL;
import java.net.MalformedURLException;

import java.security.AccessController;
import java.security.CodeSource;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.Permission;
import java.security.Permissions;
import java.security.PermissionCollection;
import java.security.Policy;
import java.security.Principal;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
import java.security.Security;
import java.security.UnresolvedPermission;
import java.security.cert.Certificate;
import java.security.cert.X509Certificate;

import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;

/**
 * An implementation of a {@link java.security.Policy} object whose
 * permissions are specified by a <em>policy file</em>.
 *
 * <p>The approximate syntax of policy files is:</p>
 *
 * <pre>
 * policyFile ::= keystoreOrGrantEntries ;
 *
 * keystoreOrGrantEntries ::= keystoreOrGrantEntry |
 *                            keystoreOrGrantEntries keystoreOrGrantEntry |
 *                            EMPTY ;
 *
 * keystoreOrGrantEntry ::= keystoreEntry | grantEntry ;
 *
 * keystoreEntry ::= "keystore" keystoreUrl ';' |
 *                   "keystore" keystoreUrl ',' keystoreAlgorithm ';' ;
 *
 * keystoreUrl ::= URL ;
 * keystoreAlgorithm ::= STRING ;
 *
 * grantEntry ::= "grant" domainParameters '{' permissions '}' ';'
 *
 * domainParameters ::= domainParameter |
 *                      domainParameter ',' domainParameters ;
 *
 * domainParameter ::= "signedBy" signerNames |
 *                     "codeBase" codeBaseUrl |
 *                     "principal" principalClassName principalName |
 *                     "principal" principalName ;
 *
 * signerNames ::= quotedString ;
 * codeBaseUrl ::= URL ;
 * principalClassName ::= STRING ;
 * principalName ::= quotedString ;
 *
 * quotedString ::= quoteChar STRING quoteChar ;
 * quoteChar ::= '"' | '\'';
 *
 * permissions ::= permission | permissions permission ;
 *
 * permission ::= "permission" permissionClassName permissionTarget permissionAction |
 *                "permission" permissionClassName permissionTarget |
 *                "permission" permissionClassName;
 * </pre>
 *
 * <p>Comments are either form of Java comments. Keystore entries only
 * affect subsequent grant entries, so if a grant entry preceeds a
 * keystore entry, that grant entry is not affected by that keystore
 * entry. Certian instances of <code>${property-name}</code> will be
 * replaced with <code>System.getProperty("property-name")</code> in
 * quoted strings.</p>
 *
 * <p>This class will load the following files when created or
 * refreshed, in order:</p>
 *
 * <ol>
 * <li>The file <code>${java.home}/lib/security/java.policy</code>.</li>
 * <li>All URLs specified by security properties
 * <code>"policy.file.<i>n</i>"</code>, for increasing <i>n</i>
 * starting from 1. The sequence stops at the first undefined
 * property, so you must set <code>"policy.file.1"</code> if you also
 * set <code>"policy.file.2"</code>, and so on.</li>
 * <li>The URL specified by the property
 * <code>"java.security.policy"</code>.</li>
 * </ol>
 *
 * @author Casey Marshall (rsdio@metastatic.org)
 * @see java.security.Policy
 */
public final class PolicyFile extends Policy
{

  // Constants and fields.
  // -------------------------------------------------------------------------

  private static final boolean DEBUG = true;
  private static void debug(String msg)
  {
    if (DEBUG)
      {
        System.err.print(">> PolicyFile: ");
        System.err.println(msg);
      }
  }

  private static void debug(Throwable t)
  {
    if (DEBUG)
      {
        System.err.println(">> PolicyFile");
        t.printStackTrace(System.err);
      }
  }

  private static final String DEFAULT_POLICY = System.getProperty("java.home")
    + System.getProperty("file.separator") + "lib"
    + System.getProperty("file.separator") + "security"
    + System.getProperty("file.separator") + "java.policy";

  private final Map cs2pc;

  // Constructors.
  // -------------------------------------------------------------------------

  public PolicyFile()
  {
    cs2pc = new HashMap();
    refresh();
  }

  // Instance methods.
  // -------------------------------------------------------------------------

  public PermissionCollection getPermissions(CodeSource codeSource)
  {
    Permissions perms = new Permissions();
    for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext(); )
      {
        Map.Entry e = (Map.Entry) it.next();
        CodeSource cs = (CodeSource) e.getKey();
        if (cs.implies(codeSource))
          {
            debug(cs+" -> "+codeSource);
            PermissionCollection pc = (PermissionCollection) e.getValue();
            for (Enumeration ee = pc.elements(); ee.hasMoreElements(); )
              {
                perms.add((Permission) ee.nextElement());
              }
          }
        else
          debug(cs+" !-> "+codeSource);
      }
    perms.setReadOnly();
    return perms;
  }

  public void refresh()
  {
    cs2pc.clear();
    List policyFiles = new LinkedList();
    try
      {
        policyFiles.add(new File(DEFAULT_POLICY).toURL());
        policyFiles.addAll((List) AccessController.doPrivileged(
          new PrivilegedExceptionAction()
          {
            public Object run() throws Exception
            {
              LinkedList l = new LinkedList();
              for (int i = 1; ; i++)
                {
                  String s = Security.getProperty("policy.file."+i);
                  debug("policy.file."+i+"="+s);
                  if (s == null)
                    break;
                  l.add(new URL(s));
                }
              String s = System.getProperty("java.security.policy");
              debug("java.security.policy="+s);
              if (s != null)
                l.add(new URL(s));
              return l;
            }
          }));
      }
    catch (PrivilegedActionException pae)
      {
        debug(pae);
      }
    catch (MalformedURLException mue)
      {
        debug(mue);
      }
    for (Iterator it = policyFiles.iterator(); it.hasNext(); )
      {
        try
          {
            URL url = (URL) it.next();
            parse(url);
          }
        catch (IOException ioe)
          {
            debug(ioe);
          }
      }
  }

  public String toString()
  {
    return super.toString() + " [ " + cs2pc.toString() + " ]";
  }

  // Own methods.
  // -------------------------------------------------------------------------

  private static final int STATE_BEGIN = 0;
  private static final int STATE_GRANT = 1;
  private static final int STATE_PERMS = 2;

  /**
   * Parse a policy file, incorporating the permission definitions
   * described therein.
   *
   * @param url The URL of the policy file to read.
   * @throws IOException if an I/O error occurs, or if the policy file
   * cannot be parsed.
   */
  private void parse(final URL url) throws IOException
  {
    final StreamTokenizer in = new StreamTokenizer(new InputStreamReader(url.openStream()));
    in.resetSyntax();
    in.slashSlashComments(true);
    in.slashStarComments(true);
    in.wordChars('A', 'Z');
    in.wordChars('a', 'z');
    in.wordChars('0', '9');
    in.wordChars('.', '.');
    in.wordChars('_', '_');
    in.wordChars('$', '$');
    in.whitespaceChars(' ', ' ');
    in.whitespaceChars('\t', '\t');
    in.whitespaceChars('\f', '\f');
    in.whitespaceChars('\n', '\n');
    in.whitespaceChars('\r', '\r');
    in.quoteChar('\'');
    in.quoteChar('"');

    int tok;
    int state = STATE_BEGIN;
    List keystores = new LinkedList();
    URL currentBase = null;
    List currentCerts = new LinkedList();
    Permissions currentPerms = new Permissions();
    while ((tok = in.nextToken()) != StreamTokenizer.TT_EOF)
      {
        switch (tok)
          {
          case '{':
            if (state != STATE_GRANT)
              error(url, in, "spurious '{'");
            state = STATE_PERMS;
            tok = in.nextToken();
            break;
          case '}':
            if (state != STATE_PERMS)
              error(url, in, "spurious '}'");
            state = STATE_BEGIN;
            currentPerms.setReadOnly();
            Certificate[] c = null;
            if (!currentCerts.isEmpty())
              c = (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]);
            cs2pc.put(new CodeSource(currentBase, c), currentPerms);
            currentCerts.clear();
            currentPerms = new Permissions();
            currentBase = null;
            tok = in.nextToken();
            if (tok != ';')
              in.pushBack();
            continue;
          }
        if (tok != StreamTokenizer.TT_WORD)
          {
            error(url, in, "expecting word token");
          }

        // keystore "<keystore-path>" [',' "<keystore-type>"] ';'
        if (in.sval.equalsIgnoreCase("keystore"))
          {
            String alg = KeyStore.getDefaultType();
            tok = in.nextToken();
            if (tok != '"' && tok != '\'')
              error(url, in, "expecting key store URL");
            String store = in.sval;
            tok = in.nextToken();
            if (tok == ',')
              {
                tok = in.nextToken();
                if (tok != '"' && tok != '\'')
                  error(url, in, "expecting key store type");
                alg = in.sval;
                tok = in.nextToken();
              }
            if (tok != ';')
              error(url, in, "expecting semicolon");
            try
              {
                KeyStore keystore = KeyStore.getInstance(alg);
                keystore.load(new URL(url, store).openStream(), null);
                keystores.add(keystore);
              }
            catch (Exception x)
              {
                error(url, in, x.toString());
              }
          }
        else if (in.sval.equalsIgnoreCase("grant"))
          {
            if (state != STATE_BEGIN)
              error(url, in, "extraneous grant keyword");
            state = STATE_GRANT;
          }
        else if (in.sval.equalsIgnoreCase("signedBy"))
          {
            if (state != STATE_GRANT && state != STATE_PERMS)
              error(url, in, "spurious 'signedBy'");
            if (keystores.isEmpty())
              error(url, in, "'signedBy' with no keystores");
            tok = in.nextToken();
            if (tok != '"' && tok != '\'')
              error(url, in, "expecting signedBy name");
            StringTokenizer st = new StringTokenizer(in.sval, ",");
            while (st.hasMoreTokens())
              {
                String alias = st.nextToken();
                for (Iterator it = keystores.iterator(); it.hasNext(); )
                  {
                    KeyStore keystore = (KeyStore) it.next();
                    try
                      {
                        if (keystore.isCertificateEntry(alias))
                          currentCerts.add(keystore.getCertificate(alias));
                      }
                    catch (KeyStoreException kse)
                      {
                        error(url, in, kse.toString());
                      }
                  }
              }
            tok = in.nextToken();
            if (tok != ',')
              {
                if (state != STATE_GRANT)
                  error(url, in, "spurious ','");
                in.pushBack();
              }
          }
        else if (in.sval.equalsIgnoreCase("codeBase"))
          {
            if (state != STATE_GRANT)
              error(url, in, "spurious 'codeBase'");
            tok = in.nextToken();
            if (tok != '"' && tok != '\'')
              error(url, in, "expecting code base URL");
            String base = expand(in.sval);
            if (File.separatorChar != '/')
              base = base.replace(File.separatorChar, '/');
            try
              {
                currentBase = new URL(base);
              }
            catch (MalformedURLException mue)
              {
                error(url, in, mue.toString());
              }
            tok = in.nextToken();
            if (tok != ',')
              in.pushBack();
          }
        else if (in.sval.equalsIgnoreCase("principal"))
          {
            if (state != STATE_GRANT)
              error(url, in, "spurious 'principal'");
            tok = in.nextToken();
            if (tok == StreamTokenizer.TT_WORD)
              {
                tok = in.nextToken();
                if (tok != '"' && tok != '\'')
                  error(url, in, "expecting principal name");
                String name = in.sval;
                Principal p = null;
                try
                  {
                    Class pclass = Class.forName(in.sval);
                    Constructor c =
                      pclass.getConstructor(new Class[] { String.class });
                    p = (Principal) c.newInstance(new Object[] { name });
                  }
                catch (Exception x)
                  {
                    error(url, in, x.toString());
                  }
                for (Iterator it = keystores.iterator(); it.hasNext(); )
                  {
                    KeyStore ks = (KeyStore) it.next();
                    try
                      {
                        for (Enumeration e = ks.aliases(); e.hasMoreElements(); )
                          {
                            String alias = (String) e.nextElement();
                            if (ks.isCertificateEntry(alias))
                              {
                                Certificate cert = ks.getCertificate(alias);
                                if (!(cert instanceof X509Certificate))
                                  continue;
                                if (p.equals(((X509Certificate) cert).getSubjectDN()) ||
                                    p.equals(((X509Certificate) cert).getSubjectX500Principal()))
                                  currentCerts.add(cert);
                              }
                          }
                      }
                    catch (KeyStoreException kse)
                      {
                        error(url, in, kse.toString());
                      }
                  }
              }
            else if (tok == '"' || tok == '\'')
              {
                String alias = in.sval;
                for (Iterator it = keystores.iterator(); it.hasNext(); )
                  {
                    KeyStore ks = (KeyStore) it.next();
                    try
                      {
                        if (ks.isCertificateEntry(alias))
                          currentCerts.add(ks.getCertificate(alias));
                      }
                    catch (KeyStoreException kse)
                      {
                        error(url, in, kse.toString());
                      }
                  }
              }
            else
              error(url, in, "expecting principal");
            tok = in.nextToken();
            if (tok != ',')
              in.pushBack();
          }
        else if (in.sval.equalsIgnoreCase("permission"))
          {
            if (state != STATE_PERMS)
              error(url, in, "spurious 'permission'");
            tok = in.nextToken();
            if (tok != StreamTokenizer.TT_WORD)
              error(url, in, "expecting permission class name");
            String className = in.sval;
            Class clazz = null;
            try
              {
                clazz = Class.forName(className);
              }
            catch (ClassNotFoundException cnfe)
              {
              }
            tok = in.nextToken();
            if (tok == ';')
              {
                if (clazz == null)
                  {
                    currentPerms.add(new UnresolvedPermission(className,
                      null, null, (Certificate[]) currentCerts.toArray(new Certificate[0])));
                    continue;
                  }
                try
                  {
                    currentPerms.add((Permission) clazz.newInstance());
                  }
                catch (Exception x)
                  {
                    error(url, in, x.toString());
                  }
                continue;
              }
            if (tok != '"' && tok != '\'')
              error(url, in, "expecting permission target");
            String target = expand(in.sval);
            tok = in.nextToken();
            if (tok == ';')
              {
                if (clazz == null)
                  {
                    currentPerms.add(new UnresolvedPermission(className,
                      target, null, (Certificate[]) currentCerts.toArray(new Certificate[0])));
                    continue;
                  }
                try
                  {
                    Constructor c =
                      clazz.getConstructor(new Class[] { String.class });
                    currentPerms.add((Permission) c.newInstance(
                      new Object[] { target }));
                  }
                catch (Exception x)
                  {
                    error(url, in, x.toString());
                  }
                continue;
              }
            if (tok != ',')
              error(url, in, "expecting ','");
            tok = in.nextToken();
            if (tok == StreamTokenizer.TT_WORD)
              {
                if (!in.sval.equalsIgnoreCase("signedBy"))
                  error(url, in, "expecting 'signedBy'");
                try
                  {
                    Constructor c =
                      clazz.getConstructor(new Class[] { String.class });
                    currentPerms.add((Permission) c.newInstance(
                      new Object[] { target }));
                  }
                catch (Exception x)
                  {
                    error(url, in, x.toString());
                  }
                in.pushBack();
                continue;
              }
            if (tok != '"' && tok != '\'')
              error(url, in, "expecting permission action");
            String action = in.sval;
            if (clazz == null)
              {
                currentPerms.add(new UnresolvedPermission(className,
                  target, action, (Certificate[]) currentCerts.toArray(new Certificate[0])));
                continue;
              }
            else
              {
                try
                  {
                    Constructor c = clazz.getConstructor(
                      new Class[] { String.class, String.class });
                    currentPerms.add((Permission) c.newInstance(
                      new Object[] { target, action }));
                  }
                catch (Exception x)
                  {
                    error(url, in, x.toString());
                  }
              }
            tok = in.nextToken();
            if (tok != ';' && tok != ',')
              error(url, in, "expecting ';' or ','");
          }
      }
  }

  /**
   * Expand all instances of <code>"${property-name}"</code> into
   * <code>System.getProperty("property-name")</code>.
   */
  private static String expand(final String s)
  {
    final StringBuffer result = new StringBuffer();
    final StringBuffer prop = new StringBuffer();
    int state = 0;
    for (int i = 0; i < s.length(); i++)
      {
        switch (state)
          {
          case 0:
            if (s.charAt(i) == '$')
              state = 1;
            else
              result.append(s.charAt(i));
            break;
          case 1:
            if (s.charAt(i) == '{')
              state = 2;
            else
              {
                state = 0;
                result.append('$').append(s.charAt(i));
              }
            break;
          case 2:
            if (s.charAt(i) == '}')
              {
                String p = prop.toString();
                if (p.equals("/"))
                  p = "file.separator";
                p = System.getProperty(p);
                if (p == null)
                  p = "";
                result.append(p);
                prop.setLength(0);
                state = 0;
              }
            else
              prop.append(s.charAt(i));
            break;
          }
      }
    if (state != 0)
      result.append('$').append('{').append(prop);
    return result.toString();
  }

  /**
   * I miss macros.
   */
  private static void error(URL base, StreamTokenizer in, String msg)
    throws IOException
  {
    throw new IOException(base+":"+in.lineno()+": "+msg);
  }
}

--=-=-=--



From MAILER-DAEMON Wed Dec 17 04:49:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWYIy-0000Q6-Jc
	for mharc-classpath@gnu.org; Wed, 17 Dec 2003 04:49:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWY9j-0004ky-CX
	for classpath@gnu.org; Wed, 17 Dec 2003 04:39:47 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWY9D-0004GV-Iu
	for classpath@gnu.org; Wed, 17 Dec 2003 04:39:46 -0500
Received: from [195.8.69.18] (helo=oceanus2.uk.clara.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWY9D-0004GS-6t
	for classpath@gnu.org; Wed, 17 Dec 2003 04:39:15 -0500
Received: from du-253-232.nat.adsl.claranet.fr ([212.43.253.232]
	helo=[10.0.0.2]) by oceanus2.uk.clara.net with esmtp (Exim 3.36 #2)
	id 1AWXBb-0002KF-00; Wed, 17 Dec 2003 08:37:39 +0000
In-Reply-To: <1071521431.15206.13.camel@elsschot.wildebeest.org>
References: <3FDA26F5.8000907@redhat.com> <87oeudshna.fsf@fleche.redhat.com>
	<F9EB309E-2DC2-11D8-BA93-003065F97F7C@mckinlay.net.nz>
	<1071521431.15206.13.camel@elsschot.wildebeest.org>
Mime-Version: 1.0 (Apple Message framework v606)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <41C8966E-306C-11D8-B71B-003065B22A76@bluezoo.org>
Content-Transfer-Encoding: 7bit
From: Chris Burdess <dog@bluezoo.org>
Date: Wed, 17 Dec 2003 09:37:32 +0100
To: Mark Wielaard <mark@klomp.org>
X-Mailer: Apple Mail (2.606)
X-Mailman-Approved-At: Wed, 17 Dec 2003 04:49:19 -0500
Cc: Stephane Meslin-Weber <twiun@adorphuye.com>, classpath@gnu.org,
	java@gcc.gnu.org
Subject: Re: AWT peers (Was: [PATCH] More List fixes)
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 Dec 2003 09:39:47 -0000

Mark Wielaard wrote:
>> In the long run, however, it may well be worth stabilizing and
>> documenting _our_ peer interface so that others can develop peers
>> independently of libgcj.
>
> Both Chris and Stephane are working on AWT peers so they might have an
> opinion.

sorry for the late reply:

i've had some initial success with my awt-over-ncurses implementation 
using classpath and libgcj, although it's far from complete. however, 
it won't work with sun's jre. there is code in sun's java.awt that 
calls private, final members in the sun.* packages, at least in 1.3.1. 
the sun code then tries to cast the awt toolkit to a sun toolkit, with 
predictable results.

i have found the interface to be largely useable even without 
documentation, although any tips on the event subsystem would probably 
be helpful. i'll try and jot down anything that seems important.
-- 
chris burdess




From MAILER-DAEMON Wed Dec 17 10:46:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWdsG-0004cw-V3
	for mharc-classpath@gnu.org; Wed, 17 Dec 2003 10:46:08 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWdri-0004MN-2F
	for classpath@gnu.org; Wed, 17 Dec 2003 10:45:34 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWdqK-0003e8-4o
	for classpath@gnu.org; Wed, 17 Dec 2003 10:44:53 -0500
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWdpL-000370-Ci
	for classpath@gnu.org; Wed, 17 Dec 2003 10:43:07 -0500
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 hBHEfZA09989;
	Wed, 17 Dec 2003 09:41:35 -0500
Received: from redhat.com (sebastian-int.corp.redhat.com [172.16.52.221])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id hBHEfYE18291; 
	Wed, 17 Dec 2003 09:41:34 -0500
Message-ID: <3FE06B03.2020909@redhat.com>
Date: Wed, 17 Dec 2003 09:41:07 -0500
From: graydon hoare <graydon@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.5) Gecko/20031115 Thunderbird/0.3
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: java-patches@gcc.gnu.org
Content-Type: multipart/mixed; boundary="------------020709060100070906030009"
Cc: classpath@gnu.org
Subject: [PATCH] enable Graphics2D at configure and runtime
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 Dec 2003 15:46:05 -0000

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

hi,

this patch provides a new bit of configury (--enable-gtk-cairo) and a 
runtime system property ("gnu.java.awt.peer.gtk.Graphics" == "Graphics" 
or "Graphics2D") which permits the cairo/graphics2d code I've been 
working on to coexist with the existing GTK peers and GDK Graphics 
object, as an option at both compile and runtime.

I'm sure there'll be a few suggestions about how "best" to do this, so I 
just picked what seemed like an unintrusive method and implemented it, 
to make sure it's even possible. any suggestions on how to do it better?

if not, is it ok to apply?

(asking both classpath and gcj here, though the patch is against gcj 
configury, I'd port it to classpath pretty much directly)

-graydon

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

	* configure.in: Add --enable-gtk-cairo check.
	* Makefile.am: Conditionally link against cairo.
	* gnu/java/awt/peer/gtk/GtkToolkit.java (useGraphics2D): New method.
	(getFontMetrics, getClasspathFontPeer):
	* gnu/java/awt/peer/gtk/GtkCanvasPeer.java (getGraphics):
	* gnu/java/awt/peer/gtk/GtkComponentPeer.java (createImage):
	* gnu/java/awt/peer/gtk/GtkContainerPeer.java (getGraphics):
	* gnu/java/awt/peer/gtk/GtkFramePeer.java (getGraphics):
	Switch behavior depending on GtkToolkit.useGraphics2D().	
	* gnu/java/awt/peer/gtk/GtkFontPeer.java: Extend ClasspathFontPeer.
	* java/awt/Font.java: Switch to peer model.
	* jni/gtk-peer/gtkcairopeer.h: Definitions of cairo stuff.
	* jni/gtk-peer/gdkfont.h: Include gtkcairopeer.h.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Include 
gtkcairopeer.h.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c: 
Un-include gtkpeer.h.

--------------020709060100070906030009
Content-Type: text/plain;
 name="j2d-enable-graphics2d.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="j2d-enable-graphics2d.patch"

--- Makefile.am	9 Dec 2003 18:45:08 -0000	1.337
+++ Makefile.am	16 Dec 2003 22:17:59 -0000
@@ -168,8 +168,20 @@
 	-version-info `grep -v '^\#' $(srcdir)/libtool-version`
 libgcj_la_LINK = $(LIBLINK)
 
+# Gtk/Cairo JNI sources.
+if GTK_CAIRO
+gtk_cairo_c_source_files = \
+jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c \
+jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c \
+jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c \
+jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
+else
+gtk_cairo_c_source_files = 
+endif
+
 ## Gtk JNI sources.
 gtk_c_source_files = \
+$(gtk_cairo_c_source_files) \
 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c \
 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c \
 jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c \
@@ -207,8 +219,12 @@
 
 ## Java sources for Gtk peers.
 gtk_awt_peer_sources = \
+gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java \
+gnu/java/awt/peer/gtk/GdkClasspathFontPeerMetrics.java \
 gnu/java/awt/peer/gtk/GdkFontMetrics.java \
+gnu/java/awt/peer/gtk/GdkGlyphVector.java \
 gnu/java/awt/peer/gtk/GdkGraphics.java \
+gnu/java/awt/peer/gtk/GdkGraphics2D.java \
 gnu/java/awt/peer/gtk/GdkPixbufDecoder.java \
 gnu/java/awt/peer/gtk/GtkArg.java \
 gnu/java/awt/peer/gtk/GtkArgList.java \
@@ -264,7 +280,11 @@
 jni/classpath/native_state.h \
 jni/classpath/primlib.h
 
+if GTK_CAIRO
+lib_gnu_java_awt_peer_gtk_la_LIBADD = $(GTK_LIBS) $(GLIB_LIBS) $(LIBART_LIBS) -lcairo -lpixman -lpangoft2-1.0
+else
 lib_gnu_java_awt_peer_gtk_la_LIBADD = $(GTK_LIBS) $(GLIB_LIBS) $(LIBART_LIBS)
+endif
 
 lib_org_w3c_dom_la_SOURCES = org/w3c/dom/Attr.java \
 org/w3c/dom/CDATASection.java \
@@ -604,7 +624,6 @@
 	$(INSTALL_DATA) 'java/lang/reflect/Proxy$$ProxyType.h' $(DESTDIR)$(includedir)/java/lang/reflect/
 	$(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketInputStream.h' $(DESTDIR)$(includedir)/gnu/java/net/
 	$(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketOutputStream.h' $(DESTDIR)$(includedir)/gnu/java/net/
-	
 	$(INSTALL_DATA) $(srcdir)/java/util/logging/logging.properties $(DESTDIR)$(propdir)/logging.properties
 
 ## ################################################################
@@ -833,6 +852,7 @@
 gnu/java/awt/BitMaskExtent.java \
 gnu/java/awt/Buffers.java \
 gnu/java/awt/ComponentDataBlitOp.java \
+gnu/java/awt/ClasspathToolkit.java \
 gnu/java/awt/EmbeddedWindow.java \
 gnu/java/awt/EmbeddedWindowSupport.java \
 gnu/java/awt/EventModifier.java \
@@ -840,6 +860,7 @@
 gnu/java/awt/image/XBMDecoder.java \
 gnu/java/awt/peer/EmbeddedWindowPeer.java \
 gnu/java/awt/peer/GLightweightPeer.java \
+gnu/java/awt/peer/ClasspathFontPeer.java \
 gnu/java/beans/editors/ColorEditor.java	\
 gnu/java/beans/editors/FontEditor.java \
 gnu/java/beans/editors/NativeBooleanEditor.java	\
--- configure.in	22 Oct 2003 16:35:15 -0000	1.173
+++ configure.in	16 Dec 2003 22:17:59 -0000
@@ -377,6 +377,18 @@
 AM_CONDITIONAL(XLIB_AWT, test "$use_xlib_awt" = yes)
 AM_CONDITIONAL(GTK_AWT, test "$use_gtk_awt" = yes)
 
+dnl determine whether to enable the cairo GTK Graphics2D backend
+AC_ARG_ENABLE(gtk-cairo, [  --enable-gtk-cairo       build the cairo Graphics2D implementation on GTK])
+AM_CONDITIONAL(GTK_CAIRO, test "x${enable_gtk_cairo}" = xyes)
+if test "x${enable_gtk_cairo}" = xyes
+then
+	AC_CHECK_LIB([cairo], [cairo_create])
+	AC_CHECK_LIB([pixman], [pixman_region_create])
+	if (echo $LIBS | grep -v -q cairo) || (echo $LIBS | grep -v -q pixman)
+	then
+	    AC_MSG_ERROR(need both libcairo and libpixman for cairo support)
+	fi
+fi
 
 dnl FIXME: this should be _libs on some hosts.
 libsubdir=.libs
--- gnu/java/awt/peer/gtk/GtkCanvasPeer.java	13 Jul 2003 15:09:20 -0000	1.2
+++ gnu/java/awt/peer/gtk/GtkCanvasPeer.java	16 Dec 2003 22:17:59 -0000
@@ -56,6 +56,9 @@
 
   public Graphics getGraphics ()
   {
+    if (GtkToolkit.useGraphics2D ())
+      return new GdkGraphics2D (this);
+    else
     return new GdkGraphics (this);
   }
 
--- gnu/java/awt/peer/gtk/GtkComponentPeer.java	8 Oct 2003 23:38:44 -0000	1.7
+++ gnu/java/awt/peer/gtk/GtkComponentPeer.java	16 Dec 2003 22:17:59 -0000
@@ -48,6 +48,7 @@
 import java.awt.FontMetrics;
 import java.awt.Frame;
 import java.awt.Graphics;
+import java.awt.Graphics2D;
 import java.awt.GraphicsConfiguration;
 import java.awt.Image;
 import java.awt.Insets;
@@ -146,7 +147,16 @@
 
   public Image createImage (int width, int height)
   {
-    GdkGraphics g = new GdkGraphics (width, height);
+    Graphics g;
+    if (GtkToolkit.useGraphics2D ())
+      {
+        Graphics2D g2 = new GdkGraphics2D (width, height);
+        g2.setBackground (getBackground ());
+        g = g2;
+      }
+    else
+      g = new GdkGraphics (width, height);
+
     return new GtkOffScreenImage (null, g, width, height);
   }
 
--- gnu/java/awt/peer/gtk/GtkContainerPeer.java	2 Oct 2003 18:34:56 -0000	1.4
+++ gnu/java/awt/peer/gtk/GtkContainerPeer.java	16 Dec 2003 22:17:59 -0000
@@ -92,6 +92,9 @@
 
   public Graphics getGraphics ()
   {
+    if (GtkToolkit.useGraphics2D ())
+        return new GdkGraphics2D (this);
+    else
     return new GdkGraphics (this);
   }
 
--- gnu/java/awt/peer/gtk/GtkFontPeer.java	19 Feb 2003 00:35:35 -0000	1.2
+++ gnu/java/awt/peer/gtk/GtkFontPeer.java	16 Dec 2003 22:17:59 -0000
@@ -38,10 +38,15 @@
 
 package gnu.java.awt.peer.gtk;
 import java.awt.peer.FontPeer;
-import java.awt.Font;
+import java.awt.*;
+import java.awt.geom.*;
+import java.awt.font.*;
+import java.util.Locale;
 import java.util.ResourceBundle;
+import java.text.*;
+import gnu.java.awt.peer.ClasspathFontPeer;
 
-public class GtkFontPeer implements FontPeer
+public class GtkFontPeer extends ClasspathFontPeer
 {
   private static ResourceBundle bundle;
   
@@ -61,6 +66,8 @@
 
   public GtkFontPeer (String name, int style)
   {
+    super(name, style, 12 /* kludge */);
+
     if (bundle != null)
       Xname = bundle.getString (name.toLowerCase () + "." + style);
     else
@@ -90,5 +97,105 @@
   public String getXLFD ()
   {
     return Xname;
+  }
+
+
+  /* remaining methods are for static compatibility with the newer
+     ClasspathFontPeer superclass; none of these methods ever existed or
+     worked on the older FontPeer interface, but we need to pretend to
+     support them anyways. */
+
+  public boolean canDisplay (Font font, char c)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public int canDisplayUpTo (Font font, CharacterIterator i, int start, int limit)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public String getSubFamilyName (Font font, Locale locale)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public String getPostScriptName (Font font)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public int getNumGlyphs (Font font)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public int getMissingGlyphCode (Font font)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public byte getBaselineFor (Font font, char c)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public String getGlyphName (Font font, int glyphIndex)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public GlyphVector createGlyphVector (Font font,
+                                                 FontRenderContext frc,
+                                                 CharacterIterator ci)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public GlyphVector createGlyphVector (Font font, 
+                                                 FontRenderContext ctx, 
+                                                 int[] glyphCodes)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public GlyphVector layoutGlyphVector (Font font, 
+                                                 FontRenderContext frc, 
+                                                 char[] chars, int start, 
+                                                 int limit, int flags)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public FontMetrics getFontMetrics (Font font)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public boolean hasUniformLineMetrics (Font font)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public LineMetrics getLineMetrics (Font font, 
+                                              CharacterIterator ci, 
+                                              int begin, int limit, 
+                                              FontRenderContext rc)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public Rectangle2D getMaxCharBounds (Font font, 
+                                                FontRenderContext rc)
+  {
+    throw new UnsupportedOperationException();
+  }
+
+  public Rectangle2D getStringBounds (Font font, 
+                                               CharacterIterator ci, 
+                                               int begin, int limit, 
+                                               FontRenderContext frc)
+  {
+    throw new UnsupportedOperationException();
   }
 }
--- gnu/java/awt/peer/gtk/GtkFramePeer.java	9 Oct 2003 00:26:29 -0000	1.6
+++ gnu/java/awt/peer/gtk/GtkFramePeer.java	16 Dec 2003 22:17:59 -0000
@@ -41,6 +41,7 @@
 import java.awt.Component;
 import java.awt.Frame;
 import java.awt.Graphics;
+import java.awt.Graphics2D;
 import java.awt.Image;
 import java.awt.Insets;
 import java.awt.MenuBar;
@@ -109,8 +110,12 @@
 
   public Graphics getGraphics ()
   {
-    GdkGraphics g = new GdkGraphics (this);
-    g.translateNative (-insets.left, -insets.top);
+    Graphics g;
+    if (GtkToolkit.useGraphics2D ())
+      g = new GdkGraphics2D (this);
+    else
+      g = new GdkGraphics (this);
+    g.translate (-insets.left, -insets.top);
     return g;
   }
 
--- gnu/java/awt/peer/gtk/GtkToolkit.java	27 Jul 2003 19:04:42 -0000	1.3
+++ gnu/java/awt/peer/gtk/GtkToolkit.java	16 Dec 2003 22:18:00 -0000
@@ -42,6 +42,7 @@
 import java.awt.datatransfer.Clipboard;
 import java.awt.dnd.DragGestureEvent;
 import java.awt.dnd.peer.DragSourceContextPeer;
+import java.awt.font.TextAttribute;
 import java.awt.im.InputMethodHighlight;
 import java.awt.image.ColorModel;
 import java.awt.image.ImageObserver;
@@ -55,7 +56,9 @@
 import gnu.java.awt.EmbeddedWindow;
 import gnu.java.awt.EmbeddedWindowSupport;
 import gnu.java.awt.peer.EmbeddedWindowPeer;
+import gnu.java.awt.peer.ClasspathFontPeer;
 import gnu.classpath.Configuration;
+import gnu.java.awt.peer.gtk.GdkPixbufDecoder;
 
 /* This class uses a deprecated method java.awt.peer.ComponentPeer.getPeer().
    This merits comment.  We are basically calling Sun's bluff on this one.
@@ -64,7 +67,7 @@
    this class.  If getPeer() ever goes away, we can implement a hash table
    that will keep up with every window's peer, but for now this is faster. */
 
-public class GtkToolkit extends Toolkit
+public class GtkToolkit extends gnu.java.awt.ClasspathToolkit
   implements EmbeddedWindowSupport
 {
   GtkMainThread main;
@@ -72,6 +75,18 @@
   static EventQueue q = new EventQueue();
   static Clipboard systemClipboard;
 
+  static boolean useGraphics2dSet;
+  static boolean useGraphics2d;
+
+  public static boolean useGraphics2D()
+  {
+    if (useGraphics2dSet)
+      return useGraphics2d;
+    useGraphics2d = System.getProperty("gnu.java.awt.peer.gtk.Graphics", 
+                                       "Graphics").equals("Graphics2D");
+    useGraphics2dSet = true;
+  }
+
   static 
   {
     if (Configuration.INIT_LOAD_LIBRARY)
@@ -99,16 +114,12 @@
 
   public Image createImage (String filename)
   {
-    // FIXME - gcj local: GdkPixbufDecoder doesn't work.
-    // return new GtkImage (new GdkPixbufDecoder (filename), null);
-    return null;
+    return new GtkImage (new GdkPixbufDecoder (filename), null);
   }
 
   public Image createImage (URL url)
   {
-    // FIXME - gcj local: GdkPixbufDecoder doesn't work.
-    // return new GtkImage (new GdkPixbufDecoder (url), null);
-    return null;
+    return new GtkImage (new GdkPixbufDecoder (url), null);
   }
 
   public Image createImage (ImageProducer producer) 
@@ -139,21 +150,20 @@
 
   public FontMetrics getFontMetrics (Font font) 
   {
+    if (useGraphics2D)
+      return new GdkClasspathFontPeerMetrics (font);
+    else
     return new GdkFontMetrics (font);
   }
 
   public Image getImage (String filename) 
   {
-    // FIXME - gcj local: GdkPixbufDecoder doesn't work.
-    // return new GtkImage (new GdkPixbufDecoder (filename), null);
-    return null;
+    return new GtkImage (new GdkPixbufDecoder (filename), null);
   }
 
   public Image getImage (URL url) 
   {
-    // FIXME - gcj local: GdkPixbufDecoder doesn't work.
-    // return new GtkImage (new GdkPixbufDecoder (url), null);
-    return null;
+    return new GtkImage (new GdkPixbufDecoder (url), null);
   }
 
   public PrintJob getPrintJob (Frame frame, String jobtitle, Properties props) 
@@ -308,6 +318,7 @@
     return new GtkEmbeddedWindowPeer (w);
   }
 
+  /* deprecated, part of the older AWT Toolkit API. */
   protected FontPeer getFontPeer (String name, int style) 
   {
     try {
@@ -318,6 +329,36 @@
     }
   }
 
+  /* newer method to produce a peer for a Font object, even though Sun's
+     design claims Font should now be peerless, we do not agree with this
+     model, hence "ClasspathFontPeer". */
+
+  public ClasspathFontPeer getClasspathFontPeer (String name, Map attrs)
+  {
+    if (useGraphics2D)
+      return new GdkClasspathFontPeer (name, attrs);
+    else
+      {
+        int style = Font.PLAIN;
+
+        if (attrs.containsKey (TextAttribute.WEIGHT))
+          {
+            Float weight = (Float) attrs.get (TextAttribute.WEIGHT);
+            if (weight.floatValue () >= TextAttribute.WEIGHT_BOLD.floatValue ())
+              style += Font.BOLD;
+          }
+        
+        if (attrs.containsKey (TextAttribute.POSTURE))
+          {
+            Float posture = (Float) attrs.get (TextAttribute.POSTURE);
+            if (posture.floatValue () >= TextAttribute.POSTURE_OBLIQUE.floatValue ())
+              style += Font.ITALIC;
+          }
+        
+        return (ClasspathFontPeer) this.getFontPeer (name, style);
+      }
+  }
+
   protected EventQueue getSystemEventQueueImpl() 
   {
     return q;
@@ -336,4 +377,18 @@
   {
     throw new Error("not implemented");
   }
+
+  // ClasspathToolkit methods
+
+  public GraphicsEnvironment getLocalGraphicsEnvironment()
+  {
+    throw new java.lang.UnsupportedOperationException ();
+  }
+
+  public Font createFont(int format, java.io.InputStream stream)
+  {
+    throw new java.lang.UnsupportedOperationException ();
+  }
+
+
 } // class GtkToolkit
--- java/awt/Font.java	13 Aug 2003 16:49:57 -0000	1.14
+++ java/awt/Font.java	16 Dec 2003 22:18:00 -0000
@@ -42,6 +42,7 @@
 import java.awt.font.GlyphVector;
 import java.awt.font.LineMetrics;
 import java.awt.font.TextAttribute;
+import java.awt.font.TransformAttribute;
 import java.awt.geom.AffineTransform;
 import java.awt.geom.Rectangle2D;
 import java.awt.peer.FontPeer;
@@ -50,15 +51,21 @@
 import java.io.Serializable;
 import java.util.Locale;
 import java.util.Map;
+import java.util.HashMap;
 import java.util.StringTokenizer;
 import java.text.CharacterIterator;
 import java.text.AttributedCharacterIterator;
+import java.text.StringCharacterIterator;
+
+import gnu.java.awt.ClasspathToolkit;
+import gnu.java.awt.peer.ClasspathFontPeer;
 
 /**
   * This class represents a windowing system font.
   *
   * @author Aaron M. Renn (arenn@urbanophile.com)
   * @author Warren Levy <warrenl@cygnus.com>
+ * @author Graydon Hoare <graydon@redhat.com>
   */
 public class Font implements Serializable
 {
@@ -160,32 +167,9 @@
 // Serialization constant
 private static final long serialVersionUID = -4206021311591459213L;
 
-/*************************************************************************/
-
-/*
- * Instance Variables
- */
-
-/**
-  * The name of this font
-  */
-protected String name;
-
-/**
-  * The font style, which is a combination (by summing, not OR-ing) of
-  * the font style constants in this class.
-  */
-protected int style;
-
-/**
-  * The font point size.
-  */
-protected int size;
-
-protected float pointSize;
 
-// The native peer for this font
-private FontPeer peer;
+  // The ClasspathToolkit-provided peer which implements this font
+  private ClasspathFontPeer peer;
 
 /*************************************************************************/
 
@@ -208,8 +192,7 @@
   * style if none is specified is PLAIN.  The default size if none
   * is specified is 12.
   */
-public static Font
-decode(String fontspec)
+  public static Font decode (String fontspec)
 {
   String name = null;
   int style = PLAIN;
@@ -237,7 +220,7 @@
         }
       if (token.toUpperCase().equals("BOLDITALIC"))
         {
-          style = BOLD + ITALIC;
+            style = BOLD | ITALIC;
           continue;
         }
 
@@ -252,9 +235,46 @@
         size = tokenval;
     }
 
-  return(new Font(name, style, size));
+    return getFontFromToolkit (name, attrsToMap (style, size));
 }
 
+  /* These methods delegate to the toolkit. */
+
+  protected static ClasspathToolkit tk ()
+  {
+    return (ClasspathToolkit)(Toolkit.getDefaultToolkit ());
+  }
+
+  protected static Map attrsToMap(int style, int size)
+  {
+    Map attrs = new HashMap();
+    attrs.put (TextAttribute.SIZE, new Float ((float)size));
+    
+    if ((style & BOLD) == BOLD)
+      attrs.put (TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD);
+    else
+      attrs.put (TextAttribute.WEIGHT, TextAttribute.WEIGHT_REGULAR);
+
+    if ((style & ITALIC) == ITALIC)
+      attrs.put (TextAttribute.POSTURE, TextAttribute.POSTURE_OBLIQUE);
+    else
+      attrs.put (TextAttribute.POSTURE, TextAttribute.POSTURE_REGULAR);
+    return attrs;
+  }
+
+  /* Every factory method in Font should eventually call this. */
+  protected static Font getFontFromToolkit (String name, Map attribs)
+  {
+    return tk ().getFont (name, attribs);
+  }
+
+  /* Every Font constructor should eventually call this. */
+  protected static ClasspathFontPeer getPeerFromToolkit (String name, Map attrs)
+  {
+    return tk ().getClasspathFontPeer (name, attrs);
+  }
+
+
 /*************************************************************************/
 
 /**
@@ -266,14 +286,12 @@
   * @return The requested font, or <code>default</code> if the property 
   * not exist or is malformed.
   */
-public static Font
-getFont(String propname, Font defval)
+  public static Font getFont (String propname, Font defval)
 {
   String propval = System.getProperty(propname);
   if (propval != null)
-    return(decode(propval));
-
-  return(defval);
+      return decode (propval);
+    return defval;
 }
 
 /*************************************************************************/
@@ -286,10 +304,9 @@
   * @return The requested font, or <code>null</code> if the property 
   * not exist or is malformed.
   */
-public static Font
-getFont(String propname)
+  public static Font getFont (String propname)
 {
-  return(getFont(propname, null));
+    return getFont (propname, (Font)null);
 }
 
 /*************************************************************************/
@@ -306,19 +323,22 @@
   * @param style The font style.
   * @param size The font point size.
   */
-public
-Font(String name, int style, int size)
+
+  public Font (String name, int style, int size)
+  {
+    this.peer = getPeerFromToolkit (name, attrsToMap (style, size));
+  }
+
+  public Font (Map attrs)
 {
-  this.name = name;
-  this.style = style;
-  this.size = size;
-  this.pointSize = size;
+    this.peer = getPeerFromToolkit (null, attrs);
 }
 
-public  
-Font(Map attributes)
+  /* This extra constructor is here to permit ClasspathToolkit and to build
+     a font with a "logical name" as well as attrs.  */
+  public Font (String name, Map attrs)
 {
-  throw new UnsupportedOperationException();
+    this.peer = getPeerFromToolkit (name, attrs);
 }
 
 /*************************************************************************/
@@ -328,20 +348,19 @@
  */
 
 /**
-  * Returns the logical name of the font.  A logical name describes a very
-  * general typographic style (such as Sans Serif). It is less specific
-  * than both a font family name (such as Helvetica) and a font face name
-  * (such as Helvetica Bold).
+   * Returns the logical name of the font.  A logical name is the name the
+   * font was constructed with. It may be the name of a logical font (one
+   * of 6 required names in all java environments) or it may be a face
+   * name.
   *
   * @return The logical name of the font.
   *
   * @see getFamily()
   * @see getFontName()
   */
-public String
-getName()
+  public String getName ()
 {
-  return(name);
+    return peer.getName (this);
 }
 
 /*************************************************************************/
@@ -351,16 +370,14 @@
   * 
   * @return The font style.
   */
-public int
-getSize()
+  public int getSize ()
 {
-  return(size);
+    return (int) peer.getSize (this);
 }
 
-public float
-getSize2D()
+  public float getSize2D ()
 {
-  return pointSize;
+    return peer.getSize (this);
 }
 
 /*************************************************************************/
@@ -372,13 +389,9 @@
   * @return <code>true</code> if this is a plain font, <code>false</code>
   * otherwise.
   */
-public boolean
-isPlain()
+  public boolean isPlain ()
 {
-  if (style == PLAIN)
-    return(true);
-  else
-    return(false);
+    return peer.isPlain (this); 
 }
 
 /*************************************************************************/
@@ -389,13 +402,9 @@
   * @return <code>true</code> if this font is bold, <code>false</code>
   * otherwise.
   */
-public boolean
-isBold()
+  public boolean isBold ()
 {
-  if ((style == BOLD) || (style == (BOLD+ITALIC)))
-    return(true);
-  else
-    return(false);
+    return peer.isBold (this);
 }
 
 /*************************************************************************/
@@ -406,22 +415,17 @@
   * @return <code>true</code> if this font is italic, <code>false</code>
   * otherwise.
   */
-public boolean
-isItalic()
+  public boolean isItalic ()
 {
-  if ((style == ITALIC) || (style == (BOLD+ITALIC)))
-    return(true);
-  else
-    return(false);
+    return peer.isItalic (this);
 }
 
 /*************************************************************************/
 
 /**
-  * Returns the family name of this font. A family name describes a
-  * typographic style (such as Helvetica or Palatino). It is more specific
-  * than a logical font name (such as Sans Serif) but less specific than a
-  * font face name (such as Helvetica Bold).
+   * Returns the family name of this font. A family name describes a design
+   * or "brand name" (such as Helvetica or Palatino). It is less specific
+   * than a font face name (such as Helvetica Bold).
   *
   * @return A string containing the font family name.
   *
@@ -431,11 +435,9 @@
   * @see getFontName()
   * @see GraphicsEnvironment.getAvailableFontFamilyNames()
   */
-public String
-getFamily()
+  public String getFamily ()
 {
-  // FIXME: How do I implement this?
-  return(name);
+    return peer.getFamily (this);
 }
 
 /**
@@ -448,10 +450,9 @@
   * @see isBold()
   * @see isItalic()
   */
-public int
-getStyle()
+  public int getStyle ()
 {
-  return style;
+    return peer.getStyle (this);
 }
 
 /**
@@ -463,10 +464,9 @@
   *
   * @since 1.2
   */
-public boolean 
-canDisplay(char c)
+  public boolean canDisplay (char c)
 {
-  throw new UnsupportedOperationException ();
+    return peer.canDisplay (this, c);    
 }
 
 /**
@@ -481,10 +481,10 @@
   *
   * @since 1.2
   */
-public int 
-canDisplayUpTo(String s)
+  public int canDisplayUpTo (String s)
 {
-  throw new UnsupportedOperationException ();
+    return peer.canDisplayUpTo (this, new StringCharacterIterator (s), 
+                                0, s.length () - 1);
 }
 
 /**
@@ -504,10 +504,10 @@
   * @throws IndexOutOfBoundsException if the range [start, limit] is
   * invalid in <code>text</code>.
   */
-public int
-canDisplayUpTo(char[] text, int start, int limit)
+  public int canDisplayUpTo (char[] text, int start, int limit)
 {
-  throw new UnsupportedOperationException ();
+    return peer.canDisplayUpTo 
+      (this, new StringCharacterIterator (new String (text)), start, limit);
 }
 
 /**
@@ -527,10 +527,9 @@
   * @throws IndexOutOfBoundsException if the range [start, limit] is
   * invalid in <code>i</code>.
   */
-public int
-canDisplayUpTo(CharacterIterator i, int start, int limit)
+  public int canDisplayUpTo (CharacterIterator i, int start, int limit)
 {
-  throw new UnsupportedOperationException ();
+    return peer.canDisplayUpTo (this, i, start, limit);    
 }
 
 /**
@@ -554,11 +553,10 @@
   *
   * @since 1.3
   */
-public static Font 
-createFont(int fontFormat, InputStream is) 
+  public static Font createFont (int fontFormat, InputStream is) 
   throws FontFormatException, IOException
 {
-  throw new UnsupportedOperationException ();
+    return tk().createFont (fontFormat, is);
 }
 
 /**
@@ -576,10 +574,9 @@
   *
   * @see layoutGlyphVector()
   */
-public GlyphVector
-createGlyphVector(FontRenderContext ctx, String str)
+  public GlyphVector createGlyphVector (FontRenderContext ctx, String str)
 {
-  throw new UnsupportedOperationException ();
+    return peer.createGlyphVector (this, ctx, new StringCharacterIterator (str));
 }
 
 /**
@@ -597,10 +594,9 @@
   *
   * @see layoutGlyphVector()
   */
-public GlyphVector
-createGlyphVector(FontRenderContext ctx, CharacterIterator i)
+  public GlyphVector createGlyphVector (FontRenderContext ctx, CharacterIterator i)
 {
-  throw new UnsupportedOperationException ();
+    return peer.createGlyphVector (this, ctx, i);
 }
 
 /**
@@ -618,10 +614,10 @@
   *
   * @see layoutGlyphVector()
   */
-public GlyphVector
-createGlyphVector(FontRenderContext ctx, char[] chars)
+  public GlyphVector createGlyphVector (FontRenderContext ctx, char[] chars)
 {
-  throw new UnsupportedOperationException ();
+    return peer.createGlyphVector 
+      (this, ctx, new StringCharacterIterator (new String (chars)));
 }
 
 /**
@@ -642,10 +638,10 @@
   * purpose was to transport character codes inside integers. I assume it
   * is mis-documented in the Sun documentation.
   */
-public GlyphVector
-createGlyphVector(FontRenderContext ctx, int[] glyphCodes)
+
+  public GlyphVector createGlyphVector (FontRenderContext ctx, int[] glyphCodes)
 {
-  throw new UnsupportedOperationException ();
+    return peer.createGlyphVector (this, ctx, glyphCodes);
 }
 
 /**
@@ -658,10 +654,9 @@
   *
   * @since 1.2
   */
-public Font
-deriveFont(float size)
+  public Font deriveFont (float size)
 {
-  throw new UnsupportedOperationException ();
+    return peer.deriveFont (this, size);
 }
 
 /**
@@ -674,10 +669,9 @@
   *
   * @since 1.2
   */
-public Font
-deriveFont(int style)
+  public Font deriveFont (int style)
 {
-  throw new UnsupportedOperationException ();
+    return peer.deriveFont (this, style);
 }
 
 /**
@@ -695,10 +689,12 @@
   *
   * @since 1.2
   */
-public Font
-deriveFont(int style, AffineTransform a)
+  public Font deriveFont (int style, AffineTransform a)
 {
-  throw new UnsupportedOperationException ();
+    if (a == null)
+      throw new IllegalArgumentException ("Affine transformation is null");
+
+    return peer.deriveFont (this, style, a);
 }
 
 /**
@@ -711,10 +707,9 @@
   *
   * @since 1.2
   */
-public Font
-deriveFont(Map attributes)
+  public Font deriveFont (Map attributes)
 {
-  throw new UnsupportedOperationException ();
+    return peer.deriveFont (this, attributes);
 }
 
 /**
@@ -726,10 +721,9 @@
   * @see java.text.AttributedCharacterIterator.Attribute
   * @see java.awt.font.TextAttribute
   */
-public Map
-getAttributes()
+  public Map getAttributes ()
 {
-  throw new UnsupportedOperationException ();
+    return peer.getAttributes (this);
 }
 
 /**
@@ -741,10 +735,9 @@
   * @see java.text.AttributedCharacterIterator.Attribute
   * @see java.awt.font.TextAttribute
   */
-public AttributedCharacterIterator.Attribute[]
-getAvailableAttributes()
+  public AttributedCharacterIterator.Attribute[] getAvailableAttributes()
 {
-  throw new UnsupportedOperationException ();
+    return peer.getAvailableAttributes (this);
 }
 
 /**
@@ -768,10 +761,9 @@
   *
   * @see LineMetrics.getBaselineOffsets()
   */
-public byte 
-getBaselineFor(char c)
+  public byte getBaselineFor (char c)
 {
-  throw new UnsupportedOperationException ();
+    return peer.getBaselineFor (this, c);
 }
 
 /**
@@ -792,10 +784,9 @@
   * @see GraphicsEnvironment.getAvailableFontFamilyNames()
   * @see Locale
   */
-public String
-getFamily(Locale lc)
+  public String getFamily (Locale lc)
 {
-  throw new UnsupportedOperationException ();
+    return peer.getFamily (this, lc); 
 }
 
 /**
@@ -809,10 +800,9 @@
   *
   * @see TextAttribure  
   */
-public static Font
-getFont(Map attributes)
+  public static Font getFont (Map attributes)
 {
-  throw new UnsupportedOperationException ();
+    return getFontFromToolkit (null, attributes);
 }
 
 /**
@@ -828,17 +818,15 @@
   * @see getName()
   * @see getFamily()
   */
-public String
-getFontName()
+  public String getFontName ()
 {
-  throw new UnsupportedOperationException ();
+    return peer.getFontName (this);
 }
 
 /**
   * Returns the font face name of the font.  A font face name describes a
   * specific variant of a font family (such as Helvetica Bold). It is more
-  * specific than both a font family name (such as Helvetica) and a logical
-  * font name (such as Sans Serif).
+   * specific than both a font family name (such as Helvetica).
   *
   * @param lc The locale in which to describe the name of the font face.
   *
@@ -850,10 +838,9 @@
   * @see getName()
   * @see getFamily()
   */
-public String
-getFontName(Locale lc)
+  public String getFontName (Locale lc)
 {
-  throw new UnsupportedOperationException ();
+    return peer.getFontName (this, lc);
 }
 
 /**
@@ -865,10 +852,9 @@
   *
   * @see TextAttribute.POSTURE
   */
-public float
-getItalicAngle()
+  public float getItalicAngle ()
 {
-  throw new UnsupportedOperationException ();
+    return peer.getItalicAngle (this);
 }
 
 /**
@@ -885,10 +871,11 @@
   * @throws IndexOutOfBoundsException if the range [begin, limit] is
   * invalid in <code>text</code>.
   */
-public LineMetrics
-getLineMetrics(String text, int begin, int limit, FontRenderContext rc)
+  public LineMetrics getLineMetrics(String text, int begin, 
+                                    int limit, FontRenderContext rc)
 {
-  throw new UnsupportedOperationException ();
+    return peer.getLineMetrics (this, new StringCharacterIterator (text), 
+                                begin, limit, rc);
 }
 
 /**
@@ -905,10 +892,11 @@
   * @throws IndexOutOfBoundsException if the range [begin, limit] is
   * invalid in <code>chars</code>.
   */
-public LineMetrics
-getLineMetrics(char[] chars, int begin, int limit, FontRenderContext rc)
+  public LineMetrics getLineMetrics(char[] chars, int begin, 
+                                    int limit, FontRenderContext rc)
 {
-  throw new UnsupportedOperationException ();
+    return peer.getLineMetrics (this, new StringCharacterIterator (new String(chars)), 
+                                begin, limit, rc);
 }
 
 /**
@@ -925,10 +913,10 @@
   * @throws IndexOutOfBoundsException if the range [begin, limit] is
   * invalid in <code>ci</code>.
   */
-public LineMetrics
-getLineMetrics(CharacterIterator ci, int begin, int limit, FontRenderContext rc)
+  public LineMetrics getLineMetrics (CharacterIterator ci, int begin, 
+                                     int limit, FontRenderContext rc)
 {
-  throw new UnsupportedOperationException ();
+    return peer.getLineMetrics (this, ci, begin, limit, rc);
 }
 
 /**
@@ -940,10 +928,9 @@
   *
   * @return The maximal bounding box.
   */
-public Rectangle2D
-getMaxCharBounds(FontRenderContext rc)
+  public Rectangle2D getMaxCharBounds (FontRenderContext rc)
 {
-  throw new UnsupportedOperationException ();
+    return peer.getMaxCharBounds (this, rc);
 }
 
 /**
@@ -955,10 +942,9 @@
   *
   * @since 1.2
   */
-public int
-getMissingGlyphCode()
+  public int getMissingGlyphCode ()
 {
-  throw new UnsupportedOperationException ();
+    return peer.getMissingGlyphCode (this);
 }
 
 /**
@@ -971,10 +957,9 @@
   * 
   * @since 1.2
   */
-public int
-getNumGlyphs()
+  public int getNumGlyphs ()
 {
-  throw new UnsupportedOperationException ();
+    return peer.getMissingGlyphCode (this);
 }
 
 /**
@@ -988,10 +973,9 @@
   * @see getFamily()
   * @see getFontName()
   */
-public String
-getPSName()
+  public String getPSName ()
 {
-  throw new UnsupportedOperationException ();
+    return peer.getPostScriptName (this);
 }
 
 /**
@@ -1009,10 +993,9 @@
   *
   * @see createGlyphVector()
   */
-public Rectangle2D
-getStringBounds(String str, FontRenderContext frc)
+  public Rectangle2D getStringBounds (String str, FontRenderContext frc)
 {
-  throw new UnsupportedOperationException ();
+    return getStringBounds (str, 0, str.length () - 1, frc);
 }
 
 /**
@@ -1037,10 +1020,10 @@
   *
   * @see createGlyphVector()
   */
-public Rectangle2D
-getStringBounds(String str, int begin, int limit, FontRenderContext frc)
+  public Rectangle2D getStringBounds (String str, int begin, 
+                                      int limit, FontRenderContext frc)
 {
-  throw new UnsupportedOperationException ();
+    return peer.getStringBounds (this, new StringCharacterIterator(str), begin, limit, frc);
 }
 
 /**
@@ -1065,10 +1048,10 @@
   *
   * @see createGlyphVector()
   */
-public Rectangle2D
-getStringBounds(CharacterIterator ci, int begin, int limit, FontRenderContext frc)
+  public Rectangle2D getStringBounds (CharacterIterator ci, int begin, 
+                                      int limit, FontRenderContext frc)
 {
-  throw new UnsupportedOperationException ();
+    return peer.getStringBounds (this, ci, begin, limit, frc);
 }
 
 /**
@@ -1093,10 +1076,11 @@
   *
   * @see createGlyphVector()
   */
-public Rectangle2D
-getStringBounds(char[] chars, int begin, int limit, FontRenderContext frc)
+  public Rectangle2D getStringBounds (char[] chars, int begin, 
+                                      int limit, FontRenderContext frc)
 {
-  throw new UnsupportedOperationException ();
+    return peer.getStringBounds (this, new StringCharacterIterator (new String (chars)), 
+                                 begin, limit, frc);
 }
 
 /**
@@ -1105,10 +1089,9 @@
   *
   * @return The current transformation.
  */
-public AffineTransform
-getTransform()
+  public AffineTransform getTransform ()
 {
-  throw new UnsupportedOperationException ();
+    return peer.getTransform (this);
 }
 
 /**
@@ -1123,10 +1106,9 @@
   * @see LineMetrics
   * @see getLineMetrics()
   */
-public boolean
-hasUniformLineMetrics()
+  public boolean hasUniformLineMetrics ()
 {
-  throw new UnsupportedOperationException ();
+    return peer.hasUniformLineMetrics (this);
 }
 
 /**
@@ -1136,10 +1118,9 @@
   * @return <code>true</code> iff the font has a non-identity affine
   * transformation applied to it.
   */
-public boolean
-isTransformed()
+  public boolean isTransformed ()
 {
-  throw new UnsupportedOperationException ();  
+    return peer.isTransformed (this);
 }
 
 /**
@@ -1169,15 +1150,14 @@
   * @throws IndexOutOfBoundsException if the range [begin, limit] is
   * invalid in <code>chars</code>. 
   */
-public GlyphVector
-layoutGlyphVector(FontRenderContext frc, char[] chars, int start, int limit, int flags)
+  public GlyphVector layoutGlyphVector (FontRenderContext frc, 
+                                        char[] chars, int start, 
+                                        int limit, int flags)
 {
-  throw new UnsupportedOperationException ();  
+    return peer.layoutGlyphVector (this, frc, chars, start, limit, flags);
 }
 
 
-/*************************************************************************/
-
 /**
   * Returns a native peer object for this font.
   *
@@ -1185,30 +1165,22 @@
   *
   * @deprecated
   */
-public FontPeer
-getPeer()
+  public FontPeer getPeer ()
 {
-  if (peer != null)
-    return(peer);
-
-  peer = Toolkit.getDefaultToolkit().getFontPeer(name, style);
-  return(peer);
+    return peer;
 }
 
-/*************************************************************************/
 
 /**
   * Returns a hash value for this font.
   * 
   * @return A hash for this font.
   */
-public int
-hashCode()
+  public int hashCode()
 {
-  return((new String(name + size + style)).hashCode());
+    return this.toString().hashCode();
 }
 
-/*************************************************************************/
 
 /**
   * Tests whether or not the specified object is equal to this font.  This
@@ -1217,47 +1189,45 @@
   * <ul>
   * <li>The object is not <code>null</code>.
   * <li>The object is an instance of <code>Font</code>.
-  * <li>The object has the same name, style, and size as this object.
+   * <li>The object has the same names, style, size, and transform as this object.
   * </ul>
   *
   * @return <code>true</code> if the specified object is equal to this
   * object, <code>false</code> otherwise.
   */
-public boolean
-equals(Object obj)
+  public boolean equals (Object obj)
 {
   if (obj == null)
-    return(false);
+      return false;
 
   if (!(obj instanceof Font))
-    return(false);
+      return false;
 
   Font f = (Font)obj;
 
-  if (!f.name.equals(name))
-    return(false);
-
-  if (f.size != size)
-    return(false);
-
-  if (f.style != style)
-    return(false);
-
-  return(true);
+    return (f.getName ().equals (this.getName ()) &&
+            f.getFamily ().equals (this.getFamily ()) &&
+            f.getFontName ().equals (this.getFontName ()) &&
+            f.getTransform ().equals (this.getTransform ()) &&
+            f.getSize() == this.getSize() &&
+            f.getStyle() == this.getStyle());
 } 
 
-/*************************************************************************/
 
 /**
   * Returns a string representation of this font.
   *
   * @return A string representation of this font.
   */
-public String
-toString()
+  public String toString ()
 {
-  return(getClass().getName() + "(name=" + name + ",style=" + style +
-         ",size=" + size + ")");
+    return(getClass().getName() 
+           + "(logical=" + getName () 
+           + ",family=" + getFamily ()
+           + ",face=" + getFontName ()
+           + ",style=" + getStyle ()
+           + ",size=" + getSize ()
+           + ",transform=" + getTransform () + ")");
 }
 
 
@@ -1281,7 +1251,8 @@
    */
   public LineMetrics getLineMetrics(String str, FontRenderContext frc)
   {
-    throw new UnsupportedOperationException(); // FIXME
+    return getLineMetrics (str, 0, str.length () - 1, frc);
   }
+
 } // class Font 
 
--- jni/gtk-peer/gtkcairopeer.h	2003-12-17 01:16:50.000000000 -0500
+++ jni/gtk-peer/gtkcairopeer.h	2003-12-17 01:16:50.000000000 -0500
@@ -0,0 +1,78 @@
+#ifndef __GTKCAIROPEER_H__
+#define __GTKCAIROPEER_H__
+
+/* gtkcairopeer.h -- Some global variables and #defines
+   Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+#include "gtkpeer.h"
+#include <cairo.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+/* 
+   A graphics2d struct is both simpler and uglier than a graphics
+   struct. 
+
+   Most of the graphics2d drawing state is held in the referenced cairo_t
+   and corresponding cairo_surface_t, so we can ignore it.
+
+   In addition to the cairo_t, we need to hold an extra reference to the
+   underlying GdkDrawable so its refcount matches the lifecycle of the java
+   Graphics object which is peering with us; also a reference to a byte
+   buffer and cairo_surface_t which contain the pattern you're drawing from
+   (if it exists).
+
+   Finally, it is possible that we are using a non-RENDER capable X server,
+   therefore we will be drawing to an cairo_surface_t which is actually a
+   pixbuf. When this is the case, the pointer to a GdkPixbuf will be
+   non-NULL and any drawing operation needs to be bracketed by pixbuf
+   load/save operations. If the GdkPixbuf pointer is NULL, we will treat
+   the cairo_surface_t as RENDER-capable.
+ */
+
+struct graphics2d
+{
+  cairo_t *cr;
+  cairo_surface_t *surface;
+  GdkDrawable *drawable;
+  GdkWindow *win;
+  GdkPixbuf *drawbuf;
+  char *pattern_pixels;
+  cairo_surface_t *pattern;
+  gboolean debug;
+};
+
+#endif /* __GTKCAIROPEER_H */
--- jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c	15 Dec 2003 19:15:23 -0000	1.4
+++ jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c	17 Dec 2003 14:36:22 -0000
@@ -35,7 +35,7 @@
    obligated to do so.  If you do not wish to do so, delete this
    exception statement from your version. */
 
-#include "gtkpeer.h"
+#include "gtkcairopeer.h"
 #include "gdkfont.h"
 #include "gnu_java_awt_peer_gtk_GdkGraphics2D.h"
 #include <gdk/gdktypes.h>
--- jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c	20 Nov 2003 22:44:01 -0000	1.1
+++ jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c	17 Dec 2003 14:36:22 -0000
@@ -37,7 +37,6 @@
 
 #include <math.h>
 
-#include "gtkpeer.h"
 #include "gdkfont.h"
 #include "gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.h"
 
--- jni/gtk-peer/gdkfont.h	15 Dec 2003 19:15:23 -0000	1.1
+++ jni/gtk-peer/gdkfont.h	17 Dec 2003 14:36:22 -0000
@@ -38,7 +38,7 @@
    obligated to do so.  If you do not wish to do so, delete this
    exception statement from your version. */
 
-#include "gtkpeer.h"
+#include "gtkcairopeer.h"
 
 #include <pango/pango.h>
 #include <pango/pango-context.h>

--------------020709060100070906030009--




From MAILER-DAEMON Wed Dec 17 13:42:04 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AWgcW-0005gd-8j
	for mharc-classpath@gnu.org; Wed, 17 Dec 2003 13:42:04 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AWgcS-0005ca-Kf
	for classpath@gnu.org; Wed, 17 Dec 2003 13:42:00 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AWgav-0004bG-Iz
	for classpath@gnu.org; Wed, 17 Dec 2003 13:40:57 -0500
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWgau-0004Uc-P9
	for classpath@gnu.org; Wed, 17 Dec 2003 13:40:24 -0500
Received: from fleche.redhat.com (tf0208.peakpeak.com [204.144.239.208])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id KAA05696;
	Wed, 17 Dec 2003 10:38:47 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id D536D4F8249; Wed, 17 Dec 2003 10:27:30 -0700 (MST)
To: graydon hoare <graydon@redhat.com>
References: <3FE06B03.2020909@redhat.com>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: I invented skydiving in 1989!
Date: 17 Dec 2003 10:27:29 -0700
In-Reply-To: <3FE06B03.2020909@redhat.com>
Message-ID: <87n09rl5ha.fsf@fleche.redhat.com>
Lines: 39
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] enable Graphics2D at configure and runtime
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 Dec 2003 18:42:02 -0000

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

graydon> I'm sure there'll be a few suggestions about how "best" to do this, so
graydon> I just picked what seemed like an unintrusive method and implemented
graydon> it, to make sure it's even possible. any suggestions on how to do it
graydon> better?

I think adding a switch like this is fine.  Would it make sense to do
the check unconditionally and enable this code if the required
libraries are found?  Or is there a situation where you would want the
Gtk peers but not the Cairo code?

Overall I think this patch is fine.  I've got a new minor comments.

graydon> +if GTK_CAIRO
graydon> +lib_gnu_java_awt_peer_gtk_la_LIBADD = $(GTK_LIBS) $(GLIB_LIBS) $(LIBART_LIBS) -lcairo -lpixman -lpangoft2-1.0

Is there a pkg-config invocation or something to determine the
library names?  I'm thinking that ideally this would be run in
configure and then we would just have another possibly-empty variable
substitution in the definition of lib_gnu_java_awt_peer_gtk_la_LIBADD.

graydon> +    useGraphics2d = System.getProperty("gnu.java.awt.peer.gtk.Graphics", 
graydon> +                                       "Graphics").equals("Graphics2D");

I think we've been documenting all our properties somewhere.  I think
it is just in the javadoc for the class.  So, please add a javadoc
comment explaining this extension.

graydon> +  /* deprecated, part of the older AWT Toolkit API. */
graydon>    protected FontPeer getFontPeer (String name, int style) 

If this is really deprecated, mark it in javadoc:

    /** @deprecated reason */

Then it will show up in compilations.

Tom



From MAILER-DAEMON Thu Dec 18 13:19:16 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AX2jR-0003Ue-06
	for mharc-classpath@gnu.org; Thu, 18 Dec 2003 13:18:41 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AX2jC-000306-Ra
	for classpath@gnu.org; Thu, 18 Dec 2003 13:18:26 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AX2iP-0002Ld-VC
	for classpath@gnu.org; Thu, 18 Dec 2003 13:18:10 -0500
Received: from [207.174.178.17] (helo=gash2.peakpeak.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AX2iP-0002KK-8q
	for classpath@gnu.org; Thu, 18 Dec 2003 13:17:37 -0500
Received: from fleche.redhat.com (tf0208.peakpeak.com [204.144.239.208])
	by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id KAA03546;
	Thu, 18 Dec 2003 10:16:08 -0700
Received: by fleche.redhat.com (Postfix, from userid 1000)
	id 276E24F8248; Thu, 18 Dec 2003 10:07:57 -0700 (MST)
To: Guilhem Lavaux <guilhem@kaffe.org>
References: <3FDB6112.9010205@kaffe.org>
From: Tom Tromey <tromey@redhat.com>
X-Attribution: Tom
X-Zippy: --``I love KATRINKA because she drives a PONTIAC. We're going away
	now. I fed the cat. - Zippy''
Date: 18 Dec 2003 10:07:55 -0700
In-Reply-To: <3FDB6112.9010205@kaffe.org>
Message-ID: <87d6amnjf8.fsf@fleche.redhat.com>
Lines: 42
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 List <classpath@gnu.org>, java-patches@gcc.gnu.org
Subject: Re: [PATCH] RuleBasedCollator
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 Dec 2003 18:18:36 -0000

>>>>> "Guilhem" == Guilhem Lavaux <guilhem@kaffe.org> writes:

Guilhem> Please review.

I read through this.  The code looks fine to me, based on what I
remember of RuleBasedCollator.  I'm glad to see that someone is paying
attention to java.text -- this is some of our oldest and
least-worked-on code, it really deserves a face-lift.


There were a few formatting issues: lines past 79 columns that should
be wrapped, and lack of whitespace around some operators, eg:

Guilhem>     for (i=0;i<prefix.length() && i < s.length();i++)

You need spaces around "=", "<", and after ";" here.


I also had a couple other questions.

Guilhem>   class CollationElement

You changed this from a final class, but I didn't see anything derived
from it.  Any reason why?  I find marking helpers like this "final"
nice because it is a way to say "don't worry about subclasses if you
change this".

Guilhem> 	// Hehehe. What we would do not to use if.
Guilhem> 	try
Guilhem> 	  {
Guilhem> 	    ord1 = ord1block.getValue();
Guilhem> 	  }
Guilhem> 	catch (NullPointerException _)
Guilhem> 	  {
Guilhem> 	    if (ord2block == null)
Guilhem> 	      return 0;
Guilhem> 	    return -1;
Guilhem> 	  }

I'd prefer a simple "if" as I find it clearer to read.

Tom



From MAILER-DAEMON Thu Dec 18 13:37:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AX31O-00060O-Bp
	for mharc-classpath@gnu.org; Thu, 18 Dec 2003 13:37:14 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AX31L-0005xc-M9
	for classpath@gnu.org; Thu, 18 Dec 2003 13:37:11 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AX30o-0005de-1t
	for classpath@gnu.org; Thu, 18 Dec 2003 13:37:09 -0500
Received: from [213.228.0.169] (helo=postfix3-2.free.fr)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AX30n-0005cu-OU
	for classpath@gnu.org; Thu, 18 Dec 2003 13:36:37 -0500
Received: from kaffe.org (cachan-3-82-66-125-112.fbx.proxad.net
	[82.66.125.112]) by postfix3-2.free.fr (Postfix) with ESMTP
	id 2D6D3C9B4; Thu, 18 Dec 2003 18:35:09 +0100 (CET)
Message-ID: <3FE1E54A.4080204@kaffe.org>
Date: Thu, 18 Dec 2003 18:35:06 +0100
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tromey@redhat.com
References: <3FDB6112.9010205@kaffe.org> <87d6amnjf8.fsf@fleche.redhat.com>
In-Reply-To: <87d6amnjf8.fsf@fleche.redhat.com>
X-Enigmail-Version: 0.76.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: Classpath List <classpath@gnu.org>, java-patches@gcc.gnu.org
Subject: Re: [PATCH] RuleBasedCollator
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 Dec 2003 18:37:12 -0000

Tom Tromey wrote:

>>>>>>"Guilhem" == Guilhem Lavaux <guilhem@kaffe.org> writes:
>>>>>>            
>>>>>>
>
>Guilhem> Please review.
>
>I read through this.  The code looks fine to me, based on what I
>remember of RuleBasedCollator.  I'm glad to see that someone is paying
>attention to java.text -- this is some of our oldest and
>least-worked-on code, it really deserves a face-lift.
>  
>
Thank you. ;-)

>There were a few formatting issues: lines past 79 columns that should
>be wrapped, and lack of whitespace around some operators, eg:
>
>Guilhem>     for (i=0;i<prefix.length() && i < s.length();i++)
>
>You need spaces around "=", "<", and after ";" here.
>  
>
Ok.

>
>I also had a couple other questions.
>
>Guilhem>   class CollationElement
>
>You changed this from a final class, but I didn't see anything derived
>from it.  Any reason why?  I find marking helpers like this "final"
>nice because it is a way to say "don't worry about subclasses if you
>change this".
>  
>
There isn't any reason. It's simply I should have forgotten to mark it 
final again when I've merged source code.

>Guilhem> 	// Hehehe. What we would do not to use if.
>Guilhem> 	try
>Guilhem> 	  {
>Guilhem> 	    ord1 = ord1block.getValue();
>Guilhem> 	  }
>Guilhem> 	catch (NullPointerException _)
>Guilhem> 	  {
>Guilhem> 	    if (ord2block == null)
>Guilhem> 	      return 0;
>Guilhem> 	    return -1;
>Guilhem> 	  }
>
>I'd prefer a simple "if" as I find it clearer to read.
>  
>
I'll replace it with an "if" if it doesn't pose problems (it's sometimes 
difficult to find how to use try ... catch).

Thank you very much for taking the time of reviewing it.

Guilhem.




From MAILER-DAEMON Thu Dec 18 16:33:18 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AX5ll-0003ky-Pr
	for mharc-classpath@gnu.org; Thu, 18 Dec 2003 16:33:17 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AX5lR-0003gP-0V
	for classpath@gnu.org; Thu, 18 Dec 2003 16:32:57 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AX5hD-0002lu-06
	for classpath@gnu.org; Thu, 18 Dec 2003 16:29:06 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AX5h6-0002gR-On
	for classpath@gnu.org; Thu, 18 Dec 2003 16:28:28 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AX4jT-0004qn-00
	for <classpath@gnu.org>; Thu, 18 Dec 2003 21:26:51 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-asMWW1Wa3LgPGtZGvD26"
Message-Id: <1071779216.3240.8.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Thu, 18 Dec 2003 21:26:57 +0100
Subject: Latest Savannah update (RCS + Friday restoration)
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 Dec 2003 21:33:13 -0000


--=-asMWW1Wa3LgPGtZGvD26
Content-Type: multipart/mixed; boundary="=-g2B8M0CHwuZxSRGOskc5"


--=-g2B8M0CHwuZxSRGOskc5
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi Classpath Hackers,

Attached is the latest Savannah update from Bradley Kuhn.
Looks like we will have access again this weekend.

But we still have to do our own audit of the Classpath sources.
Won't have much time till Saturday. So help in doing this is
appreciated.

Will try to answer some mail, but my backlog is rather large and my
GNU/hacking time is a bit limited.

Cheers,

Mark

--=-g2B8M0CHwuZxSRGOskc5
Content-Disposition: inline; filename=statement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Rk9RZXN1YWNaMVpzS0Ev
R2NITWM3bzg9DQo9WGpFMA0KLS0tLS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tDQo=

--=-g2B8M0CHwuZxSRGOskc5--

--=-asMWW1Wa3LgPGtZGvD26
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/4g2QxVhZCJWr9QwRAsqNAJ0e+EcXj+rpaKl4iLLbnWISeOQfawCfY5US
pTtKaIK4CwzFmLnbcB+Lmi0=
=6/l/
-----END PGP SIGNATURE-----

--=-asMWW1Wa3LgPGtZGvD26--




From MAILER-DAEMON Thu Dec 18 18:32:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AX7dS-0005J4-61
	for mharc-classpath@gnu.org; Thu, 18 Dec 2003 18:32:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AX7dP-0005Ho-Gd
	for classpath@gnu.org; Thu, 18 Dec 2003 18:32:47 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AX7cs-0004xI-4u
	for classpath@gnu.org; Thu, 18 Dec 2003 18:32:46 -0500
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AX7cG-0004aE-BR
	for classpath@gnu.org; Thu, 18 Dec 2003 18:31:36 -0500
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 hBIMU3A29561;
	Thu, 18 Dec 2003 17:30:03 -0500
Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com
	[172.16.14.4])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id hBIMU3E10157; 
	Thu, 18 Dec 2003 17:30:03 -0500
Received: from tortoise.toronto.redhat.com (tortoise.toronto.redhat.com
	[172.16.14.92])
	by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id
	hBIMU2lJ018286; Thu, 18 Dec 2003 17:30:02 -0500
From: Thomas Fitzsimmons <fitzsim@redhat.com>
To: graydon hoare <graydon@redhat.com>
In-Reply-To: <3FE06B03.2020909@redhat.com>
References: <3FE06B03.2020909@redhat.com>
Content-Type: text/plain
Message-Id: <1071786602.20850.381.camel@tortoise.toronto.redhat.com>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 (1.4.5-1) 
Date: Thu, 18 Dec 2003 17:30:02 -0500
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org, java-patches@gcc.gnu.org
Subject: Re: [PATCH] enable Graphics2D at configure and runtime
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 Dec 2003 23:32:48 -0000

On Wed, 2003-12-17 at 09:41, graydon hoare wrote:
> hi,
> 
> this patch provides a new bit of configury (--enable-gtk-cairo) and a 
> runtime system property ("gnu.java.awt.peer.gtk.Graphics" == "Graphics" 
> or "Graphics2D") which permits the cairo/graphics2d code I've been 
> working on to coexist with the existing GTK peers and GDK Graphics 
> object, as an option at both compile and runtime.
> 
> I'm sure there'll be a few suggestions about how "best" to do this, so I 
> just picked what seemed like an unintrusive method and implemented it, 
> to make sure it's even possible. any suggestions on how to do it better?
> 

Nope, I think this approach is good.

A few comments:

> +dnl determine whether to enable the cairo GTK Graphics2D backend
> +AC_ARG_ENABLE(gtk-cairo, [  --enable-gtk-cairo       build the cairo Graphics2D implementation on GTK])
> +AM_CONDITIONAL(GTK_CAIRO, test "x${enable_gtk_cairo}" = xyes)
> +if test "x${enable_gtk_cairo}" = xyes
> +then
> +	AC_CHECK_LIB([cairo], [cairo_create])
> +	AC_CHECK_LIB([pixman], [pixman_region_create])
> +	if (echo $LIBS | grep -v -q cairo) || (echo $LIBS | grep -v -q pixman)
> +	then
> +	    AC_MSG_ERROR(need both libcairo and libpixman for cairo support)
> +	fi

I've got cairo installed in a non-standard prefix, and AC_CHECK_LIB
doesn't seem to like this (even when LD_LIBRARY_PATH is set to
$(nonstandardprefix)/lib).  Can we use PKG_CHECK_MODULES here instead? 
(We should be using PKG_CHECK_MODULES for GTK, GLib and libart as well,
I think).

> +  public static boolean useGraphics2D()
> +  {
> +    if (useGraphics2dSet)
> +      return useGraphics2d;
> +    useGraphics2d = System.getProperty("gnu.java.awt.peer.gtk.Graphics", 
> +                                       "Graphics").equals("Graphics2D");
> +    useGraphics2dSet = true;
> +  }

There should be a return statement here.

> +  /* newer method to produce a peer for a Font object, even though Sun's
> +     design claims Font should now be peerless, we do not agree with this
> +     model, hence "ClasspathFontPeer". */
> +
> +  public ClasspathFontPeer getClasspathFontPeer (String name, Map attrs)
> +  {
> +    if (useGraphics2D)

This should be useGraphics2d.

I tested this patch, and apart from the problems I mentioned, it works
well.

Tom





From MAILER-DAEMON Fri Dec 19 22:44:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXY2v-0000u6-Tz
	for mharc-classpath@gnu.org; Fri, 19 Dec 2003 22:44:53 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXY2u-0000tz-7K
	for classpath@gnu.org; Fri, 19 Dec 2003 22:44:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXY2O-0000gK-Jm
	for classpath@gnu.org; Fri, 19 Dec 2003 22:44:51 -0500
Received: from [66.187.233.31] (helo=mx1.redhat.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXY2O-0000Zo-A2
	for classpath@gnu.org; Fri, 19 Dec 2003 22:44:20 -0500
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 hBK2glA05064;
	Fri, 19 Dec 2003 21:42:47 -0500
Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com
	[172.16.14.4])
	by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id hBK2glE30970; 
	Fri, 19 Dec 2003 21:42:47 -0500
Received: from tortoise.toronto.redhat.com (tortoise.toronto.redhat.com
	[172.16.14.92])
	by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id
	hBK2gflJ028959; Fri, 19 Dec 2003 21:42:41 -0500
From: Thomas Fitzsimmons <fitzsim@redhat.com>
To: graydon hoare <graydon@redhat.com>
In-Reply-To: <1071786602.20850.381.camel@tortoise.toronto.redhat.com>
References: <3FE06B03.2020909@redhat.com>
	<1071786602.20850.381.camel@tortoise.toronto.redhat.com>
Content-Type: text/plain
Message-Id: <1071888161.2874.1.camel@tortoise.toronto.redhat.com>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 (1.4.5-1) 
Date: Fri, 19 Dec 2003 21:42:41 -0500
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org, java-patches@gcc.gnu.org
Subject: Re: [PATCH] enable Graphics2D at configure and runtime
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 Dec 2003 03:44:52 -0000

On Thu, 2003-12-18 at 17:30, Thomas Fitzsimmons wrote:
> > +  /* newer method to produce a peer for a Font object, even though Sun's
> > +     design claims Font should now be peerless, we do not agree with this
> > +     model, hence "ClasspathFontPeer". */
> > +
> > +  public ClasspathFontPeer getClasspathFontPeer (String name, Map attrs)
> > +  {
> > +    if (useGraphics2D)
> 
> This should be useGraphics2d.
> 

Err, useGraphics2D (). :-)

Tom





From MAILER-DAEMON Sat Dec 20 03:40:53 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXcfM-0007T8-Kb
	for mharc-classpath@gnu.org; Sat, 20 Dec 2003 03:40:52 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXcfJ-0007Ox-La
	for classpath@gnu.org; Sat, 20 Dec 2003 03:40:49 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXcen-0007BN-Tb
	for classpath@gnu.org; Sat, 20 Dec 2003 03:40:48 -0500
Received: from [212.6.122.96] (helo=mail0.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXcen-000798-FW
	for classpath@gnu.org; Sat, 20 Dec 2003 03:40:17 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-74-195.ewetel.net
	[80.228.74.195])
	by mail0.ewetel.de (8.12.1/8.12.9) with ESMTP id hBK7cemT009070;
	Sat, 20 Dec 2003 08:38:40 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1AXbjo-000814-00; Sat, 20 Dec 2003 08:41:24 +0100
Date: Sat, 20 Dec 2003 08:41:24 +0100
From: Michael Koch <konqueror@gmx.de>
To: Thomas Fitzsimmons <fitzsim@redhat.com>
Message-ID: <20031220074124.GA30325@mail.konqueror.de>
References: <3FE06B03.2020909@redhat.com>
	<1071786602.20850.381.camel@tortoise.toronto.redhat.com>
	<1071888161.2874.1.camel@tortoise.toronto.redhat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1071888161.2874.1.camel@tortoise.toronto.redhat.com>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: classpath@gnu.org, java-patches@gcc.gnu.org,
	graydon hoare <graydon@redhat.com>
Subject: Re: [PATCH] enable Graphics2D at configure and runtime
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 Dec 2003 08:40:50 -0000

On Fri, Dec 19, 2003 at 09:42:41PM -0500, Thomas Fitzsimmons wrote:
> On Thu, 2003-12-18 at 17:30, Thomas Fitzsimmons wrote:
> > > +  /* newer method to produce a peer for a Font object, even though Sun's
> > > +     design claims Font should now be peerless, we do not agree with this
> > > +     model, hence "ClasspathFontPeer". */
> > > +
> > > +  public ClasspathFontPeer getClasspathFontPeer (String name, Map attrs)
> > > +  {
> > > +    if (useGraphics2D)
> > 
> > This should be useGraphics2d.
> > 
> 
> Err, useGraphics2D (). :-)

Better "useGraphics2D()" (without space). ;-)


Michael



From MAILER-DAEMON Sat Dec 20 08:51:47 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXhWF-00082x-A6
	for mharc-classpath@gnu.org; Sat, 20 Dec 2003 08:51:47 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXhWC-0007yw-Oh
	for classpath@gnu.org; Sat, 20 Dec 2003 08:51:44 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXhVf-0007Pz-T0
	for classpath@gnu.org; Sat, 20 Dec 2003 08:51:43 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXhVf-0007PY-Fu
	for classpath@gnu.org; Sat, 20 Dec 2003 08:51:11 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AXgY4-0000bt-00
	for <classpath@gnu.org>; Sat, 20 Dec 2003 13:49:36 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-UviD+Rw8belcwPOEM/rD"
Message-Id: <1071924582.4668.98.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sat, 20 Dec 2003 13:49:43 +0100
Subject: Fosdem meeting (February 21 - 22, Brussel)
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 Dec 2003 13:51:45 -0000


--=-UviD+Rw8belcwPOEM/rD
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

The Fosdem organizers were so nice to make a room available so we can
meet up, talk, hack, discuss, etc. between the regular talks.

As soon as I get more information about the available facilities I will
let you know. Please tell what you want to discuss, present, hack on, so
we can coordinate a bit.

See also the Fosdem site: http://www.fosdem.org/
There will be some very nice talks about all kinds of free software
projects.=20

The following is the list of people I am reasonably sure of will come:

GNU Classpath: Sascha Brawer, Michael Koch, Mark Wielaard
gcj: Tom Tromey, (Andrew Haley)
Kaffe: Dalibor Topic, Stephane Meslin-Weber, (Guilhem Lavaux)
Debian: Arnaud Vandyck
SableVM: Grzegorz Prokopski
Wonka: Chris Gray
Jaos: (Patrik Reali)
IKVM: (Jeroen Frijters)

The 4 people in brackets said they would try, but didn't know yet.
Sorry if I put you under the wrong project, we have some overlap so some
of these people should probably be listed under almost all of them :)
Please tell if you will also show up!

Cheers,

Mark

--=-UviD+Rw8belcwPOEM/rD
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/5EVmxVhZCJWr9QwRAvcsAJ48LlqRHRr/DBXeZOvS4LCohZ7C+QCgpB1Q
n51kc0QVkIGNQzTmdqKcpZE=
=gs63
-----END PGP SIGNATURE-----

--=-UviD+Rw8belcwPOEM/rD--




From MAILER-DAEMON Sat Dec 20 09:05:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXhj3-0004FK-9e
	for mharc-classpath@gnu.org; Sat, 20 Dec 2003 09:05:01 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXhix-0004D9-Gg
	for classpath@gnu.org; Sat, 20 Dec 2003 09:04:55 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXhiM-00040Z-2N
	for classpath@gnu.org; Sat, 20 Dec 2003 09:04:49 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXhg2-0003au-E3
	for classpath@gnu.org; Sat, 20 Dec 2003 09:01:54 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AXgiS-0000cq-00
	for <classpath@gnu.org>; Sat, 20 Dec 2003 14:00:20 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-LJw7TTaE8YVD8BqdKBMo"
Message-Id: <1071925226.4677.106.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sat, 20 Dec 2003 14:00:26 +0100
Subject: New Savannah update (no yet, hopefully before christmas)
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 Dec 2003 14:04:57 -0000


--=-LJw7TTaE8YVD8BqdKBMo
Content-Type: multipart/mixed; boundary="=-8ne86qgt1IEuPWqkgcc2"


--=-8ne86qgt1IEuPWqkgcc2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

Seems the latest update was a bit to optimistic about turning on the
Savannah services before this weekend. But hopefully all will be
accessible again before Christmas.

Cheers,

Mark

--=-8ne86qgt1IEuPWqkgcc2
Content-Disposition: inline; filename=statement-5.txt
Content-Type: text/plain; name=statement-5.txt; charset=ISO-8859-1
Content-Transfer-Encoding: base64

LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQ0KSGFzaDogU0hBMQ0KDQogICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRnJpZ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-LJw7TTaE8YVD8BqdKBMo
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/5EfqxVhZCJWr9QwRAqwbAKCVZwi+gYCWgIUwexLUowm1RTlZzgCgiRPh
u4ZSUwUmdb8G853QyiSEMH0=
=CHOH
-----END PGP SIGNATURE-----

--=-LJw7TTaE8YVD8BqdKBMo--




From MAILER-DAEMON Sat Dec 20 09:41:00 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXiHs-00047n-0Y
	for mharc-classpath@gnu.org; Sat, 20 Dec 2003 09:41:00 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXiHp-00047a-Gg
	for classpath@gnu.org; Sat, 20 Dec 2003 09:40:57 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXiHI-0003lO-Mn
	for classpath@gnu.org; Sat, 20 Dec 2003 09:40:55 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXiHI-0003lJ-7k
	for classpath@gnu.org; Sat, 20 Dec 2003 09:40:24 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AXhJg-0000iY-00; Sat, 20 Dec 2003 14:38:48 +0100
From: Mark Wielaard <mark@klomp.org>
To: Dalibor Topic <robilad@kaffe.org>
In-Reply-To: <3FDF82B8.6090109@kaffe.org>
References: <1071425118.7218.438.camel@elsschot.wildebeest.org>
	<3FDF82B8.6090109@kaffe.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-Z0ylm7IiSf/AQo5HEVRN"
Message-Id: <1071927534.4679.136.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sat, 20 Dec 2003 14:38:54 +0100
Cc: classpath@gnu.org, Jan Schulz <jasc@gmx.net>
Subject: Re: Help and input needed
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 Dec 2003 14:40:58 -0000


--=-Z0ylm7IiSf/AQo5HEVRN
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Tue, 2003-12-16 at 23:10, Dalibor Topic wrote:
> > - java-gnome bindings. I have already posted it on this list twice so I
> >   won't repeat how important I think it is to have our stuff work nicel=
y
> >   with it!
>=20
> O.K., I've done a little bit on this today, and got in touch with the=20
> java-gnome devs. I still haven't managed to build java-gnome with kaffe,=20
> but I'll give it another go on thursday. Otoh, the devs have told me=20
> that their build now works with kaffe, so there is some progress there ;)

And there is a new release out that should make it easier for people to
test this: http://www.gnomedesktop.org/article.php?sid=3D1538
http://prdownloads.sourceforge.net/java-gnome/java-gnome-0.8.2.tar.bz2?down=
load

> [UserLinux], I want to approach them with a balanced=20
> e-mail that corrects their mistakes and recommends a GNU classpath based=20
> VM, offering a general overview (names, links) of Classpath based VMs,=20
> like my recent post to debian-java, just without the details about the=20
> VMs. Then I'd follow up with an e-mail on kaffe, and our efforts to run=20
> enterprise-ish software on it. I'd cross-post to GNU Classpath mailing=20
> list and invite other VM developers to reply to the mail then as well,=20
> describing their VMs and why they think it would be a good choice for=20
> UserLinux. Then whoever is making the decisions about UserLinux can make=20
> those decisions with a little bit more background than they have now.

That would be very much appreciated!

> > - Savannah GNU Classpath code checking
> >   We need to check if someone has tempered with any code when they had
> >   access to the CVS server. Doing checks against kaffe and libgcj
> >   sources should help with this.
> >   See also http://savannah.gnu.org/statement.html
>=20
> I've never (fortunately) had to do someting like this before, so I'm=20
> slightly confused about what exactly I am supposed to do. Should I check=20
> if my diffs match my patches I contributed to GNU Classpath? diff=20
> everything against kaffe's source tree?

If you could provide a list of files/classes that kaffe has imported
from GNU Classpath and that you are sure about that they haven't seen
strange changes in kaffe CVS recently that would already help.
In general it would be nice to have a comparison page for kaffe like
libgcj has. See http://gcc.gnu.org/java/libgcj-classpath-compare.html

For the classes that libgcj has imported we are already reasonably sure
that they have not been tempered with since Tom Tromey and Michael Koch
run daily diffs between those.

Thanks,

Mark

--=-Z0ylm7IiSf/AQo5HEVRN
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/5FDuxVhZCJWr9QwRAk5fAJ9t25K0lrTLyFwDAF8UD9SneVLTxgCgqGXY
i9b6d3PReVYIY8FNxvJ0F6E=
=gCVx
-----END PGP SIGNATURE-----

--=-Z0ylm7IiSf/AQo5HEVRN--




From MAILER-DAEMON Sat Dec 20 12:46:41 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXlBZ-00080E-JE
	for mharc-classpath@gnu.org; Sat, 20 Dec 2003 12:46:41 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXlBV-0007zs-SW
	for classpath@gnu.org; Sat, 20 Dec 2003 12:46:37 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXlAz-0007mx-72
	for classpath@gnu.org; Sat, 20 Dec 2003 12:46:36 -0500
Received: from [213.228.0.62] (helo=postfix4-1.free.fr)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXlAy-0007kQ-D5
	for classpath@gnu.org; Sat, 20 Dec 2003 12:46:04 -0500
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 949F43F352; Sat, 20 Dec 2003 17:41:07 +0100 (CET)
Message-ID: <3FE47BA9.9010602@kaffe.org>
Date: Sat, 20 Dec 2003 17:41:13 +0100
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tromey@redhat.com
References: <3FDB6112.9010205@kaffe.org> <87d6amnjf8.fsf@fleche.redhat.com>
In-Reply-To: <87d6amnjf8.fsf@fleche.redhat.com>
X-Enigmail-Version: 0.76.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig44EB85F4C8E4CB35CE5810E6"
Cc: Classpath List <classpath@gnu.org>, java-patches@gcc.gnu.org
Subject: Re: [PATCH] RuleBasedCollator
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 Dec 2003 17:46:38 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig44EB85F4C8E4CB35CE5810E6
Content-Type: multipart/mixed; boundary="------------070409080806060200040605"

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

Tom Tromey wrote:

>>>>>>"Guilhem" == Guilhem Lavaux <guilhem@kaffe.org> writes:
>>>>>>            
>>>>>>
>
>Guilhem> Please review.
>
>I read through this.  The code looks fine to me, based on what I
>remember of RuleBasedCollator.  I'm glad to see that someone is paying
>attention to java.text -- this is some of our oldest and
>least-worked-on code, it really deserves a face-lift.
>
>
>There were a few formatting issues: lines past 79 columns that should
>be wrapped, and lack of whitespace around some operators, eg:
>
>Guilhem>     for (i=0;i<prefix.length() && i < s.length();i++)
>
>You need spaces around "=", "<", and after ";" here.
>
>
>I also had a couple other questions.
>
>Guilhem>   class CollationElement
>
>You changed this from a final class, but I didn't see anything derived
>from it.  Any reason why?  I find marking helpers like this "final"
>nice because it is a way to say "don't worry about subclasses if you
>change this".
>
>Guilhem> 	// Hehehe. What we would do not to use if.
>Guilhem> 	try
>Guilhem> 	  {
>Guilhem> 	    ord1 = ord1block.getValue();
>Guilhem> 	  }
>Guilhem> 	catch (NullPointerException _)
>Guilhem> 	  {
>Guilhem> 	    if (ord2block == null)
>Guilhem> 	      return 0;
>Guilhem> 	    return -1;
>Guilhem> 	  }
>
>I'd prefer a simple "if" as I find it clearer to read.
>  
>

Here are the two new files containing the suggested fixes. BTW, I've 
added some documentation for the internal methods.

Regards,
Guilhem.

--------------070409080806060200040605
Content-Type: text/plain;
 name="RuleBasedCollator.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="RuleBasedCollator.java"

/* RuleBasedCollator.java -- Concrete Collator Class
   Copyright (C) 1998, 1999, 2000, 2001, 2003  Free Software Foundation, Inc.

This file is part of GNU Classpath.

GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
 
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

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

Linking this library statically or dynamically with other modules is
making a combined work based on this library.  Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.

As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module.  An independent module is a module which is not derived from
or based on this library.  If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so.  If you do not wish to do so, delete this
exception statement from your version. */


package java.text;

import java.util.Vector;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Comparator;

/* Written using "Java Class Libraries", 2nd edition, plus online
 * API docs for JDK 1.2 from http://www.javasoft.com.
 * Status: Believed complete and correct
 */

/**
 * This class is a concrete subclass of <code>Collator</code> suitable
 * for string collation in a wide variety of languages.  An instance of
 * this class is normally returned by the <code>getInstance</code> method
 * of <code>Collator</code> with rules predefined for the requested
 * locale.  However, an instance of this class can be created manually
 * with any desired rules.
 * <p>
 * Rules take the form of a <code>String</code> with the following syntax
 * <ul>
 * <li> Modifier: '@' 
 * <li> Relation: '&lt;' | ';' | ',' | '=' : <text>
 * <li> Reset: '&amp;' : <text>
 * </ul>
 * The modifier character indicates that accents sort backward as is the
 * case with French.  The modifier applies to all rules <b>after</b>
 * the modifier but before the next primary sequence. If placed at the end
 * of the sequence if applies to all unknown accented character.
 * The relational operators specify how the text 
 * argument relates to the previous term.  The relation characters have
 * the following meanings:
 * <ul>
 * <li>'&lt;' - The text argument is greater than the prior term at the primary
 * difference level.
 * <li>';' - The text argument is greater than the prior term at the secondary
 * difference level.
 * <li>',' - The text argument is greater than the prior term at the tertiary
 * difference level.
 * <li>'=' - The text argument is equal to the prior term
 * </ul>
 * <p>
 * As for the text argument itself, this is any sequence of Unicode
 * characters not in the following ranges: 0x0009-0x000D, 0x0020-0x002F,
 * 0x003A-0x0040, 0x005B-0x0060, and 0x007B-0x007E. If these characters are 
 * desired, they must be enclosed in single quotes.  If any whitespace is 
 * encountered, it is ignored.  (For example, "a b" is equal to "ab").  
 * <p>
 * The reset operation inserts the following rule at the point where the
 * text argument to it exists in the previously declared rule string.  This
 * makes it easy to add new rules to an existing string by simply including
 * them in a reset sequence at the end.  Note that the text argument, or
 * at least the first character of it, must be present somewhere in the
 * previously declared rules in order to be inserted properly.  If this
 * is not satisfied, a <code>ParseException</code> will be thrown. 
 * <p>
 * This system of configuring <code>RuleBasedCollator</code> is needlessly
 * complex and the people at Taligent who developed it (along with the folks
 * at Sun who accepted it into the Java standard library) deserve a slow
 * and agonizing death.
 * <p>
 * Here are a couple of example of rule strings:
 * <p>
 * "&lt; a &lt; b &lt; c" - This string says that a is greater than b which is 
 * greater than c, with all differences being primary differences.
 * <p>
 * "&lt; a,A &lt; b,B &lt; c,C" - This string says that 'A' is greater than 'a' with
 * a tertiary strength comparison.  Both 'b' and 'B' are greater than 'a' and
 * 'A' during a primary strength comparison.  But 'B' is greater than 'b'
 * under a tertiary strength comparison.
 * <p>
 * "&lt; a &lt; c &amp; a &lt; b " - This sequence is identical in function to the 
 * "&lt; a &lt; b &lt; c" rule string above.  The '&amp;' reset symbol indicates that
 * the rule "&lt; b" is to be inserted after the text argument "a" in the
 * previous rule string segment.
 * <p>
 * "&lt; a &lt; b &amp; y &lt; z" - This is an error.  The character 'y' does not appear
 * anywhere in the previous rule string segment so the rule following the
 * reset rule cannot be inserted.
 * <p>
 * "&lt; a &amp; A @ &lt e &amp; E &lt f&amp; F" - This sequence is equivalent to the following
 * "&lt; a &amp; A &lt E &amp; e &lt f &amp; F".
 * <p>
 * For a description of the various comparison strength types, see the
 * documentation for the <code>Collator</code> class.
 * <p>
 * As an additional complication to this already overly complex rule scheme,
 * if any characters precede the first rule, these characters are considered
 * ignorable.  They will be treated as if they did not exist during 
 * comparisons.  For example, "- &lt; a &lt; b ..." would make '-' an ignorable
 * character such that the strings "high-tech" and "hightech" would
 * be considered identical.
 * <p>
 * A <code>ParseException</code> will be thrown for any of the following
 * conditions:
 * <ul>
 * <li>Unquoted punctuation characters in a text argument.
 * <li>A relational or reset operator not followed by a text argument
 * <li>A reset operator where the text argument is not present in
 * the previous rule string section.
 * </ul>
 *
 * @author Aaron M. Renn <arenn@urbanophile.com>
 * @author Tom Tromey <tromey@cygnus.com>
 * @author Guilhem Lavaux <guilhem@kaffe.org>
 */
public class RuleBasedCollator extends Collator
{
  /**
   * This class describes what rank has a character (or a sequence of characters) 
   * in the lexicographic order. Each element in a rule has a collation element.
   */
  final class CollationElement
  {
    String char_seq;
    int primary;
    short secondary;
    short tertiary;
    short equality;
    boolean ignore;
    String expansion;

    CollationElement(String char_seq, int primary, short secondary, short tertiary,
		     short equality, String expansion)
    {
      this.char_seq = char_seq;
      this.primary = primary;
      this.secondary = secondary;
      this.tertiary = tertiary;
      this.equality = equality;
      this.ignore = false;
      this.expansion = expansion;
    }
    
    CollationElement(String char_seq)
    {
      this.char_seq = char_seq;
      this.ignore = true;
    }

    final int getValue()
    {
      return (primary << 16) + (secondary << 8) + tertiary;
    }

  } // inner class CollationElement

  /**
   * Basic collation instruction (internal format) to build the series of
   * collation elements. It contains an instruction which specifies the new
   * state of the generator. The sequence of instruction should not contain
   * RESET (it is used by
   * {@link #mergeRules(int,java.lang.String,java.util.Vector,java.util.Vector)})
   * as a temporary state while merging two sets of instructions.
   */
  final class CollationSorter
  {
    static final int GREATERP = 0;
    static final int GREATERS = 1;
    static final int GREATERT = 2;
    static final int EQUAL = 3;
    static final int RESET = 4;
    static final int IGNORE = 5;
    static final int INVERSE_SECONDARY = 6;
    
    int comparisonType;
    String textElement;
    int hashText;
    int offset;

    String expansionOrdering;
  }

  /**
   * This method returns the number of common characters at the beginning
   * of the string of the two parameters.
   *
   * @param prefix A string considered as a prefix to test against
   * the other string.
   * @param s A string to test the prefix against.
   * @return The number of common characters.
   */
  static int findPrefixLength(String prefix, String s)
  {
    int i;

    for (i = 0; i < prefix.length() && i < s.length(); i++)
      {
	if (prefix.charAt(i) != s.charAt(i))
	  return i;
      }
    return i;
  }

  /**
   * Here we are merging two sets of sorting instructions: 'patch' into 'main'. This methods
   * checks whether it is possible to find an anchor point for the rules to be merged and
   * then insert them at that precise point.
   *
   * @param offset Offset in the string containing rules of the beginning of the rules
   * being merged in.
   * @param starter Text of the rules being merged.
   * @param main Repository of all already parsed rules.
   * @param patch Rules to be merged into the repository.
   * @throws ParseException if it is impossible to find an anchor point for the new rules.
   */
  private void mergeRules(int offset, String starter, Vector main, Vector patch)
    throws ParseException 
  {
    Enumeration elements = main.elements();
    int insertion_point = -1;
    int max_length = 0;
    
    /* We must check that no rules conflict with another already present. If it
     * is the case delete the old rule. 
     */
    
    /* For the moment good old O(N^2) algorithm.
     */
    for (int i=0;i<patch.size();i++)
      {
	int j = 0;
	
	while (j < main.size())
	  {
	    CollationSorter rule1 = (CollationSorter)patch.elementAt(i);
	    CollationSorter rule2 = (CollationSorter)main.elementAt(j);
	    
	    if (rule1.textElement.equals(rule2.textElement))
	      main.removeElementAt(j);
	    else
	      j++;
	  }
      }

    // Find the insertion point... O(N)
    for (int i=0;i<main.size();i++)
      {
	CollationSorter sorter = (CollationSorter)main.elementAt(i);
	int length = findPrefixLength(starter, sorter.textElement);
		
	if (length > max_length)
	  {
	    max_length = length;
	    insertion_point = i+1;
	  }
      }

    if (insertion_point < 0)
      throw new ParseException("no insertion point found for " + starter, offset);

    if (max_length < starter.length())
      {
	/*
	 * We need to expand the first entry. It must be sorted
	 * like if it was the reference key itself (like the spec
	 * said. So the first entry is special: the element is
	 * replaced by the specified text element for the sorting.
	 * This text replace the old one for comparisons. However
	 * to preserve the behaviour we replace the first key (corresponding
	 * to the found prefix) by a new code rightly ordered in the
	 * sequence. The rest of the subsequence must be appended
	 * to the end of the sequence.
	 */
	CollationSorter sorter = (CollationSorter)patch.elementAt(0);
	CollationSorter expansionPrefix = (CollationSorter)main.elementAt(insertion_point-1);
	
	sorter.expansionOrdering = starter.substring(max_length); // Skip the first good prefix element
	
	main.insertElementAt(sorter, insertion_point);
	
	/*
	 * This is a new set of rules. Append to the list.
	 */
	patch.removeElementAt(0);
	insertion_point = main.size();
      }

    // Now insert all elements of patch at the insertion point.
    for (int i=0;i<patch.size();i++)
      main.insertElementAt(patch.elementAt(i), i+insertion_point);
  }

  /**
   * This method parses a string and build a set of sorting instructions. The parsing
   * may only be partial on the case the rules are to be merged sometime later.
   * 
   * @param stop_on_reset If this parameter is true then the parser stops when it
   * encounters a reset instruction. In the other case, it tries to parse the subrules
   * and merged it in the same repository.
   * @param v Output vector for the set of instructions.
   * @param base_offset Offset in the string to begin parsing.
   * @param rules Rules to be parsed.
   * @return -1 if the parser reached the end of the string, an integer representing the
   * offset in the string at which it stopped parsing. 
   * @throws ParseException if something turned wrong during the parsing. To get details
   * decode the message.
   */
  private int subParseString(boolean stop_on_reset, Vector v, int base_offset, String rules) throws ParseException
  {
    boolean ignoreChars = (base_offset == 0);
    int operator = -1;
    StringBuffer sb = new StringBuffer("");
    boolean doubleQuote = false;
    boolean eatingChars = false;
    boolean nextIsModifier = false;
    boolean isModifier = false;
    int i;
    
main_parse_loop:
    for (i=0;i<rules.length();i++)
      {
	char c = rules.charAt(i);
	int type = -1;
	
	if (!eatingChars &&
	    ((c >= 0x09 && c <= 0x0D) || (c == 0x20)))
	      continue;

	isModifier = nextIsModifier;
	nextIsModifier = false;

	if (eatingChars && c != '\'')
	  {
	    doubleQuote = false;
	    sb.append(c);
	    continue;
	  }
	if (doubleQuote && eatingChars)
	  {
	    sb.append(c);
	    doubleQuote = false;
	    continue;
	  }

	switch (c) {
	case '!':
	  throw new ParseException("Modifier '!' is not yet supported by Classpath", i+base_offset);
	case '<':
	  ignoreChars = false;
	  type = CollationSorter.GREATERP;
	  break;
	case ';':
	  if (!ignoreChars)
	    type = CollationSorter.GREATERS;
	  else
	    type = CollationSorter.IGNORE;
	  break;
	case ',':
	  if (!ignoreChars)
	    type = CollationSorter.GREATERT;
	  else
	    type = CollationSorter.IGNORE;
	  break;
	case '=':
	  if (!ignoreChars)
	    type = CollationSorter.EQUAL;
	  else
	    type = CollationSorter.IGNORE;
	  break;
	case '\'':
	  eatingChars = !eatingChars;
	  doubleQuote = true;
	  break;
	case '@':
	  if (ignoreChars)
	    throw new ParseException("comparison list has not yet been started. You may only use"
				     + "(<,;=&)", i+base_offset);
	  // Inverse the order of secondaries from now on.
	  nextIsModifier = true;
	  type = CollationSorter.INVERSE_SECONDARY;
	  break;
	case '&':
	  type = CollationSorter.RESET;
	  if (stop_on_reset)
	    break main_parse_loop;
	  break;
	default:
	  if (operator < 0)
	    throw new ParseException("operator missing at " + (i+base_offset), i+base_offset);
	  if (!eatingChars &&
	      ((c >= 0x21 && c <= 0x2F) || (c >= 0x3A && c <= 0x40) || (c >= 0x5B && c <= 0x60) ||
	       (c >= 0x7B && c <= 0x7E)))
	    throw new ParseException("unquoted punctuation character '"+c+"'", i+base_offset);

	  //type = ignoreChars ? CollationSorter.IGNORE : -1;
	  sb.append(c);
	  break;
	}

	if (type  < 0)
	  continue;

	if (operator < 0)
	  {
	    operator = type;
	    continue;
	  }

	if (sb.length() == 0 && !isModifier)
	  throw new ParseException("text element empty at " + (i+base_offset), i+base_offset);

	if (operator == CollationSorter.RESET)
	  {
	    /* Reposition in the sorting list at the position
	     * indicated by the text element.
	     */
	    String subrules = rules.substring(i);
	    Vector sorted_rules = new Vector();
	    int idx;

	    // Parse the subrules but do not iterate through all
	    // sublist. This is the priviledge of the first call.
	    idx = subParseString(true, sorted_rules, base_offset+i, subrules);
    
	    // Merge new parsed rules into the list.
	    mergeRules(base_offset+i, sb.toString(), v, sorted_rules);
	    sb.setLength(0);
	    
	    // Reset state to none.
	    operator = -1;
	    type = -1;
	    // We have found a new subrule at 'idx' but it has not been parsed.
	    if (idx >= 0)
	      {
		i += idx-1;
		continue main_parse_loop;
	      }
	    else
		// No more rules.
		break main_parse_loop;
	  }

	CollationSorter sorter = new CollationSorter();
	
	sorter.comparisonType = operator;
	sorter.textElement = sb.toString();
	sorter.hashText = sorter.textElement.hashCode();
	sorter.offset = base_offset+rules.length();
	sb.setLength(0);

	v.add(sorter);
	operator = type;
      }

    if (operator >= 0)
      {
	CollationSorter sorter = new CollationSorter();
	int pos = rules.length() + base_offset;

	if ((sb.length() != 0 && nextIsModifier) ||
	    (sb.length() == 0 && !nextIsModifier && !eatingChars))
	  throw new ParseException("text element empty at " + pos, pos);

	sorter.comparisonType = operator;
	sorter.textElement = sb.toString();
 	sorter.hashText = sorter.textElement.hashCode();
	sorter.offset = base_offset+pos;
	v.add(sorter);
      }

    if (i == rules.length())
      return -1;
    else
      return i;
  }

  /**
   * This method completely parses a string 'rules' containing sorting rules.
   *
   * @param rules String containing the rules to be parsed. 
   * @return A set of sorting instructions stored in a Vector.
   * @throws ParseException if something turned wrong during the parsing. To get details
   * decode the message.
   */
  private Vector parseString(String rules) throws ParseException
  {
    Vector v = new Vector();

    // result of the first subParseString is not certain (may be -1 or a positive integer). But we
    // do not care.
    subParseString(false, v, 0, rules);
    
    return v;
  }

  /**
   * This the the original rule string.
   */
  private String rules;

  /**
   * This is the table of collation element values
   */
  private Object[] ce_table;

  /**
   * Quick-prefix finder.
   */
  HashMap prefix_tree;

  /**
   * This is the value of the last sequence entered into
   * <code>ce_table</code>. It is used to compute the
   * ordering value of unspecified character.
   */
  private int last_primary_value;

  /**
   * This variable is true if accents need to be sorted
   * in the other direction.
   */
  private boolean inverseAccentComparison;

  /**
   * This method uses the sorting instructions built by {@link #parseString}
   * to build collation elements which can be directly used to sort strings.
   *
   * @param parsedElements Parsed instructions stored in a Vector.
   * @throws ParseException if the order of the instructions are not valid.
   */
  private void buildCollationVector(Vector parsedElements) throws ParseException
  {
    int primary_seq = 0;
    short secondary_seq = 0;
    short tertiary_seq = 0;
    short equality_seq = 0;
    boolean inverseComparisons = false;
    final boolean DECREASING = false;
    final boolean INCREASING = true;
    boolean secondaryType = INCREASING;
    Vector v = new Vector();

    // elts is completely sorted.
element_loop:
    for (int i = 0; i < parsedElements.size(); i++)
      {
	CollationSorter elt = (CollationSorter)parsedElements.elementAt(i);
	boolean ignoreChar = false;

	switch (elt.comparisonType)
	  {
	  case CollationSorter.GREATERP:
	    primary_seq++;
	    if (inverseComparisons)
	      {
		secondary_seq = Short.MAX_VALUE;
		secondaryType = DECREASING;
	      }
	    else
	      {
		secondary_seq = 0;
		secondaryType = INCREASING;
	      }
	    tertiary_seq = 0;
	    equality_seq = 0;
	    inverseComparisons = false;
	    break;
	  case CollationSorter.GREATERS:
	    if (secondaryType == DECREASING)
	      secondary_seq--;
	    else
	      secondary_seq++;
	    tertiary_seq = 0;
	    equality_seq = 0;
	    break;
	  case CollationSorter.INVERSE_SECONDARY:
	    inverseComparisons = true;
	    continue element_loop;
	  case CollationSorter.GREATERT:
	    tertiary_seq++;
	    equality_seq = 0;
	    break;
	  case CollationSorter.IGNORE:
	    ignoreChar = true;
	  case CollationSorter.EQUAL:
	    equality_seq++;
	    break;
	  case CollationSorter.RESET:
	    throw new ParseException("Invalid reached state 'RESET'. Internal error", elt.offset);
	  default:
	    throw new ParseException("Invalid unknown state '"+elt.comparisonType+"'", elt.offset);
	  }

	CollationElement e;

	if (!ignoreChar)
	  {
	    e = new CollationElement(elt.textElement, primary_seq,
				     secondary_seq, tertiary_seq,
				     equality_seq, elt.expansionOrdering);
	  }
	else
	  e = new CollationElement(elt.textElement);

	v.add(e);
      }

    this.inverseAccentComparison = inverseComparisons; 

    ce_table = v.toArray();

    last_primary_value = primary_seq+1;
  }

  /**
   * Build a tree where all keys are the texts of collation elements and data is
   * the collation element itself. The tree is used when extracting all prefix
   * for a given text.
   */
  private void buildPrefixAccess()
  {
    prefix_tree = new HashMap();

    for (int i = 0; i < ce_table.length; i++)
      {
	CollationElement e = (CollationElement)ce_table[i];

	prefix_tree.put(e.char_seq, e);
      }
  }

  /**
   * This method initializes a new instance of <code>RuleBasedCollator</code>
   * with the specified collation rules.  Note that an application normally
   * obtains an instance of <code>RuleBasedCollator</code> by calling the
   * <code>getInstance</code> method of <code>Collator</code>.  That method
   * automatically loads the proper set of rules for the desired locale.
   *
   * @param rules The collation rule string.
   *
   * @exception ParseException If the rule string contains syntax errors.
   */
  public RuleBasedCollator(String rules) throws ParseException
  {
    this.rules = rules;

    if (rules.equals(""))
      throw new ParseException("Empty rule set", 0);

    buildCollationVector(parseString(rules));
    buildPrefixAccess();
  }

  /**
   * This method returns a <code>String</code> containing the collation rules
   * for this object.
   *
   * @return The collation rules for this object.
   */
  public String getRules()
  {
    return rules;
  }

  /**
   * This method builds a default collation element without invoking
   * the database created from the rules passed to the constructor.
   *
   * @param c Character which needs a collation element.
   * @return A valid brand new CollationElement instance.
   */
  CollationElement getDefaultElement(char c)
  {
    int v;

    // Preliminary support for generic accent sorting inversion (I don't know if all
    // characters in the range should be sorted backward). This is the place
    // to fix this if needed.
    if (inverseAccentComparison && (c >= 0x02B9 && c <= 0x0361))
      v = 0x0361 - ((int)c - 0x02B9);
    else
      v = (short)c;
    return new CollationElement (""+c, last_primary_value + v, (short)0, (short)0, (short) 0, null);
  }

  /**
   * This method returns an instance for <code>CollationElementIterator</code>
   * for the specified <code>String</code> under the collation rules for this
   * object.
   *
   * @param str The <code>String</code> to return the <code>CollationElementIterator</code> instance for.
   *
   * @return A <code>CollationElementIterator</code> for the specified <code>String</code>.
   */
  public CollationElementIterator getCollationElementIterator(String str)
  {
    return(new CollationElementIterator(this, str));
  }  

  /**
   * This method returns an instance of <code>CollationElementIterator</code>
   * for the <code>String</code> represented by the specified
   * <code>CharacterIterator</code>.
   *
   * @param ci The <code>CharacterIterator</code> with the desired <code>String</code>.
   *
   * @return A <code>CollationElementIterator</code> for the specified <code>String</code>.
   */
  public CollationElementIterator getCollationElementIterator(CharacterIterator ci)
  {
    StringBuffer sb = new StringBuffer("");

    // Right now we assume that we will read from the beginning of the string.
    char c = ci.first();
    while (c != CharacterIterator.DONE) 
      {
        sb.append(c);
        c = ci.next();
      }

    return(getCollationElementIterator(sb.toString()));
  }

  /**
   * This method returns an integer which indicates whether the first
   * specified <code>String</code> is less than, greater than, or equal to
   * the second.  The value depends not only on the collation rules in
   * effect, but also the strength and decomposition settings of this object.
   *
   * @param s1 The first <code>String</code> to compare.
   * @param s2 A second <code>String</code> to compare to the first.
   *
   * @return A negative integer if s1 &lt; s2, a positive integer
   * if s1 &gt; s2, or 0 if s1 == s2.
   */
  public int compare(String s1, String s2)
  {
    CollationElementIterator cei1 = getCollationElementIterator(s1);
    CollationElementIterator cei2 = getCollationElementIterator(s2);

    for(;;)
      {
        CollationElement ord1block = cei1.nextBlock(); 
        CollationElement ord2block = cei2.nextBlock(); 
	int ord1;
	int ord2;

	if (ord1block != null)
	  ord1 = ord1block.getValue();
	else
	  {
	    if (ord2block == null)
	      return 0;
	    return -1;
	  }

	if (ord2block == null)
	  return 1;
	
	ord2 = ord2block.getValue();
	
	// We know chars are totally equal, so skip
        if (ord1 == ord2)
	  {
	    if (getStrength() == IDENTICAL)
	      if (!ord1block.char_seq.equals(ord2block.char_seq))
		return ord1block.char_seq.compareTo(ord2block.char_seq);
	    continue;
	  }

        // Check for primary strength differences
        int prim1 = cei1.primaryOrder(ord1); 
        int prim2 = cei2.primaryOrder(ord2); 

        if (prim1 < prim2)
          return(-1);
        else if (prim1 > prim2)
          return(1);
        else if (getStrength() == PRIMARY)
          continue;

        // Check for secondary strength differences
        int sec1 = cei1.secondaryOrder(ord1);
        int sec2 = cei2.secondaryOrder(ord2);

        if (sec1 < sec2)
          return(-1);
        else if (sec1 > sec2)
          return(1);
        else if (getStrength() == SECONDARY)
          continue;

        // Check for tertiary differences
        int tert1 = cei1.tertiaryOrder(ord1);
        int tert2 = cei2.tertiaryOrder(ord2);

        if (tert1 < tert2)
          return(-1);
        else if (tert1 > tert2)
          return(1);
	else if (getStrength() == TERTIARY)
	  continue;

	// Apparently JDK does this (at least for my test case).
	return ord1block.char_seq.compareTo(ord2block.char_seq);    
      }
  }

  /**
   * This method returns an instance of <code>CollationKey</code> for the
   * specified <code>String</code>.  The object returned will have a
   * more efficient mechanism for its comparison function that could
   * provide speed benefits if multiple comparisons are performed, such
   * as during a sort.
   *
   * @param str The <code>String</code> to create a <code>CollationKey</code> for.
   *
   * @return A <code>CollationKey</code> for the specified <code>String</code>.
   */
  public CollationKey getCollationKey(String str)
  {
    CollationElementIterator cei = getCollationElementIterator(str);
    Vector vect = new Vector(25);

    int ord = cei.next();
    cei.reset(); //set to start of string

    while (ord != CollationElementIterator.NULLORDER)
      {
        switch (getStrength())
          {
            case PRIMARY:
               ord = cei.primaryOrder(ord);
               break;

            case SECONDARY:
               ord = cei.secondaryOrder(ord);

            default:
               break;
          }

        vect.add(new Integer(ord)); 
	ord = cei.next(); //increment to next key
      }

    Object[] objarr = vect.toArray();
    byte[] key = new byte[objarr.length * 4];

    for (int i = 0; i < objarr.length; i++)
      {
        int j = ((Integer)objarr[i]).intValue();
        key [i * 4] = (byte)((j & 0xFF000000) >> 24);
        key [i * 4 + 1] = (byte)((j & 0x00FF0000) >> 16);
        key [i * 4 + 2] = (byte)((j & 0x0000FF00) >> 8);
        key [i * 4 + 3] = (byte)(j & 0x000000FF);
      }

    return(new CollationKey(this, str, key));
  }

  /**
   * This method tests this object for equality against the specified 
   * object.  This will be true if and only if the specified object is
   * another reference to this object.
   *
   * @param obj The <code>Object</code> to compare against this object.
   *
   * @return <code>true</code> if the specified object is equal to this object, <code>false</code> otherwise.
   */
  public boolean equals(Object obj)
  {
    if (obj == this)
      return(true);
    else
      return(false);
  }

  /**
   * This method returns a hash value for this object.
   *
   * @return A hash value for this object.
   */
  public int hashCode()
  {
    return(System.identityHashCode(this));
  }

  /**
   * This method creates a copy of this object.
   *
   * @return A copy of this object.
   */
  public Object clone()
  {
    return super.clone();
  }
}

--------------070409080806060200040605
Content-Type: text/plain;
 name="CollationElementIterator.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="CollationElementIterator.java"

/* CollationElementIterator.java -- Walks through collation elements
   Copyright (C) 1998, 1999, 2001, 2002, 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 java.text;

import java.util.Vector;
import java.util.NoSuchElementException;
import java.util.Map;
import java.util.SortedMap;

/* Written using "Java Class Libraries", 2nd edition, plus online
 * API docs for JDK 1.2 from http://www.javasoft.com.
 * Status: Believed complete and correct to JDK 1.1.
 */

/**
 * This class walks through the character collation elements of a 
 * <code>String</code> as defined by the collation rules in an instance of 
 * <code>RuleBasedCollator</code>.  There is no public constructor for
 * this class.  An instance is created by calling the
 * <code>getCollationElementIterator</code> method on 
 * <code>RuleBasedCollator</code>.
 *
 * @author Aaron M. Renn <arenn@urbanophile.com>
 * @author Tom Tromey <tromey@cygnus.com>
 * @author Guilhem Lavaux <guilhem.lavaux@free.fr>
 */
public final class CollationElementIterator
{
  /**
   * This is a constant value that is returned to indicate that the end of 
   * the string was encountered.
   */
  public static final int NULLORDER = -1;

  /**
   * This is the RuleBasedCollator this object was created from.
   */
  private RuleBasedCollator collator;

  /**
   * This is the String that is being iterated over.
   */
  private String text;

  /**
   * This is the index into the collation decomposition where we are currently scanning.
   */
  private int index;

  /**
   * This is the index into the String where we are currently scanning.
   */
  private int textIndex;

  /**
   * Array containing the collation decomposition of the
   * text given to the constructor.
   */
  private Object[] text_decomposition;

  /**
   * This method initializes a new instance of <code>CollationElementIterator</code>
   * to iterate over the specified <code>String</code> using the rules in the
   * specified <code>RuleBasedCollator</code>.
   *
   * @param collator The <code>RuleBasedCollation</code> used for calculating collation values
   * @param text The <code>String</code> to iterate over.
   */
  CollationElementIterator(RuleBasedCollator collator, String text)
  {
    this.collator = collator;
    
    setText (text);    
  }

  RuleBasedCollator.CollationElement nextBlock()
  {
    if (index >= text_decomposition.length)
      return null;
    
    RuleBasedCollator.CollationElement e =
      (RuleBasedCollator.CollationElement) text_decomposition[index++];
    
    textIndex += e.char_seq.length();

    return e;
  }

  RuleBasedCollator.CollationElement previousBlock()
  {
    if (index == 0)
      return null;
    
    index--;
    RuleBasedCollator.CollationElement e =
      (RuleBasedCollator.CollationElement) text_decomposition[index];

    textIndex -= e.char_seq.length();
    
    return e;
  }

  /**
   * This method returns the collation ordering value of the next character sequence
   * in the string (it may be an extended character following collation rules).
   * This method will return <code>NULLORDER</code> if the
   * end of the string was reached.
   *
   * @return The collation ordering value.
   */
  public int next()
  {
    RuleBasedCollator.CollationElement e = nextBlock();

    if (e == null)
      return NULLORDER;
    
    return e.getValue();
  }

  /**
   * This method returns the collation ordering value of the previous character
   * in the string.  This method will return <code>NULLORDER</code> if the
   * beginning of the string was reached.
   *
   * @return The collation ordering value.
   */
  public int previous()
  {
    RuleBasedCollator.CollationElement e = previousBlock();

    if (e == null)
      return NULLORDER;
    
    return e.getValue();
  }

  /**
   * This method returns the primary order value for the given collation
   * value.
   *
   * @param value The collation value returned from <code>next()</code> or <code>previous()</code>.
   *
   * @return The primary order value of the specified collation value.  This is the high 16 bits.
   */
  public static final int primaryOrder(int order)
  {
    // From the JDK 1.2 spec.
    return order >>> 16;
  }

  /**
   * This method resets the internal position pointer to read from the
   * beginning of the <code>String again.
   */
  public void reset()
  {
    index = 0;
    textIndex = 0;
  }

  /**
   * This method returns the secondary order value for the given collation
   * value.
   *
   * @param value The collation value returned from <code>next()</code> or <code>previous()</code>.
   *
   * @return The secondary order value of the specified collation value.  This is the bits 8-15.
   */
  public static final short secondaryOrder(int order)
  {
    // From the JDK 1.2 spec.
    return (short) ((order >>> 8) & 255);
  }

  /**
   * This method returns the tertiary order value for the given collation
   * value.
   *
   * @param value The collation value returned from <code>next()</code> or <code>previous()</code>.
   *
   * @return The tertiary order value of the specified collation value.  This is the low eight bits.
   */
  public static final short tertiaryOrder(int order)
  {
    // From the JDK 1.2 spec.
    return (short) (order & 255);
  }

  /**
   * This method sets the <code>String</code> that it is iterating over
   * to the specified <code>String</code>.
   *
   * @param The new <code>String</code> to iterate over.
   */
  public void setText(String text)
  {
    int idx = 0;

    this.text = text;
    index = 0;

    String work_text = text.intern();

    Vector v = new Vector();
    // Build element collection ordered as they come in "text".
    while (idx < work_text.length())
      {
	String key, key_old;

	try
	  {
	    Object object = null;
	    int p = 1;
	    
	    // IMPROVE: use a TreeMap with a prefix-ordering rule.
	    key_old = key = null;
	    do
	      {
		if (object != null)
		  key_old = key;
		key = work_text.substring (idx, idx+p);
		object = collator.prefix_tree.get (key);
		p++;
	      }
	    while (idx+p <= work_text.length());

	    if (object == null)
	      key = key_old;
	
	    RuleBasedCollator.CollationElement prefix =
	      (RuleBasedCollator.CollationElement)collator.prefix_tree.get (key);

	    if (prefix.expansion != null)
	      {
		work_text = prefix.expansion + work_text.substring (idx+prefix.char_seq.length());
		idx = 0;
		v.add (prefix);
	      }
	    else
	      {
		if (!prefix.ignore)
		  v.add (prefix);
		idx += prefix.char_seq.length ();
	      }
	  }
	catch (NullPointerException _)
	  {
	    RuleBasedCollator.CollationElement e = collator.getDefaultElement(work_text.charAt (idx));
	    
	    v.add (e);
	    idx++;
	  }
      }

    text_decomposition = v.toArray();
  }

  /**
   * This method sets the <code>String</code> that it is iterating over
   * to the <code>String</code> represented by the specified
   * <code>CharacterIterator</code>.
   *
   * @param ci The <code>CharacterIterator</code> containing the new <code>String</code> to iterate over.
   */
  public void setText(CharacterIterator ci)
  {
    StringBuffer sb = new StringBuffer ("");

    // For now assume we read from the beginning of the string.
    char c = ci.first ();
    while (c != CharacterIterator.DONE)
      {
        sb.append (c);
        c = ci.next ();
      }

    setText (sb.toString ());
  }

  /**
   * This method returns the current offset into the <code>String</code>
   * that is being iterated over.
   *
   * @return The iteration index position.
   */
  public int getOffset()
  {
    return textIndex;
  }

  /**
   * This method sets the iteration index position into the current
   * <code>String</code> to the specified value.  This value must not
   * be negative and must not be greater than the last index position
   * in the <code>String</code>.
   *
   * @param offset The new iteration index position.
   *
   * @exception IllegalArgumentException If the new offset is not valid.
   */
  public void setOffset(int offset)
  {
    if (offset < 0)
      throw new IllegalArgumentException ("Negative offset: " + offset);

    if ((text.length () > 0) && (offset > 0))
      throw new IllegalArgumentException ("Offset too large: " + offset);
    else if (offset > (text.length () - 1))
      throw new IllegalArgumentException ("Offset too large: " + offset);

    textIndex = 0;
    for (int i=0;i<text_decomposition.length;i++)
      {
	RuleBasedCollator.CollationElement e =
	  (RuleBasedCollator.CollationElement) text_decomposition[i];
	int idx = textIndex + e.char_seq.length();
	
	if (idx > offset)
	  break;
	textIndex = idx;
      }
  }

  /**
   * This method returns the maximum length of any expansion sequence that
   * ends with the specified collation order value.  (Whatever that means).
   *
   * @param value The collation order value
   *
   * @param The maximum length of an expansion sequence.
   */
  public int getMaxExpansion(int value)
  {
    return 1;
  }
}

--------------070409080806060200040605--

--------------enig44EB85F4C8E4CB35CE5810E6
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/5HuuWRk4qbNiTwgRAnyPAJ4r2JAXv81TGJg2mBSV14k92P9WkQCcDjef
FVfP+QTfaUfw4tGvcaXVa+I=
=D8GE
-----END PGP SIGNATURE-----

--------------enig44EB85F4C8E4CB35CE5810E6--




From MAILER-DAEMON Sat Dec 20 14:00:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AXmKv-0001a9-95
	for mharc-classpath@gnu.org; Sat, 20 Dec 2003 14:00:25 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AXmKr-0001YA-UW
	for classpath@gnu.org; Sat, 20 Dec 2003 14:00:21 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AXmKJ-0001H3-GX
	for classpath@gnu.org; Sat, 20 Dec 2003 14:00:18 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AXmKJ-0001GA-Ai
	for classpath@gnu.org; Sat, 20 Dec 2003 13:59:47 -0500
Received: from [62.253.162.46] (helo=mta06-svc.ntlworld.com)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AXlJy-00040C-Nn
	for classpath@gnu.org; Sat, 20 Dec 2003 12:55:22 -0500
Received: from cuddles.cambridge.redhat.com ([81.96.64.123])
	by mta06-svc.ntlworld.com
	(InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id
	<20031220175517.ELQI1005.mta06-svc.ntlworld.com@cuddles.cambridge.redhat.com>
	for <classpath@gnu.org>; Sat, 20 Dec 2003 17:55:17 +0000
Received: from redhat.com (localhost.localdomain [127.0.0.1])
	by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id
	hBKHsOFx028578; Sat, 20 Dec 2003 17:54:34 GMT
Received: (from aph@localhost)
	by redhat.com (8.12.8/8.12.8/Submit) id hBKHsNgt028573;
	Sat, 20 Dec 2003 17:54:23 GMT
From: Andrew Haley <aph@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16356.36047.349310.391977@cuddles.cambridge.redhat.com>
Date: Sat, 20 Dec 2003 17:54:23 +0000
To: Mark Wielaard <mark@klomp.org>
In-Reply-To: <1071924582.4668.98.camel@elsschot.wildebeest.org>
References: <1071924582.4668.98.camel@elsschot.wildebeest.org>
X-Mailer: VM 7.14 under Emacs 21.2.1
Cc: classpath@gnu.org
Subject: Fosdem meeting (February 21 - 22, Brussel)
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 Dec 2003 19:00:23 -0000

Mark Wielaard writes:
 > 
 > The 4 people in brackets said they would try, but didn't know yet.

Thanks for organizing this.

I am now authorized to attend FOSDEM.  I am more than 90% sure I will
be there.

Andrew.



From MAILER-DAEMON Sun Dec 21 10:27:38 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AY5UX-0007Td-Rv
	for mharc-classpath@gnu.org; Sun, 21 Dec 2003 10:27:37 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AY5UT-0007Sr-Ds
	for classpath@gnu.org; Sun, 21 Dec 2003 10:27:33 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AY5Tv-0007Ma-A6
	for classpath@gnu.org; Sun, 21 Dec 2003 10:27:30 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AY5Tu-0007M4-Gj
	for classpath@gnu.org; Sun, 21 Dec 2003 10:26:58 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AY4WG-0003SW-00
	for <classpath@gnu.org>; Sun, 21 Dec 2003 15:25:20 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-QNWgYplzGmHHGoFzfXIu"
Message-Id: <1072016726.4667.490.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sun, 21 Dec 2003 15:25:27 +0100
Subject: Auditing source code
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 Dec 2003 15:27:35 -0000


--=-QNWgYplzGmHHGoFzfXIu
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

Preparing for the source code auditing. The following is what I intend
to do/have done already.

Get a fresh checkout of libgcj and kaffe.
Run the following on it:
grep -r "This file is part of GNU Classpath." * | cut -f1 -d: | sort -u

This gives for gcc/libjava 1882 files
and for kaffe/libraries/javalib 1242 files.

Get the last CVS checkout of classpath:
cvs -d:ext:anoncvs@subversions.gnu.org:/cvs-latest/classpath co classpath

Then to find the files that differ or don't exist (anymore) do:

for i in `cat files_libgcj`; do if test -f classpath/$i; \
then cmp classpath/$i ~/src/gcc/libjava/$i | cut -f1 -d\ | cut -f2- -d/;\
else echo "$i"; fi; done

Which gives 212 files that differ.
The same for kaffe gives 66 that differ.

We need to find explanations for these differences. I have not done that
yet. But most differences seem easily explainable.

Then for the classpath checkout we can generate the list of files which
are neither in libgcj nor kaffe with:

for i in `find * -type f | grep -v CVS | grep -v external`; \
do if grep ^$i\$ files_libgcj > /dev/null \
      || grep ^$i\$ files_kaffe > /dev/null; \
then echo $i > /dev/null; else echo $i; fi; done

This gives 958 files. That need to be checked against the latest safe
checkout from:

cvs -d:ext:anoncvs@subversions.gnu.org:/cvs-2003-09-16/classpath \
    co -d old-classpath classpath

We can ignore the files we already know are OK from libgcj and kaffe
with:

for i in `cat classpath-cmp`; do if test -f old-classpath/$i;\
then cmp old-classpath/$i classpath/$i | cut -f1 -d\ | cut -f2- -d/;\
else echo "$i"; fi; done

Which gives 127 file differences, not already in libgcj and kaffe, that
need to be checked.

Again I have not done this, but most differences look like our normal
updates between September 16 and December 1.

The above ignores the external directory which contains a fresh
GNU-JAXP. I don't know whether or not the ClasspathX hackers have been
able to do a audit of that code yet.

I don't know how long the above will take me and help is appreciated.

Cheer,

Mark

--=-QNWgYplzGmHHGoFzfXIu
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/5a1WxVhZCJWr9QwRAhs2AKCQRQPaAfYdvSh/7J/YNa7alzHmIwCfeGQo
/wI55mlwBuzymFu65VWhiQk=
=kebq
-----END PGP SIGNATURE-----

--=-QNWgYplzGmHHGoFzfXIu--




From MAILER-DAEMON Sun Dec 21 14:04:16 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AY8sC-0003JL-H7
	for mharc-classpath@gnu.org; Sun, 21 Dec 2003 14:04:16 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AY8s9-0003Hz-Eg
	for classpath@gnu.org; Sun, 21 Dec 2003 14:04:13 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AY8rd-0003F1-KD
	for classpath@gnu.org; Sun, 21 Dec 2003 14:04:12 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AY8rc-0003Ew-Oy
	for classpath@gnu.org; Sun, 21 Dec 2003 14:03:40 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AY7u1-0003oN-00
	for <classpath@gnu.org>; Sun, 21 Dec 2003 19:02:05 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <1072016726.4667.490.camel@elsschot.wildebeest.org>
References: <1072016726.4667.490.camel@elsschot.wildebeest.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-Wj8c/3kGISG/9iIpPBVJ"
Message-Id: <1072029732.4679.500.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sun, 21 Dec 2003 19:02:12 +0100
Subject: Re: Auditing source code
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 Dec 2003 19:04:14 -0000


--=-Wj8c/3kGISG/9iIpPBVJ
Content-Type: multipart/mixed; boundary="=-icNmpHvxRCV7eWxRL6++"


--=-icNmpHvxRCV7eWxRL6++
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Sun, 2003-12-21 at 15:25, Mark Wielaard wrote:
> [...]
> Which gives 212 files that differ.
> The same for kaffe gives 66 that differ.
>=20
> We need to find explanations for these differences. I have not done that
> yet. But most differences seem easily explainable.
> [...]
> Which gives 127 file differences, not already in libgcj and kaffe, that
> need to be checked.
>=20
> Again I have not done this, but most differences look like our normal
> updates between September 16 and December 1.

I started with these 127 files.
Attached is the audit log.
Didn't find anything suspicious.

There are lots of jni/gtk-peer changes which I only quickly checked for=20
anomalies. We will replace these with the newer libgcj ones.

> The above ignores the external directory which contains a fresh
> GNU-JAXP. I don't know whether or not the ClasspathX hackers have been
> able to do a audit of that code yet.
>=20
> I don't know how long the above will take me and help is appreciated.

Cheers,

Mark

--=-icNmpHvxRCV7eWxRL6++
Content-Disposition: inline; filename=classpath-diffs-compared
Content-Type: text/plain; name=classpath-diffs-compared; charset=iso-8859-1
Content-Transfer-Encoding: base64

QVVUSE9SUyAtT0sNCkNoYW5nZUxvZyAtT0sNCkhBQ0tJTkcgLU9LDQpORVdTIC1PSw0KY29uZmln
dXJlLmluIC1PSyAtIEJ1dCBBQ19JTklUIHNob3VsZCBzYXkgMC4wNytjdnMuDQoNCmRvYy93d3cu
Z251Lm9yZy9pbmNsdWRlL21hY3Jvcy53bWwNCmRvYy93d3cuZ251Lm9yZy9pbmNsdWRlL2xheW91
dC53bWwNCmRvYy93d3cuZ251Lm9yZy9mYXEvZmFxLndtbA0KZG9jL3d3dy5nbnUub3JnL2ZhcS9N
YWtlZmlsZQ0KZG9jL3d3dy5nbnUub3JnL2ZhcS8uY3ZzaWdub3JlDQpkb2Mvd3d3LmdudS5vcmcv
ZG93bmxvYWRzL3Rvb2xzLndtbA0KZG9jL3d3dy5nbnUub3JnL2Rvd25sb2Fkcy9kb3dubG9hZHMu
d21sDQpkb2Mvd3d3LmdudS5vcmcvZG93bmxvYWRzL01ha2VmaWxlDQpkb2Mvd3d3LmdudS5vcmcv
ZG93bmxvYWRzLzIwMDIwMjA4LndtbA0KZG9jL3d3dy5nbnUub3JnL2Rvd25sb2Fkcy8yMDAxMDEw
Ni53bWwNCmRv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NCm5hdGl2ZS9q
bmkvY2xhc3NwYXRoL2pjbC5jIC0gT0suIFVzZSBhbmQgZGVmaW5lIF9fYXR0cmlidXRlX18oeCkg
Lyogbm90aGluZyAqLw0KDQp2bS9yZWZlcmVuY2UvamF2YS9sYW5nL1J1bnRpbWUuamF2YSAtIE9L
LiBOZXcgcHJpdmF0ZSBydW5TaHV0ZG93bkhvb2tzLg0KDQp2bS9yZWZlcmVuY2UvamF2YS9sYW5n
L01ha2VmaWxlLmFtIC0gT0suIFJlbW92ZWQgVGhyZWFkLCBhZGRlZCBWTVRocmVhZC4NCg==

--=-icNmpHvxRCV7eWxRL6++--

--=-Wj8c/3kGISG/9iIpPBVJ
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/5eAkxVhZCJWr9QwRAnzfAKCnNEAnxfhF2zuUfM4EMfaHEKC/JgCfQRa1
NRSpb/5CKPmP/47bZvD07f8=
=dspI
-----END PGP SIGNATURE-----

--=-Wj8c/3kGISG/9iIpPBVJ--




From MAILER-DAEMON Sun Dec 21 14:16:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AY94Q-0008AO-ID
	for mharc-classpath@gnu.org; Sun, 21 Dec 2003 14:16:54 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AY94N-0008A4-On
	for classpath@gnu.org; Sun, 21 Dec 2003 14:16:51 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AY93p-0007xA-QW
	for classpath@gnu.org; Sun, 21 Dec 2003 14:16:50 -0500
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AY93o-0007vX-Mg
	for classpath@gnu.org; Sun, 21 Dec 2003 14:16:16 -0500
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1AY86J-0006oy-00
	for <classpath@gnu.org>; Sun, 21 Dec 2003 19:14:47 +0100
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 1AY86G-0006nd-00; Sun, 21 Dec 2003 19:14:45 +0100
Message-ID: <3FE5E313.2010701@kaffe.org>
Date: Sun, 21 Dec 2003 19:14:43 +0100
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: discuss@lists.userlinux.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>, GNU Classpath <classpath@gnu.org>
Subject: UserLinux & free runtimes for java applications
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 Dec 2003 19:16:52 -0000

Hi all,

I've recently heard about the UserLinux effort from Mark Wielaard, the
GNU Classpath maintainer, who asked GNU Classpath developers to chip in
to the discussion on UserLinux mailing list to help out figuring out how
  free java runtimes fit into the 'enterprise linux' picture painted by
Bruce and fix some of the misunderstandings of whoever wrote the bit in
the white paper about Java.

Reading through your whitepaper's short paragraph on Java in the 
enterprise, I got the impression that it was written by someone without 
much knowledge of current developments in the java world. So I'd like to 
start by correcting a few mistakes:

The whitepaper says:
"Java-like environment: It sounds as if GCJ/Classpath is in the lead 
among free Java-like implementations, but is not up to Java 2.0 and even 
misses the Java 1.3 standard. There is an implementation of Swing, and 
Eclipse can now be built . Some of the service providers will need to 
provide a Sun-derived JDK as an option."

a) There is no such thing as Java 2.0. There was a failed marketing 
effort by Sun to relabel JDK 1.2 as Java 2.

b) The latest version of the JDK from Sun is JDK 1.4.2, if that's what 
the author tries to alude to as 'Java standard'. In reality, there is no 
such thing as a Java standard: tha language, library and virtual machine 
  specification haven't been blessed by any standards body. It's about 
as standard as the 'Netscape Navigator 4.71' standard.

c) GNU Classpath is the leading free software java runtime class library 
around, being used most free VMs out there. It's not a java runtime by 
itsef, though it's a vital component of one.

d) GCJ is the GNU Compiler for the Java Programming Language, and is one 
of the many free software java runtimes that utilize GNU Classpath. 
Other popular runtimes are SableVM and kaffe. Each one has is leading in 
one aspect or another. You should evaluate carefully which one to pick, 
depending on your customer's needs . Since you haven't specified those, 
it's hard to give a recommendation. I hope authors of GNU Classpath 
based java runtime environments will take the opportunity to present the 
pros and cons of their solutions to this forum, which is why I 
cross-post this e-mail to the GNU Classpath mailing list.

e) You can see how far in implementing the java runtime class libraries 
the various efforts are here: http://japi.sab39.org/. Most Java 
applications only use a fraction of the APIs. That's why many free java 
runtimes will happily run enterprise applications for java servers, 
despite not having a full Swing implementation yet.

f) The Swing implementation in GNU Classpath is incomplete. It's being 
worked on by several great hackers, but implementing a whole graphical 
toolkit from scratch is a lot of work, and GNU Classpath could use some 
more developers in that area.

g) Eclipse can not only be built it can also be run ;)

h) Recently, we had some more success with 'enterprise' type of 
applications: kaffe[1] (and presumably many other GNU Classpath based
java runtimes) can run apps like tomcat [2], eXist
[3], ant [4], and is rapidly getting better at running apps like
Eclipse3 [5], or JBoss [6]. It's no longer just about providing a 
runtime environment for "HelloWorld.java", it's also about a truely free 
cross-platform enterprise software solution stack. ;)

i) RedHat's enterpise linux distribution uses GCJ to build important 
java enterprise apps like tomcat as native applications. In terms of 
using GCJ to build native applications, debian is currently (quite a 
bit) behind RedHat's projects like RHUG.

j) The policy of 'some providers will need to provide a Sun-derived JDK 
as an option' is contrary to UserLinux' goal of having one carefully 
picked provider of each crucial component of the enterprise software 
stack. If there is only one gui toolkit, one desktop, one web server, 
then there should also be only one VM.

Instead of trying to work around the (percieved) weeknesses in free java 
runtimes by providing for non-free, limiting alternatives, you could 
consider pooling your resources with the free java runtime and debian 
hackers to make UserLinux's support for Java shine.

k) You can not legally provide a Sun-derived JDK as an option unless you 
sign a contract with Sun, and your JDK on your platform passes Sun's 
tests. All that debian does is to provide some wrappers to make debian 
packages around Sun's proprietary offers. Your users would still have to 
fetch the JDK for themselves from Sun.

I hope to make clear that by picking and actively supporting any of the 
fine runtimes based on GNU Classpath, you do a great favor to both your 
customers, and the free java runtime projects. Even if Sun goes down 
(i.e. bankrupt), their investment in free java runtimes would be safe.

I'm not advocating blindly picking kaffe over GCJ or SableVM. You should 
make an informed decision, and the Java paragraph as it stands in the 
white paper shows that you are lacking input from java developers ;)

cheers,
dalibor topic

[1] http://www.kaffe.org
[2] http://www.kaffe.org/~robilad/tomcat-4.1.29-screenshot.png
[3] http://www.kaffe.org/~robilad/eXist-0.9.2-screenshot.png
[4] Ant screenshots would be quite boring. ;)
[5] http://www.klomp.org/mark/classpath/Screenshot-Kaffe-Eclipse3.png
[6] http://www.kaffe.org/~robilad/jboss-3.2.2-screenshot.png





From MAILER-DAEMON Sun Dec 21 17:10:59 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYBms-0003qe-NC
	for mharc-classpath@gnu.org; Sun, 21 Dec 2003 17:10:58 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYAeo-0007t9-9f
	for classpath@gnu.org; Sun, 21 Dec 2003 15:58:34 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYAeI-0007pd-2g
	for classpath@gnu.org; Sun, 21 Dec 2003 15:58:33 -0500
Received: from [66.219.74.27] (helo=server.perens.com)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYAeH-0007pQ-CC
	for classpath@gnu.org; Sun, 21 Dec 2003 15:58:01 -0500
Received: from perens.com (living-room.home.perens.com [192.168.1.7])
	by server.perens.com (Postfix) with ESMTP
	id 7DA3B181F; Sun, 21 Dec 2003 11:56:30 -0800 (PST)
Message-ID: <3FE5FAE9.3010701@perens.com>
Date: Sun, 21 Dec 2003 11:56:25 -0800
From: Bruce Perens <bruce@perens.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.5) Gecko/20031107 Debian/1.5-3
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: discuss@lists.userlinux.com, Dalibor Topic <robilad@kaffe.org>
References: <3FE5E313.2010701@kaffe.org>
In-Reply-To: <3FE5E313.2010701@kaffe.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Sun, 21 Dec 2003 17:10:57 -0500
Cc: Mark Wielaard <mark@klomp.org>, GNU Classpath <classpath@gnu.org>
Subject: Re: [Discuss] UserLinux & free runtimes for java applications
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 Dec 2003 20:58:34 -0000

Dalibor,

You are correct that I had very little information when writing that 
paragraph, and have not spent much time with Java in general. If you'd 
like to get some effort started with people on the list and elsewhere, 
please go for it.

I would like to hear the current wisdom regarding licensing issues of 
proprietary Java applications running on Classpath and the free VMs. 
We'd like to support proprietary applications.

    Thanks

    Bruce

Dalibor Topic wrote:

> Hi all,
>
> I've recently heard about the UserLinux effort from Mark Wielaard, the
> GNU Classpath maintainer, who asked GNU Classpath developers to chip in
> to the discussion on UserLinux mailing list to help out figuring out how
>  free java runtimes fit into the 'enterprise linux' picture painted by
> Bruce and fix some of the misunderstandings of whoever wrote the bit in
> the white paper about Java.
>
> Reading through your whitepaper's short paragraph on Java in the 
> enterprise, I got the impression that it was written by someone 
> without much knowledge of current developments in the java world. So 
> I'd like to start by correcting a few mistakes:
>
> The whitepaper says:
> "Java-like environment: It sounds as if GCJ/Classpath is in the lead 
> among free Java-like implementations, but is not up to Java 2.0 and 
> even misses the Java 1.3 standard. There is an implementation of 
> Swing, and Eclipse can now be built . Some of the service providers 
> will need to provide a Sun-derived JDK as an option."
>
> a) There is no such thing as Java 2.0. There was a failed marketing 
> effort by Sun to relabel JDK 1.2 as Java 2.
>
> b) The latest version of the JDK from Sun is JDK 1.4.2, if that's what 
> the author tries to alude to as 'Java standard'. In reality, there is 
> no such thing as a Java standard: tha language, library and virtual 
> machine  specification haven't been blessed by any standards body. 
> It's about as standard as the 'Netscape Navigator 4.71' standard.
>
> c) GNU Classpath is the leading free software java runtime class 
> library around, being used most free VMs out there. It's not a java 
> runtime by itsef, though it's a vital component of one.
>
> d) GCJ is the GNU Compiler for the Java Programming Language, and is 
> one of the many free software java runtimes that utilize GNU 
> Classpath. Other popular runtimes are SableVM and kaffe. Each one has 
> is leading in one aspect or another. You should evaluate carefully 
> which one to pick, depending on your customer's needs . Since you 
> haven't specified those, it's hard to give a recommendation. I hope 
> authors of GNU Classpath based java runtime environments will take the 
> opportunity to present the pros and cons of their solutions to this 
> forum, which is why I cross-post this e-mail to the GNU Classpath 
> mailing list.
>
> e) You can see how far in implementing the java runtime class 
> libraries the various efforts are here: http://japi.sab39.org/. Most 
> Java applications only use a fraction of the APIs. That's why many 
> free java runtimes will happily run enterprise applications for java 
> servers, despite not having a full Swing implementation yet.
>
> f) The Swing implementation in GNU Classpath is incomplete. It's being 
> worked on by several great hackers, but implementing a whole graphical 
> toolkit from scratch is a lot of work, and GNU Classpath could use 
> some more developers in that area.
>
> g) Eclipse can not only be built it can also be run ;)
>
> h) Recently, we had some more success with 'enterprise' type of 
> applications: kaffe[1] (and presumably many other GNU Classpath based
> java runtimes) can run apps like tomcat [2], eXist
> [3], ant [4], and is rapidly getting better at running apps like
> Eclipse3 [5], or JBoss [6]. It's no longer just about providing a 
> runtime environment for "HelloWorld.java", it's also about a truely 
> free cross-platform enterprise software solution stack. ;)
>
> i) RedHat's enterpise linux distribution uses GCJ to build important 
> java enterprise apps like tomcat as native applications. In terms of 
> using GCJ to build native applications, debian is currently (quite a 
> bit) behind RedHat's projects like RHUG.
>
> j) The policy of 'some providers will need to provide a Sun-derived 
> JDK as an option' is contrary to UserLinux' goal of having one 
> carefully picked provider of each crucial component of the enterprise 
> software stack. If there is only one gui toolkit, one desktop, one web 
> server, then there should also be only one VM.
>
> Instead of trying to work around the (percieved) weeknesses in free 
> java runtimes by providing for non-free, limiting alternatives, you 
> could consider pooling your resources with the free java runtime and 
> debian hackers to make UserLinux's support for Java shine.
>
> k) You can not legally provide a Sun-derived JDK as an option unless 
> you sign a contract with Sun, and your JDK on your platform passes 
> Sun's tests. All that debian does is to provide some wrappers to make 
> debian packages around Sun's proprietary offers. Your users would 
> still have to fetch the JDK for themselves from Sun.
>
> I hope to make clear that by picking and actively supporting any of 
> the fine runtimes based on GNU Classpath, you do a great favor to both 
> your customers, and the free java runtime projects. Even if Sun goes 
> down (i.e. bankrupt), their investment in free java runtimes would be 
> safe.
>
> I'm not advocating blindly picking kaffe over GCJ or SableVM. You 
> should make an informed decision, and the Java paragraph as it stands 
> in the white paper shows that you are lacking input from java 
> developers ;)
>
> cheers,
> dalibor topic
>
> [1] http://www.kaffe.org
> [2] http://www.kaffe.org/~robilad/tomcat-4.1.29-screenshot.png
> [3] http://www.kaffe.org/~robilad/eXist-0.9.2-screenshot.png
> [4] Ant screenshots would be quite boring. ;)
> [5] http://www.klomp.org/mark/classpath/Screenshot-Kaffe-Eclipse3.png
> [6] http://www.kaffe.org/~robilad/jboss-3.2.2-screenshot.png
>
>
> _______________________________________________
> Discuss mailing list
> Discuss@lists.userlinux.com
> http://lists.userlinux.com/cgi-bin/mailman/listinfo/discuss
> List administrator: bruce@perens.com 510-526-1165
> Perens LLC / 1563 Solano Ave. / PMB 349 / Berkeley CA 94707 / USA
>





From MAILER-DAEMON Sun Dec 21 17:16:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYBrl-0004pa-BC
	for mharc-classpath@gnu.org; Sun, 21 Dec 2003 17:16:01 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYBri-0004lp-7H
	for classpath@gnu.org; Sun, 21 Dec 2003 17:15:58 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYBrB-0004Xq-Mh
	for classpath@gnu.org; Sun, 21 Dec 2003 17:15:57 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYBrA-0004XK-F3
	for classpath@gnu.org; Sun, 21 Dec 2003 17:15:24 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AYAqG-00045G-00; Sun, 21 Dec 2003 22:10:24 +0100
From: Mark Wielaard <mark@klomp.org>
To: Bruce Perens <bruce@perens.com>
In-Reply-To: <3FE5FAE9.3010701@perens.com>
References: <3FE5E313.2010701@kaffe.org>  <3FE5FAE9.3010701@perens.com>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-tVacchGE9Hi6N4pxZHv6"
Message-Id: <1072041031.4665.558.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sun, 21 Dec 2003 22:10:31 +0100
Cc: discuss@lists.userlinux.com, GNU Classpath <classpath@gnu.org>
Subject: Re: [Discuss] UserLinux & free runtimes for java applications
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 Dec 2003 22:15:58 -0000


--=-tVacchGE9Hi6N4pxZHv6
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Sun, 2003-12-21 at 20:56, Bruce Perens wrote:
> You are correct that I had very little information when writing that=20
> paragraph, and have not spent much time with Java in general. If you'd=20
> like to get some effort started with people on the list and elsewhere,=20
> please go for it.

As Dalibor said you want to look at how Red Hat is handling this.
They are trying to build a community around Fedora Core 2 were they want
to combine the Eclipse, Ant, Tomcat, Jakarta and other free software
applications written in the java language and create native applications
from them with gcj. See http://fedora.redhat.com/participate/schedule/

The Debian project is more looking at tradition byte code interpreters
and just in time compilers like kaffe for these kind of applications.
They don't seem to have a clear strategy yet like Fedora has.

The Gnome community is working on the java-gnome bindings for creating
gtk+ and Gnome applications which are explicitly supported by the gcj
and kaffe projects. (It even comes with natively compiled gcj shared
libraries.) See http://www.gnomedesktop.org/article.php?sid=3D1538
http://java-gnome.sf.net and http://www.gnome.org/start/2.5/bindings/

> I would like to hear the current wisdom regarding licensing issues of=20
> proprietary Java applications running on Classpath and the free VMs.

Everybody is free to run their programs with GNU Classpath for any
purpose. When distributing runtime environments or complete applications
based on GNU Classpath you have to make sure that you distribute them in
accordance with the distribution terms of all software your product is
base on and/or derive from. Classpath is distributed under the terms of
the GNU General Public License with a clarification and a special
exception for linking in certain cases.
See http://www.gnu.org/software/classpath/license.html
Specific questions about distribution and licensing of FSF distributed
GNU projects are best asked at licensing@fsf.org.

> We'd like to support proprietary applications.

We don't like it. We only do it when we think that it benefits the free
software community get more free software in the end.

Cheers,

Mark

--=-tVacchGE9Hi6N4pxZHv6
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/5gxHxVhZCJWr9QwRAqSMAJ9LEbTd1qHtd/pYjRR4pNPOc53ZHgCbBF4c
Plys1aNEVEMiORHxrKShGcY=
=rUXe
-----END PGP SIGNATURE-----

--=-tVacchGE9Hi6N4pxZHv6--




From MAILER-DAEMON Sun Dec 21 17:35:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYCAi-00030h-Ca
	for mharc-classpath@gnu.org; Sun, 21 Dec 2003 17:35:36 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYCAf-0002ze-17
	for classpath@gnu.org; Sun, 21 Dec 2003 17:35:33 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYCA4-0002ja-UH
	for classpath@gnu.org; Sun, 21 Dec 2003 17:35:28 -0500
Received: from [151.164.30.28] (helo=mta4.rcsntx.swbell.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYCA0-0002hN-GM
	for classpath@gnu.org; Sun, 21 Dec 2003 17:34:52 -0500
Received: from bothner.com (adsl-216-102-199-253.dsl.snfc21.pacbell.net
	[216.102.199.253])
	by mta4.rcsntx.swbell.net (8.12.10/8.12.10) with ESMTP id
	hBLLX52M013193; Sun, 21 Dec 2003 15:33:06 -0600 (CST)
Message-ID: <3FE61199.3080201@bothner.com>
Date: Sun, 21 Dec 2003 13:33:13 -0800
From: Per Bothner <per@bothner.com>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
	rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Bruce Perens <bruce@perens.com>
References: <3FE5E313.2010701@kaffe.org> <3FE5FAE9.3010701@perens.com>
In-Reply-To: <3FE5FAE9.3010701@perens.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: discuss@server.perens.com, Mark Wielaard <mark@klomp.org>,
	GNU Classpath <classpath@gnu.org>
Subject: Re: [Discuss] UserLinux & free runtimes for java applications
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 Dec 2003 22:35:34 -0000

Bruce Perens wrote:

> I would like to hear the current wisdom regarding licensing issues of 
> proprietary Java applications running on Classpath and the free VMs. 
> We'd like to support proprietary applications.

Kaffe, according to kaffe.org, is GPL.  There is disagreement about
whether that allows running proprietary Java applications (which
may include native C/C++ methods in shared libraries).  It probably
does, but you'd want a lawyer to evaluate the issue.

GCJ's runtime uses "GPL + exception" which is intended to allow
use with proprietary code, even for embedded systems (when LGPL
causes problems).

To expand on Dalibor's point:

 > In reality, there is no such thing as a Java standard: tha language,
 > library and virtual machine specification haven't been blessed by
 > any standards body.

Even Sun doesn't have a specification of the libraries:  The
specification is the implementation (combined with some testsuites
that Sun still won't make available to Free Software projects).

 > i) RedHat's enterprise linux distribution uses GCJ to build important
 > java enterprise apps like tomcat as native applications.

Fedora Core 2 will also supposedly include GCJ-based Tomcat etc.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/





From MAILER-DAEMON Sun Dec 21 20:53:19 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYFG3-0008M8-9q
	for mharc-classpath@gnu.org; Sun, 21 Dec 2003 20:53:19 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYFG1-0008Lq-5V
	for classpath@gnu.org; Sun, 21 Dec 2003 20:53:17 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYFFU-0008JC-6K
	for classpath@gnu.org; Sun, 21 Dec 2003 20:53:16 -0500
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 1AYFFT-0008In-45
	for classpath@gnu.org; Sun, 21 Dec 2003 20:52:43 -0500
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 hBM0mMWh095670;
	Mon, 22 Dec 2003 11:48:23 +1100 (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>, <discuss@server.perens.com>
Date: Mon, 22 Dec 2003 10:50:40 +1000
Message-ID: <NFBBKALFDCPFIDBNKAPCKEGNDLAA.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: <3FE5E313.2010701@kaffe.org>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Cc: GNU Classpath <classpath@gnu.org>
Subject: RE: UserLinux & free runtimes for java applications
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 Dec 2003 01:53:17 -0000

Not that it matters too much but ...

> a) There is no such thing as Java 2.0. There was a failed marketing
> effort by Sun to relabel JDK 1.2 as Java 2.

JDK 1.2 was the first SDK release from the Java 2 Platform Standard
Edition (J2SE). The "Java 2 Platform" whilst totally screwing up what
was originally a well-defined proposed versioning scheme, is a
distinct baseline for the various Java platforms (J2SE, J2ME, J2EE),
that essentially does little more than cut-off JDK 1.0x and JDK 1.1

I think the original point that was being made was that it was very
unclear what version of the Java platform Classpath was aiming to be
compatible with. The docs said 1.1 but in practice there were API's
ranging from 1.0 through to 1.4 (at least more recently). I'm not sure
what the stated aim for Classpath 1.0 is at present.

David Holmes




From MAILER-DAEMON Mon Dec 22 04:34:49 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYMSf-00008B-B9
	for mharc-classpath@gnu.org; Mon, 22 Dec 2003 04:34:49 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYMSc-00007v-ED
	for classpath@gnu.org; Mon, 22 Dec 2003 04:34:46 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYMS6-0008Vl-Jn
	for classpath@gnu.org; Mon, 22 Dec 2003 04:34:45 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYMS6-0008Vi-3c
	for classpath@gnu.org; Mon, 22 Dec 2003 04:34:14 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AYLRB-0005BE-00; Mon, 22 Dec 2003 09:29:13 +0100
From: Mark Wielaard <mark@klomp.org>
To: David Holmes <dholmes@dltech.com.au>
In-Reply-To: <NFBBKALFDCPFIDBNKAPCKEGNDLAA.dholmes@dltech.com.au>
References: <NFBBKALFDCPFIDBNKAPCKEGNDLAA.dholmes@dltech.com.au>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-MuDN3TDo6JA7tgO/PzlA"
Message-Id: <1072081760.4679.590.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Mon, 22 Dec 2003 09:29:21 +0100
Cc: discuss@server.perens.com, GNU Classpath <classpath@gnu.org>
Subject: RE: UserLinux & free runtimes for java applications
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 Dec 2003 09:34:47 -0000


--=-MuDN3TDo6JA7tgO/PzlA
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Mon, 2003-12-22 at 01:50, David Holmes wrote:
> I think the original point that was being made was that it was very
> unclear what version of the Java platform Classpath was aiming to be
> compatible with. The docs said 1.1 but in practice there were API's
> ranging from 1.0 through to 1.4 (at least more recently). I'm not sure
> what the stated aim for Classpath 1.0 is at present.

Fair point. The stated goal for GNU Classpath 1.0 has always been at
least as complete as 1.1, including documentation, test-suites and a
stable API for integration into the different compilers and execution
environments that build upon it. But in practice we are driven by what
people actually use or want to use. So while we find the documentation,
tests and the Abstract Window Toolkit (java.awt) support not yet 1.0
material you will find support for lots of 1.4 extensions for the
various packages or even complete new packages like java.nio and
java.util.logging in the current GNU Classpath snapshot releases. Much
is driven by the desire of people to run the larger free software
frameworks like JBoss, Eclipse and some of the Apache Jakarta tools.
Most of which now just work on VMs based on GNU Classpath.

I hope that the hacker meeting we will have at Fosdem (February 21 - 22
2004 in Brussels) makes it easier to just set some clear goals and a
roadmap for a real GNU Classpath 1.0 release.

When you are looking for an complete execution and development
environment for programs written in the java programming language then
GNU Classpath is just one (obvious important) part. You have to look at
how well it supports real applications and other extensions like
Tritonous (javax.sound), GNU JAXP/libxmlj (javax.xml), GNU Crypto
(javax.crypto), GNU regex (java.util.regex), Jessie (javax.net,
javax.net.ssl, javax.security.cert, SSL support) and the various tools
like gjdoc (info and html API doc generation),  jikes/kjc/gcj/ecj (java
to byte-code or native binary compilers) and other CP-tools (jar, javap,
etc.).
Kaffe is in the lead here with smooth integration of most of the above.
Other environments tend to catch up to it quickly though.

Cheers,

Mark

--=-MuDN3TDo6JA7tgO/PzlA
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/5qtgxVhZCJWr9QwRAqLFAJ0X0jjYrIN9bpKfWTXgaa8ko0W4LACgm+K+
Mu8PeuwUwDpeS3BuHrNKYpc=
=olqm
-----END PGP SIGNATURE-----

--=-MuDN3TDo6JA7tgO/PzlA--




From MAILER-DAEMON Tue Dec 23 04:01:15 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AYiPh-0005j7-Lf
	for mharc-classpath@gnu.org; Tue, 23 Dec 2003 04:01:13 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AYiPe-0005ic-Nd
	for classpath@gnu.org; Tue, 23 Dec 2003 04:01:10 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AYiP8-0005JH-Es
	for classpath@gnu.org; Tue, 23 Dec 2003 04:01:09 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYiP0-0005GC-O2
	for classpath@gnu.org; Tue, 23 Dec 2003 04:00:30 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AYhRP-0007Tu-00
	for <classpath@gnu.org>; Tue, 23 Dec 2003 08:58:55 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-wtI5PRmrIZagSGmmzaqs"
Message-Id: <1072166342.28616.44.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Tue, 23 Dec 2003 08:59:02 +0100
Subject: [Fwd: Status of savannah.{gnu,nongnu}.org]
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 Dec 2003 09:01:11 -0000


--=-wtI5PRmrIZagSGmmzaqs
Content-Type: multipart/mixed; boundary="=-gb9YRFZhNUcIU1eNvez3"


--=-gb9YRFZhNUcIU1eNvez3
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

Here is the latest status.
It seems Savannah is up and running again!
Please read the following information carefully.
I didn't have time yet to try anything out.

Cheers,

Mark

--=-gb9YRFZhNUcIU1eNvez3
Content-Disposition: inline
Content-Description: Forwarded message - Status of savannah.{gnu,nongnu}.org
Content-Type: message/rfc822

=46rom savannah-bounces@gnu.org Tue Dec 23 06: 15:24 2003
Received: from mail by nescio.wildebeest.org with spam-scanned (Exim 3.35
	#1 (Debian)) id 1AYesf-0007Cn-00 for <mark@localhost>; Tue, 23 Dec 2003
	06:15:24 +0100
Received: from localhost ([127.0.0.1]) by nescio.wildebeest.org with esmtp
	(Exim 3.35 #1 (Debian)) id 1AYese-0007Ci-00 for <mark@localhost>;
	Tue, 23 Dec 2003 06:14:52 +0100
Delivered-To: klomp.org-mark@klomp.org
Received: from mail.qwknetllc.com [209.161.29.2] by localhost with POP3
	(fetchmail-5.9.11) for mark@localhost (single-drop); Tue, 23 Dec 2003
	06:14:52 +0100 (CET)
Received: (qmail 13702 invoked from network); 23 Dec 2003 05:12:48 -0000
Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by
	209-161-29-2-arthur.qwknet.boi.fiberpipe.net with SMTP; 23 Dec 2003
	05:12:48 -0000
Received: from bkuhn by monty-python.gnu.org with local (Exim 4.24) id
	1AYfks-0007yS-Au for mark@klomp.org; Tue, 23 Dec 2003 01:10:54 -0500
To: mark@klomp.org
X-Precedence: bulk
Subject: Status of savannah.{gnu,nongnu}.org
From: Bradley M. Kuhn <savannah-compromise@gnu.org>
Reply-To: <savannah-compromise@gnu.org>
Message-Id: <E1AYfks-0007yS-Au@monty-python.gnu.org>
Date: Tue, 23 Dec 2003 01:10:54 -0500
X-Spam-Status: No, hits=-2.9 required=5.0 tests=PGP_SIGNATURE version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
Content-Type: text/plain
Mime-Version: 1.0
Content-Transfer-Encoding: quoted-printable

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

                                         Monday 22 December 2003, 19:51 EST

Dear Savannah Users,

As you know, savannah.gnu.org and savannah.nongnu.org have been down for a
number of weeks due to a system crack.  Thanks to the contributions of
many people -- most notably Mathieu Roy, Jim Blair, and Paul Fisher -- the
system is working again for existing projects.

We have implemented a new security infrastructure that uses chroot'ed
environments to isolate each project.  We have of course tightened up
security, but even if that tightened security is compromised for a
particular project, the cracker can most likely only impact that one
project.  Please read this whole statement in detail before beginning work
again.

As part of the security changes, there are nine user-visible changes of
particular interest.  Six of those changes are implemented now (three of
which are temporary), and two will be implemented later.  They are as
follows:

   (0) All passwords were invalidated.  You will need use the "Lost
       Password" option to regain access.  (Click on "Login via SSL" and
       then the "[Lost Password?]" link.)  Expect an email shortly once
       you've clicked that link.  If you do not receive the email within a
       very short time period to the address you had on file with your
       account, please write to <savannah-compromise@gnu.org>.

       Once you have access again, please check the developer and
       administrator lists for all your projects, and be sure that you
       recognize all the email addresses and user accounts attached to
       your projects.  It is up to each user to vigilantly check the other
       authorized users, just as it was to check the integrity of your
       source.

   (1) All authorized SSH keys have been removed from the database.  Once
       your account is reactivated, you must again upload your SSH key.
       We now only accept SSHv2 keys.  Although the web interface will
       allow you to upload SSHv1 keys, they will not function to give you
       access.  Only SSHv2 keys will provide access and savannah will only
       accept SSHv2 connections.

   (2) Anonymous CVS access will continue, but pserver access has been
       discontinued.  We realize that many have become accustomed to this
       form of anonymous access, but we found many security problems in
       pserver and we must avoid it.  Anonymous access can now occur via
       SSHv2.  To do so, use the following CVSROOT:

              :ext:anoncvs@savannah.gnu.org:/cvsroot/PROJECT
       or
              :ext:anoncvs@savannah.nongnu.org:/cvsroot/PROJECT

       So, for example, to get an anonymous checkout of the GNU Emacs
       sources, you would run the following on the bash command line:

              export CVS_RSH=3D"ssh"
              cvs -d :ext:anoncvs@savannah.gnu.org:/cvsroot/emacs co emacs

       The first time you do this, you will be prompted by SSH to
       authenticate the server's key fingerprint.  See (3) below for
       details.

       Note that since only SSHv2 is accepted, you must be sure that your
       ~/.ssh/config does indicate use of "Protocol 1" with
       savannah.gnu.org and savannah.nongnu.org.

       If you are absolutely unable to use this method for anonymous
       access, and you rely on anonymous access, please contact
       <savannah-compromise@gnu.org>.  Since SSH is now ubiquitously
       available on Free Software systems, we believe that requiring SSH
       to be installed locally to gain anonymous access from savannah is
       not burdensome.  If it turns out to burden you, please contact us.

       In fact, this new method authenticates and secures all anonymous
       access, and anonymous users are now safe from person-in-the-middle
       attacks when they verify the SSH host keys.

   (3) The host SSH keys for savannah.gnu.org, savannah.nongnu.org,
       subversions.gnu.org, etc. have changed.  They are as follows:

           DSA 1024 4d:c8:dc:9a:99:96:ae:cc:ce:d3:2b:b0:a3:a4:95:a5
           RSA 1024 80:5a:b0:0c:ec:93:66:29:49:7e:04:2b:fd:ba:2c:d5

       You will prompted for these the first time you use SSH to connect.
       If you have older keys stored in your known_hosts file, you may get
       a message that says there is a "nasty problem".  If so, remove the
       offending entry from your ~/.ssh/known_hosts, and reconnect.  SSH
       will prompt you to authenticate anew with one of the keys above.

   (4) Temporarily, we are unable to approve new projects on savannah.  We
       expect to begin accepting new projects before the end of January
       2004.  We have to reimplement project creation scripts to adhere to
       the new chroot structure.

   (5) Temporarily, the file distribution areas for releases are not
       functioning.  We hope to make them functional again in January 2004
       and secure them by using a similar system to that now used on
       ftp.gnu.org.

   (6) Temporarily, all web CVS trees are not functioning.  It is
       currently not possible to work on the CVS trees for websites using
       savannah.  We hope to fix this in mid-January 2004.

   (7) In early January 2004, we will record for each project whether or
       not the developers have checked their integrity using the data in
       previously-posted announcements.  The indicator will be similar to
       the "is GNU"/"is not GNU" indicator on the main project page.

   (8) You will later be required to upload a GnuPG key.  We are working
       on changes that will require GPG-signing of all CVS commits.  That
       functionality is not yet available, but when it is, we plan to
       make it mandatory to ensure the integrity of all software hosted
       on Savannah.


Finally, I want to thank all of your for your patience while we worked to
resolve these problems.  I know that many of you have been considering for
the past few weeks switching to another project development site.  I don't
blame you for considering that.  However, I ask now that you decide to
stay.  We have learned from this experience how to harden the system to be
less susceptible to cracking, and the changes we've made will not only
help to prevent future cracks, but will mitigate the damage such a crack
can cause.  The GPG-signing features that we plan to add in the coming
months will (at least at first) be unique among project hosting sites, and
ensure the integrity of your software to the greatest degree that is
humanly possible.

Meanwhile, Loic Dachary has coordinated the acquisition of new, redundant
servers in France, and we will work over the coming months to make them
(at first) read-only mirrors of the existing savannah (that can be turned
immediately live upon the occurrence of the crack).  In addition, as
Executive Director of FSF, I am committed to implementing protocols and
procedures over the next few months designed to limit downtime to a matter
of hours in the case of a crack.

This crack comes on the heels of cracks against many other Free Software
project sites; the crack of savannah is not an isolated incident.  We must
work together as a community to weather these incidents.  For our part,
this meant long hours and late nights over the past weeks to harden the
system, and more hard work to improve our disaster recovery plans.  We ask
that you make a contribution by sticking with us now that we've hardened
the system and work with us to keep the system secure for Free development
and software sharing.


Sincerely,

Bradley M. Kuhn
Executive Director, Free Software Foundation


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

iD8DBQE/55J853XjJNtBs4cRArnIAJ4gz/8rCx9TEXQ1tSdQDe2r9NZPTQCgpbL8
Sfd0jTjsYsUdBCk9106t5wE=3D
=3DpqRL
-----END PGP SIGNATURE-----





--=-gb9YRFZhNUcIU1eNvez3--

--=-wtI5PRmrIZagSGmmzaqs
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/5/XGxVhZCJWr9QwRAkdyAJ45Vws9scpegM6tQbMR/DPrWSZtKQCdEZd8
OZpGjKYqz5X6onfTGT3jvCo=
=MMFq
-----END PGP SIGNATURE-----

--=-wtI5PRmrIZagSGmmzaqs--




From MAILER-DAEMON Wed Dec 24 07:51:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZ8U8-0004RL-SC
	for mharc-classpath@gnu.org; Wed, 24 Dec 2003 07:51:32 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZ8U6-0004QV-Gg
	for classpath@gnu.org; Wed, 24 Dec 2003 07:51:30 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZ8TZ-00045r-2l
	for classpath@gnu.org; Wed, 24 Dec 2003 07:51:29 -0500
Received: from [212.101.4.135] (helo=mail01.solnet.ch)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AZ8TY-00045Q-KH
	for classpath@gnu.org; Wed, 24 Dec 2003 07:50:56 -0500
Received: from localhost (localhost [127.0.0.1])
	by mail01.solnet.ch (Postfix) with ESMTP id 64AD560E38
	for <classpath@gnu.org>; Wed, 24 Dec 2003 11:49:28 +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 15947-01 for <classpath@gnu.org>;
	Wed, 24 Dec 2003 11:49:27 +0000 (GMT)
Received: from reali.dnsalias.net (adsl-212-41-70-168.solnet.ch
	[212.41.70.168])
	by mail01.solnet.ch (Postfix) with ESMTP id 9C4D460E05
	for <classpath@gnu.org>; Wed, 24 Dec 2003 11:49:26 +0000 (GMT)
Received: from nbprr (reali.dnsalias.net [192.168.1.2])
	by reali.dnsalias.net (Postfix) with ESMTP id 6C331539DA
	for <classpath@gnu.org>; Wed, 24 Dec 2003 12:39:05 +0100 (CET)
Date: Wed, 24 Dec 2003 12:50:19 +0100
From: Patrik Reali <reali@acm.org>
To: classpath@gnu.org
Message-ID: <6273330.1072270219@[192.168.1.3]>
X-Mailer: Mulberry/3.1.0 (Win32 Demo)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; FORMAT=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-Virus-Scanned: by SolNet
Subject: JNode project
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 Dec 2003 12:51:31 -0000

Hi!

I just discovered the JNode project (http://jnode.sourceforge.net/), whose 
goal is to provide a complete OS written in Java. It is LGPLed and uses 
Classpath with some modifications (being native java, they do not use 
native methods).

Merry Christmas,
  Patrik
------------------------
Patrik Reali
http://www.reali.ch/~patrik/




From MAILER-DAEMON Wed Dec 24 11:42:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZC5G-0007ES-Qa
	for mharc-classpath@gnu.org; Wed, 24 Dec 2003 11:42:06 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZC5D-0007Bx-CW
	for classpath@gnu.org; Wed, 24 Dec 2003 11:42:03 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZC4g-0006tW-U5
	for classpath@gnu.org; Wed, 24 Dec 2003 11:42:02 -0500
Received: from [62.4.16.103] (helo=kraid.nerim.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AZC4g-0006tL-Ij
	for classpath@gnu.org; Wed, 24 Dec 2003 11:41:30 -0500
Received: from kaffe.org (lavaux.net1.nerim.net [62.212.115.70])
	by kraid.nerim.net (Postfix) with ESMTP
	id 6CD9D40E32; Wed, 24 Dec 2003 16:40:01 +0100 (CET)
Message-ID: <3FE9B372.1020902@kaffe.org>
Date: Wed, 24 Dec 2003 16:40:34 +0100
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: java-patches@gcc.gnu.org, classpath@gnu.org
X-Enigmail-Version: 0.82.5.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: 
Subject: [PATCH] ServerSocket.bind
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 Dec 2003 16:42:03 -0000

Hi,

It seems that nobody checks for null internet address in ServerSocket.bind.
Here is a quick fix which should prevent calling a native method with a 
null address argument.

Regards,
Guilhem.

ChangeLog:

2003-12-24  Guilhem Lavaux <guilhem@kaffe.org>

    * java/net/ServerSocket.java (bind): Check whether the address is null.

P.S.: I hope it can be applied to gcj (I've checked that the same code 
is present there), the patch has been built upon kaffe's CVS.




From MAILER-DAEMON Wed Dec 24 13:16:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZDYV-0001Jf-FE
	for mharc-classpath@gnu.org; Wed, 24 Dec 2003 13:16:23 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZDYT-0001Ig-Cc
	for classpath@gnu.org; Wed, 24 Dec 2003 13:16:21 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZDXw-0000xi-AR
	for classpath@gnu.org; Wed, 24 Dec 2003 13:16:19 -0500
Received: from [139.19.1.1] (helo=interferon.mpi-sb.mpg.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AZDXv-0000vv-SS
	for classpath@gnu.org; Wed, 24 Dec 2003 13:15:48 -0500
Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.35
	#1 (Debian)) id 1AZCaR-0001CL-00
	for <classpath@gnu.org>; Wed, 24 Dec 2003 18:14:19 +0100
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 1AZCaO-0001BX-00; Wed, 24 Dec 2003 18:14:16 +0100
Message-ID: <3FE9C968.9000203@kaffe.org>
Date: Wed, 24 Dec 2003 18:14:16 +0100
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: Mark Wielaard <mark@klomp.org>
References: <1071425118.7218.438.camel@elsschot.wildebeest.org>	
	<3FDF82B8.6090109@kaffe.org>
	<1071927534.4679.136.camel@elsschot.wildebeest.org>
In-Reply-To: <1071927534.4679.136.camel@elsschot.wildebeest.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AMaViS perl-11
Cc: classpath@gnu.org, Jan Schulz <jasc@gmx.net>
Subject: Re: Help and input needed
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 Dec 2003 18:16:22 -0000

Hi Mark,

here's a short update on what's been happening:

Mark Wielaard wrote:
> Hi,
> 
> On Tue, 2003-12-16 at 23:10, Dalibor Topic wrote:
> 
>>>- java-gnome bindings. I have already posted it on this list twice so I
>>>  won't repeat how important I think it is to have our stuff work nicely
>>>  with it!
>>
>>O.K., I've done a little bit on this today, and got in touch with the 
>>java-gnome devs. I still haven't managed to build java-gnome with kaffe, 
>>but I'll give it another go on thursday. Otoh, the devs have told me 
>>that their build now works with kaffe, so there is some progress there ;)
> 
> 
> And there is a new release out that should make it easier for people to
> test this: http://www.gnomedesktop.org/article.php?sid=1538
> http://prdownloads.sourceforge.net/java-gnome/java-gnome-0.8.2.tar.bz2?download

I'll do this over the holidays.

>>[UserLinux], I want to approach them with a balanced 
>>e-mail that corrects their mistakes and recommends a GNU classpath based 
>>VM, offering a general overview (names, links) of Classpath based VMs, 
>>like my recent post to debian-java, just without the details about the 
>>VMs. Then I'd follow up with an e-mail on kaffe, and our efforts to run 
>>enterprise-ish software on it. I'd cross-post to GNU Classpath mailing 
>>list and invite other VM developers to reply to the mail then as well, 
>>describing their VMs and why they think it would be a good choice for 
>>UserLinux. Then whoever is making the decisions about UserLinux can make 
>>those decisions with a little bit more background than they have now.
> 
> 
> That would be very much appreciated!

I started the userlinux free java discussion with this thread [1] and 
continued in this one [2] to argue against a non-free java runtime, with 
a positive decision from UserLinux project leader Bruce Perens [3] and 
I'm now trying to help them figure out what they need, and how to 
contribute to the free java runtime community [4].

>>>- Savannah GNU Classpath code checking
>>>  We need to check if someone has tempered with any code when they had
>>>  access to the CVS server. Doing checks against kaffe and libgcj
>>>  sources should help with this.
>>>  See also http://savannah.gnu.org/statement.html
>>
>>I've never (fortunately) had to do someting like this before, so I'm 
>>slightly confused about what exactly I am supposed to do. Should I check 
>>if my diffs match my patches I contributed to GNU Classpath? diff 
>>everything against kaffe's source tree?
> 
> 
> If you could provide a list of files/classes that kaffe has imported
> from GNU Classpath and that you are sure about that they haven't seen
> strange changes in kaffe CVS recently that would already help.
> In general it would be nice to have a comparison page for kaffe like
> libgcj has. See http://gcc.gnu.org/java/libgcj-classpath-compare.html

Mostly the reason for the differences is the existence of unmerged 
patches on both sides (text, serialization, rmi), really. I'll post a 
list of files and why they differ on the weekend.

On a side note, I'm trying [5] to get people from different java 
application packaging efforts (rhug, jpackage, debian, gentoo ...) to 
think about combining their efforts on some meta aspects of packaging 
java applications. I'll keep the list updated as the discussion evolves. 
That woould be a way to involve freedesktop.org in our efforts, if it 
turns out that people from the diverse packaging efforts can find a 
common interest.

cheers,
dalibor topic

[1] http://lists.userlinux.com/pipermail/discuss/2003-December/001652.html
[2] http://lists.userlinux.com/pipermail/discuss/2003-December/001677.html
[3] http://lists.userlinux.com/pipermail/discuss/2003-December/001802.html
[4] http://lists.userlinux.com/pipermail/discuss/2003-December/001873.html
[5] 
http://lists.zarb.org/pipermail/jpackage-discuss/2003-December/003774.html




From MAILER-DAEMON Thu Dec 25 11:52:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZYiR-000557-BH
	for mharc-classpath@gnu.org; Thu, 25 Dec 2003 11:52:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZYiP-00054q-Ju
	for classpath@gnu.org; Thu, 25 Dec 2003 11:52:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZYhs-0004kz-9o
	for classpath@gnu.org; Thu, 25 Dec 2003 11:52:00 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AZYhr-0004ki-T5
	for classpath@gnu.org; Thu, 25 Dec 2003 11:51:28 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AZXkF-0004TC-00
	for <classpath@gnu.org>; Thu, 25 Dec 2003 16:49:51 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-JAiKGbRDRxS5QbiYTZ5b"
Message-Id: <1072367399.23028.43.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Thu, 25 Dec 2003 16:49:59 +0100
Subject: Savannah working again (cvs commit emails not working!)
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 Dec 2003 16:52:02 -0000


--=-JAiKGbRDRxS5QbiYTZ5b
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

Played a bit with savannah and cvs access works again.
Please refer to my previous email and/or the instructions on the
savannah homepage on how to reactivate your savannah account and cvs
(ssh) access again. Also anonymous cvs access has

Please note that not everything works as it should yet. Most notably no
emails are send on new/changed bug reports or cvs commits. So please if
you submit a new bug/patch also send it to the mailinglist. And send a
diff to the commit-classpath@gnu.org list before checking something in.
(Even for trivial patches!)

See http://mail.gnu.org/mailman/listinfo/commit-classpath for
subscribing and archives.

Since I am still going (very slowly) through the source code for
auditing please don't make to big changes to CVS till after this weekend
when I hope to have finished the complete audit.

When I find diffs between kaffe and/or libgcj with classpath sources I
will try to update the classpath versions (and send diffs to
commit-classpath@gnu.org). Thanks to everybody for temporarily working
directly on libgcj and kaffe. Progress has been great even though CVS
was down for several week!

Cheers,

Mark

--=-JAiKGbRDRxS5QbiYTZ5b
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/6wcnxVhZCJWr9QwRAthxAJ9//WxLEJ+GQo0ZCk9VfyKBDCB4EACbBcXM
5m2R0J/SsLmHsmtnLzc2rAc=
=9qyB
-----END PGP SIGNATURE-----

--=-JAiKGbRDRxS5QbiYTZ5b--




From MAILER-DAEMON Thu Dec 25 13:19:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZa5T-0003wl-OT
	for mharc-classpath@gnu.org; Thu, 25 Dec 2003 13:19:55 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZa5Q-0003tJ-3Y
	for classpath@gnu.org; Thu, 25 Dec 2003 13:19:52 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZa4u-0003Zp-C9
	for classpath@gnu.org; Thu, 25 Dec 2003 13:19:51 -0500
Received: from [212.6.122.126] (helo=mail3.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AZa3b-0002qI-6y
	for classpath@gnu.org; Thu, 25 Dec 2003 13:17:59 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-81-125.ewetel.net
	[80.228.81.125])
	by mail3.ewetel.de (8.12.1/8.12.9) with ESMTP id hBPHFc1h025401;
	Thu, 25 Dec 2003 18:15:41 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1AZZ8N-00073V-00; Thu, 25 Dec 2003 18:18:51 +0100
Date: Thu, 25 Dec 2003 18:18:51 +0100
From: Michael Koch <konqueror@gmx.de>
To: Guilhem Lavaux <guilhem@kaffe.org>
Message-ID: <20031225171851.GA23154@mail.konqueror.de>
References: <3FE9B372.1020902@kaffe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3FE9B372.1020902@kaffe.org>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: classpath@gnu.org, java-patches@gcc.gnu.org
Subject: Re: [PATCH] ServerSocket.bind
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 Dec 2003 18:19:52 -0000

On Wed, Dec 24, 2003 at 04:40:34PM +0100, Guilhem Lavaux wrote:
> Hi,
> 
> It seems that nobody checks for null internet address in ServerSocket.bind.
> Here is a quick fix which should prevent calling a native method with a 
> null address argument.
> 
> Regards,
> Guilhem.
> 
> ChangeLog:
> 
> 2003-12-24  Guilhem Lavaux <guilhem@kaffe.org>
> 
>    * java/net/ServerSocket.java (bind): Check whether the address is null.
> 
> P.S.: I hope it can be applied to gcj (I've checked that the same code 
> is present there), the patch has been built upon kaffe's CVS.

Two things: the patch is missing and the code uses a "instanceof"
operator which implicitly checks for "null".


Michael



From MAILER-DAEMON Thu Dec 25 13:49:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZaXw-0000nM-46
	for mharc-classpath@gnu.org; Thu, 25 Dec 2003 13:49:20 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZaXr-0000jy-TS
	for classpath@gnu.org; Thu, 25 Dec 2003 13:49:15 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZaXK-0000Hh-Oy
	for classpath@gnu.org; Thu, 25 Dec 2003 13:49:13 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AZaXJ-00007g-PK
	for classpath@gnu.org; Thu, 25 Dec 2003 13:48:41 -0500
Received: from [212.6.122.126] (helo=mail3.ewetel.de)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AZZKt-0000Hk-MO
	for classpath@gnu.org; Thu, 25 Dec 2003 12:31:47 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-81-125.ewetel.net
	[80.228.81.125])
	by mail3.ewetel.de (8.12.1/8.12.9) with ESMTP id hBPHVA1h000339;
	Thu, 25 Dec 2003 18:31:11 +0100 (MET)
Received: from mkoch by majestix.konqueror.de with local (Exim 3.35 #1
	(Debian)) id 1AZZNO-00075c-00; Thu, 25 Dec 2003 18:34:22 +0100
Date: Thu, 25 Dec 2003 18:34:22 +0100
From: Michael Koch <konqueror@gmx.de>
To: mark@klomp.org
Message-ID: <20031225173422.GB23154@mail.konqueror.de>
References: <3FE9B372.1020902@kaffe.org>
	<20031225171851.GA23154@mail.konqueror.de>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="2oS5YaxWCcQjTEyO"
Content-Disposition: inline
In-Reply-To: <20031225171851.GA23154@mail.konqueror.de>
User-Agent: Mutt/1.3.28i
Sender: Michael Koch <mkoch@mail.konqueror.de>
X-CheckCompat: OK
Cc: classpath@gnu.org, java-patches@gcc.gnu.org
Subject: Re: [PATCH] ServerSocket.bind
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 Dec 2003 18:49:16 -0000


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

On Thu, Dec 25, 2003 at 06:18:51PM +0100, Michael Koch wrote:
> On Wed, Dec 24, 2003 at 04:40:34PM +0100, Guilhem Lavaux wrote:
> > Hi,
> > 
> > It seems that nobody checks for null internet address in ServerSocket.bind.
> > Here is a quick fix which should prevent calling a native method with a 
> > null address argument.
> > 
> > Regards,
> > Guilhem.
> > 
> > ChangeLog:
> > 
> > 2003-12-24  Guilhem Lavaux <guilhem@kaffe.org>
> > 
> >    * java/net/ServerSocket.java (bind): Check whether the address is null.
> > 
> > P.S.: I hope it can be applied to gcj (I've checked that the same code 
> > is present there), the patch has been built upon kaffe's CVS.
> 
> Two things: the patch is missing and the code uses a "instanceof"
> operator which implicitly checks for "null".

After talking with guilhem on irc I got the problem and wrote the
attached patch. I commited it to trunk already.

Mark: Can you please commit this to classpath ?


Michael

--2oS5YaxWCcQjTEyO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="net.diff"

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2485
diff -u -b -B -r1.2485 ChangeLog
--- ChangeLog	23 Dec 2003 22:06:01 -0000	1.2485
+++ ChangeLog	25 Dec 2003 17:29:14 -0000
@@ -1,3 +1,9 @@
+2003-12-25  Michael Koch  <konqueror@gmx.de>
+
+	* java/net/ServerSocket.java bind():
+	If InetSocketAddress.getAddress() returns "null" use "0.0.0.0" as
+	address to bind to.
+
 2003-12-23  Guilhem Lavaux <guilhem@kaffe.org>
 
 	* java/io/ObjectInputStream.java
Index: java/net/ServerSocket.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/ServerSocket.java,v
retrieving revision 1.32
diff -u -b -B -r1.32 ServerSocket.java
--- java/net/ServerSocket.java	9 Dec 2003 15:39:23 -0000	1.32
+++ java/net/ServerSocket.java	25 Dec 2003 17:29:14 -0000
@@ -226,9 +226,15 @@
     if (s != null)
       s.checkListen (tmp.getPort ());
 
+    InetAddress addr = tmp.getAddress();
+    
+    // Initialize addr with 0.0.0.0.
+    if (addr == null)
+      addr = InetAddress.ANY_IF;
+    
     try
       {
-	impl.bind (tmp.getAddress (), tmp.getPort ());
+	impl.bind(addr, tmp.getPort());
 	impl.listen(backlog);
 	bound = true;
       }

--2oS5YaxWCcQjTEyO--



From MAILER-DAEMON Fri Dec 26 09:47:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZtFA-0001Hq-Nd
	for mharc-classpath@gnu.org; Fri, 26 Dec 2003 09:47:12 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZtF5-0001Gl-Vv
	for classpath@gnu.org; Fri, 26 Dec 2003 09:47:07 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZtEY-00013m-T7
	for classpath@gnu.org; Fri, 26 Dec 2003 09:47:06 -0500
Received: from [212.6.122.126] (helo=mail3.ewetel.de)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AZtEX-00012v-QK
	for classpath@gnu.org; Fri, 26 Dec 2003 09:46:33 -0500
Received: from majestix.konqueror.de (dynadsl-080-228-81-137.ewetel.net
	[80.228.81.137])
	by mail3.ewetel.de (8.12.1/8.12.9) with ESMTP id hBQDiw1h010363
	for <classpath@gnu.org>; Fri, 26 Dec 2003 14:44:58 +0100 (MET)
Received: from obelix.konqueror.de ([192.168.1.4])
	by majestix.konqueror.de with esmtp (Exim 3.35 #1 (Debian))
	id 1AZsK7-0001Si-00
	for <classpath@gnu.org>; Fri, 26 Dec 2003 14:48:15 +0100
From: Michael Koch <konqueror@gmx.de>
To: classpath@gnu.org
Date: Fri, 26 Dec 2003 14:47:59 +0100
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
  boundary="Boundary-00=_PwD7//1VONyIMnV"
Message-Id: <200312261448.01087.konqueror@gmx.de>
X-CheckCompat: OK
Subject: [Patch] javax.print.attribute
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 Dec 2003 14:47:08 -0000


--Boundary-00=_PwD7//1VONyIMnV
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi list,


I commited the attached patch to merge some stuff new in libgcj since the 
hack.


Michael

--Boundary-00=_PwD7//1VONyIMnV
Content-Type: text/x-diff;
  charset="us-ascii";
  name="print.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="print.diff"

Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.1692
diff -u -b -B -r1.1692 ChangeLog
--- ChangeLog	26 Dec 2003 12:15:50 -0000	1.1692
+++ ChangeLog	26 Dec 2003 13:37:53 -0000
@@ -1,3 +1,30 @@
+2003-12-26  Michael Koch  <konqueror@gmx.de>
+
+	* javax/print/attribute/AttributeSetUtilities.java,
+	javax/print/attribute/DateTimeSyntax.java,
+	javax/print/attribute/DocAttribute.java,
+	javax/print/attribute/DocAttributeSet.java,
+	javax/print/attribute/EnumSyntax.java,
+	javax/print/attribute/HashAttributeSet.java,
+	javax/print/attribute/HashDocAttributeSet.java,
+	javax/print/attribute/HashPrintJobAttributeSet.java,
+	javax/print/attribute/HashPrintRequestAttributeSet.java,
+	javax/print/attribute/HashPrintServiceAttributeSet.java,
+	javax/print/attribute/IntegerSyntax.java,
+	javax/print/attribute/PrintJobAttribute.java,
+	javax/print/attribute/PrintJobAttributeSet.java,
+	javax/print/attribute/PrintRequestAttribute.java,
+	javax/print/attribute/PrintServiceAttribute.java,
+	javax/print/attribute/PrintServiceAttributeSet.java,
+	javax/print/attribute/ResolutionSyntax.java,
+	javax/print/attribute/SetOfIntegerSyntax.java,
+	javax/print/attribute/Size2DSyntax.java,
+	javax/print/attribute/SupportedValuesAttribute.java,
+	javax/print/attribute/TextSyntax.java,
+	javax/print/attribute/URISyntax.java,
+	javax/print/attribute/UnmodifiableSetException.java: New files
+	* javax/print/attribute/Makefile.am (EXTRA_DIST): Added new files.
+
 2003-12-26  Guilhem Lavaux  <guilhem@kaffe.org>
             Mark Wielaard  <mark@klomp.org>
 
Index: javax/print/attribute/AttributeSetUtilities.java
===================================================================
RCS file: javax/print/attribute/AttributeSetUtilities.java
diff -N javax/print/attribute/AttributeSetUtilities.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/AttributeSetUtilities.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,445 @@
+/* AttributeSetUtilities.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+
+public final class AttributeSetUtilities
+{
+  private static class UnmodifiableAttributeSet
+    implements AttributeSet, Serializable
+  {
+    private AttributeSet set;
+
+    public UnmodifiableAttributeSet(AttributeSet attributeSet)
+    {
+      if (attributeSet == null)
+        throw new NullPointerException("attributeSet may not be null");
+
+      this.set = attributeSet;
+    }
+
+    public boolean add(Attribute attribute)
+    {
+      throw new UnmodifiableSetException();
+    }
+
+    public boolean addAll(AttributeSet attributes)
+    {
+      throw new UnmodifiableSetException();
+    }
+    
+    public void clear()
+    {
+      throw new UnmodifiableSetException();
+    }
+
+    public boolean containsKey(Class category)
+    {
+      return set.containsKey(category);
+    }
+
+    public boolean containsValue(Attribute attribute)
+    {
+      return set.containsValue(attribute);
+    }
+
+    public boolean equals(Object obj)
+    {
+      return set.equals(obj);
+    }
+    
+    public Attribute get(Class interfaceName)
+    {
+      return set.get(interfaceName);
+    }
+
+    public int hashCode()
+    {
+      return set.hashCode();
+    }
+    
+    public boolean isEmpty()
+    {
+      return set.isEmpty();
+    }
+
+    public boolean remove(Class category)
+    {
+      throw new UnmodifiableSetException();
+    }
+
+    public boolean remove(Attribute attribute)
+    {
+      throw new UnmodifiableSetException();
+    }
+
+    public int size()
+    {
+      return set.size();
+    }
+
+    public Attribute[] toArray()
+    {
+      return set.toArray();
+    }
+  }
+
+  public static class UnmodifiableDocAttributeSet
+    extends UnmodifiableAttributeSet
+    implements DocAttributeSet, Serializable
+  {
+    public UnmodifiableDocAttributeSet(DocAttributeSet attributeSet)
+    {
+      super(attributeSet);
+    }
+  }
+
+  public static class UnmodifiablePrintJobAttributeSet
+    extends UnmodifiableAttributeSet
+    implements PrintJobAttributeSet, Serializable
+  {
+    public UnmodifiablePrintJobAttributeSet(PrintJobAttributeSet attributeSet)
+    {
+      super(attributeSet);
+    }
+  }
+
+  public static class UnmodifiablePrintRequestAttributeSet
+    extends UnmodifiableAttributeSet
+    implements PrintRequestAttributeSet, Serializable
+  {
+    public UnmodifiablePrintRequestAttributeSet(PrintRequestAttributeSet attributeSet)
+    {
+      super(attributeSet);
+    }
+  }
+
+  public static class UnmodifiablePrintServiceAttributeSet
+    extends UnmodifiableAttributeSet
+    implements PrintServiceAttributeSet, Serializable
+  {
+    public UnmodifiablePrintServiceAttributeSet(PrintServiceAttributeSet attributeSet)
+    {
+      super(attributeSet);
+    }
+  }
+
+  public static class SynchronizedAttributeSet
+    implements AttributeSet, Serializable
+  {
+    private AttributeSet set;
+
+    public SynchronizedAttributeSet(AttributeSet attributeSet)
+    {
+      if (attributeSet == null)
+        throw new NullPointerException("attributeSet may not be null");
+
+      this.set = attributeSet;
+    }
+
+    public synchronized boolean add(Attribute attribute)
+    {
+      return set.add(attribute);
+    }
+
+    public synchronized boolean addAll(AttributeSet attributes)
+    {
+      return set.addAll(attributes);
+    }
+    
+    public synchronized void clear()
+    {
+      set.clear();
+    }
+
+    public synchronized boolean containsKey(Class category)
+    {
+      return set.containsKey(category);
+    }
+
+    public synchronized boolean containsValue(Attribute attribute)
+    {
+      return set.containsValue(attribute);
+    }
+
+    public synchronized boolean equals(Object obj)
+    {
+      return set.equals(obj);
+    }
+    
+    public synchronized Attribute get(Class interfaceName)
+    {
+      return set.get(interfaceName);
+    }
+
+    public synchronized int hashCode()
+    {
+      return set.hashCode();
+    }
+    
+    public synchronized boolean isEmpty()
+    {
+      return set.isEmpty();
+    }
+
+    public synchronized boolean remove(Class category)
+    {
+      return set.remove(category);
+    }
+
+    public synchronized boolean remove(Attribute attribute)
+    {
+      return set.remove(attribute);
+    }
+
+    public synchronized int size()
+    {
+      return set.size();
+    }
+
+    public synchronized Attribute[] toArray()
+    {
+      return set.toArray();
+    }
+  }
+
+  public static class SynchronizedDocAttributeSet
+    extends SynchronizedAttributeSet
+    implements DocAttributeSet, Serializable
+  {
+    public SynchronizedDocAttributeSet(DocAttributeSet attributeSet)
+    {
+      super(attributeSet);
+    }
+  }
+
+  public static class SynchronizedPrintJobAttributeSet
+    extends SynchronizedAttributeSet
+    implements PrintJobAttributeSet, Serializable
+  {
+    public SynchronizedPrintJobAttributeSet(PrintJobAttributeSet attributeSet)
+    {
+      super(attributeSet);
+    }
+  }
+
+  public static class SynchronizedPrintRequestAttributeSet
+    extends SynchronizedAttributeSet
+    implements PrintRequestAttributeSet, Serializable
+  {
+    public SynchronizedPrintRequestAttributeSet(PrintRequestAttributeSet attributeSet)
+    {
+      super(attributeSet);
+    }
+  }
+
+  public static class SynchronizedPrintServiceAttributeSet
+    extends SynchronizedAttributeSet
+    implements PrintServiceAttributeSet, Serializable
+  {
+    public SynchronizedPrintServiceAttributeSet(PrintServiceAttributeSet attributeSet)
+    {
+      super(attributeSet);
+    }
+  }
+
+  /**
+   * Returns a synchronized view of the given attribute set.
+   *
+   * @return the sychronized attribute set
+   */
+  public static AttributeSet synchronizedView(AttributeSet attributeSet)
+  {
+    return new SynchronizedAttributeSet(attributeSet);
+  }
+
+  /**
+   * Returns a synchronized view of the given attribute set.
+   *
+   * @return the sychronized attribute set
+   */
+  public static DocAttributeSet synchronizedView(DocAttributeSet attributeSet)
+  {
+    return new SynchronizedDocAttributeSet(attributeSet);
+  }
+  
+  /**
+   * Returns a synchronized view of the given attribute set.
+   *
+   * @return the sychronized attribute set
+   */
+  public static PrintJobAttributeSet synchronizedView(PrintJobAttributeSet attributeSet)
+  {
+    return new SynchronizedPrintJobAttributeSet(attributeSet);
+  }
+  
+  /**
+   * Returns a synchronized view of the given attribute set.
+   *
+   * @return the sychronized attribute set
+   */
+  public static PrintRequestAttributeSet synchronizedView(PrintRequestAttributeSet attributeSet)
+  {
+    return new SynchronizedPrintRequestAttributeSet(attributeSet);
+  }
+  
+  /**
+   * Returns a synchronized view of the given attribute set.
+   *
+   * @return the sychronized attribute set
+   */
+  public static PrintServiceAttributeSet synchronizedView(PrintServiceAttributeSet attributeSet)
+  {
+    return new SynchronizedPrintServiceAttributeSet(attributeSet);
+  }
+  
+  /**
+   * Returns an unmodifiable view of the given attribute set.
+   *
+   * @return the sychronized attribute set
+   */
+  public static AttributeSet unmodifiableView(AttributeSet attributeSet)
+  {
+    return new UnmodifiableAttributeSet(attributeSet);
+  }
+  
+  /**
+   * Returns an unmodifiable view of the given attribute set.
+   *
+   * @return the sychronized attribute set
+   */
+  public static DocAttributeSet unmodifiableView(DocAttributeSet attributeSet)
+  {
+    return new UnmodifiableDocAttributeSet(attributeSet);
+  }
+  
+  /**
+   * Returns an unmodifiable view of the given attribute set.
+   *
+   * @return the sychronized attribute set
+   */
+  public static PrintJobAttributeSet unmodifiableView(PrintJobAttributeSet attributeSet)
+  {
+    return new UnmodifiablePrintJobAttributeSet(attributeSet);
+  }
+  
+  /**
+   * Returns an unmodifiable view of the given attribute set.
+   *
+   * @return the sychronized attribute set
+   */
+  public static PrintRequestAttributeSet unmodifiableView(PrintRequestAttributeSet attributeSet)
+  {
+    return new UnmodifiablePrintRequestAttributeSet(attributeSet);
+  }
+  
+  /**
+   * Returns an unmodifiable view of the given attribute set.
+   *
+   * @return the sychronized attribute set
+   */
+  public static PrintServiceAttributeSet unmodifiableView(PrintServiceAttributeSet attributeSet)
+  {
+    return new UnmodifiablePrintServiceAttributeSet(attributeSet);
+  }
+
+  /**
+   * Verifies that the given object is a <code>Class</code> that
+   * implements the given interface name.
+   *
+   * @return object casted to <code>Class</code>
+   *
+   * @exception ClassCastException if object is not a <code>Class</code>
+   * that implements interfaceName
+   * @exception NullPointerException if object is null
+   */
+  public static Class verifyAttributeCategory(Object object,
+                                              Class interfaceName)
+  {
+    if (object == null)
+      throw new NullPointerException("object may not be null");
+
+    Class clazz = (Class) object;
+
+    if (interfaceName.isAssignableFrom(clazz))
+      return clazz;
+
+    throw new ClassCastException();
+  }
+  
+  /**
+   * Verifies that the given object is an attribute of the given interface.
+   *
+   * @return the object casted to <code>Attribute</code>
+   *
+   * @exception ClassCastException if object is no instance of interfaceName.
+   * @exception NullPointerException if object is null
+   */
+  public static Attribute verifyAttributeValue(Object object,
+                                               Class interfaceName)
+  {
+    if (object == null)
+      throw new NullPointerException("object may not be null");
+
+    if (interfaceName.isInstance(object))
+      return (Attribute) object;
+
+    throw new ClassCastException();
+  }
+
+  /**
+   * Verifies that the category of attribute is equals to category.
+   *
+   * @param category the category the atteribute should be
+   * @param attribtue the attribute to verify
+   *
+   * @exception IllegalArgumentException if the categories are not equal
+   * @exception NullPointerException if category is null
+   */
+  public static void verifyCategoryForValue(Class category,
+                                            Attribute attribute)
+  {
+    if (category == null)
+      throw new NullPointerException("object may not be null");
+
+    if (category.equals(attribute.getCategory()))
+      throw new IllegalArgumentException
+        ("category of attribute not equal to category");
+  }
+}
Index: javax/print/attribute/DateTimeSyntax.java
===================================================================
RCS file: javax/print/attribute/DateTimeSyntax.java
diff -N javax/print/attribute/DateTimeSyntax.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/DateTimeSyntax.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,101 @@
+/* DateTimeSyntax.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @author Michael Koch
+ */
+public abstract class DateTimeSyntax implements Cloneable, Serializable
+{
+  private static final long serialVersionUID = -1400819079791208582L;
+  
+  private Date value;
+  
+  /**
+   * Creates a <code>DateTimeSyntax</code> with a given value.
+   *
+   * @param value the value for this syntax
+   *
+   * @exception NullPointerException if value is null
+   */
+  protected DateTimeSyntax(Date value)
+  {
+    if (value == null)
+      throw new NullPointerException("value may not be null");
+
+    this.value = value;
+  }
+
+  /**
+   * Returns the date value of this object.
+   *
+   * @return the date value
+   */
+  public Date getValue()
+  {
+    return value;
+  }
+
+  /**
+   * Tests if the given object is equal to this one.
+   * 
+   * @param obj the object to test
+   *
+   * @return True if both objects are equal, false otherwise.
+   */
+  public boolean equals(Object obj)
+  {
+    if (! (obj instanceof DateTimeSyntax))
+      return false;
+
+    return value.equals(((DateTimeSyntax) obj).getValue());
+  }
+
+  /**
+   * Returns the hashcode for this object.
+   *
+   * @return the hashcode
+   */
+  public int hashCode()
+  {
+    return value.hashCode();
+  }
+}
Index: javax/print/attribute/DocAttribute.java
===================================================================
RCS file: javax/print/attribute/DocAttribute.java
diff -N javax/print/attribute/DocAttribute.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/DocAttribute.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,45 @@
+/* DocAttribute.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+/**
+ * @author Michael Koch
+ */
+public interface DocAttribute extends Attribute
+{
+}
Index: javax/print/attribute/DocAttributeSet.java
===================================================================
RCS file: javax/print/attribute/DocAttributeSet.java
diff -N javax/print/attribute/DocAttributeSet.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/DocAttributeSet.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,55 @@
+/* DocAttributeSet.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+/**
+ * @author Michael Koch
+ */
+public interface DocAttributeSet extends AttributeSet
+{
+  /**
+   * Adds the specified attribute value to this attribute set
+   * if it is not already present.
+   */
+  boolean add (Attribute attribute);
+
+  /**
+   * Adds all of the elements in the specified set to this attribute.
+   */
+  boolean addAll (AttributeSet attributes);
+}
Index: javax/print/attribute/EnumSyntax.java
===================================================================
RCS file: javax/print/attribute/EnumSyntax.java
diff -N javax/print/attribute/EnumSyntax.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/EnumSyntax.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,146 @@
+/* EnumSyntax.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+
+/**
+ * @author Michael Koch
+ */
+public abstract class EnumSyntax implements Cloneable, Serializable
+{
+  private static final long serialVersionUID = -2739521845085831642L;
+  
+  private int value;
+
+  /**
+   * Creates a <code>EnumSyntax</code> object.
+   *
+   * @param value the value to set
+   */
+  protected EnumSyntax(int value)
+  {
+    this.value = value;
+  }
+
+  /**
+   * Returns the value of this object.
+   *
+   * @return the value
+   */
+  public int getValue()
+  {
+    return value;
+  }
+
+  /**
+   * Clones this object.
+   *
+   * @return a clone of this object
+   */
+  public Object clone()
+  {
+    try
+      {
+        return super.clone();
+      }
+    catch (CloneNotSupportedException e)
+      {
+        // Cannot happen as we implement java.lang.Cloneable.
+        return null;
+      }
+  }
+
+  /**
+   * Returns the hashcode for this object.
+   *
+   * @return the hashcode
+   */
+  public int hashCode()
+  {
+    return value;
+  }
+
+  /**
+   * Returns the string representation for this object.
+   *
+   * @return the string representation
+   */
+  public String toString()
+  {
+    int index = value - getOffset();
+    String[] table = getStringTable();
+
+    if (table != null
+        && index >= 0
+        && index < table.length)
+      return table[index];
+    
+    return "" + value;
+  }
+
+  /**
+   * Returns a table with the enumeration values represented as strings
+   * for this object.
+   *
+   * The default implementation just returns null.
+   *
+   * @return the enumeration values as strings
+   */
+  public String[] getStringTable()
+  {
+    return null;
+  }
+
+  /**
+   * Returns a table with the enumeration values for this object.
+   *
+   * The default implementation just returns null.
+   *
+   * @return the enumeration values
+   */
+  public EnumSyntax[] getEnumValueTable()
+  {
+    return null;
+  }
+
+  public int getOffset()
+  {
+    return 0;
+  }
+}
Index: javax/print/attribute/HashAttributeSet.java
===================================================================
RCS file: javax/print/attribute/HashAttributeSet.java
diff -N javax/print/attribute/HashAttributeSet.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/HashAttributeSet.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,366 @@
+/* HashAttributeSet.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.Iterator;
+
+public class HashAttributeSet implements AttributeSet, Serializable
+{
+  private static final long serialVersionUID = 5311560590283707917L;
+  
+  private Class interfaceName;
+  private HashMap attributeMap = new HashMap();
+
+  /**
+   * Creates an empty <code>HashAttributeSet</code> object.
+   */
+  public HashAttributeSet()
+  {
+    this(Attribute.class);
+  }
+
+  /**
+   * Creates a <code>HashAttributeSet</code> object with the given
+   * attribute in it.
+   *
+   * @param attribute the attribute to put into the set
+   *
+   * @exception NullPointerException if attribute is null
+   */
+  public HashAttributeSet(Attribute attribute)
+  {
+    this(attribute, Attribute.class);
+  }
+
+  /**
+   * Creates a <code>HashAttributeSet</code> object with the given
+   * attributes in it.
+   *
+   * @param attributes the attributes to put into the set
+   *
+   * @exception NullPointerException If attributes is null
+   */
+  public HashAttributeSet(Attribute[] attributes)
+  {
+    this(attributes, Attribute.class);
+  }
+
+  /**
+   * Creates a <code>HashAttributeSet</code> object with the given
+   * attributes in it.
+   *
+   * @param attributes the attributes to put into the set
+   *
+   * @exception NullPointerException If attributes is null
+   */
+  public HashAttributeSet(AttributeSet attributes)
+  {
+    this(attributes, Attribute.class);
+  }
+
+  /**
+   * Creates an empty <code>HashAttributeSet</code> object.
+   *
+   * @param interfaceName the interface that all members must implement
+   *
+   * @exception NullPointerException if interfaceName is null
+   */
+  protected HashAttributeSet(Class interfaceName)
+  {
+    if (interfaceName == null)
+      throw new NullPointerException("interfaceName may not be null");
+    
+    this.interfaceName = interfaceName;
+  }
+  
+  /**
+   * Creates an empty <code>HashAttributeSet</code> object.
+   *
+   * @exception ClassCastException if attribute is not an interface of
+   * interfaceName
+   * @exception NullPointerException if attribute or interfaceName is null
+   */
+  protected HashAttributeSet(Attribute attribute, Class interfaceName)
+  {
+    this(interfaceName);
+    
+    if (attribute == null)
+      throw new NullPointerException();
+    
+    addInternal(attribute, interfaceName);
+  }
+
+  /**
+   * Creates an empty <code>HashAttributeSet</code> object.
+   *
+   * @exception ClassCastException if any element of attributes is not an
+   * interface of interfaceName
+   * @exception NullPointerException if attributes or interfaceName is null
+   */
+  protected HashAttributeSet(Attribute[] attributes, Class interfaceName)
+  {
+    this(interfaceName);
+    
+    if (attributes == null)
+      throw new NullPointerException();
+    
+    for (int index = 0; index < attributes.length; index++)
+      addInternal(attributes[index], interfaceName);
+  }
+
+  /**
+   * Creates an empty <code>HashAttributeSet</code> object.
+   *
+   * @exception ClassCastException if any element of attributes is not an
+   * interface of interfaceName
+   */
+  public HashAttributeSet(AttributeSet attributes, Class interfaceName)
+  {
+    this(interfaceName);
+    
+    if (attributes != null)
+      addAllInternal(attributes, interfaceName);
+  }
+
+  /**
+   * Adds the given attribute to the set.
+   *
+   * @param attribute the attribute to add
+   *
+   * @return true if the attribute set has changed, false otherwise
+   *
+   * @exception NullPointerException if attribute is null
+   * @exception UnmodifiableSetException if this attribute set does not
+   * support this action.
+   */
+  public boolean add(Attribute attribute)
+  {
+    return addInternal(attribute, interfaceName);
+  }
+
+  private boolean addInternal(Attribute attribute, Class interfaceName)
+  {
+    if (attribute == null)
+      throw new NullPointerException("attribute may not be null");
+
+    AttributeSetUtilities.verifyAttributeCategory(interfaceName,
+						  this.interfaceName);
+
+    Object old = attributeMap.put
+      (attribute.getCategory(), AttributeSetUtilities.verifyAttributeValue
+                                  (attribute, interfaceName));
+    return !attribute.equals(old);
+  }
+
+  /**
+   * Adds the given attributes to the set.
+   *
+   * @param attributes the attributes to add
+   *
+   * @return true if the attribute set has changed, false otherwise
+   *
+   * @exception UnmodifiableSetException if this attribute set does not
+   * support this action.
+   */
+  public boolean addAll(AttributeSet attributes)
+  {
+    return addAllInternal(attributes, interfaceName);
+  }
+
+  private boolean addAllInternal(AttributeSet attributes, Class interfaceName)
+  {
+    boolean modified = false;
+    Attribute[] array = attributes.toArray();
+
+    for (int index = 0; index < array.length; index++)
+      if (addInternal(array[index], interfaceName))
+        modified = true;
+
+    return modified;
+  }
+
+  /**
+   * Removes all attributes from this attribute set.
+   *
+   * @exception UnmodifiableSetException if this attribute set does not
+   * support this action.
+   */
+  public void clear()
+  {
+    attributeMap.clear();
+  }
+
+  /**
+   * Checks if this attribute set contains an entry with the given category.
+   *
+   * @param category the category to test for
+   *
+   * @result true if the category exists in this attribute set, false otherwise.
+   */
+  public boolean containsKey(Class category)
+  {
+    return attributeMap.containsKey(category);
+  }
+
+  /**
+   * Checks if this attribute set contains an entry with the given attribute.
+   *
+   * @param attribute the attribute to test for
+   *
+   * @result true if the attribute exists in this attribute set,
+   * false otherwise.
+   */
+  public boolean containsValue(Attribute attribute)
+  {
+    return attributeMap.containsValue(attribute);
+  }
+
+  /**
+   * Tests of obj is equal to this object.
+   *
+   * @param obj the object to test
+   *
+   * @returns true if both objects are equal, false otherwise.
+   */
+  public boolean equals(Object obj)
+  {
+    if (! (obj instanceof HashAttributeSet))
+      return false;
+
+    return attributeMap.equals(((HashAttributeSet) obj).attributeMap);
+  }
+
+  /**
+   * Returns the attribute value that is connected to the given attribute
+   * category. If the attribute set does not contains the given category null
+   * will be returned.
+   *
+   * @param category the attribute category to return the attribute value for
+   *
+   * @return the attribute associated to category, or null
+   */
+  public Attribute get(Class category)
+  {
+    return (Attribute) attributeMap.get(category);
+  }
+  
+  /**
+   * Returns the hashcode for this object.
+   *
+   * @return the hashcode
+   */
+  public int hashCode()
+  {
+    return attributeMap.hashCode() + interfaceName.hashCode();
+  }
+
+  /**
+   * Checks if the attribute set is empty.
+   *
+   * @return true if the attribute set is empty, false otherwise
+   */
+  public boolean isEmpty()
+  {
+    return attributeMap.isEmpty();
+  }
+
+  /**
+   * Removes the entry with the given attribute in it.
+   *
+   * @param attribute the attribute value of the entry to be removed
+   *
+   * @return true if the attribute set has changed, false otherwise.
+   *
+   * @exception UnmodifiableSetException if this attribute set does not
+   * support this action.
+   */
+  public boolean remove(Attribute attribute)
+  {
+    if (attribute == null)
+      return false;
+
+    return attributeMap.remove(attribute.getCategory()) != null;
+  }
+
+  /**
+   * Removes the entry with the given category in it.
+   *
+   * @param category the category value of the entry to be removed
+   *
+   * @return true if the attribute set has changed, false otherwise.
+   */
+  public boolean remove(Class category)
+  {
+    if (category == null)
+      return false;
+
+    return attributeMap.remove(category) != null;
+  }
+
+  /**
+   * Returns the number of elements in this attribute set.
+   *
+   * @return the number of elements.
+   */
+  public int size()
+  {
+    return attributeMap.size();
+  }
+
+  /**
+   * Returns the content of the attribute set as an array
+   *
+   * @return an array of attributes
+   */
+  public Attribute[] toArray()
+  {
+    int index = 0;
+    Iterator it = attributeMap.entrySet().iterator();
+    Attribute[] array = new Attribute[size()];
+
+    while (it.hasNext())
+      {
+        array[index] = (Attribute) it.next();
+        index++;
+      }
+    
+    return array;
+  }
+}
Index: javax/print/attribute/HashDocAttributeSet.java
===================================================================
RCS file: javax/print/attribute/HashDocAttributeSet.java
diff -N javax/print/attribute/HashDocAttributeSet.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/HashDocAttributeSet.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,94 @@
+/* HashDocAttributeSet.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+
+public class HashDocAttributeSet extends HashAttributeSet
+  implements DocAttributeSet, Serializable
+{
+  private static final long serialVersionUID = -1128534486061432528L;
+  
+  /**
+   * Creates an empty <code>HashDocAttributeSet</code> object.
+   */
+  public HashDocAttributeSet()
+  {
+    super(DocAttribute.class);
+  }
+
+  /**
+   * Creates a <code>HashDocAttributeSet</code> object with the given
+   * attribute in it.
+   *
+   * @param attribute the attriute tu put into the attribute set
+   *
+   * @exception NullPointerException if attribute is null
+   */
+  public HashDocAttributeSet(DocAttribute attribute)
+  {
+    super(attribute, DocAttribute.class);
+  }
+
+  /**
+   * Creates a <code>HashDocAttributeSet</code> object with the given
+   * attributes in it.
+   *
+   * @param attributes the attributes to put into the attribute set
+   *
+   * @exception NullPointerException if attributes is null
+   */
+  public HashDocAttributeSet(DocAttribute[] attributes)
+  {
+    super(attributes, DocAttribute.class);
+  }
+
+  /**
+   * Creates a <code>HashDocAttributeSet</code> object with the given
+   * attributes in it.
+   *
+   * @param attributes the attributes to put into the attribute set
+   *
+   * @exception ClassCastException if any element of attributes is not
+   * an instance of <code>DocAttribute</code>
+   */
+  public HashDocAttributeSet(DocAttributeSet attributes)
+  {
+    super(attributes, DocAttribute.class);
+  }
+}
Index: javax/print/attribute/HashPrintJobAttributeSet.java
===================================================================
RCS file: javax/print/attribute/HashPrintJobAttributeSet.java
diff -N javax/print/attribute/HashPrintJobAttributeSet.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/HashPrintJobAttributeSet.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,94 @@
+/* HashPrintJobAttributeSet.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+
+public class HashPrintJobAttributeSet extends HashAttributeSet
+  implements Serializable, PrintJobAttributeSet
+{
+  private static final long serialVersionUID = -4204473656070350348L;
+  
+  /**
+   * Creates an empty <code>HashPrintJobAttributeSet</code> object.
+   */
+  public HashPrintJobAttributeSet()
+  {
+    super(PrintJobAttribute.class);
+  }
+  
+  /**
+   * Creates a <code>HashPrintJobAttributeSet</code> object with the given
+   * attribute in it.
+   *
+   * @param attribute the attriute tu put into the attribute set
+   *
+   * @exception NullPointerException if attribute is null
+   */
+  public HashPrintJobAttributeSet(PrintJobAttribute attribute)
+  {
+    super(attribute, PrintJobAttribute.class);
+  }
+  
+  /**
+   * Creates a <code>HashPrintJobAttributeSet</code> object with the given
+   * attributes in it.
+   *
+   * @param attributes the attributes to put into the attribute set
+   *
+   * @exception NullPointerException if attributes is null
+   */
+  public HashPrintJobAttributeSet(PrintJobAttribute[] attributes)
+  {
+    super(attributes, PrintJobAttribute.class);
+  }
+  
+  /**
+   * Creates a <code>HashPrintJobAttributeSet</code> object with the given
+   * attributes in it.
+   *
+   * @param attributes the attributes to put into the attribute set
+   *
+   * @exception ClassCastException if any element of attributes is not
+   * an instance of <code>PrintJobAttribute</code>
+   */
+  public HashPrintJobAttributeSet(PrintJobAttributeSet attributes)
+  {
+    super(attributes, PrintJobAttribute.class);
+  }
+}
Index: javax/print/attribute/HashPrintRequestAttributeSet.java
===================================================================
RCS file: javax/print/attribute/HashPrintRequestAttributeSet.java
diff -N javax/print/attribute/HashPrintRequestAttributeSet.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/HashPrintRequestAttributeSet.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,94 @@
+/* HashPrintRequestAttributeSet.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+
+public class HashPrintRequestAttributeSet extends HashAttributeSet
+  implements Serializable, PrintRequestAttributeSet
+{
+  private static final long serialVersionUID = 2364756266107751933L;
+  
+  /**
+   * Creates an empty <code>HashPrintRequestAttributeSet</code> object.
+   */
+  public HashPrintRequestAttributeSet()
+  {
+    super(PrintRequestAttribute.class);
+  }
+  
+  /**
+   * Creates a <code>HashPrintRequestAttributeSet</code> object with the given
+   * attribute in it.
+   *
+   * @param attribute the attriute tu put into the attribute set
+   *
+   * @exception NullPointerException if attribute is null
+   */
+  public HashPrintRequestAttributeSet(PrintRequestAttribute attribute)
+  {
+    super(attribute, PrintRequestAttribute.class);
+  }
+  
+  /**
+   * Creates a <code>HashPrintRequestAttributeSet</code> object with the given
+   * attributes in it.
+   *
+   * @param attributes the attributes to put into the attribute set
+   *
+   * @exception NullPointerException if attributes is null
+   */
+  public HashPrintRequestAttributeSet(PrintRequestAttribute[] attributes)
+  {
+    super(attributes, PrintRequestAttribute.class);
+  }
+  
+  /**
+   * Creates a <code>HashPrintRequestAttributeSet</code> object with the given
+   * attributes in it.
+   *
+   * @param attributes the attributes to put into the attribute set
+   *
+   * @exception ClassCastException if any element of attributes is not
+   * an instance of <code>PrintRequestAttribute</code>
+   */
+  public HashPrintRequestAttributeSet(PrintRequestAttributeSet attributes)
+  {
+    super(attributes, PrintRequestAttribute.class);
+  }
+}
Index: javax/print/attribute/HashPrintServiceAttributeSet.java
===================================================================
RCS file: javax/print/attribute/HashPrintServiceAttributeSet.java
diff -N javax/print/attribute/HashPrintServiceAttributeSet.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/HashPrintServiceAttributeSet.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,94 @@
+/* HashPrintServiceAttributeSet.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+
+public class HashPrintServiceAttributeSet extends HashAttributeSet
+  implements Serializable, PrintServiceAttributeSet
+{
+  private static final long serialVersionUID = 6642904616179203070L;
+  
+  /**
+   * Creates an empty <code>HashPrintServiceAttributeSet</code> object.
+   */
+  public HashPrintServiceAttributeSet()
+  {
+    super(PrintServiceAttribute.class);
+  }
+  
+  /**
+   * Creates a <code>HashPrintServiceAttributeSet</code> object with the given
+   * attribute in it.
+   *
+   * @param attribute the attriute tu put into the attribute set
+   *
+   * @exception NullPointerException if attribute is null
+   */
+  public HashPrintServiceAttributeSet(PrintServiceAttribute attribute)
+  {
+    super(attribute, PrintServiceAttribute.class);
+  }
+  
+  /**
+   * Creates a <code>HashPrintServiceAttributeSet</code> object with the given
+   * attributes in it.
+   *
+   * @param attributes the attributes to put into the attribute set
+   *
+   * @exception NullPointerException if attributes is null
+   */
+  public HashPrintServiceAttributeSet(PrintServiceAttribute[] attributes)
+  {
+    super(attributes, PrintServiceAttribute.class);
+  }
+  
+  /**
+   * Creates a <code>HashPrintServiceAttributeSet</code> object with the given
+   * attributes in it.
+   *
+   * @param attributes the attributes to put into the attribute set
+   *
+   * @exception ClassCastException if any element of attributes is not
+   * an instance of <code>PrintServiceAttribute</code>
+   */
+  public HashPrintServiceAttributeSet(PrintServiceAttributeSet attributes)
+  {
+    super(attributes, PrintServiceAttribute.class);
+  }
+}
Index: javax/print/attribute/IntegerSyntax.java
===================================================================
RCS file: javax/print/attribute/IntegerSyntax.java
diff -N javax/print/attribute/IntegerSyntax.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/IntegerSyntax.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,122 @@
+/* IntegerSyntax.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+
+/**
+ * @author Michael Koch
+ */
+public abstract class IntegerSyntax implements Cloneable, Serializable
+{
+  private int value;
+
+  /**
+   * Creates a <code>IntegerSyntax</code> with the given value.
+   *
+   * @param value the value to set
+   */
+  protected IntegerSyntax(int value)
+  {
+    this.value = value;
+  }
+
+  /**
+   * Creates a <code>IntegerSyntax</code> with the given arguments.
+   *
+   * @param value the value to set
+   * @param lowerBound the lower bound for the value
+   * @param upperBound the upper bound for the value
+   *
+   * @exception IllegalArgumentException if value < lowerBound
+   * or value > upperBound
+   */
+  protected IntegerSyntax(int value, int lowerBound, int upperBound)
+  {
+    if (value < lowerBound
+        || value > upperBound)
+      throw new IllegalArgumentException("value not in range");
+
+    this.value = value;
+  }
+
+  /**
+   * Returns the value of this object.
+   *
+   * @return the value
+   */
+  public int getValue()
+  {
+    return value;
+  }
+
+  /**
+   * Tests of obj is equal to this object.
+   *
+   * @param obj the object to test
+   *
+   * @returns true if both objects are equal, false otherwise.
+   */
+  public boolean equals(Object obj)
+  {
+    if(! (obj instanceof IntegerSyntax))
+      return false;
+
+    return value == ((IntegerSyntax) obj).getValue();
+  }
+
+  /**
+   * Returns the hashcode for this object.
+   *
+   * @return the hashcode
+   */
+  public int hashCode()
+  {
+    return value;
+  }
+
+  /**
+   * Returns the string representation for this object.
+   *
+   * @return the string representation
+   */
+  public String toString()
+  {
+    return "" + value;
+  }
+}
Index: javax/print/attribute/PrintJobAttribute.java
===================================================================
RCS file: javax/print/attribute/PrintJobAttribute.java
diff -N javax/print/attribute/PrintJobAttribute.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/PrintJobAttribute.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,45 @@
+/* PrintJobAttribute.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+/**
+ * @author Michael Koch
+ */
+public interface PrintJobAttribute extends Attribute
+{
+}
Index: javax/print/attribute/PrintJobAttributeSet.java
===================================================================
RCS file: javax/print/attribute/PrintJobAttributeSet.java
diff -N javax/print/attribute/PrintJobAttributeSet.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/PrintJobAttributeSet.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,55 @@
+/* PrintJobAttributeSet.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+/**
+ * @author Michael Koch
+ */
+public interface PrintJobAttributeSet extends AttributeSet
+{
+  /**
+   * Adds the specified attribute value to this attribute set
+   * if it is not already present.
+   */
+  boolean add (Attribute attribute);
+
+  /**
+   * Adds all of the elements in the specified set to this attribute.
+   */
+  boolean addAll (AttributeSet attributes);
+}
Index: javax/print/attribute/PrintRequestAttribute.java
===================================================================
RCS file: javax/print/attribute/PrintRequestAttribute.java
diff -N javax/print/attribute/PrintRequestAttribute.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/PrintRequestAttribute.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,45 @@
+/* PrintRequestAttribute.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+/**
+ * @author Michael Koch
+ */
+public interface PrintRequestAttribute extends Attribute
+{
+}
Index: javax/print/attribute/PrintServiceAttribute.java
===================================================================
RCS file: javax/print/attribute/PrintServiceAttribute.java
diff -N javax/print/attribute/PrintServiceAttribute.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/PrintServiceAttribute.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,45 @@
+/* PrintServiceAttribute.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+/**
+ * @author Michael Koch
+ */
+public interface PrintServiceAttribute extends Attribute
+{
+}
Index: javax/print/attribute/PrintServiceAttributeSet.java
===================================================================
RCS file: javax/print/attribute/PrintServiceAttributeSet.java
diff -N javax/print/attribute/PrintServiceAttributeSet.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/PrintServiceAttributeSet.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,55 @@
+/* PrintServiceAttributeSet.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+/**
+ * @author Michael Koch
+ */
+public interface PrintServiceAttributeSet extends AttributeSet
+{
+  /**
+   * Adds the specified attribute value to this attribute set
+   * if it is not already present.
+   */
+  boolean add (Attribute attribute);
+
+  /**
+   * Adds all of the elements in the specified set to this attribute.
+   */
+  boolean addAll (AttributeSet attributes);
+}
Index: javax/print/attribute/ResolutionSyntax.java
===================================================================
RCS file: javax/print/attribute/ResolutionSyntax.java
diff -N javax/print/attribute/ResolutionSyntax.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/ResolutionSyntax.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,220 @@
+/* ResolutionSyntax.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+
+/**
+ * @author Michael Koch
+ */
+public abstract class ResolutionSyntax
+  implements Cloneable, Serializable
+{
+  private static final long serialVersionUID = 2706743076526672017L;
+
+  /**
+   * Constant for units of dots per centimeter.
+   */
+  public static final int DPCM = 254;
+
+  /**
+   * Constant for units of dots per inch
+   */
+  public static final int DPI = 100;
+
+  private int crossFeedResolution;
+  private int feedResolution;
+  
+  /**
+   * Creates a <code>ResolutionSyntax</code> object with the given arguments.
+   *
+   * @param crossFeedResolution the cross feed resolution
+   * @param feedResolution the feed resolution
+   * @param units the unit to use
+   *
+   * @exception IllegalArgumentException if preconditions fail
+   */
+  public ResolutionSyntax(int crossFeedResolution, int feedResolution,
+                          int units)
+  {
+    if (crossFeedResolution < 1
+        || feedResolution < 1
+        || units < 1)
+      throw new IllegalArgumentException("no argument may be less than 1");
+
+    this.crossFeedResolution = crossFeedResolution * units;
+    this.feedResolution = feedResolution * units;
+  }
+
+  /**
+   * Tests of obj is equal to this object.
+   *
+   * @param obj the object to test
+   *
+   * @returns true if both objects are equal, false otherwise.
+   */
+  public boolean equals(Object obj)
+  {
+    if(! (obj instanceof ResolutionSyntax))
+      return false;
+
+    ResolutionSyntax tmp = (ResolutionSyntax) obj;
+    
+    return (crossFeedResolution == tmp.getCrossFeedResolutionDphi()
+            && feedResolution == tmp.getFeedResolutionDphi());
+  }
+
+  /**
+   * Returns the cross feed resolution in units.
+   *
+   * @return the resolution
+   *
+   * @exception IllegalArgumenException if units < 1
+   */
+  public int getCrossFeedResolution(int units)
+  {
+    if (units < 1)
+      throw new IllegalArgumentException("units may not be less then 1");
+
+    int rount = units / 2;
+    return (crossFeedResolution + units) / units;
+  }
+
+  /**
+   * Returns the raw cross feed resolution in units.
+   *
+   * @return the raw resolution
+   */
+  protected int getCrossFeedResolutionDphi()
+  {
+    return crossFeedResolution;
+  }
+
+  /**
+   * Returns the feed resolution in units.
+   *
+   * @return the resolution
+   *
+   * @exception IllegalArgumenException if units < 1
+   */
+  public int getFeedResolution(int units)
+  {
+    if (units < 1)
+      throw new IllegalArgumentException("units may not be less then 1");
+
+    int rount = units / 2;
+    return (crossFeedResolution + units) / units;
+  }
+
+  /**
+   * Returns the raw feed resolution in units.
+   *
+   * @return the raw resolution
+   */
+  protected int getFeedResolutionDphi()
+  {
+    return feedResolution;
+  }
+  
+  /**
+   * Returns the resolution as two field array. Index 0 is the cross feed
+   * resolution, index 1 the feed resolution.
+   *
+   * @param units the units to use
+   *
+   * @return the array with the resolutions
+   */
+  public int[] getResolution(int units)
+  {
+    int[] resolution = new int[2];
+    resolution[0] = getCrossFeedResolution(units);
+    resolution[1] = getFeedResolution(units);
+    return resolution;
+  }
+
+  /**
+   * Returns the hashcode for this object.
+   *
+   * @return the hashcode
+   */
+  public int hashCode()
+  {
+    return crossFeedResolution + feedResolution;
+  }
+
+  /**
+   * Checks of other is a lower or equal resolution.
+   *
+   * @param other the resolution to check against
+   *
+   * @return true if other describes a lower or equal resolution
+   */
+  public boolean lessThanOrEquals(ResolutionSyntax other)
+  {
+    if (other == null)
+      throw new NullPointerException("other may not be null");
+
+    return (crossFeedResolution <= other.getCrossFeedResolutionDphi()
+            && feedResolution <= other.getFeedResolutionDphi());
+  }
+
+  /**
+   * Returns the string representation for this object.
+   *
+   * @return the string representation
+   */
+  public String toString()
+  {
+    return toString(1, "dphi");
+  }
+
+  /**
+   * Returns the string representation for this object.
+   *
+   * @param units the units to use
+   * @param unitsName the name of the units
+   *
+   * @return the string representation
+   */
+  public String toString(int units, String unitsName)
+  {
+    return ("" + getCrossFeedResolution(units)
+            + "x" + getFeedResolution(units)
+            + " " + unitsName);
+  }
+}
Index: javax/print/attribute/SetOfIntegerSyntax.java
===================================================================
RCS file: javax/print/attribute/SetOfIntegerSyntax.java
diff -N javax/print/attribute/SetOfIntegerSyntax.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/SetOfIntegerSyntax.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,253 @@
+/* SetOfIntegerSyntax.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+import java.util.Vector;
+
+/**
+ * @author Michael Koch
+ */
+public abstract class SetOfIntegerSyntax
+  implements Cloneable, Serializable
+{
+  private static final long serialVersionUID = 3666874174847632203L;
+
+  private int[][] members;
+
+  private static int[][] normalize(Vector vecMembers)
+  {
+    // XXX: Perhaps we should merge ranges that overlap.
+    
+    int current = 0;
+    int[][] members = new int[vecMembers.size()][];
+
+    while (vecMembers.size() > 0)
+      {
+        // Search the lowest range.
+        int[] range = (int[]) vecMembers.elementAt(0);
+
+        for (int index = 1; index < vecMembers.size(); index++)
+          {
+            int[] tmp = (int[]) vecMembers.elementAt(index);
+
+            if (range[0] > tmp[0]
+                || (range[0] == tmp[0]
+                    && range[0] > tmp[0]))
+              range = tmp;
+          }
+
+        members[current] = range;
+        current++;
+      }
+    
+    return members;
+  }
+  
+  /**
+   * Creates a <code>SetOfIntegerSyntax</code> object.
+   *
+   * @param member the member value
+   *
+   * @exception IllegalArgumentException if member is < 0
+   */
+  protected SetOfIntegerSyntax(int member)
+  {
+    if (member < 0)
+      throw new IllegalArgumentException("member may not be less than 0");
+
+    this.members = new int[][]{{member, member}};
+  }
+
+  /**
+   * Creates a <code>SetOfIntegerSyntax</code> object.
+   *
+   * @param members the members to use in this set
+   *
+   * @exception IllegalArgumentException if any element is invalid
+   * @exception NullPointerException if any element of members is null
+   */
+  protected SetOfIntegerSyntax(int[][] members)
+  {
+    Vector vecMembers = new Vector();
+    
+    if (members != null)
+      {
+        for (int index = 0; index < members.length; index++)
+          {
+            int lower;
+            int upper;
+
+            if (members[index].length == 1)
+              {
+                lower = members[index][0];
+                upper = members[index][0];
+              }
+            else if (members[index].length == 2)
+              {
+                lower = members[index][0];
+                upper = members[index][1];
+              }
+            else
+              throw new IllegalArgumentException("invalid member element");
+
+            if (lower <= upper && lower < 0)
+              throw new IllegalArgumentException("invalid member element");
+
+            if (lower <= upper)
+              {
+                int[] range = new int[2];
+                range[0] = lower;
+                range[1] = upper;
+                vecMembers.add(range);
+              }
+          }
+      }
+    
+    this.members = normalize(vecMembers);
+  }
+
+  /**
+   * Creates a <code>SetOfIntegerSyntax</code> object.
+   *
+   * @param lowerBound the lower bound value
+   * @param upperBound the upper bound value
+   *
+   * @exception IllegalArgumentException if lowerBound <= uppbound
+   * and lowerBound < 0
+   */
+  protected SetOfIntegerSyntax(int lowerBound, int upperBound)
+  {
+    if (lowerBound <= upperBound
+        && lowerBound < 0)
+      throw new IllegalArgumentException();
+
+    members = (lowerBound <= upperBound ? new int[][]{{lowerBound, upperBound}}
+                                        : new int[0][]);
+  }
+
+  /**
+   * Checks if this set contains value.
+   *
+   * @param value the value to test for
+   *
+   * @return true if this set contains value, false otherwise
+   */
+  public boolean contains(int value)
+  {
+    // This only works on a normalized member array.
+    for (int index = 0; index < members.length; index++)
+      {
+        if (value < members[index][0])
+          return false;
+        else if (value < members[index][1])
+          return true;
+      }
+
+    return false;
+  }
+
+  /**
+   * Checks if this set contains value.
+   *
+   * @param value the value to test for
+   *
+   * @return true if this set contains value, false otherwise
+   */
+  public boolean contains(IntegerSyntax value)
+  {
+    return contains(value.getValue());
+  }
+
+  /**
+   * Tests of obj is equal to this object.
+   *
+   * @param obj the object to test
+   *
+   * @returns true if both objects are equal, false otherwise.
+   */
+  public boolean equals(Object obj)
+  {
+    if (! (obj instanceof SetOfIntegerSyntax))
+      return false;
+
+    throw new Error("not implemented");
+  }
+
+  /**
+   * Returns an array describing the members included in this set.
+   *
+   * @return the array with the members
+   */
+  public int[][] getMembers()
+  {
+    throw new Error("not implemented");
+  }
+
+  /**
+   * Returns the hashcode for this object.
+   *
+   * @return the hashcode
+   */
+  public int hashCode()
+  {
+    throw new Error("not implemented");
+  }
+
+  /**
+   * Returns the smallest value that is greater then x.
+   *
+   * @param x an integer value
+   *
+   * @return the next value
+   */
+  public int next(int x)
+  {
+    throw new Error("not implemented");
+  }
+
+  /**
+   * Returns the string representation for this object.
+   *
+   * @return the string representation
+   */
+  public String toString()
+  {
+    throw new Error("not implemented");
+  }
+}
Index: javax/print/attribute/Size2DSyntax.java
===================================================================
RCS file: javax/print/attribute/Size2DSyntax.java
diff -N javax/print/attribute/Size2DSyntax.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/Size2DSyntax.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,225 @@
+/* Size2DSyntax.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+
+/**
+ * @author Michael Koch
+ */
+public abstract class Size2DSyntax implements Cloneable, Serializable
+{
+  /**
+   * Constant for units of dots per mircometer to describe an inch.
+   */
+  public static final int INCH = 25400;
+
+  /**
+   * Constant for units of dots per mircometer to describe a centimeter.
+   */
+  public static final int MM = 1000;
+
+  private int x;
+  private int y;
+
+  /**
+   * Creates a <code>Size2DSyntax</code> object with the given arguments.
+   *
+   * @param x the size in x direction
+   * @param y the size in y direction
+   * @param units the units to use for the sizes
+   *
+   * @exception IllegalArgumentException if preconditions fail
+   */
+  protected Size2DSyntax(float x, float y, int units)
+  {
+    if (x < 0.0f || y < 0.0f)
+      throw new IllegalArgumentException("x and/or y may not be less than 0");
+
+    if (units < 1)
+      throw new IllegalArgumentException("units may not be less then 1");
+
+    this.x = (int) (x * units + 0.5f);
+    this.y = (int) (y * units + 0.5f);
+  }
+
+  /**
+   * Creates a <code>Size2DSyntax</code> object with the given arguments.
+   *
+   * @param x the size in x direction
+   * @param y the size in y direction
+   * @param units the units to use for the sizes
+   *
+   * @exception IllegalArgumentException if preconditions fail
+   */
+  protected Size2DSyntax(int x, int y, int units)
+  {
+    if (x < 0 || y < 0)
+      throw new IllegalArgumentException("x and/or y may not be less then 0");
+
+    if (units < 1)
+      throw new IllegalArgumentException("units may not be less then 1");
+
+    this.x = x * units;
+    this.y = y * units;
+  }
+
+  /**
+   * Tests of obj is equal to this object.
+   *
+   * @param obj the object to test
+   *
+   * @returns true if both objects are equal, false otherwise.
+   */
+  public boolean equals(Object obj)
+  {
+    if (! (obj instanceof Size2DSyntax))
+      return false;
+
+    Size2DSyntax tmp = (Size2DSyntax) obj;
+
+    return (x == tmp.getXMicrometers()
+            && y == tmp.getYMicrometers());
+  }
+
+  /**
+   * Return the size described in this object as a two field array.
+   * Index 0 contains the size in x direction, index 1 the size in
+   * y direction.
+   *
+   * @param units the units to use
+   *
+   * @return the array that describes the size
+   *
+   * @exception IllegalArgumentException if units < 1
+   */
+  public float[] getSize(int units)
+  {
+    float[] size = new float[2];
+    size[0] = getX(units);
+    size[1] = getY(units);
+    return size;
+  }
+
+  /**
+   * Return the size in x direction.
+   *
+   * @param units the units to use
+   *
+   * @return the size value
+   *
+   * @exception IllegalArgumentException if units < 1
+   */
+  public float getX(int units)
+  {
+    if (units < 1)
+      throw new IllegalArgumentException("units may not be less then 1");
+
+    return ((float) x) / ((float) units);
+  }
+
+  /**
+   * Returns the size in x direction in mircometers.
+   *
+   * @return the size value
+   */
+  protected int getXMicrometers()
+  {
+    return x;
+  }
+
+  /**
+   * Return the size in y direction.
+   *
+   * @param units the units to use
+   *
+   * @return the size value
+   *
+   * @exception IllegalArgumentException if units < 1
+   */
+  public float getY(int units)
+  {
+    if (units < 1)
+      throw new IllegalArgumentException("units may not be less then 1");
+
+    return ((float) y) / ((float) units);
+  }
+  
+  /**
+   * Returns the size in y direction in mircometers.
+   *
+   * @return the size value
+   */
+  protected int getYMicrometers()
+  {
+    return y;
+  }
+
+  /**
+   * Returns the hashcode for this object.
+   *
+   * @return the hashcode
+   */
+  public int hashCode()
+  {
+    return x + y;
+  }
+
+  /**
+   * Returns the string representation for this object.
+   *
+   * @return the string representation
+   */
+  public String toString()
+  {
+    return toString(1, "um");
+  }
+
+  /**
+   * Returns the string representation for this object.
+   *
+   * @param units the units to use
+   * @param unitsName the name of the units
+   *
+   * @return the string representation
+   */
+  public String toString(int units, String unitsName)
+  {
+    return "" + getX(units) + "x" + getY(units) + " " + unitsName;
+  }
+}
Index: javax/print/attribute/SupportedValuesAttribute.java
===================================================================
RCS file: javax/print/attribute/SupportedValuesAttribute.java
diff -N javax/print/attribute/SupportedValuesAttribute.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/SupportedValuesAttribute.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,45 @@
+/* Attribute.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+/**
+ * @author Michael Koch
+ */
+public interface SupportedValuesAttribute extends Attribute
+{
+}
Index: javax/print/attribute/TextSyntax.java
===================================================================
RCS file: javax/print/attribute/TextSyntax.java
diff -N javax/print/attribute/TextSyntax.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/TextSyntax.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,118 @@
+/* TextSyntax.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+import java.util.Locale;
+
+/**
+ * @author Michael Koch
+ */
+public abstract class TextSyntax implements Cloneable, Serializable
+{
+  private static final long serialVersionUID = -8130648736378144102L;
+  
+  private String value;
+  private Locale locale;
+
+  /**
+   * Creates a <code>TextSyntax</code> object with the given value
+   * and locale.
+   *
+   * @param value the value for this syntax
+   * @param locale the locale to use
+   *
+   * @exception NullPointerException if value is null
+   */
+  protected TextSyntax(String value, Locale locale)
+  {
+    if (value == null)
+      throw new NullPointerException("value may not be null");
+
+    this.value = value;
+    this.locale = locale;
+  }
+
+  /**
+   * Returns the value of this syntax object.
+   *
+   * @return the value
+   */
+  public String getValue()
+  {
+    return value;
+  }
+
+  /**
+   * Returns the locale of this syntax object.
+   *
+   * @return the locale
+   */
+  public Locale getLocale()
+  {
+    return locale;
+  }
+
+  /**
+   * Returns the hashcode for this object.
+   *
+   * @return the hashcode
+   */
+  public int hashCode()
+  {
+    return value.hashCode() + locale.hashCode();
+  }
+
+  /**
+   * Tests of obj is equal to this object.
+   *
+   * @param obj the object to test
+   *
+   * @returns true if both objects are equal, false otherwise.
+   */
+  public boolean equals(Object obj)
+  {
+    if (! (obj instanceof TextSyntax))
+      return false;
+
+    TextSyntax tmp = (TextSyntax) obj;
+    
+    return (value.equals(tmp.getValue())
+            && locale.equals(tmp.getLocale()));
+  }
+}
Index: javax/print/attribute/URISyntax.java
===================================================================
RCS file: javax/print/attribute/URISyntax.java
diff -N javax/print/attribute/URISyntax.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/URISyntax.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,112 @@
+/* URISyntax.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+import java.io.Serializable;
+import java.net.URI;
+
+/**
+ * @author Michael Koch
+ */
+public abstract class URISyntax
+  implements Cloneable, Serializable
+{
+  private static final long serialVersionUID = -7842661210486401678L;
+
+  private URI uri;
+
+  /**
+   * Creates a <code>URISyntax</code> object.
+   *
+   * @param uri the URI value for the syntax
+   *
+   * @exception NullPointerException if uri is null
+   */
+  protected URISyntax(URI uri)
+  {
+    if (uri == null)
+      throw new NullPointerException("uri may not be null");
+
+    this.uri = uri;
+  }
+
+  /**
+   * Tests of obj is equal to this object.
+   *
+   * @param obj the object to test
+   *
+   * @returns true if both objects are equal, false otherwise.
+   */
+  public boolean equals(Object obj)
+  {
+    if (! (obj instanceof URISyntax))
+      return false;
+
+    return uri.equals(((URISyntax) obj).getURI());
+  }
+
+  /**
+   * Returns the URI value of this syntax object.
+   *
+   * @return the URI
+   */
+  public URI getURI()
+  {
+    return uri;
+  }
+
+  /**
+   * Returns the hashcode for this object.
+   *
+   * @return the hashcode
+   */
+  public int hashCode()
+  {
+    return uri.hashCode();
+  }
+
+  /**
+   * Returns the string representation for this object.
+   *
+   * @return the string representation
+   */
+  public String toString()
+  {
+    return uri.toString();
+  }
+}
Index: javax/print/attribute/UnmodifiableSetException.java
===================================================================
RCS file: javax/print/attribute/UnmodifiableSetException.java
diff -N javax/print/attribute/UnmodifiableSetException.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ javax/print/attribute/UnmodifiableSetException.java	26 Dec 2003 13:37:53 -0000
@@ -0,0 +1,65 @@
+/* Attribute.java -- 
+   Copyright (C) 2003 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package javax.print.attribute;
+
+/**
+ * @author Michael Koch
+ *
+ * @since 1.4
+ */
+public class UnmodifiableSetException extends RuntimeException
+{
+  /**
+   * Creates a <code>UnmodifiableSetException</code>.
+   */
+  public UnmodifiableSetException()
+  {
+    super();
+  }
+
+  /**
+   * Creates a <code>UnmodifiableSetException</code>
+   * with the given message.
+   *
+   * @param message the message for the exception
+   */
+  public UnmodifiableSetException(String message)
+  {
+    super(message);
+  }
+}
Index: javax/print/attribute/Makefile.am
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/print/attribute/Makefile.am,v
retrieving revision 1.1
diff -u -b -B -r1.1 Makefile.am
--- javax/print/attribute/Makefile.am	29 Apr 2003 09:44:33 -0000	1.1
+++ javax/print/attribute/Makefile.am	26 Dec 2003 13:37:53 -0000
@@ -3,4 +3,28 @@
 EXTRA_DIST = \
 Attribute.java \
 AttributeSet.java \
+AttributeSetUtilities.java \
+DateTimeSyntax.java \
+DocAttribute.java \
+DocAttributeSet.java \
+EnumSyntax.java \
+HashAttributeSet.java \
+HashDocAttributeSet.java \
+HashPrintJobAttributeSet.java \
+HashPrintRequestAttributeSet.java \
+HashPrintServiceAttributeSet.java \
+IntegerSyntax.java \
+PrintJobAttribute.java \
+PrintJobAttributeSet.java \
+PrintRequestAttribute.java \
+PrintRequestAttributeSet.java \
+PrintServiceAttribute.java \
+PrintServiceAttributeSet.java \
+ResolutionSyntax.java \
+SetOfIntegerSyntax.java \
+Size2DSyntax.java \
+SupportedValuesAttribute.java \
+TextSyntax.java \
+UnmodifiableSetException.java \
+URISyntax.java \
 package.html

--Boundary-00=_PwD7//1VONyIMnV--




From MAILER-DAEMON Fri Dec 26 10:19:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZtkJ-0001Eh-2Y
	for mharc-classpath@gnu.org; Fri, 26 Dec 2003 10:19:23 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZtjx-0000l1-Ro
	for classpath@gnu.org; Fri, 26 Dec 2003 10:19:01 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZtjB-0008JF-NU
	for classpath@gnu.org; Fri, 26 Dec 2003 10:18:44 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AZtjA-0008HJ-Fj
	for classpath@gnu.org; Fri, 26 Dec 2003 10:18:12 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AZslL-0006d3-00; Fri, 26 Dec 2003 15:16:23 +0100
From: Mark Wielaard <mark@klomp.org>
To: Michael Koch <konqueror@gmx.de>
In-Reply-To: <20031225173422.GB23154@mail.konqueror.de>
References: <3FE9B372.1020902@kaffe.org>
	<20031225171851.GA23154@mail.konqueror.de>
	<20031225173422.GB23154@mail.konqueror.de>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-TqSMVaGi82Kfz1kjMhRz"
Message-Id: <1072448192.23029.109.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Fri, 26 Dec 2003 15:16:32 +0100
Cc: classpath@gnu.org, java-patches@gcc.gnu.org
Subject: Re: [PATCH] ServerSocket.bind
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 Dec 2003 15:19:18 -0000


--=-TqSMVaGi82Kfz1kjMhRz
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi Michael,

On Thu, 2003-12-25 at 18:34, Michael Koch wrote:
> After talking with guilhem on irc I got the problem and wrote the
> attached patch. I commited it to trunk already.
>=20
> Mark: Can you please commit this to classpath ?

Now that you have commit access to classpath back yourself could you do
that? And could you take a look at the following small diff against the
kaffe implementation.

--- java/net/ServerSocket.java  2003-12-25 17:49:41.000000000 +0100
+++ /home/mark/src/kaffe/libraries/javalib/java/net/ServerSocket.java =20
2003-12-25 16:31:22.000000000 +0100
@@ -228,7 +228,10 @@
 =20
     try
       {
-       impl.bind (tmp.getAddress (), tmp.getPort ());
+       if (tmp.getAddress () !=3D null)
+         impl.bind (tmp.getAddress (), tmp.getPort ());
+       else
+         impl.bind (InetAddress.ANY_IF, tmp.getPort ());
        impl.listen(backlog);
        bound =3D true;
       }

It also comes from Guilhem for freenet he claims. But maybe you already
discussed this.

Cheers,

Mark

--=-TqSMVaGi82Kfz1kjMhRz
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/7ELAxVhZCJWr9QwRAg/gAKCDcpwv/H85TPwJ4d7JVi3c0GdAYQCfcZ9N
6N7Yj7uPwlC0M8tX6dU4sHM=
=3SLL
-----END PGP SIGNATURE-----

--=-TqSMVaGi82Kfz1kjMhRz--




From MAILER-DAEMON Fri Dec 26 10:24:25 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZtpA-0007LH-CV
	for mharc-classpath@gnu.org; Fri, 26 Dec 2003 10:24:24 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZtp2-00075o-OX
	for classpath@gnu.org; Fri, 26 Dec 2003 10:24:16 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZtoN-0006GG-Er
	for classpath@gnu.org; Fri, 26 Dec 2003 10:24:08 -0500
Received: from [62.4.17.105] (helo=mallaury.noc.nerim.net)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AZtoN-0006Du-03
	for classpath@gnu.org; Fri, 26 Dec 2003 10:23:35 -0500
Received: from kaffe.org (lavaux.net1.nerim.net [62.212.115.70])
	by mallaury.noc.nerim.net (Postfix) with ESMTP
	id 7C69362D51; Fri, 26 Dec 2003 15:22:04 +0100 (CET)
Message-ID: <3FEC442D.3020003@kaffe.org>
Date: Fri, 26 Dec 2003 15:22:37 +0100
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
References: <3FE9B372.1020902@kaffe.org>	
	<20031225171851.GA23154@mail.konqueror.de>	
	<20031225173422.GB23154@mail.konqueror.de>
	<1072448192.23029.109.camel@elsschot.wildebeest.org>
In-Reply-To: <1072448192.23029.109.camel@elsschot.wildebeest.org>
X-Enigmail-Version: 0.82.5.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: classpath@gnu.org, java-patches@gcc.gnu.org,
	Michael Koch <konqueror@gmx.de>
Subject: Re: [PATCH] ServerSocket.bind
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 Dec 2003 15:24:20 -0000

Mark Wielaard wrote:

>Hi Michael,
>
>On Thu, 2003-12-25 at 18:34, Michael Koch wrote:
>  
>
>>After talking with guilhem on irc I got the problem and wrote the
>>attached patch. I commited it to trunk already.
>>
>>Mark: Can you please commit this to classpath ?
>>    
>>
>
>Now that you have commit access to classpath back yourself could you do
>that? And could you take a look at the following small diff against the
>kaffe implementation.
>
>--- java/net/ServerSocket.java  2003-12-25 17:49:41.000000000 +0100
>+++ /home/mark/src/kaffe/libraries/javalib/java/net/ServerSocket.java  
>2003-12-25 16:31:22.000000000 +0100
>@@ -228,7 +228,10 @@
>  
>     try
>       {
>-       impl.bind (tmp.getAddress (), tmp.getPort ());
>+       if (tmp.getAddress () != null)
>+         impl.bind (tmp.getAddress (), tmp.getPort ());
>+       else
>+         impl.bind (InetAddress.ANY_IF, tmp.getPort ());
>        impl.listen(backlog);
>        bound = true;
>       }
>  
>
It is already in Michael's patch. I'll merge the new code by Michael 
from classpath.

Cheers,
Guilhem.




From MAILER-DAEMON Fri Dec 26 11:22:02 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZuiw-0002tF-JV
	for mharc-classpath@gnu.org; Fri, 26 Dec 2003 11:22:02 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZuit-0002rt-UO
	for classpath@gnu.org; Fri, 26 Dec 2003 11:21:59 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZuiM-0002ka-UT
	for classpath@gnu.org; Fri, 26 Dec 2003 11:21:59 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24)
	id 1AZuhp-0001kW-44; Fri, 26 Dec 2003 11:20:53 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AZtk8-0006m4-00; Fri, 26 Dec 2003 16:19:12 +0100
From: Mark Wielaard <mark@klomp.org>
To: Dalibor Topic <robilad@kaffe.org>, commit-classpath@gnu.org
In-Reply-To: <3FC8F03C.7080506@kaffe.org>
References: <1069431275.2861.580.camel@elsschot.wildebeest.org>
	<20031124225726.43635.qmail@maczuka.gcd.org>
	<1069791322.1303.41.camel@localhost>
	<20031127160147.485.qmail@maczuka.gcd.org> <3FC8F03C.7080506@kaffe.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-2lx3b1HkZe/XqSkgByM0"
Message-Id: <1072451961.23026.124.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Fri, 26 Dec 2003 16:19:21 +0100
Cc: classpath@gnu.org, java-patches@gcc.gnu.org, kaffe@kaffe.org
Subject: Re: GregorianCalendar fixes
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 Dec 2003 16:22:00 -0000


--=-2lx3b1HkZe/XqSkgByM0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Sat, 2003-11-29 at 20:15, Dalibor Topic wrote:
> after the discussion on the Classpath mailing list, I'd say it looks good=
 ;)
>=20
> Mark, can I check it into Classpath's CVS with an updated ChangeLog entry=
?

I'll check this in while I am resyncing with kaffe.
There is only one functional change left between kaffe and classpath in
computeFields():

@@ -606,7 +611,7 @@
        calculateDay(++day, gregorian);
       }
 =20
-    fields[DAY_OF_WEEK_IN_MONTH] =3D (fields[DAY_OF_MONTH] + 12) / 7;
+    fields[DAY_OF_WEEK_IN_MONTH] =3D (fields[DAY_OF_MONTH] + 6) / 7;
 =20
     // which day of the week are we (0..6), relative to getFirstDayOfWeek
     int relativeWeekday =3D (7 + fields[DAY_OF_WEEK] - getFirstDayOfWeek()=
) % 7;

Haven't looked at who is right here, so won't merge.

> 2003-11-29  Guilhem Lavaux <guilhem@kaffe.org>
>=20
>   	* java/util/GregorianCalendar.java (computeTime):
>   	12:00 midnight is AM and 12:00 noon is PM.
> [...]
> > --- java/util/GregorianCalendar.java.orig	Thu Nov 27 15:35:08 2003
> > +++ java/util/GregorianCalendar.java	Thu Nov 27 15:48:25 2003
> > @@ -402,7 +402,11 @@
> >        {
> >  	hour =3D fields[HOUR];
> >          if (isSet[AM_PM] && fields[AM_PM] =3D=3D PM)
> > -	  hour +=3D 12;
> > +	  if (hour !=3D 12) /* not Noon */
> > +            hour +=3D 12;
> > +	/* Fix the problem of the status of 12:00 AM (midnight). */
> > +	if (isSet[AM_PM] && fields[AM_PM] =3D=3D AM && hour =3D=3D 12)
> > +	  hour =3D 0;
> >        }
> > =20
> >      int minute =3D isSet[MINUTE] ? fields[MINUTE] : 0;

Cheers,

Mark

--=-2lx3b1HkZe/XqSkgByM0
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/7FF5xVhZCJWr9QwRAkVGAJ9oFvVK+g5BxVY9gL7L7ixbgYDStwCfSOEL
k0QYzxWCR+kRzyFjxO4MuT8=
=P+/c
-----END PGP SIGNATURE-----

--=-2lx3b1HkZe/XqSkgByM0--




From MAILER-DAEMON Fri Dec 26 11:55:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZvFe-0007GW-GJ
	for mharc-classpath@gnu.org; Fri, 26 Dec 2003 11:55:50 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZvFa-0007AY-Fs
	for classpath@gnu.org; Fri, 26 Dec 2003 11:55:46 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZvF2-0006hK-39
	for classpath@gnu.org; Fri, 26 Dec 2003 11:55:43 -0500
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.24) id 1AZvF1-0006hH-MM
	for classpath@gnu.org; Fri, 26 Dec 2003 11:55:11 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by mx20.gnu.org with esmtp (Exim 4.24) id 1AZu34-0006Dn-I0
	for classpath@gnu.org; Fri, 26 Dec 2003 10:38:46 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AZu2t-0006nf-00
	for <classpath@gnu.org>; Fri, 26 Dec 2003 16:38:35 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <1072016726.4667.490.camel@elsschot.wildebeest.org>
References: <1072016726.4667.490.camel@elsschot.wildebeest.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-VWvMS8eEdTtgPbQlfdQP"
Message-Id: <1072453124.23022.133.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Fri, 26 Dec 2003 16:38:44 +0100
Subject: Re: Auditing source code
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 Dec 2003 16:55:48 -0000


--=-VWvMS8eEdTtgPbQlfdQP
Content-Type: multipart/mixed; boundary="=-FNmrYNjS+PERJOsEH5LR"


--=-FNmrYNjS+PERJOsEH5LR
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

On Sun, 2003-12-21 at 15:25, Mark Wielaard wrote:
> Preparing for the source code auditing. The following is what I intend
> to do/have done already.
>=20
> [...]
>
> for i in `cat files_libgcj`; do if test -f classpath/$i; \
> then cmp classpath/$i ~/src/gcc/libjava/$i | cut -f1 -d\ | cut -f2- -d/;\
> else echo "$i"; fi; done
>=20
> Which gives 212 files that differ.
> The same for kaffe gives 66 that differ.
>=20
> We need to find explanations for these differences. I have not done that
> yet. But most differences seem easily explainable.

I just went over the diffs with kaffe CVS. Attached it the audit log.
When the change was an obvious improvement in the kaffe version I just
merged it into Classpath (see commit-classpath@gnu.org mailinglist).

I didn't find any anomalies that would indicate tempering with the
Classpath CVS sources.

For java.text and java.io serialization/ObjectStream changes I didn't do
a real complete audit since both the kaffe and libgcj versions differ to
much from Classpath. Both sets of changes probably need an expert to do
the merging. See also the audit log.

Kaffe hackers might want to go over the audit log to see which things
they should update in kaffe CVS.

Cheers,

Mark

--=-FNmrYNjS+PERJOsEH5LR
Content-Disposition: inline; filename=differ_kaffe
Content-Transfer-Encoding: base64
Content-Type: text/plain; name=differ_kaffe; charset=iso-8859-1

Z251L2NsYXNzcGF0aC9Db25maWd1cmF0aW9uLmphdmENCi0gTm90IGluIENsYXNzcGF0aCAoZGVy
aXZlZCBmcm9tIC5pbiBmaWxlKS4NCg0KZ251L2phdmEvbmV0L0ROU0phdmFJbmV0QWRkcmVzc0lt
cGwuamF2YQ0KZ251L2phdmEvbmV0L0luZXRBZGRyZXNzSW1wbC5qYXZhDQpnbnUvamF2YS9uZXQv
U3lzSW5ldEFkZHJlc3NJbXBsLmphdmENCi0gUGFydCBvZiBwdXJlIGphdmEgRE5TIG5vdCAoeWV0
PykgaW4gQ1AuDQoNCmdudS9qYXZhL25ldC9Tb2NrZXRJbnB1dFN0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RvIGhhdmUg
YW4gb2xkIHZlcnNpb24gZnJvbSAyMDAyLg0KDQpwdXJlLWphdmEvbWF0aC9qYXZhL21hdGgvQmln
SW50ZWdlci5qYXZhDQotIExpa2V3aXNlLg0K

--=-FNmrYNjS+PERJOsEH5LR--

--=-VWvMS8eEdTtgPbQlfdQP
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/7FYExVhZCJWr9QwRAvC1AKCOjz2V9VdpbExRr34ytg6qvL81tACfcPEf
SjsT+Yarn6f4TdDKrx/ZsgU=
=47pQ
-----END PGP SIGNATURE-----

--=-VWvMS8eEdTtgPbQlfdQP--




From MAILER-DAEMON Fri Dec 26 14:20:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AZxVz-00039j-06
	for mharc-classpath@gnu.org; Fri, 26 Dec 2003 14:20:51 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AZxVv-00038W-QJ
	for classpath@gnu.org; Fri, 26 Dec 2003 14:20:47 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AZxVP-0002tT-3T
	for classpath@gnu.org; Fri, 26 Dec 2003 14:20:46 -0500
Received: from [219.160.177.9] (helo=asao.gcd.org)
	by monty-python.gnu.org with smtp (Exim 4.24) id 1AZxVN-0002t1-Uc
	for classpath@gnu.org; Fri, 26 Dec 2003 14:20:14 -0500
Received: (qmail 9796 invoked by uid 10); 27 Dec 2003 03:18:44 +0900
Received: (qmail 39008 invoked by uid 1000); 26 Dec 2003 18:18:05 -0000
Message-ID: <20031226181805.39007.qmail@maczuka.gcd.org>
From: Ito Kazumitsu <kaz@maczuka.gcd.org>
To: Mark Wielaard <mark@klomp.org>
In-reply-to: Your message of "Fri, 26 Dec 2003 16:19:21 +0100"
References: <1069431275.2861.580.camel@elsschot.wildebeest.org>
	<20031124225726.43635.qmail@maczuka.gcd.org>
	<1069791322.1303.41.camel@localhost>
	<20031127160147.485.qmail@maczuka.gcd.org>
	<3FC8F03C.7080506@kaffe.org>
	<1072451961.23026.124.camel@elsschot.wildebeest.org>
User-Agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.2
	(i386-unknown-freebsd4.7) MULE/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu")
Content-Type: text/plain; charset=ISO-8859-4
Content-Transfer-Encoding: quoted-printable
Date: Sat, 27 Dec 2003 03:18:05 +0900
Sender: kaz@maczuka.gcd.org
Cc: classpath@gnu.org, commit-classpath@gnu.org, java-patches@gcc.gnu.org,
	kaffe@kaffe.org
Subject: Re: [kaffe] Re: GregorianCalendar fixes
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 Dec 2003 19:20:48 -0000

Hi,

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

:> There is only one functional change left between kaffe and classpath in
:> computeFields():

:> -    fields[DAY_OF_WEEK_IN_MONTH] =3D (fields[DAY_OF_MONTH] + 12) / 7;
:> +    fields[DAY_OF_WEEK_IN_MONTH] =3D (fields[DAY_OF_MONTH] + 6) / 7;

:> Haven't looked at who is right here, so won't merge.

This change about DAY_OF_WEEK_IN_MONTH was in Mark's patch [1] (see below)
but was not in my original patch [2] (see below) posted to the kaffe mailing
list.  This patch seemes to have been introduced by analogy with the
patch about WEEK_OF_MONTH.=20

But Sun's API document says:

    Unlike WEEK_OF_MONTH and WEEK_OF_YEAR, this field's value does not
    depend on getFirstDayOfWeek() or getMinimalDaysInFirstWeek().
    DAY_OF_MONTH 1 through 7 always correspond to DAY_OF_WEEK_IN_MONTH 1;
    8 through 14 correspond to DAY_OF_WEEK_IN_MONTH 2, and so on.

In this respect,

    fields[DAY_OF_WEEK_IN_MONTH] =3D (fields[DAY_OF_MONTH] + 6) / 7;

seems to be correct.

[1]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org, kaffe@kaffe.org
Message-Id: <1069431275.2861.580.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5=20
Date: Fri, 21 Nov 2003 17:14:35 +0100
Cc: java-patches@gcc.gnu.org
Subject: GregorianCalendar fixes
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.1.2
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,	<mailto=
:classpath-request@gnu.org?subject=3Dunsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath>
List-Post: <mailto:classpath@gnu.org>
List-Help: <mailto:classpath-request@gnu.org?subject=3Dhelp>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,	<mailto:c=
lasspath-request@gnu.org?subject=3Dsubscribe>

[1  <multipart/signed (7bit)>]
[1.1  <multipart/mixed (7bit)>]
[1.1.1  <text/plain (quoted-printable)>]
Hi,

Since I am not a GregorianCalendar expert I was hoping that someone
could review the following patch which I have in my tree from Ito
Kazumitsu. He and I wrote a couple of mauve test cases which are fixed
by this and I see no new failures. But people didn't seem to be
completely comfortable with it back in Augustus/September. It would be
nice if we could create even more test cases to make sure that nothing
else breaks and to have a ChangeLog entry for this patch (Ito?). Don't
really have have time to learn about Calendars so I am just re-posting
this patch in the hope that someone can review it.

Thanks,

Mark
[1.1.2 GregorianCalendar.patch <text/x-patch; ISO-8859-1 (base64)>]
Index: java/util/GregorianCalendar.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/classpath/classpath/java/util/GregorianCalendar.java,v
retrieving revision 1.20
diff -u -r1.20 GregorianCalendar.java
--- java/util/GregorianCalendar.java	12 Aug 2003 13:41:27 -0000	1.20
+++ java/util/GregorianCalendar.java	21 Nov 2003 16:11:56 -0000
@@ -1,5 +1,5 @@
 /* java.util.GregorianCalendar
-   Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2001, 2002, 2003 Free Software Foundation, In=
c.
=20
 This file is part of GNU Classpath.
=20
@@ -264,8 +264,10 @@
 	//
 	// The additional leap year factor accounts for the fact that
 	// a leap day is not seen on Jan 1 of the leap year.
+	// And on and after the leap day, the leap day has already been
+	// included in dayOfYear.=20
 	int gregOffset =3D (year / 400) - (year / 100) + 2;
-	if (isLeapYear (year, true) && dayOfYear < 31 + 29)
+	if (isLeapYear (year, true))
 	  --gregOffset;
 	time +=3D gregOffset * (24 * 60 * 60 * 1000L);
       }
@@ -604,12 +606,12 @@
 	calculateDay(++day, gregorian);
       }
=20
-    fields[DAY_OF_WEEK_IN_MONTH] =3D (fields[DAY_OF_MONTH] + 6) / 7;
+    fields[DAY_OF_WEEK_IN_MONTH] =3D (fields[DAY_OF_MONTH] + 12) / 7;
=20
     // which day of the week are we (0..6), relative to getFirstDayOfWeek
     int relativeWeekday =3D (7 + fields[DAY_OF_WEEK] - getFirstDayOfWeek()=
) % 7;
=20
-    fields[WEEK_OF_MONTH] =3D (fields[DAY_OF_MONTH] - relativeWeekday + 6)=
 / 7;
+    fields[WEEK_OF_MONTH] =3D (fields[DAY_OF_MONTH] - relativeWeekday + 12=
) / 7;
=20
     int weekOfYear =3D (fields[DAY_OF_YEAR] - relativeWeekday + 6) / 7;
=20
[1.2 This is a digitally signed message part <application/pgp-signature (7b=
it)>]

[2  <text/plain; us-ascii (7bit)>]
_______________________________________________
Classpath mailing list
Classpath@gnu.org
http://mail.gnu.org/mailman/listinfo/classpath

[2]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
From: Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
To: kaffe@kaffe.org
In-reply-to: Ito Kazumitsu's message of "Mon, 28 Jul 2003 10:46:11 +0900"	<=
200307280146.h6S1kBq16305@sm1.hitachi-cable.co.jp>
Subject: Re: [kaffe] Bug in Kaffe 1.0.7
User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigory=F2mae)
 APEL/10.3 Emacs/20.7 (i386-*-windows98.2222) MULE/4.1 (AOI) Meadow/1.14
 (AWSAKA:62)
MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
X-BeenThere: kaffe@kaffe.org
X-Mailman-Version: 2.0.11
List-Help: <mailto:kaffe-request@kaffe.org?subject=3Dhelp>
List-Post: <mailto:kaffe@kaffe.org>
List-Subscribe: <http://kaffe.org/cgi-bin/mailman/listinfo/kaffe>,	<mailto:=
kaffe-request@kaffe.org?subject=3Dsubscribe>
List-Unsubscribe: <http://kaffe.org/cgi-bin/mailman/listinfo/kaffe>,	<mailt=
o:kaffe-request@kaffe.org?subject=3Dunsubscribe>
List-Archive: <http://kaffe.org/pipermail/kaffe/>
X-Original-Date: Mon, 28 Jul 2003 13:31:38 +0900
Date: Mon, 28 Jul 2003 13:31:38 +0900


In message "Re: [kaffe] Bug in Kaffe 1.0.7"
    on 03/07/28, Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp> writes:

> The attached program prints week-related values for the dates
> from Jan 1 2000 to Dec 31 2003.  Both GNU Classpath and Sun's
> JDK give identical results for the following months:
>=20
>    Oct 2000, Apr 2001, Jul 2001, Sep 2002, Dec 2002, Jun 2003

These months are special in that the first day of the month is Sunday.

The attached patch makes GNU classpath's java.util.Calendar behave
almost similarly to Sun's JDK except that the former returns 53 or
54 as the last week of the year but the latter returns 1.   I think
that returning 1 as the last week of the year may be a bug of Sun's
JDK.

I will submit this patch to the GNU Classpath mailing list.

--- java/util/GregorianCalendar.java.orig	Sun Mar 24 01:10:15 2002
+++ java/util/GregorianCalendar.java	Mon Jul 28 11:53:16 2003
@@ -599,7 +599,7 @@
     // which day of the week are we (0..6), relative to getFirstDayOfWeek
     int relativeWeekday =3D (7 + fields[DAY_OF_WEEK] - getFirstDayOfWeek()=
) % 7;
=20
-    fields[WEEK_OF_MONTH] =3D (fields[DAY_OF_MONTH] - relativeWeekday + 6)=
 / 7;
+    fields[WEEK_OF_MONTH] =3D (fields[DAY_OF_MONTH] - relativeWeekday + 12=
) / 7;
=20
     int weekOfYear =3D (fields[DAY_OF_YEAR] - relativeWeekday + 6) / 7;
=20

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



From MAILER-DAEMON Sat Dec 27 12:30:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaIGw-000283-Uw
	for mharc-classpath@gnu.org; Sat, 27 Dec 2003 12:30:42 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaIGu-00027m-QM
	for classpath@gnu.org; Sat, 27 Dec 2003 12:30:40 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaIGN-00025H-Uf
	for classpath@gnu.org; Sat, 27 Dec 2003 12:30:39 -0500
Received: from [62.4.16.106] (helo=kraid.nerim.net)
	by monty-python.gnu.org with esmtp (Exim 4.24)
	id 1AaIGN-000259-Ig; Sat, 27 Dec 2003 12:30:07 -0500
Received: from kaffe.org (lavaux.net1.nerim.net [62.212.115.70])
	by kraid.nerim.net (Postfix) with ESMTP
	id B644B419E9; Sat, 27 Dec 2003 17:28:37 +0100 (CET)
Message-ID: <3FEDB354.2090606@kaffe.org>
Date: Sat, 27 Dec 2003 17:29:08 +0100
From: Guilhem Lavaux <guilhem@kaffe.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: commit-classpath@gnu.org, classpath@gnu.org
X-Enigmail-Version: 0.82.5.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: multipart/mixed; boundary="------------090003020805070803070308"
Cc: 
Subject: FYI: gnu.java.net.protocol.http.Connection
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 Dec 2003 17:30:41 -0000

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

Hi,

Here are two fixes concerning HTTP. Briefly:
* receiveReply() must also add the reponse to the header list (maybe 
some doc should be added about it)
* getHeaderField() and getHeaderFieldKey() must check the state of the 
connection and
try to open it if it's closed.

Guilhem.

--------------090003020805070803070308
Content-Type: text/plain;
 name="patch_connection"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch_connection"

Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.1723
diff -u -r1.1723 ChangeLog
--- ChangeLog	27 Dec 2003 13:38:17 -0000	1.1723
+++ ChangeLog	27 Dec 2003 16:21:36 -0000
@@ -1,5 +1,12 @@
 2003-12-27  Guilhem Lavaux <guilhem@kaffe.org>
 
+	* gnu/java/net/protocol/http/Connection.java
+	(receiveReply): Add the null header containing the reply of the server.
+	(getHeaderField, getHeaderFieldKey): Check whether the connection has
+	already been established.
+
+2003-12-27  Guilhem Lavaux <guilhem@kaffe.org>
+
 	* java/io/CharArrayReader.java (read): It should throw
 	IndexOutOfBoundsException and not ArrayIndexOutOfBoundsException (see
 	mauve).
Index: gnu/java/net/protocol/http/Connection.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/net/protocol/http/Connection.java,v
retrieving revision 1.7
diff -u -r1.7 Connection.java
--- gnu/java/net/protocol/http/Connection.java	27 Dec 2003 12:58:35 -0000	1.7
+++ gnu/java/net/protocol/http/Connection.java	27 Dec 2003 16:21:36 -0000
@@ -255,6 +255,8 @@
         || (line.length() < (idx + 6)))
       throw new IOException ("Server reply was unparseable: " + saveline);
 
+    headers.addHeaderField (null, line);
+
     line = line.substring (idx + 1);
     String code = line.substring (0, 3);
     
@@ -420,6 +422,16 @@
    */
   public String getHeaderField(int n)
   {
+    if (!connected)
+      try
+	{
+	  connect();
+	}
+      catch (IOException e)
+	{
+	  return null;
+	}
+
     return headers.getHeaderFieldValueByIndex (n);
   }
 
@@ -434,6 +446,16 @@
    */
   public String getHeaderFieldKey(int n)
   {
+    if (!connected)
+      try
+	{
+	  connect();
+	}
+      catch (IOException e)
+	{
+	  return null;
+	}
+
     return headers.getHeaderFieldKeyByIndex (n);
   }
 }

--------------090003020805070803070308--




From MAILER-DAEMON Sat Dec 27 20:03:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AaPLD-0004bp-B4
	for mharc-classpath@gnu.org; Sat, 27 Dec 2003 20:03:35 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AaPLB-0004bH-3e
	for classpath@gnu.org; Sat, 27 Dec 2003 20:03:33 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AaPKf-0004Rg-IV
	for classpath@gnu.org; Sat, 27 Dec 2003 20:03:32 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AaPKe-0004RF-JA
	for classpath@gnu.org; Sat, 27 Dec 2003 20:03:00 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AaON0-0001h5-00
	for <classpath@gnu.org>; Sun, 28 Dec 2003 01:01:22 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <1072016726.4667.490.camel@elsschot.wildebeest.org>
References: <1072016726.4667.490.camel@elsschot.wildebeest.org>
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-tCq2/XtuA1EyUX0/1Cl5"
Message-Id: <1072569692.9939.4.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sun, 28 Dec 2003 01:01:32 +0100
Subject: Re: Auditing source code
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 Dec 2003 01:03:33 -0000


--=-tCq2/XtuA1EyUX0/1Cl5
Content-Type: multipart/mixed; boundary="=-byjhtW2vDPg8LZ4Hypz2"


--=-byjhtW2vDPg8LZ4Hypz2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

On Sun, 2003-12-21 at 15:25, Mark Wielaard wrote:
> Then to find the files that differ or don't exist (anymore) do:
>=20
> for i in `cat files_libgcj`; do if test -f classpath/$i; \
> then cmp classpath/$i ~/src/gcc/libjava/$i | cut -f1 -d\ | cut -f2- -d/;\
> else echo "$i"; fi; done
>=20
> Which gives 212 files that differ.

Thanks to Michael Koch this has already gone down to 140 files.
Did the first half of these. Since the interesting merging has already
been done there isn't that much to report. We do need to keep our merge
status a bit more clean. Read for some observations. No real anomalies
found.

Cheers,

Mark

--=-byjhtW2vDPg8LZ4Hypz2
Content-Disposition: inline; filename=differ_libgcj
Content-Transfer-Encoding: base64
Content-Type: text/plain; name=differ_libgcj; charset=iso-8859-1

Z251L2NsYXNzcGF0aC9Db25maWd1cmF0aW9uLmphdmEuaW4NCi0gbGliZ2NqIHNwZWNpZmljIHZl
cnNpb24gKHNlZW1zIGJhc2VkIG9uIG9sZCBjbGFzc3BhdGggdmVyc2lvbikuDQoNCmdudS9nY2ov
cnVudGltZS9TdGFja1RyYWNlLmphdmENCi0gTm90IHJlYWxseSBwYXJ0IG9mIGNsYXNzcGF0aCwg
YnV0IGRlcml2ZWQgZnJvbSBvdGhlciBjbGFzc2VzLg0KDQpnbnUvZ2NqL3J1bnRpbWUvU3RyaW5n
QnVmZmVyLmphdmENCi0gTm90IHJlYWxseSBwYXJ0IG9mIGNsYXNzcGF0aCwgYnV0IGRlcml2ZWQg
ZnJvbSBqYXZhL2xhbmcvU3RyaW5nQnVmZmVyLmphdmENCg0KZ251L2phdmEvYXd0L0Ns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ndGhy
ZWFkLWpuaS5jDQpqbmkvZ3RrLXBlZXIvZ3RocmVhZC1qbmkuaA0Kam5pL2d0ay1wZWVyL2d0a3Bl
ZXIuaA0Kc2NyaXB0cy9NYWtlQ2hhclRhYmxlcy5qYXZhDQpzY3JpcHRzL3VuaWNvZGUtYmxvY2tz
LnBsDQpzY3JpcHRzL3VuaWNvZGUtbXVuY2hlci5wbA0K

--=-byjhtW2vDPg8LZ4Hypz2--

--=-tCq2/XtuA1EyUX0/1Cl5
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/7h1bxVhZCJWr9QwRAjpZAJ47ichVhljbu4OVgxcoqNUR20fJEwCePElU
c5eMxOc30zgpIr9uJKIJZPc=
=vZgg
-----END PGP SIGNATURE-----

--=-tCq2/XtuA1EyUX0/1Cl5--




From MAILER-DAEMON Mon Dec 29 07:29:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.24)
	id 1AawWD-0002DC-Bc
	for mharc-classpath@gnu.org; Mon, 29 Dec 2003 07:29:09 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24)
	id 1AawW9-0002CP-Iu
	for classpath@gnu.org; Mon, 29 Dec 2003 07:29:05 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24)
	id 1AawVc-00022S-Lq
	for classpath@gnu.org; Mon, 29 Dec 2003 07:29:03 -0500
Received: from [62.108.28.95] (helo=nescio.wildebeest.org)
	by monty-python.gnu.org with esmtp (Exim 4.24) id 1AawVb-00022G-Vo
	for classpath@gnu.org; Mon, 29 Dec 2003 07:28:32 -0500
Received: from elsschot.wildebeest.org ([192.168.1.26] ident=mark)
	by nescio.wildebeest.org with esmtp (Exim 3.35 #1 (Debian))
	id 1AavXx-0005c6-00
	for <classpath@gnu.org>; Mon, 29 Dec 2003 12:26:53 +0100
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-w/PBr9W2huya1gkjnXmf"
Message-Id: <1072697223.9940.195.camel@elsschot.wildebeest.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Mon, 29 Dec 2003 12:27:04 +0100
Subject: Debian/Free Java room at Fosdem (February 21/22, Brussel)
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 Dec 2003 12:29:06 -0000


--=-w/PBr9W2huya1gkjnXmf
Content-Type: multipart/mixed; boundary="=-anILUnxw4+f7BikVheme"


--=-anILUnxw4+f7BikVheme
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi all,

It is official now. We will have a developer room at Fosdem (February
21/22, Brussels, Belgium) where we will be able to meet, discuss, hack
and give presentations. We will be sharing that room with the Debian
people so we have to coordinate a bit who does what when, but they are
nice people (and some of us are Debian people) so I am sure we will
manage. Also the embedded room has invited us to give a presentation on
anything related to VMs on small devices or standardization issues.

The preliminary program is as follows:

- Official talk by Tom Tromey (not in devroom).
  Hopefully we can invite people who became interested in discussing gcj
  some more to the developer room afterwards.
  http://www.fosdem.org/2004/index/speakers/speakers_tromey

- Possible presentation on SableVM by Grzegorz B. Prokopski
  (sablevm is packaged for Debian by Grzegorz himself)

- Possible GNU Classpath overview presentation by Sascha Brawer and me.
  Abstract attached. (It is a bit technical now, to make it more
  appealing to others we could probably make this into a showcase of
  applications and VMs that shows what is possible with free java
  replacements today.)

Discussion topics (small hacker meetings):
- GNU Classpath 1.0 RoadMap discussion (Mark Wielaard).
- Free VM/Compiler integration/cooperation discussion (???).
- Standardization and compatibility issues (Chris Gray?)

People from the following projects will attend:

GNU Classpath: Sascha Brawer, Michael Koch, Mark Wielaard
gcj: Tom Tromey, Andrew Haley
Kaffe: Dalibor Topic, Stephane Meslin-Weber, (Guilhem Lavaux)
Debian: Arnaud Vandyck
SableVM: Grzegorz Prokopski
Wonka: Chris Gray
Jaos: (Patrik Reali)
IKVM: (Jeroen Frijters)

Please let me know if you are going to attend, want to give a
presentation and/or lead a discussion. The most interesting will be
things that are also interesting for either the Debian or the embedded
people. Please send suggestions before January 5 so we will have enough
time to arrange things. Since we share the room with the Debian people
it will probably not be possible to add more then one or two small
presentations though.

There will also be a key-signing party as Fosdem which I think will be
good to attend to create a bigger and stronger web-of-trust. Please
consider joining.

For more info see also http://www.fodem.org/

Cheers,

Mark

P.S. I will be on vacation and away from my mail this week, but will
make sure to read all suggestions next weekend and make a final program
as soon as possible when I return.

P.P.S Please feel free to invite people from related projects
      (share and forward away!)

--=-anILUnxw4+f7BikVheme
Content-Disposition: inline; filename=talk_abstract
Content-Type: text/plain; name=talk_abstract; charset=ISO-8859-1
Content-Transfer-Encoding: base64

R05VIENsYXNzcGF0aCAtLSBDb3JlIENsYXNzZXMgZm9yIGEgRGl2ZXJzaXR5IG9mIEZyZWUgSmF2
YSBWaXJ0dWFsIE1hY2hpbmVzDQoNClRoZSBnb2FsIG9mIEdOVSBDbGFzc3BhdGggaXMgdG8gcHJv
dmlkZSBhbiBpbXBsZW1lbnRhdGlvbiBvZiB0aGUgY29yZQ0KY2xhc3MgbGlicmFyaWVzIGZvciB0
aGUgSmF2YSBsYW5ndWFnZSB0aGF0IGlzIG5vdCB1bmRlciBwcm9wcmlldGFyeQ0KY29udHJvbC4g
IEJlY2F1c2UgdGhlIGxpY2Vuc2UgZ3JhbnRzIGRldmVsb3BlcnMsIHVzZXJzI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oNCg0KU2Fz
Y2hhIEJyYXdlciBoYXMgc3R1ZGllZCBDb21wdXRhdGlvbmFsIExpbmd1aXN0aWNzLCB3b3JraW5n
IG9uDQpvcHRpbWl6aW5nIGNvbXBpbGF0aW9uIG1ldGhvZHMgZm9yIG5hdHVyYWwgbGFuZ3VhZ2Ug
cHJvY2Vzc2luZy4gSGUgaGFzDQp3b3JrZWQgYXMgYSBzb2Z0d2FyZSBkZXZlbG9wZXIgYW5kIGlu
IGluZHVzdHJpYWwgcmVzZWFyY2ggYmVmb3JlIGZvdW5kaW5nDQpEYW5kZWxpcywgYSBjb21wYW55
IHRoYXQgZGV2ZWxvcHMgZnJlZSBzb2Z0d2FyZS4gSGUgbGl2ZXMgaW4gQmVybmUsDQpTd2l0emVy
bGFuZC4NCg0KTWFyayBXaWVsYWFyZCBzdHVkaWVkIFRoZW9yZXRpY2FsIENvbXB1dGVyIFNjaWVu
Y2UgYXQgdGhlIFVuaXZlcnNpdHkgb2YNCkFtc3RlcmRhbSwgd29ya2luZyBvbiBmdW5jdGlvbmFs
IGFuZCBsb2dpYyBwcm9ncmFtbWluZyBsYW5ndWFnZXMuIEluIHRoZQ0KcGFzdCBoZSBoYXMgd29y
a2VkIG9uIEdOVUpTUCBhbmQgc2VydmxldCBsaWJyYXJpZXMgYW5kIGN1cnJlbnRseSBoZWxwcw0K
d2l0aCB0aGUgZ2NqIGFuZCBrYWZmZSBwcm9qZWN0cy4gSW4gMjAwMCBoZSBqb2luZWQgR05VIENs
YXNzcGF0aCBhbmQgaGUNCm5vdyBpcyB0aGUgR05VIG1haW50YWluZXIgb2YgdGhhdCBwcm9qZWN0
Lg0K

--=-anILUnxw4+f7BikVheme--

--=-w/PBr9W2huya1gkjnXmf
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/8A+HxVhZCJWr9QwRAqF0AJ0TTshHFmf5ht9ssuilRtLsHjclggCfW/YM
bBD9pnNRdRFxjySSTGK3s9w=
=7uNJ
-----END PGP SIGNATURE-----

--=-w/PBr9W2huya1gkjnXmf--




