From mark@wildebeest.org Sat Mar 02 10:05:11 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16hB4R-0002s8-00; Sat, 02 Mar 2002 10:05:11 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16hB3j-00031Y-00; Sat, 02 Mar 2002 16:04:27 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16hB41-00011Q-00; Sat, 02 Mar 2002 16:04:45 +0100
Subject: Re: Method.equals()
From: Mark Wielaard <mark@klomp.org>
To: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
Cc: "Cierniak, Michal" <michal.cierniak@intel.com>, 'Brian Jones'
	 <cbj@gnu.org>, classpath@gnu.org, "Wu, Gansha" <gansha.wu@intel.com>
In-Reply-To: <3C7307AA.8010809@waitaki.otago.ac.nz>
References: <794826DE8867D411BAB8009027AE9EB90FE78250@FMSMSX38> 
	<3C7307AA.8010809@waitaki.otago.ac.nz>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 02 Mar 2002 16:04:45 +0100
Message-Id: <1015081485.935.106.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Wed, 2002-02-20 at 03:19, Bryce McKinlay wrote:
> Cierniak, Michal wrote:
> >
> >But I thought that Bryce indicated in his message that he also liked the
> >patch submitted by Gansha.  It sounds like this modification is useful for
> >both ORP and GCJ since they both have their own internal data structures to
> >represent a method.
> 
> Right. Gansha's implementation should be the one that goes in 
> vm/reference. It may not be optimal for all VMs, but it is always 
> correct and most accurately matches the JDK spec, and it is the 
> implementation required for both ORP and GCJ.

OK. I think I understand the issue now. So this is the patch that
went in:

--- vm/reference/java/lang/reflect/Method.java	19 Feb 2002 22:52:10
-0000	
1.6
+++ vm/reference/java/lang/reflect/Method.java	2 Mar 2002 15:03:20 -0000
@@ -153,7 +153,46 @@
    */
   public boolean equals(Object o)
   {
-    return this == o;
+      // Implementation note:
+      // The following is a correct but possibly slow implementation.
+      //
+      // This class has a private field 'slot' that could be used by
+      // the VM implementation to "link" a particular method to a
Class.
+      // In that case equals could be simply implemented as:
+      //
+      // if (o instanceof Method)
+      // {
+      //    Method m = (Method)o;
+      //    return m.declaringClass == this.declaringClass
+      //           && m.slot == this.slot;
+      // }
+      // return false;
+      //
+      // If a VM uses the Method class as their native/internal
representation
+      // then just using the following would be optimal:
+      //
+      // return return this == o;
+      //
+
+      if (!(o instanceof Method))
+        return false;
+
+      Method m = (Method)o;
+      if(!name.equals(m.getName()))
+	  return false;
+
+      if(declaringClass != m.declaringClass)
+	  return false;
+
+      Class[] params1 = getParameterTypes();
+      Class[] params2 = m.getParameterTypes();
+      if(params1.length != params2.length)
+	  return false;
+      for(int i = 0; i < params1.length; i++)
+	  if(params1[i] != params2[i])
+	      return false;
+
+      return true;
   }
 
   /**

There is now also a corresponding Mauve test case. Although I have been
unable to test it because for some reason my Orp doesn't like the CVS
Classpath anymore :(

Cheers,

Mark


From mark@wildebeest.org Sun Mar 03 09:12:12 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16hWih-00059R-00; Sun, 03 Mar 2002 09:12:11 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16hWhg-0004EL-00; Sun, 03 Mar 2002 15:11:08 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16hWhz-0006os-00; Sun, 03 Mar 2002 15:11:27 +0100
Subject: Re: Method.equals()
From: Mark Wielaard <mark@klomp.org>
To: Mark Wielaard <mark@klomp.org>
Cc: Bryce McKinlay <bryce@waitaki.otago.ac.nz>, "Cierniak, Michal"
	 <michal.cierniak@intel.com>, 'Brian Jones' <cbj@gnu.org>, classpath@gnu.org, 
	"Wu, Gansha" <gansha.wu@intel.com>
In-Reply-To: <1015081485.935.106.camel@elsschot>
References: <794826DE8867D411BAB8009027AE9EB90FE78250@FMSMSX38> 
	<3C7307AA.8010809@waitaki.otago.ac.nz>  <1015081485.935.106.camel@elsschot>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 03 Mar 2002 15:11:26 +0100
Message-Id: <1015164686.935.168.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sat, 2002-03-02 at 16:04, Mark Wielaard wrote:
> There is now also a corresponding Mauve test case. Although I have been
> unable to test it because for some reason my Orp doesn't like the CVS
> Classpath anymore :(

OK, found it. The refactoring of Class was to blame.
The following patch (which reverts that patch to rev 1.8) makes
Classpath work again with Orp 1.0.9:

Index: vm/reference/java/lang/Class.java
===================================================================
RCS file: /cvsroot/classpath/classpath/vm/reference/java/lang/Class.java,v
retrieving revision 1.19
diff -u -r1.19 Class.java
--- vm/reference/java/lang/Class.java	23 Feb 2002 09:19:52 -0000	1.19
+++ vm/reference/java/lang/Class.java	3 Mar 2002 14:03:14 -0000
@@ -136,11 +136,15 @@
    * @throws ExceptionInInitializerError if the class loads, but an exception
    *         occurs during initialization
    */
-  public static Class forName(String name) throws ClassNotFoundException
+  //XXX This does not need to be native.
+  public static native Class forName(String name)
+    throws ClassNotFoundException;
+  /*
   {
     return forName(name, true,
                    VMSecurityManager.getClassContext()[1].getClassLoader());
   }
+  */
 
   /**
    * Use the specified classloader to load and link a class. If the loader

Have not yet investigated why. But with this I could at least check
the Method.equals() changes with mauve (it really fixes the test case
I added, yeah!)

Cheers,

Mark


From mark@wildebeest.org Mon Mar 04 18:19:34 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16i1jy-0004hn-00; Mon, 04 Mar 2002 18:19:34 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16i1jb-0005fK-00; Tue, 05 Mar 2002 00:19:11 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16i1ju-0000cw-00; Tue, 05 Mar 2002 00:19:30 +0100
Subject: Re: java.util.logging
From: Mark Wielaard <mark@klomp.org>
To: Brian Gilstrap <brian@gilstrap.com>
Cc: Brian Jones <cbj@gnu.org>, Sascha Brawer <brawer@acm.org>, 
	classpath@gnu.org
In-Reply-To: <3C7E7F6B.3010109@gilstrap.com>
References:
	<m3it8hyc0r.fsf@lyta.haphazard.org>	<20020228160808.18622@pop.schoedler.ch>
	<m3lmddxyad.fsf@lyta.haphazard.org>  <3C7E7F6B.3010109@gilstrap.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 05 Mar 2002 00:19:30 +0100
Message-Id: <1015283970.29380.20.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Thu, 2002-02-28 at 20:05, Brian Gilstrap wrote:
> Sascha wrote:
>  >> (I really like some things in Lumberjack which I'd like to adapt,
>  >> of course giving due credit. But the question basically applies
>  >> to a lot of code, not only to Lumberjack).
> 
> Brian Jones wrote:
> 
>  > I really don't know, credit must be given always.  If it is more than
>  > 10 lines (total) of patch content then it probably falls under
>  > the copyright assignment desired bit, or maybe can be handled like
>  > gnu.java.math.MPN though I'm not sure when.  If you mean ideas that
>  > you reimplement then it probably doesn't matter.
> 
> Sascha and I are expecting to discuss our designs extensively. Since 
> both are open source, and since ideas that aren't patented can't be 
> owned (and I don't think any patentable ideas are lurking in either code 
> base :-), it seems to me that taking ideas from each other's code is 
> clearly okay.

The reason we normally warn people not to look at the source code (and
don't accept contributions of people that do) of a different
implementation  such as Suns source code are that 1) proprietary
software developers don't like people to look at their code without
agreeing to terms that normally forbid you to contribute to GNU and 2)
sometimes to be compatible with the API spec you will write some code
that looks remarkably like some other (compatible) implementation and
then it would be hard to prove that you didn't just copy the code you
just looked at (remember that to be serializable compatible you
sometimes even need to use the same variable names). 

See also <http://www.gnu.org/software/classpath/doc/hacking.html#SEC2>

Cheers,

Mark


From jleuner@elandtech.com Tue Mar 05 11:43:44 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16iI2S-0001LI-00
	for <classpath@gnu.org>; Tue, 05 Mar 2002 11:43:44 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16iHxw-0001yC-00; Tue, 05 Mar 2002 16:39:04 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16iHzW-0002jW-00; Tue, 05 Mar 2002 16:40:42 +0000
Date: Tue, 5 Mar 2002 16:40:42 +0000
From: John Leuner <jewel@pixie.co.za>
To: jikesrvm-researchers@www-124.ibm.com
Subject: GNU Classpath + JRVM -- JNI methods
Message-ID: <20020305164042.GF354@bapli>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hello everyone

(I've copied this message to the Classpath mailing list, but please reply on the jikes researchers list)

I've been making good progress with my port of the GNU Classpath java class libraries ( http://www.gnu.org/software/classpath/classpath.html ) to the Jikes RVM.

Currently I can run a hello world program (prints "hello world" to System.out) with most of the library classes coming from Classpath rather than the IBM OTI class libraries.

My short term aim is to run hello world with only Classpath and JRVM code (no OTI code).

To do this I still need to implement some java.io classes.

Classpath implements the functionality for these classes through JNI method calls to shared object libraries. 

I tried to set the LD_LIBRARY_PATH variable to the relevant directory for the libjavaio.so file, but when I try run this on Linux/IA32 I get this stack trace:

VM_Class: (begin) load LMainThread;
VM_DynamicLibrary looking for symbol Java_java_io_File_existsInternal
Got symbol address 1073842048 for Java_java_io_File_existsInternal
vm internal error at:

-- Stack --
   LVM; sysFail(Ljava/lang/String;)V at line 419
   LVM; _assertionFailure(Ljava/lang/String;)V at line 285
   LVM; assert(ZLjava/lang/String;)V at line 278
   LVM; assert(Z)V at line 261
   LVM_JNICompilerInfo; getExceptionDeliverer()LVM_ExceptionDeliverer; at
   line 32
   LVM_Runtime; deliverException(Ljava/lang/Throwable;LVM_Registers;)V at
   line 902
   LVM_Runtime; deliverHardwareException(II)V at line 735
   L<hardware>; <trap>()V at line 0
   Ljava/io/File; existsInternal(Ljava/lang/String;)Z at line 0
   Ljava/io/File; exists()Z at line 695
   Ljava/io/File; canRead()Z at line 563
   LVM_ClassLoader;
   searchRepositories(Ljava/lang/String;[Ljava/lang/String;)LVM_BinaryData;
   at line 589
   LVM_ClassLoader;
   getClassOrResourceDataInternal(Ljava/lang/String;)LVM_BinaryData; at
   line 514
   LVM_ClassLoader;
   getClassOrResourceData(Ljava/lang/String;)LVM_BinaryData; at line 488
   LVM_Class; load()V at line 742
   LVM_Runtime; initializeClassForDynamicLink(LVM_Class;)V at line 487
   LVM_Runtime; newScalar(I)Ljava/lang/Object; at line 214
   LVM; boot()V at line 216
vm: exit 1

Maria Butrico has suggested that JNI might be failing because it's too early in the system boot process. However this is happening in VM.boot here:

    VM_Collector.postBoot();

    // Work around class incompatibilities in boot image writer
    // (JDK's java.lang.Thread does not extend VM_Thread) [--IP].
--->Thread    xx         = new MainThread(applicationArguments);
    int       yy         = VM_Magic.objectAsAddress(xx);
    VM_Thread mainThread = (VM_Thread)VM_Magic.addressAsObject(yy);

I imagine that JNI should be working at this stage.

Whether I can get JNI to work or not might be a moot point. I assume the OTI libraries have been changed to use the sysCall methods (see VM_BootRecord) and it might be better for me to adapt the Classpath libraries to use these methods.

What do you think?

John Leuner







From brawer@acm.org Tue Mar 05 15:53:57 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16iLwa-0007SV-00; Tue, 05 Mar 2002 15:53:57 -0500
Received: from [195.15.166.49] (195.15.166.49) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C7B758400093BC4; Tue, 5 Mar 2002 21:52:56 +0100
From: Sascha Brawer <brawer@acm.org>
To: <classpath-admin@gnu.org>, Brian Gilstrap <brian@gilstrap.com>, Mark
 Wielaard <mark@klomp.org>
Cc: Brian Jones <cbj@gnu.org>, <classpath@gnu.org>
Subject: Inspecting [L]GPLed non-FSF code -- was: java.util.logging
Date: Tue, 5 Mar 2002 21:50:36 +0100
Message-Id: <20020305205036.9618@pop.schoedler.ch>
In-Reply-To: <1015283970.29380.20.camel@elsschot>
References: <1015283970.29380.20.camel@elsschot>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> wrote on Tue, 5 Mar 2002 00:19:30 +0100:

>The reason we normally warn people not to look at the source code (and
>don't accept contributions of people that do) of a different
>implementation  such as Suns source code are that 1) proprietary
>software developers don't like people to look at their code without
>agreeing to terms that normally forbid you to contribute to GNU and 2)
>sometimes to be compatible with the API spec you will write some code
>that looks remarkably like some other (compatible) implementation and
>then it would be hard to prove that you didn't just copy the code you
>just looked at (remember that to be serializable compatible you
>sometimes even need to use the same variable names). 

>See also <http://www.gnu.org/software/classpath/doc/hacking.html#SEC2>

I fully understand the importance of this.  The reason for my confusion
is that the code in question is not licensed under some proprietary
license, but under the Lesser GPL.  My assumption was that [L]GPL was
unproblematic.  But it surely makes sense to avoid any legal risk,
whenever possible.

So, should doc/hacking.html be amended by a clarification that the term
"proprietary" means anything whose copyright has not been assigned to the
FSF, including GPLed and LGPLed code? However, in case GPL/LGPLed code
was fine to inspect, it might be worth mentioning, as well.

As of java.util.logging -- by now, I've read Brian Gilstrap's code quite
extensively.  However, I did *not* change anything in my code so far,
with one exception: a date format string in XMLFormatter.java, line 77.

In case inspecting [L]GPLed code was decided to be unacceptable, I think
I should abstain from any future contributions to java.util.logging
(besides Mauve testlets).  The Classpath task manager now has a sub-
project for the logging API; it lists the open tasks.

Thanks for the clarification, and best regards,

-- Sascha

PS: I'll be glad to leave debugging the package to someone else. It just
seems a bit unfair to the next person.




From mark@wildebeest.org Tue Mar 05 17:01:35 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16iN03-0005yV-00; Tue, 05 Mar 2002 17:01:35 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16iMz2-0006ld-00; Tue, 05 Mar 2002 23:00:32 +0100
Received: from mark by elsschot with local (Exim 3.34 #1 (Debian))
	id 16iMzL-0000Aa-00; Tue, 05 Mar 2002 23:00:51 +0100
Subject: Re: Inspecting [L]GPLed non-FSF code -- was: java.util.logging
From: Mark Wielaard <mark@klomp.org>
To: Sascha Brawer <brawer@acm.org>
Cc: classpath-admin@gnu.org, Brian Gilstrap <brian@gilstrap.com>, Brian Jones
	 <cbj@gnu.org>, classpath@gnu.org
In-Reply-To: <20020305205036.9618@pop.schoedler.ch>
References: <1015283970.29380.20.camel@elsschot> 
	<20020305205036.9618@pop.schoedler.ch>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 05 Mar 2002 23:00:51 +0100
Message-Id: <1015365651.318.15.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Tue, 2002-03-05 at 21:50, Sascha Brawer wrote:
> I fully understand the importance of this.  The reason for my confusion
> is that the code in question is not licensed under some proprietary
> license, but under the Lesser GPL.  My assumption was that [L]GPL was
> unproblematic.  But it surely makes sense to avoid any legal risk,
> whenever possible.

OK, then my rant about proprietary software and restricted source code
was not completely relevant. Sorry for confusing you more. Of course
when the code in question is Free Software the author clearly wanted to
share ideas and get feedback. And with Free Software you never have to
agree to any restrictive terms before using or studying it. (Which still
does not mean that you can just copy it verbatim if the licenses
conflict. Or that you should not be carefull to make sure that you
really are implementing your own stuff.)

> As of java.util.logging -- by now, I've read Brian Gilstrap's code quite
> extensively.  However, I did *not* change anything in my code so far,
> with one exception: a date format string in XMLFormatter.java, line 77.

And in this particular case you both agreed that sharing ideas
(expressed in code) is a good thing and that you both would like to do
this. You have explicit permission for it so of course it is a good
thing to compare notes.

Cheers,

Mark


From cbj@gnu.org Tue Mar 05 19:08:07 2002
Received: from fe7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16iOyU-0000WZ-00
	for <classpath@gnu.org>; Tue, 05 Mar 2002 19:08:07 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 5 Mar 2002 19:08:05 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g26047u24978;
	Tue, 5 Mar 2002 19:04:07 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: "Cierniak, Michal" <michal.cierniak@intel.com>, classpath@gnu.org,
   "Wu, Gansha" <gansha.wu@intel.com>
Subject: Re: Method.equals()
References: <794826DE8867D411BAB8009027AE9EB90FE78250@FMSMSX38>
	<3C7307AA.8010809@waitaki.otago.ac.nz>
	<1015081485.935.106.camel@elsschot>
	<1015164686.935.168.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 05 Mar 2002 19:04:07 -0500
In-Reply-To: <1015164686.935.168.camel@elsschot>
Message-ID: <m3vgcablzc.fsf@lyta.haphazard.org>
Lines: 51
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> Hi,
> 
> On Sat, 2002-03-02 at 16:04, Mark Wielaard wrote:
> > There is now also a corresponding Mauve test case. Although I have been
> > unable to test it because for some reason my Orp doesn't like the CVS
> > Classpath anymore :(
> 
> OK, found it. The refactoring of Class was to blame.
> The following patch (which reverts that patch to rev 1.8) makes
> Classpath work again with Orp 1.0.9:
> 
> Index: vm/reference/java/lang/Class.java
> ===================================================================
> RCS file: /cvsroot/classpath/classpath/vm/reference/java/lang/Class.java,v
> retrieving revision 1.19
> diff -u -r1.19 Class.java
> --- vm/reference/java/lang/Class.java	23 Feb 2002 09:19:52 -0000	1.19
> +++ vm/reference/java/lang/Class.java	3 Mar 2002 14:03:14 -0000
> @@ -136,11 +136,15 @@
>     * @throws ExceptionInInitializerError if the class loads, but an exception
>     *         occurs during initialization
>     */
> -  public static Class forName(String name) throws ClassNotFoundException
> +  //XXX This does not need to be native.
> +  public static native Class forName(String name)
> +    throws ClassNotFoundException;
> +  /*
>    {
>      return forName(name, true,
>                     VMSecurityManager.getClassContext()[1].getClassLoader());
>    }
> +  */
>  
>    /**
>     * Use the specified classloader to load and link a class. If the loader
> 
> Have not yet investigated why. But with this I could at least check
> the Method.equals() changes with mauve (it really fixes the test case
> I added, yeah!)

Mark & Michal,

Should we open a bug on ORP for this in Sourceforge?  This seems like
a VM dependent layer change that should be documented if it has the
potential of breaking a VM.

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


From cbj@gnu.org Tue Mar 05 19:11:19 2002
Received: from fe5.southeast.rr.com ([24.93.67.52] helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16iP1b-0000fi-00
	for <classpath@gnu.org>; Tue, 05 Mar 2002 19:11:19 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 5 Mar 2002 19:11:18 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2607KS24998;
	Tue, 5 Mar 2002 19:07:20 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: mark@klomp.org
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: classpath ./ChangeLog ./THANKYOU java/lang/Syst...
References: <E16i0K4-0000F6-00@subversions.gnu.org>
From: Brian Jones <cbj@gnu.org>
Date: 05 Mar 2002 19:07:20 -0500
In-Reply-To: <E16i0K4-0000F6-00@subversions.gnu.org>
Message-ID: <m3r8mybltz.fsf@lyta.haphazard.org>
Lines: 30
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> CVSROOT:	/cvsroot/classpath
> Module name:	classpath
> Changes by:	Mark Wielaard <mark@klomp.org>	02/03/04 16:48:43
> 
> Modified files:
> 	.              : ChangeLog THANKYOU 
> 	java/lang      : System.java 
> 	java/io        : File.java 
> 
> Log message:
> 	* THANKYOU: Add Sascha Brawer
> 	* java/lang/System.java (static): Set java.io.tmpdir from java.tmpdir
> 	if not yet set.
> 	* java/io/File.java (createTempFile): Use java.io.tmpdir property not
> 	java.tmpdir.

Mark,

I think this change in System.java was a temporary fix for ORP, right?
If it is temporary we should write it down somewhere obvious so we can
change it back at some point.  Is java.io.tmpdir supposed to be coming
from the VM?

I don't think we mention this in the vm integration guide.

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


From mark@wildebeest.org Wed Mar 06 02:40:25 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16iW2D-0008HM-00; Wed, 06 Mar 2002 02:40:25 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16iW2B-0000Ce-00; Wed, 06 Mar 2002 08:40:23 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16iW2A-0004LS-00; Wed, 06 Mar 2002 08:40:22 +0100
Subject: Re: Method.equals()
From: Mark Wielaard <mark@klomp.org>
To: Brian Jones <cbj@gnu.org>
Cc: "Cierniak, Michal" <michal.cierniak@intel.com>, classpath@gnu.org, "Wu,
	Gansha" <gansha.wu@intel.com>
In-Reply-To: <m3vgcablzc.fsf@lyta.haphazard.org>
References: <794826DE8867D411BAB8009027AE9EB90FE78250@FMSMSX38>
	<3C7307AA.8010809@waitaki.otago.ac.nz> <1015081485.935.106.camel@elsschot>
	<1015164686.935.168.camel@elsschot>  <m3vgcablzc.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 06 Mar 2002 08:40:22 +0100
Message-Id: <1015400422.318.26.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Wed, 2002-03-06 at 01:04, Brian Jones wrote:
> 
> Should we open a bug on ORP for this in Sourceforge?  This seems like
> a VM dependent layer change that should be documented if it has the
> potential of breaking a VM.

Yes, Orp has a bug when you call SecurityManager.getClassContext().

But in this case it is not clear to me if making forName() not native is
always a good thing. Although it should always work it is potentially
slower since the VM has to reconstruct the complete all chain. Maybe we
need a native Class getCallingClass() method, which might be usefull in
other situations also (see ResourceBundle).

The recent changes to Class, ClassLoader and Throwable etc. should all
be clearly documented and the vmintegration guide should indicate which
tradeoffs a VM writer can make. It is on my TODO list, hopefully I have
some time next week, but if someone beats me to it, please be my guest
:)

Cheers,

Mark


From mark@wildebeest.org Wed Mar 06 02:46:56 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16iW8V-0008Tm-00; Wed, 06 Mar 2002 02:46:56 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16iW8U-0000Cw-00; Wed, 06 Mar 2002 08:46:54 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16iW8U-0004Mq-00; Wed, 06 Mar 2002 08:46:54 +0100
Subject: Re: classpath ./ChangeLog ./THANKYOU java/lang/Syst...
From: Mark Wielaard <mark@klomp.org>
To: Brian Jones <cbj@gnu.org>
Cc: GNU Classpath <classpath@gnu.org>
In-Reply-To: <m3r8mybltz.fsf@lyta.haphazard.org>
References: <E16i0K4-0000F6-00@subversions.gnu.org> 
	<m3r8mybltz.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 06 Mar 2002 08:46:54 +0100
Message-Id: <1015400814.318.33.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Wed, 2002-03-06 at 01:07, Brian Jones wrote:
> 
> I think this change in System.java was a temporary fix for ORP, right?
Yes, but also for every other VM out there since they probably did set
java.tmpdir and not java.io.tmpdir (otherwise java.io.File would not
work for them).

> If it is temporary we should write it down somewhere obvious so we can
> change it back at some point.
Yes, my TODO list is probably not very obvious :)
We should add this (and the temp workaround from last time in
VMClassLoader.getPrimitiveClass()) should be added to the vmintegration
guide.

> Is java.io.tmpdir supposed to be coming
> from the VM?
Yes, it is even documented in the JavaDoc of that method, but for some
reason VM writers seemed to use java.tmpdir instead (probably because
they noticed the bug in java.io.File).

Cheers,

Mark


From ebb9@email.byu.edu Wed Mar 06 17:15:09 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ijgj-0005sI-00
	for <classpath@gnu.org>; Wed, 06 Mar 2002 17:15:09 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020306221507.PMGG2626.rwcrmhc51.attbi.com@email.byu.edu>
          for <classpath@gnu.org>; Wed, 6 Mar 2002 22:15:07 +0000
Message-ID: <3C8694EA.1134C278@email.byu.edu>
Date: Wed, 06 Mar 2002 15:15:06 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath list <classpath@gnu.org>
Subject: StringBuffer question
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

How strictly do we want to match Sun on StringBuffer?  In the 1.4
Javadoc, many of the methods specify only @throws
IndexOutOfBoundsException, which can be done as a side-effect of array
operations.  Yet the JDK implementation seems to throw
StringIndexOutOfBoundsException (a subclass), which requires explicit
bounds checking.  The current Classpath implementation is a mix of both
approaches, depending on which method you look at.  It would be nice if
it were consistent.

Should we let the VM generate the more general exception implicitly,
skipping explicit checks where possible; or should I make sure that
Classpath throws the more specific StringIndexOutOfBoundsException any
time Sun does?

-- 
This signature intentionally left boring.

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


From cdcavanna@yahoo.com Wed Mar 06 18:11:59 2002
Received: from web10208.mail.yahoo.com ([216.136.130.72])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ikZj-00022O-00
	for <classpath@gnu.org>; Wed, 06 Mar 2002 18:11:59 -0500
Message-ID: <20020306231159.83776.qmail@web10208.mail.yahoo.com>
Received: from [24.114.69.209] by web10208.mail.yahoo.com via HTTP; Wed, 06 Mar 2002 15:11:59 PST
Date: Wed, 6 Mar 2002 15:11:59 -0800 (PST)
From: Carlos Cavanna <cdcavanna@yahoo.com>
Subject: Removing pthread and gthread
To: Classpath list <classpath@gnu.org>
In-Reply-To: <3C8694EA.1134C278@email.byu.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

I need to compile a version of classpath that
does not link with neither -lpthread nor -lgthread
(that is all I need to remove).

What would be the correct procedure to do it ?
I tried commenting out:
   AM_PATH_GLIB(1.2.4,,exit 1,gthread)

from configure.in but that is not a nice solution
as it seems to remove more than is necessary.
There has to be a higher level solution.

Thanks,
CC


__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/


From cbj@gnu.org Wed Mar 06 19:02:06 2002
Received: from mail7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ilMD-0005nl-00
	for <classpath@gnu.org>; Wed, 06 Mar 2002 19:02:06 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Wed, 6 Mar 2002 19:01:48 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g26NvaI30931;
	Wed, 6 Mar 2002 18:57:36 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: StringBuffer question
References: <3C8694EA.1134C278@email.byu.edu>
From: Brian Jones <cbj@gnu.org>
Date: 06 Mar 2002 18:57:36 -0500
In-Reply-To: <3C8694EA.1134C278@email.byu.edu>
Message-ID: <m3r8mx1c7j.fsf@lyta.haphazard.org>
Lines: 25
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

> How strictly do we want to match Sun on StringBuffer?  In the 1.4
> Javadoc, many of the methods specify only @throws
> IndexOutOfBoundsException, which can be done as a side-effect of array
> operations.  Yet the JDK implementation seems to throw
> StringIndexOutOfBoundsException (a subclass), which requires explicit
> bounds checking.  The current Classpath implementation is a mix of both
> approaches, depending on which method you look at.  It would be nice if
> it were consistent.
> 
> Should we let the VM generate the more general exception implicitly,
> skipping explicit checks where possible; or should I make sure that
> Classpath throws the more specific StringIndexOutOfBoundsException any
> time Sun does?

I cannot get at the javadoc at the moment for 1.4, it seems to only
partially load.  The implementation should match what is specified
explicitly, and where such language is missing match behaviour
instead.  Generally, software written to specification should not fail
with Classpath if it works in Sun's VM is what I think we strive toward.

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


From cbj@gnu.org Wed Mar 06 19:03:43 2002
Received: from fe5.southeast.rr.com ([24.93.67.52] helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16ilNn-0005rN-00
	for <classpath@gnu.org>; Wed, 06 Mar 2002 19:03:43 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Wed, 6 Mar 2002 19:03:42 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g26NxUA30939;
	Wed, 6 Mar 2002 18:59:30 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Carlos Cavanna <cdcavanna@yahoo.com>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: Removing pthread and gthread
References: <20020306231159.83776.qmail@web10208.mail.yahoo.com>
From: Brian Jones <cbj@gnu.org>
Date: 06 Mar 2002 18:59:30 -0500
In-Reply-To: <20020306231159.83776.qmail@web10208.mail.yahoo.com>
Message-ID: <m3n0xl1c4d.fsf@lyta.haphazard.org>
Lines: 22
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Carlos Cavanna <cdcavanna@yahoo.com> writes:

> Hi,
> 
> I need to compile a version of classpath that
> does not link with neither -lpthread nor -lgthread
> (that is all I need to remove).
> 
> What would be the correct procedure to do it ?
> I tried commenting out:
>    AM_PATH_GLIB(1.2.4,,exit 1,gthread)
> 
> from configure.in but that is not a nice solution
> as it seems to remove more than is necessary.
> There has to be a higher level solution.

Essentially work in a patch to configure.in and Makefile.am that
leaves out the relevant checks when leaving out the gtk peers.

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


From ebb9@email.byu.edu Wed Mar 06 20:12:42 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16imSX-0001tE-00; Wed, 06 Mar 2002 20:12:41 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020307011240.ZLQW1147.rwcrmhc52.attbi.com@email.byu.edu>;
          Thu, 7 Mar 2002 01:12:40 +0000
Message-ID: <3C86BE88.C1B69BDA@email.byu.edu>
Date: Wed, 06 Mar 2002 18:12:40 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
CC: Classpath list <classpath@gnu.org>
Subject: Re: StringBuffer question
References: <3C8694EA.1134C278@email.byu.edu> <m3r8mx1c7j.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones wrote:
> 
> I cannot get at the javadoc at the moment for 1.4, it seems to only
> partially load.  The implementation should match what is specified
> explicitly, and where such language is missing match behaviour
> instead.  Generally, software written to specification should not fail
> with Classpath if it works in Sun's VM is what I think we strive toward.

You're not the only one having problems reading the javadoc.  The web
page ends on a '\0' character - I think their server is truncating the
file when it hits the embedded null.  What I ended up doing, however,
was to download the documentation package (30 MB!) from Sun, and that
zip file contains a clean version of the StringBuffer.html file.

For example, setLength, the method that got truncated by Sun's servers,
is documented thus:

"public void setLength(int newLength)
...
"Parameters: newLength - the new length of the buffer. 
"Throws: IndexOutOfBoundsException - if the newLength argument is
negative.
"See Also: length()"

Yet my experiments show that Sun's implementation throws
StringIndexOutOfBoundsException.  Consider this code snippet:
void m(StringBuffer s, int i)
{
  try
    {
      s.setLength(i);
    }
  catch (StringIndexOutOfBoundsException e)
    {
    }
}

If you call m(new StringBuffer(), -1), the exception will be trapped by
Sun's implementation, but that behavior was not strictly documented.  So
back to my original question: Is the bounds check in the current
Classpath implementation of setLength necessary, or am I justified in
breaking the above snippet by removing the bounds check and throwing
IndexOutOfBoundsException instead?

  public synchronized void setLength(int newLength)
  {
// If this bounds check is skipped...
    if (newLength < 0)
      throw new StringIndexOutOfBoundsException(newLength);

    ensureCapacity_unsynchronized(newLength);
    for (int i = count; i < newLength; ++i)
// ... this line will throw IndexOutOfBoundsException
      value[i] = '\0';
    count = newLength;
  }

-- 
This signature intentionally left boring.

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


From bryce@waitaki.otago.ac.nz Wed Mar 06 20:33:15 2002
Received: from waitaki.otago.ac.nz ([139.80.75.140])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16immQ-0004GI-00; Wed, 06 Mar 2002 20:33:14 -0500
Received: from waitaki.otago.ac.nz (IDENT:bryce@reason.otago.ac.nz [139.80.119.17])
	by waitaki.otago.ac.nz (8.11.6/8.11.6) with ESMTP id g271Y1i21663;
	Thu, 7 Mar 2002 14:34:01 +1300
Message-ID: <3C86C319.1090709@waitaki.otago.ac.nz>
Date: Thu, 07 Mar 2002 14:32:09 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: Eric Blake <ebb9@email.byu.edu>
CC: Brian Jones <cbj@gnu.org>, Classpath list <classpath@gnu.org>
Subject: Re: StringBuffer question
References: <3C8694EA.1134C278@email.byu.edu> <m3r8mx1c7j.fsf@lyta.haphazard.org> <3C86BE88.C1B69BDA@email.byu.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake wrote:

>So back to my original question: Is the bounds check in the current
>Classpath implementation of setLength necessary, or am I justified in
>breaking the above snippet by removing the bounds check and throwing
>IndexOutOfBoundsException instead?
>

Iit would be nice to do that, and it would not be incorrect according to 
the JDK 1.4 docs.

However, in the JCL, setLength() and other StringBuffer methods are 
explicitly defined to throw the StringIndexOutOfBoundsException.

Although I'm usually inclined to follow the Javadoc spec in preference 
to the JCL, given that there is some chance that changing it would break 
exisiting code, in this case I think it is safer to stick with the 
existing behaviour.

regards

Bryce.




From ebb9@email.byu.edu Wed Mar 06 23:31:19 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16ipYl-0007Xq-00; Wed, 06 Mar 2002 23:31:19 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020307043114.GPXL1147.rwcrmhc52.attbi.com@email.byu.edu>;
          Thu, 7 Mar 2002 04:31:14 +0000
Message-ID: <3C86ED11.9F84E477@email.byu.edu>
Date: Wed, 06 Mar 2002 21:31:13 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
CC: Brian Jones <cbj@gnu.org>, Classpath list <classpath@gnu.org>
Subject: Re: StringBuffer question
References: <3C8694EA.1134C278@email.byu.edu>
	 <m3r8mx1c7j.fsf@lyta.haphazard.org> <3C86BE88.C1B69BDA@email.byu.edu> <3C86C319.1090709@waitaki.otago.ac.nz>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Bryce McKinlay wrote:
> 
> However, in the JCL, setLength() and other StringBuffer methods are
> explicitly defined to throw the StringIndexOutOfBoundsException.

Thanks for the clarification.  I will document the methods in question
as:
* @throws IndexOutOfBoundsException <description...>
*        (while unspecified, this is a StringIndexOutOfBoundsException)

Is there a way to access the JCL online?  It's not listed on the Hacking
page: http://www.gnu.org/software/classpath/doc/hacking.html

Another question on the original topic.  Do we try to match which
exception is thrown when multiple problems occur?  For example, new
String(byte[], int, int, String) can throw a NullPointerException from a
null encoding or byte[], IndexOutOfBoundsException from bad indices, or
UnsupportedEncodingException from an unknown encoding. My experiments
show that Sun checks for a null encoding, then for negative indices,
then a null byte[], then indices too large, and finally for an unknown
encoding.  However, Classpath and libjava have different orders for
checking, so the three implementations currently have different behavior
for this snippet:

new String(new byte[1], -1, 0, null);
new String(null, -1, 0, "foobar");

Sun: NullPointer, StringIndexOutOfBounds
Classpath: StringIndexOutOfBounds, StringIndexOutOfBounds
libjava: ArrayIndexOutOfBounds, NullPointer

My opinion is that it doesn't matter which exception is thrown, so long
as one of them is (mainly because checking for a null encoding before
checking bounds, but for an unknown encoding after, is less efficient
then doing both encoding checks at once).  That ArrayIndexOutOfBounds in
libjava should probably be switched to StringIndexOutOfBounds, though.

If it isn't obvious by now, I'm trying to merge String and StringBuffer
between Classpath and libjava, insofar as possible.  This includes
adding better data sharing and substring support to Classpath.  Of
course, I'm tackling the all-Java version of Classpath before trying to
modify gcj with its native support.

-- 
This signature intentionally left boring.

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


From ebb9@email.byu.edu Fri Mar 08 11:53:20 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16jNcN-0004NV-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 11:53:20 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020308165314.CSLG2626.rwcrmhc51.attbi.com@email.byu.edu>
          for <classpath@gnu.org>; Fri, 8 Mar 2002 16:53:14 +0000
Message-ID: <3C88EC6D.1CD7074F@email.byu.edu>
Date: Fri, 08 Mar 2002 09:53:01 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath list <classpath@gnu.org>
Subject: environment and compiling with jikes
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I ran into a problem when compiling with Jikes.  I had set the
environment variable BOOTCLASSPATH to Sun's rt.jar, so that I could use
jikes as a dropin replacement to javac, without specifying -classpath,
for regular Java files (ie. not from the Classpath project).  When I
back went to compile Classpath, this sucked in files from rt.jar when
they didn't appear in Classpath, and gave me a clean compile even though
I was expecting failure (because I referenced java.util.regex, which is
not yet in Classpath).

Someone with a little more autoconf knowledge than me should figure out
how to make the default command-line arguments to Jikes include an
explicit -bootclasspath to override any environment variable.  The
cleanest way to guarantee that Jikes is only compiling Classpath files,
and not mixing in some other library because of the environment, is to
compile with these flags:

jikes -bootclasspath '' -extdirs '' -sourcepath '' -classpath <path to
all Classpath files> @classes

-- 
This signature intentionally left boring.

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


From jleuner@elandtech.com Fri Mar 08 13:34:20 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16jPC7-0004Y5-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 13:34:20 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16jP7Y-0008VE-00; Fri, 08 Mar 2002 18:29:36 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16jP93-0003wA-00; Fri, 08 Mar 2002 18:31:09 +0000
Date: Fri, 8 Mar 2002 18:31:09 +0000
From: John Leuner <jewel@pixie.co.za>
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
Subject: cvs commits and java.util.regex
Message-ID: <20020308183109.GO354@bapli>
References: <3C88EC6D.1CD7074F@email.byu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3C88EC6D.1CD7074F@email.byu.edu>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> I ran into a problem when compiling with Jikes.  I had set the
> environment variable BOOTCLASSPATH to Sun's rt.jar, so that I could use
> jikes as a dropin replacement to javac, without specifying -classpath,
> for regular Java files (ie. not from the Classpath project).  When I
> back went to compile Classpath, this sucked in files from rt.jar when
> they didn't appear in Classpath, and gave me a clean compile even though
> I was expecting failure (because I referenced java.util.regex, which is
> not yet in Classpath).
> 
> Someone with a little more autoconf knowledge than me should figure out
> how to make the default command-line arguments to Jikes include an
> explicit -bootclasspath to override any environment variable.  The
> cleanest way to guarantee that Jikes is only compiling Classpath files,
> and not mixing in some other library because of the environment, is to
> compile with these flags:
> 
> jikes -bootclasspath '' -extdirs '' -sourcepath '' -classpath <path to
> all Classpath files> @classes

How should we build Classpath without regex?

John


From wes@cacas.org Fri Mar 08 14:14:58 2002
Received: from [63.241.58.110] (helo=www.gmocorp.com)
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16jPpS-0006Uc-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 14:14:58 -0500
Received: from cacas.org ([64.232.88.230]) by www.gmocorp.com ; Fri, 08 Mar 2002 11:20:45 -0800
Message-ID: <3C890DDE.1030707@cacas.org>
Date: Fri, 08 Mar 2002 11:15:42 -0800
From: Wes Biggs <wes@cacas.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204
X-Accept-Language: en-us
MIME-Version: 1.0
To: Classpath list <classpath@gnu.org>
Subject: Re: cvs commits and java.util.regex
References: <3C88EC6D.1CD7074F@email.byu.edu> <20020308183109.GO354@bapli>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

John Leuner wrote:
>>they didn't appear in Classpath, and gave me a clean compile even though
>>I was expecting failure (because I referenced java.util.regex, which is
>>not yet in Classpath).
> 
> How should we build Classpath without regex?

I think the short answer right now is that Classpath doesn't support 
regex, so those classes would have to come from rt.jar.

However, I am working on getting java.util.regex code into Classpath -- 
per the discussion last week I would like to check in the 
java.util.regex classes and update the build to use the gnu.regexp JAR 
to compile against.

Email me if you want code right away.

Wes



From jleuner@elandtech.com Fri Mar 08 14:19:11 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16jPtW-0006kh-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 14:19:11 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16jPoV-0000C9-00; Fri, 08 Mar 2002 19:13:59 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16jPq1-0004iY-00; Fri, 08 Mar 2002 19:15:33 +0000
Date: Fri, 8 Mar 2002 19:15:33 +0000
From: John Leuner <jewel@pixie.co.za>
To: Wes Biggs <wes@cacas.org>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: cvs commits and java.util.regex
Message-ID: <20020308191533.GP354@bapli>
References: <3C88EC6D.1CD7074F@email.byu.edu> <20020308183109.GO354@bapli> <3C890DDE.1030707@cacas.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3C890DDE.1030707@cacas.org>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> >>they didn't appear in Classpath, and gave me a clean compile even though
> >>I was expecting failure (because I referenced java.util.regex, which is
> >>not yet in Classpath).
> >
> >How should we build Classpath without regex?
> 
> I think the short answer right now is that Classpath doesn't support 
> regex, so those classes would have to come from rt.jar.
> 
> However, I am working on getting java.util.regex code into Classpath -- 
> per the discussion last week I would like to check in the 
> java.util.regex classes and update the build to use the gnu.regexp JAR 
> to compile against.
> 
> Email me if you want code right away.
> 

I wrote empty classes to allow compilation (I specifically don't want to compile against foreign classes for the stuff I'm doing).

John Leuner


From mark@klomp.org Fri Mar 08 15:15:40 2002
Received: from [212.0.243.3] (helo=mx0.tryllian.com)
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16jQmB-0002kL-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 15:15:39 -0500
Received: (qmail 15339 invoked from network); 8 Mar 2002 20:15:10 -0000
Received: from unknown (HELO florijn.intra.tryllian.net) (212.0.243.10)
  by outcast.tryllian.com with SMTP; 8 Mar 2002 20:15:10 -0000
Subject: Please keep Classpath in a working state (Was: cvs commits and
	java.util.regex)
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
In-Reply-To: <3C890DDE.1030707@cacas.org>
References: <3C88EC6D.1CD7074F@email.byu.edu> <20020308183109.GO354@bapli> 
	<3C890DDE.1030707@cacas.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 08 Mar 2002 21:15:13 +0100
Message-Id: <1015618514.15636.255.camel@florijn>
Mime-Version: 1.0
X-Message: scanned for viruses by AMaViS
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Fri, 2002-03-08 at 20:15, Wes Biggs wrote:
> John Leuner wrote:
> >>they didn't appear in Classpath, and gave me a clean compile even though
> >>I was expecting failure (because I referenced java.util.regex, which is
> >>not yet in Classpath).
> > 
> > How should we build Classpath without regex?
> 
> I think the short answer right now is that Classpath doesn't support 
> regex, so those classes would have to come from rt.jar.

Please no. Classpath is now at a point that it can be compiled with
only free tools. Please keep it that way. I think the String changes
should not have been checked in.

For classes that are really standalone and that you want to have in
the CVS repository you can add them to the lib/standard.omit file
so they don't interfere with the build (although I would like to keep
that file as small as possible, ideally it would be empty).

If that is really not a option then you should either work on a branch
or check in stub classes.

Please, please, please, always keep the tree compiling and working with
the VM-interface we currently have. Sometimes you have to break it to
make progress, but in that case please warn everybody by posting your
patch to the mailinglist first before you check in and explain what
people should do to keep on working with their current setup.

Maybe we could define a minimum setup that is "easy" for everybody to
get working? I would propose using jikes (1.15+) and orp (1.0.9+) as the
minimum setup that always needs to work for compiling/running Hello
World with Classpath. That way someone can always fall back to 
Is Classpath/Jikes/Orp available on all platforms that the Classpath
hackers currently use? Orp might be a bit x86 specific, but no other
free VM is currently so easy to use with Classpath out of the box.
Does the Classpath build work on a MSWindows/CygWin (sp?) system?

> However, I am working on getting java.util.regex code into Classpath -- 
> per the discussion last week I would like to check in the 
> java.util.regex classes and update the build to use the gnu.regexp JAR 
> to compile against.
> 
> Email me if you want code right away.

How long before this work will be finished? Would it be possible to
create stubs from your code at the moment? If yes, then please send them
to me and I will do it and check them in so the tree at least builds
again.

Thanks,

Mark



From ebb9@email.byu.edu Fri Mar 08 15:36:12 2002
Received: from rwcrmhc53.attbi.com ([204.127.198.39])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16jR64-0005Ls-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 15:36:12 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc53.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020308203610.ZZKT2951.rwcrmhc53.attbi.com@email.byu.edu>;
          Fri, 8 Mar 2002 20:36:10 +0000
Message-ID: <3C8920B4.49AF9132@email.byu.edu>
Date: Fri, 08 Mar 2002 13:36:04 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: Please keep Classpath in a working state (Was: cvs commits 
 andjava.util.regex)
References: <3C88EC6D.1CD7074F@email.byu.edu> <20020308183109.GO354@bapli>
	 <3C890DDE.1030707@cacas.org> <1015618514.15636.255.camel@florijn>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:
> 
> 
> Please no. Classpath is now at a point that it can be compiled with
> only free tools. Please keep it that way. I think the String changes
> should not have been checked in.

No String changes that depend on java.util.regex were checked in.  My
conversation started because I added the dependency in my local tree,
and EXPECTED a failure, knowing that java.util.regex was non-existant,
just to see what I would have to add.  But I am not planning on
committing anything which will break the build.

> 
> For classes that are really standalone and that you want to have in
> the CVS repository you can add them to the lib/standard.omit file
> so they don't interfere with the build (although I would like to keep
> that file as small as possible, ideally it would be empty).
> 
> If that is really not a option then you should either work on a branch
> or check in stub classes.

If I check in anything, I will either leave the implementation in
String.java as
 throw new InternalError("unimplemented");
or else add stub classes in java.util.regex which do the same. Actually,
now that I think about it, putting the error in a stub class is better,
because then we won't have to go back and change String.

> 
> Please, please, please, always keep the tree compiling and working with
> the VM-interface we currently have. Sometimes you have to break it to
> make progress, but in that case please warn everybody by posting your
> patch to the mailinglist first before you check in and explain what
> people should do to keep on working with their current setup.

I agree with this (and if I've been guilty of breaking things in the
past, I'm sorry).

> 
> Maybe we could define a minimum setup that is "easy" for everybody to
> get working? I would propose using jikes (1.15+)

1.15b, actually, available from Jikes CVS - the jikes 1.15 release has
problems.

> and orp (1.0.9+) as the
> minimum setup that always needs to work for compiling/running Hello
> World with Classpath. That way someone can always fall back to
> Is Classpath/Jikes/Orp available on all platforms that the Classpath
> hackers currently use?

No, I'm on Cygwin, and have yet to compile a successful free VM (or for
that matter gcj).  However, I haven't really sat down and tried tweaking
ORP, yet, so maybe I can get it to work if I put some effort into it.

> Orp might be a bit x86 specific, but no other
> free VM is currently so easy to use with Classpath out of the box.
> Does the Classpath build work on a MSWindows/CygWin (sp?) system?

The build works out of the box, but only builds the .class files (no
native support).  At least, I haven't gotten native support to work.

-- 
This signature intentionally left boring.

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


From jleuner@elandtech.com Fri Mar 08 15:41:16 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16jRAx-0005fp-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 15:41:15 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16jR61-0000Qg-00; Fri, 08 Mar 2002 20:36:09 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16jR7W-0005hJ-00; Fri, 08 Mar 2002 20:37:42 +0000
Date: Fri, 8 Mar 2002 20:37:42 +0000
From: John Leuner <jewel@pixie.co.za>
To: Mark Wielaard <mark@klomp.org>
Cc: classpath@gnu.org
Subject: Re: Please keep Classpath in a working state (Was: cvs commits and java.util.regex)
Message-ID: <20020308203742.GQ354@bapli>
References: <3C88EC6D.1CD7074F@email.byu.edu> <20020308183109.GO354@bapli> <3C890DDE.1030707@cacas.org> <1015618514.15636.255.camel@florijn>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1015618514.15636.255.camel@florijn>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> > > How should we build Classpath without regex?
> > 
> > I think the short answer right now is that Classpath doesn't support 
> > regex, so those classes would have to come from rt.jar.
> 
> Please no. Classpath is now at a point that it can be compiled with
> only free tools. Please keep it that way. I think the String changes
> should not have been checked in.
> ...
> 
> How long before this work will be finished? Would it be possible to
> create stubs from your code at the moment? If yes, then please send them
> to me and I will do it and check them in so the tree at least builds
> again.

I'll check my stub classes in now.

John Leuner


From jleuner@elandtech.com Fri Mar 08 16:57:22 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16jSMb-0003X6-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 16:57:21 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16jSH7-0000eL-00; Fri, 08 Mar 2002 21:51:41 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16jSId-00061l-00; Fri, 08 Mar 2002 21:53:15 +0000
Date: Fri, 8 Mar 2002 21:53:15 +0000
From: John Leuner <jewel@pixie.co.za>
To: Wes Biggs <wes@cacas.org>
Cc: Mark Wielaard <mark@klomp.org>, classpath@gnu.org
Subject: Re: Please keep Classpath in a working state (Was: cvs commits and java.util.regex)
Message-ID: <20020308215315.GS354@bapli>
References: <3C88EC6D.1CD7074F@email.byu.edu> <20020308183109.GO354@bapli> <3C890DDE.1030707@cacas.org> <1015618514.15636.255.camel@florijn> <20020308203742.GQ354@bapli> <3C893095.4090502@cacas.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3C893095.4090502@cacas.org>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Fri, Mar 08, 2002 at 01:43:49PM -0800, Wes Biggs wrote:
> 
> >>How long before this work will be finished? Would it be possible to
> >>create stubs from your code at the moment? If yes, then please send them
> >>to me and I will do it and check them in so the tree at least builds
> >>again.
> >>
> >
> >I'll check my stub classes in now.
> 
> Hmm.. after reading that the build is not actually broken, does it 
> really make sense to check in do-nothing code?

Well ... Eric seems to think he hasn't checked his changes in, but he has :-)
 
> The only thing that accomplishes is matching the JDK 1.4 interface, it 
> doesn't add any functionality.  Can we wait on split() functionality for 
> the real regex implementation? (I have to sign paperwork for copyright 
> assignment).

It's done already, it's really only a few lines.

The dependency from String -> Pattern is just one or two method calls.

John Leuner



From mark@wildebeest.org Fri Mar 08 17:04:21 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16jSTN-0003sT-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 17:04:21 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16jSTD-0002yr-00; Fri, 08 Mar 2002 23:04:11 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16jSTE-0000RV-00; Fri, 08 Mar 2002 23:04:12 +0100
Subject: Re: Please keep Classpath in a working state (Was: cvs commits 
	andjava.util.regex)
From: Mark Wielaard <mark@klomp.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: classpath@gnu.org
In-Reply-To: <3C8920B4.49AF9132@email.byu.edu>
References: <3C88EC6D.1CD7074F@email.byu.edu> <20020308183109.GO354@bapli>
	<3C890DDE.1030707@cacas.org> <1015618514.15636.255.camel@florijn> 
	<3C8920B4.49AF9132@email.byu.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 08 Mar 2002 23:04:12 +0100
Message-Id: <1015625052.32754.12.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Fri, 2002-03-08 at 21:36, Eric Blake wrote:

> But I am not planning on committing anything which will break
> the build.

It came in with this commit although the changelog entry does
not mention it, so you probably comitted from the wrong working
directory:

        2002-03-07  Eric Blake  <ebb9@email.byu.edu>
        
        * java/lang/String.java: Improve Javadoc and formatting.
        * java/lang/StringBuffer.java: Ditto.

http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/java/lang/String.java.diff?tr1=1.37&tr2=1.38&r1=text&r2=text

> now that I think about it, putting the error in a stub class is better,
> because then we won't have to go back and change String.
This is exactly which John just checked in. Everything compiles again.
Thanks John.

> > and orp (1.0.9+) as the
> > minimum setup that always needs to work for compiling/running Hello
> > World with Classpath. That way someone can always fall back to
> > Is Classpath/Jikes/Orp available on all platforms that the Classpath
> > hackers currently use?
> 
> No, I'm on Cygwin, and have yet to compile a successful free VM (or for
> that matter gcj).  However, I haven't really sat down and tried tweaking
> ORP, yet, so maybe I can get it to work if I put some effort into it.

Would it help if we got you off this non-free proprietary platform?
I could sent you a copy of my Debian CDs :)

Cheers,

Mark


From wes@cacas.org Fri Mar 08 17:16:53 2002
Received: from [63.241.58.110] (helo=www.gmocorp.com)
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16jS95-0002H4-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 16:43:23 -0500
Received: from cacas.org ([64.232.88.230]) by www.gmocorp.com ; Fri, 08 Mar 2002 13:48:52 -0800
Message-ID: <3C893095.4090502@cacas.org>
Date: Fri, 08 Mar 2002 13:43:49 -0800
From: Wes Biggs <wes@cacas.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204
X-Accept-Language: en-us
MIME-Version: 1.0
To: John Leuner <jewel@pixie.co.za>
CC: Mark Wielaard <mark@klomp.org>, classpath@gnu.org
Subject: Re: Please keep Classpath in a working state (Was: cvs commits and java.util.regex)
References: <3C88EC6D.1CD7074F@email.byu.edu> <20020308183109.GO354@bapli> <3C890DDE.1030707@cacas.org> <1015618514.15636.255.camel@florijn> <20020308203742.GQ354@bapli>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>How long before this work will be finished? Would it be possible to
>>create stubs from your code at the moment? If yes, then please send them
>>to me and I will do it and check them in so the tree at least builds
>>again.
>>
> 
> I'll check my stub classes in now.

Hmm.. after reading that the build is not actually broken, does it 
really make sense to check in do-nothing code?

The only thing that accomplishes is matching the JDK 1.4 interface, it 
doesn't add any functionality.  Can we wait on split() functionality for 
the real regex implementation? (I have to sign paperwork for copyright 
assignment).

Wes



From ebb9@email.byu.edu Fri Mar 08 18:32:40 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16jTqq-0003e9-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 18:32:40 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020308233236.QDGI2626.rwcrmhc51.attbi.com@email.byu.edu>;
          Fri, 8 Mar 2002 23:32:36 +0000
Message-ID: <3C894A0F.33B552C5@email.byu.edu>
Date: Fri, 08 Mar 2002 16:32:31 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: classpath@gnu.org
Subject: Re: Please keep Classpath in a working state (Was: cvs 
 commitsandjava.util.regex)
References: <3C88EC6D.1CD7074F@email.byu.edu> <20020308183109.GO354@bapli>
	 <3C890DDE.1030707@cacas.org> <1015618514.15636.255.camel@florijn>
	 <3C8920B4.49AF9132@email.byu.edu> <1015625052.32754.12.camel@elsschot>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard wrote:
> 
> It came in with this commit although the changelog entry does
> not mention it, so you probably comitted from the wrong working
> directory:
> 
>         2002-03-07  Eric Blake  <ebb9@email.byu.edu>
> 
>         * java/lang/String.java: Improve Javadoc and formatting.
>         * java/lang/StringBuffer.java: Ditto.

Bah, you're right - I had specifically commented out all the methods for
matches() and split(), but did not comment out the import statement.  I
guess my BOOTCLASSPATH environment variable has been a lurking bug
longer than I realized :(  I plan to check in my latest revision of
String soon (which fixes toUpperCase); and this time I will make sure
that Classpath is self-contained.

> > No, I'm on Cygwin, and have yet to compile a successful free VM (or for
> > that matter gcj).  However, I haven't really sat down and tried tweaking
> > ORP, yet, so maybe I can get it to work if I put some effort into it.
> 
> Would it help if we got you off this non-free proprietary platform?
> I could sent you a copy of my Debian CDs :)

Well, I recently got a larger hard drive, so I have slowly been in the
process of converting my machine into a dual boot.  I already have
access to some Linux distro CDs, but thanks for the offer.  But even if
I start doing most of my hacking in GNU/Linux, I still think it is nice
to try to accomodate cygwin.

-- 
This signature intentionally left boring.

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


From mark@wildebeest.org Fri Mar 08 19:01:34 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16jUIo-0005S8-00
	for <classpath@gnu.org>; Fri, 08 Mar 2002 19:01:34 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16jUIi-00036k-00; Sat, 09 Mar 2002 01:01:28 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16jUIj-00035k-00; Sat, 09 Mar 2002 01:01:29 +0100
Subject: Re: environment and compiling with jikes
From: Mark Wielaard <mark@klomp.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
In-Reply-To: <3C88EC6D.1CD7074F@email.byu.edu>
References: <3C88EC6D.1CD7074F@email.byu.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 09 Mar 2002 01:01:29 +0100
Message-Id: <1015632089.32754.71.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Fri, 2002-03-08 at 17:53, Eric Blake wrote:
> Someone with a little more autoconf knowledge than me should figure out
> how to make the default command-line arguments to Jikes include an
> explicit -bootclasspath to override any environment variable.  The
> cleanest way to guarantee that Jikes is only compiling Classpath files,
> and not mixing in some other library because of the environment, is to
> compile with these flags:
> 
> jikes -bootclasspath '' -extdirs '' -sourcepath '' -classpath <path to
> all Classpath files> @classes

That was actually easy:

--- lib/Makefile.am	18 Feb 2002 20:52:17 -0000	1.41
+++ lib/Makefile.am	8 Mar 2002 23:51:20 -0000
@@ -45,7 +45,7 @@
 # handling javac definition including programs like jikes here
 #-----------------------------------------------------------------
 if FOUND_JIKES
-JAVAC = $(JIKES) +F $(ARG_CLASSPATH_JAVAC) $(top_srcdir):$(top_builddir)/vm/current:.:$(USER_CLASSLIB) -d . @classes
+JAVAC = $(JIKES) +F -bootclasspath '' -extdirs '' -sourcepath '' $(ARG_CLASSPATH_JAVAC) $(top_srcdir):$(top_builddir)/vm/current:.:$(USER_CLASSLIB) -d . @classes
 else
 if FOUND_GCJ
 JAVAC = $(GCJ) -C -d . @classes

So the actual jikes command that is run from lib during the build is:

/usr/bin/jikes +F -bootclasspath '' -extdirs '' -sourcepath ''
-classpath ..:../vm/current:.: -d . @classes

If I followed the gcj mailinglist correctly then the next version of gcj
will also know about these flags. And I believe the latest kjc also
handles them so we might want to do this for all compilers in the
future.

(Note to Debian loving people: Jikes Version 1.15b(CVS) - 9 Feb 2002
just entered unstable!)

I also added the following stub to Socket.java so java.util.logging can
actually compile:

--- java/net/Socket.java	22 Jan 2002 22:27:00 -0000	1.11
+++ java/net/Socket.java	8 Mar 2002 23:51:20 -0000
@@ -667,4 +667,13 @@
 
     factory = fac;
   }
+
+  public void shutdownInput() throws IOException
+  {
+  }
+
+  public void shutdownOutput() throws IOException
+  {
+  }
+
 }

And this small reversal of a Class.java change that made it impossible
to use it with Orp 1.0.9.

--- vm/reference/java/lang/Class.java	23 Feb 2002 09:19:52 -0000	1.19
+++ vm/reference/java/lang/Class.java	8 Mar 2002 23:51:21 -0000
@@ -136,11 +136,15 @@
    * @throws ExceptionInInitializerError if the class loads, but an exception
    *         occurs during initialization
    */
-  public static Class forName(String name) throws ClassNotFoundException
+  //XXX This does not need to be native.
+  public static native Class forName(String name)
+    throws ClassNotFoundException;
+  /*
   {
     return forName(name, true,
                    VMSecurityManager.getClassContext()[1].getClassLoader());
   }
+  */
 
   /**
    * Use the specified classloader to load and link a class. If the loader


Cheers,

Mark


From brawer@acm.org Sat Mar 09 10:40:09 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16jix6-0006lL-00
	for <classpath@gnu.org>; Sat, 09 Mar 2002 10:40:09 -0500
Received: from [195.15.166.15] (195.15.166.15) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C89761F00009CEF for classpath@gnu.org; Sat, 9 Mar 2002 16:39:12 +0100
From: Sascha Brawer <brawer@acm.org>
To: Classpath list <classpath@gnu.org>
Subject: Re: environment and compiling with jikes
Date: Sat, 9 Mar 2002 16:36:58 +0100
Message-Id: <20020309153658.14303@pop.schoedler.ch>
In-Reply-To: <1015632089.32754.71.camel@elsschot>
References: <1015632089.32754.71.camel@elsschot>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> wrote on Sat, 9 Mar 2002 01:01:29 +0100:

>I also added the following stub to Socket.java so java.util.logging can
>actually compile:

Thanks for this.  However, please do not make java.util.logging part of
the standard build.  The code is not ready yet "for production" (but I'm
working on this).

-- Sascha




From mark@wildebeest.org Sun Mar 10 08:45:19 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16k3dX-0002Iz-00
	for <classpath@gnu.org>; Sun, 10 Mar 2002 08:45:19 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16k3dS-00051U-00
	for <classpath@gnu.org>; Sun, 10 Mar 2002 14:45:14 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16k3dV-0004hJ-00
	for <classpath@gnu.org>; Sun, 10 Mar 2002 14:45:17 +0100
Subject: Re: environment and compiling with jikes
From: Mark Wielaard <mark@klomp.org>
To: Classpath list <classpath@gnu.org>
In-Reply-To: <20020309153658.14303@pop.schoedler.ch>
References: <1015632089.32754.71.camel@elsschot> 
	<20020309153658.14303@pop.schoedler.ch>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 10 Mar 2002 14:45:16 +0100
Message-Id: <1015767916.17891.6.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Sat, 2002-03-09 at 16:36, Sascha Brawer wrote:
> Mark Wielaard <mark@klomp.org> wrote on Sat, 9 Mar 2002 01:01:29 +0100:
> 
> >I also added the following stub to Socket.java so java.util.logging can
> >actually compile:
> 
> Thanks for this.  However, please do not make java.util.logging part of
> the standard build.  The code is not ready yet "for production" (but I'm
> working on this).

What we could do is what I did for the java.util.prefs code (which I
still have to finish...), add it to the lib/standard.omit file. The
downside of doing this is that the classes are not even compiled when
doing a standard make, so if you accidentially introduce errors others
won't spot them.

On the other hand Classpath as a whole is still alpha software, so if
java.util.logging is basically correct then I would like to include it
with the rest (release early, release often, etc.). Do you have a
KNOWN_BUGS/TODO list for java.util.logging?

Cheers,

Mark


From brawer@acm.org Mon Mar 11 03:38:03 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kLJj-0007Up-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 03:38:03 -0500
Received: from [195.15.166.184] (195.15.166.184) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C89761F0002B22C for classpath@gnu.org; Mon, 11 Mar 2002 09:36:56 +0100
From: Sascha Brawer <brawer@acm.org>
To: Classpath list <classpath@gnu.org>
Subject: Re: environment and compiling with jikes
Date: Mon, 11 Mar 2002 09:33:17 +0100
Message-Id: <20020311083317.6725@pop.schoedler.ch>
In-Reply-To: <1015767916.17891.6.camel@elsschot>
References: <1015767916.17891.6.camel@elsschot>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> wrote on Sun, 10 Mar 2002 14:45:16 +0100:

>On the other hand Classpath as a whole is still alpha software, so if
>java.util.logging is basically correct then I would like to include it
>with the rest (release early, release often, etc.).

I'd say the logging code is basically correct, but still alpha quality.

>Do you have a KNOWN_BUGS/TODO list for java.util.logging?

https://savannah.gnu.org/pm/task.php?group_id=85&group_project_id=347

-- Sascha




From rveldema@cs.vu.nl Mon Mar 11 09:27:07 2002
Received: from star.cs.vu.nl ([130.37.24.6])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kQlX-0003Qg-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 09:27:07 -0500
Received: from cs.vu.nl (neptune.cs.vu.nl [130.37.30.87])
	by star.cs.vu.nl with esmtp
	(Smail #74) id m16kQlW-000C4RC; Mon, 11 Mar 2002 15:27 +0100
Message-ID: <3C8CBEBA.50509@cs.vu.nl>
Date: Mon, 11 Mar 2002 15:27:06 +0100
From: "R.S. Veldema" <rveldema@cs.vu.nl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020123
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath@gnu.org
Subject: configure & errors
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>


Hi all,
    well, checked out a classpath tree and it bombs out on me in configure:

 ./configure --with-javah=/usr/local/bin/javah

<checking bla deleted>

configure: error: conditional "USER_SPECIFIED_JAVAH" was never defined.
Usually this means the macro was only invoked conditionally.

removing the --with-javah doesn't help.
What am i doing wrong ?
R.



From rveldema@cs.vu.nl Mon Mar 11 11:02:54 2002
Received: from star.cs.vu.nl ([130.37.24.6])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kSGE-0002sJ-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 11:02:54 -0500
Received: from cs.vu.nl (neptune.cs.vu.nl [130.37.30.87])
	by star.cs.vu.nl with esmtp
	(Smail #74) id m16kSGD-000C4SC; Mon, 11 Mar 2002 17:02 +0100
Message-ID: <3C8CD52D.9080302@cs.vu.nl>
Date: Mon, 11 Mar 2002 17:02:53 +0100
From: "R.S. Veldema" <rveldema@cs.vu.nl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020123
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath@gnu.org
Subject: did cvs add/commit for java.nio and javax.swing
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>


I added my embryonic javax.swing implementation to classpath's cvs.
but:
    - haven't patched any makefiles etc so it does not build
        (and thus it should not be in the way of anyone either !)
    - no comments anywhere yet, so no javadoc either
    - embryonic (does give a window with a jbutton etc inside it with my 
compiler
       and kaffe's awt).
        Does not look like sun's swing (plaf implementation not complete 
yet)
    - text editing component is not finished

Also added java.nio.*.
        - haven't patched any makefiles etc so it does not build
        - haven't added the native side yet to classpath's cvs.
            (i still need to figure out how you guys did automake/conf/etc,
            java.net native side handling  to allow 
java.nio.SocketChannel to work properly)
        - needs jvm support for efficiency
              (jit's needs to test if a nio method is called and then 
inline some code, otherwise
            each get-byte will go through the jni layers I did)
R.
                 
Ps, still busy trying to get this thing to build __at all__
R.



From mark@wildebeest.org Mon Mar 11 11:29:14 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kSfi-0005M0-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 11:29:14 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kSfX-0006Ep-00; Mon, 11 Mar 2002 17:29:03 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16kSfa-0003uu-00; Mon, 11 Mar 2002 17:29:06 +0100
Subject: Re: environment and compiling with jikes
From: Mark Wielaard <mark@klomp.org>
To: Sascha Brawer <brawer@acm.org>
Cc: Classpath list <classpath@gnu.org>
In-Reply-To: <20020311083317.6725@pop.schoedler.ch>
References: <1015767916.17891.6.camel@elsschot> 
	<20020311083317.6725@pop.schoedler.ch>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 11 Mar 2002 17:29:05 +0100
Message-Id: <1015864145.17891.107.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-03-11 at 09:33, Sascha Brawer wrote:
> Mark Wielaard <mark@klomp.org> wrote on Sun, 10 Mar 2002 14:45:16 +0100:
> 
> >On the other hand Classpath as a whole is still alpha software, so if
> >java.util.logging is basically correct then I would like to include it
> >with the rest (release early, release often, etc.).
> 
> I'd say the logging code is basically correct, but still alpha quality.

Then I think it would be nice to leave it in the standard build for
now. When we decide to make a new release we can always disable it
again.

> >Do you have a KNOWN_BUGS/TODO list for java.util.logging?
> 
> https://savannah.gnu.org/pm/task.php?group_id=85&group_project_id=347

O Cool, I should do this for my own packages...

Thanks,

Mark


From mark@wildebeest.org Mon Mar 11 11:36:27 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kSmh-0007Me-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 11:36:27 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kShm-0006F3-00; Mon, 11 Mar 2002 17:31:22 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16kShp-0003vl-00; Mon, 11 Mar 2002 17:31:25 +0100
Subject: Re: configure & errors
From: Mark Wielaard <mark@klomp.org>
To: "R.S. Veldema" <rveldema@cs.vu.nl>
Cc: classpath@gnu.org
In-Reply-To: <3C8CBEBA.50509@cs.vu.nl>
References: <3C8CBEBA.50509@cs.vu.nl>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 11 Mar 2002 17:31:25 +0100
Message-Id: <1015864285.17891.110.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-03-11 at 15:27, R.S. Veldema wrote:
>     well, checked out a classpath tree and it bombs out on me in configure:
> 
>  ./configure --with-javah=/usr/local/bin/javah
> 
> <checking bla deleted>
> 
> configure: error: conditional "USER_SPECIFIED_JAVAH" was never defined.
> Usually this means the macro was only invoked conditionally.
> 
> removing the --with-javah doesn't help.
> What am i doing wrong ?

I don't know at the moment. Sometimes the config.log file has more info.
Try installing gcj 3.0.x it comes with gcjh which is automatically
picked up by the configure script. But this should only be needed if you
specify --enable-jni (which is currently off by default.)

Cheers,

Mark


From mark@wildebeest.org Mon Mar 11 11:39:22 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kSpW-0007SI-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 11:39:22 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kSpR-0006FT-00; Mon, 11 Mar 2002 17:39:17 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16kSpU-0003xS-00; Mon, 11 Mar 2002 17:39:20 +0100
Subject: Re: did cvs add/commit for java.nio and javax.swing
From: Mark Wielaard <mark@klomp.org>
To: "R.S. Veldema" <rveldema@cs.vu.nl>
Cc: classpath@gnu.org
In-Reply-To: <3C8CD52D.9080302@cs.vu.nl>
References: <3C8CD52D.9080302@cs.vu.nl>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 11 Mar 2002 17:39:20 +0100
Message-Id: <1015864760.18127.119.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-03-11 at 17:02, R.S. Veldema wrote:
> I added my embryonic javax.swing implementation to classpath's cvs.
> but:
>     - haven't patched any makefiles etc so it does not build
>         (and thus it should not be in the way of anyone either !)
It doesn't conflict since javax.swing is in the lib/standard.omit file
at the moment. The build automatically picks up all the java files added
to the java(x)/gnu directories except when they are listed in the
lib/standard.omit file.

> Also added java.nio.*.
>         - haven't patched any makefiles etc so it does not build
Actually it did build (and failed). I have added the java.nio package to
the lib/standard.omit file. A fresh checkout now builds again (and
ignores your javax.swing and java.nio files for the moment).

You should also make a ChangeLog entry in the top level ChangeLog file.
Please yell if the examples already in that file are not enough to
create one.

>         - haven't added the native side yet to classpath's cvs.
>             (i still need to figure out how you guys did automake/conf/etc,
>             java.net native side handling  to allow 
> java.nio.SocketChannel to work properly)
>         - needs jvm support for efficiency
>               (jit's needs to test if a nio method is called and then 
> inline some code, otherwise
>             each get-byte will go through the jni layers I did)
Do you have a default VM which you use to test this? How is it handled
in that case?

> Ps, still busy trying to get this thing to build __at all__

Let us know what goes wrong. When you are on a recent GNU/Linux platform
it should not be hard to get it to build when you install a recent
jikes, gcj and autotools and follow the instructions in the HACKING
file. Getting it to build on Windows seems to be a challenge though.

Cheers,

Mark


From rveldema@cs.vu.nl Mon Mar 11 12:24:28 2002
Received: from star.cs.vu.nl ([130.37.24.6])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kTX9-0001Yp-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 12:24:28 -0500
Received: from cs.vu.nl (neptune.cs.vu.nl [130.37.30.87])
	by star.cs.vu.nl with esmtp
	(Smail #74) id m16kTX9-000C4RC; Mon, 11 Mar 2002 18:24 +0100
Message-ID: <3C8CE846.6030105@cs.vu.nl>
Date: Mon, 11 Mar 2002 18:24:22 +0100
From: "R.S. Veldema" <rveldema@cs.vu.nl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020123
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath@gnu.org
Subject: libart ?
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,
    I'm trying to compile classpath with libart_lgpl-2.3.8.
This does not seem to be enjoyable for aclocal as it then gives up
Perhaps too new a version ?
R.




From jleuner@elandtech.com Mon Mar 11 13:05:25 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kUAm-0006Qk-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 13:05:24 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16kU6Y-00022Q-00; Mon, 11 Mar 2002 18:01:02 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16kU72-0005BU-00; Mon, 11 Mar 2002 18:01:32 +0000
Date: Mon, 11 Mar 2002 18:01:32 +0000
From: John Leuner <jewel@pixie.co.za>
To: Mark Wielaard <mark@klomp.org>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: environment and compiling with jikes
Message-ID: <20020311180132.GT354@bapli>
References: <3C88EC6D.1CD7074F@email.byu.edu> <1015632089.32754.71.camel@elsschot>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1015632089.32754.71.camel@elsschot>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> (Note to Debian loving people: Jikes Version 1.15b(CVS) - 9 Feb 2002
> just entered unstable!)

I tried it for a few minutes and had some horrible errors (assertion failures and such).

I will check again later and try produce more details.

John Leuner
 


From mark@wildebeest.org Mon Mar 11 15:06:17 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kW3l-0000TL-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 15:06:17 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kW3d-0006ND-00; Mon, 11 Mar 2002 21:06:09 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16kW3g-0004hb-00; Mon, 11 Mar 2002 21:06:12 +0100
Subject: Re: libart ?
From: Mark Wielaard <mark@klomp.org>
To: "R.S. Veldema" <rveldema@cs.vu.nl>
Cc: classpath@gnu.org
In-Reply-To: <3C8CE846.6030105@cs.vu.nl>
References: <3C8CE846.6030105@cs.vu.nl>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 11 Mar 2002 21:06:12 +0100
Message-Id: <1015877172.4478.134.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-03-11 at 18:24, R.S. Veldema wrote:
>     I'm trying to compile classpath with libart_lgpl-2.3.8.
> This does not seem to be enjoyable for aclocal as it then gives up
> Perhaps too new a version ?

My libart says:
$ libart-config --version
2.2.0

And the INSTALL file says you need 2.1.0. So probably you are the first
one to try this newer version.

Cheers,

Mark


From cbj@gnu.org Mon Mar 11 15:19:33 2002
Received: from fe4.southeast.rr.com ([24.93.67.51] helo=mail4.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kWGa-0001kY-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 15:19:32 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail4.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 11 Mar 2002 15:19:58 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2BKJPb21164;
	Mon, 11 Mar 2002 15:19:25 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: "R.S. Veldema" <rveldema@cs.vu.nl>, classpath@gnu.org
Subject: Re: configure & errors
References: <3C8CBEBA.50509@cs.vu.nl> <1015864285.17891.110.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 11 Mar 2002 15:19:24 -0500
In-Reply-To: <1015864285.17891.110.camel@elsschot>
Message-ID: <m3g036q2lv.fsf@lyta.haphazard.org>
Lines: 30
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> Hi,
> 
> On Mon, 2002-03-11 at 15:27, R.S. Veldema wrote:
> >     well, checked out a classpath tree and it bombs out on me in configure:
> > 
> >  ./configure --with-javah=/usr/local/bin/javah
> > 
> > <checking bla deleted>
> > 
> > configure: error: conditional "USER_SPECIFIED_JAVAH" was never defined.
> > Usually this means the macro was only invoked conditionally.
> > 
> > removing the --with-javah doesn't help.
> > What am i doing wrong ?
> 
> I don't know at the moment. Sometimes the config.log file has more info.
> Try installing gcj 3.0.x it comes with gcjh which is automatically
> picked up by the configure script. But this should only be needed if you
> specify --enable-jni (which is currently off by default.)

I've recently fixed this locally.  It happens with automake 1.6 and
autoconf 2.53.  I'll checkin the fix tonight, as it is on an iMac I
recently installed Mandrake 8.0 on for a friend and I get to try
building things like classpath on it while I have it.  :)

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


From cbj@gnu.org Mon Mar 11 15:23:27 2002
Received: from fe8.southeast.rr.com ([24.93.67.55] helo=mail8.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kWKN-0001tN-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 15:23:27 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail8.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 11 Mar 2002 15:23:16 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2BKNG821183;
	Mon, 11 Mar 2002 15:23:16 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: "R.S. Veldema" <rveldema@cs.vu.nl>
Cc: classpath@gnu.org
Subject: Re: libart ?
References: <3C8CE846.6030105@cs.vu.nl>
From: Brian Jones <cbj@gnu.org>
Date: 11 Mar 2002 15:23:16 -0500
In-Reply-To: <3C8CE846.6030105@cs.vu.nl>
Message-ID: <m3bsduq2ff.fsf@lyta.haphazard.org>
Lines: 12
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

"R.S. Veldema" <rveldema@cs.vu.nl> writes:

> Hi,
>     I'm trying to compile classpath with libart_lgpl-2.3.8.
> This does not seem to be enjoyable for aclocal as it then gives up
> Perhaps too new a version ?

Not sure, is aclocal giving you problems with a missing macro?

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


From cbj@gnu.org Mon Mar 11 15:27:30 2002
Received: from fe6.southeast.rr.com ([24.93.67.53] helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kWOI-00025o-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 15:27:30 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 11 Mar 2002 15:27:24 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2BKRN921208;
	Mon, 11 Mar 2002 15:27:23 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: GNU Classpath <classpath@gnu.org>
Subject: commit messages
From: Brian Jones <cbj@gnu.org>
Date: 11 Mar 2002 15:27:23 -0500
Message-ID: <m36642q28k.fsf@lyta.haphazard.org>
Lines: 10
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Classpath follows standard GNU ChangeLog guidelines with regards to
creating proper ChangeLog entries for any change (except changing
ChangeLog itself).  When making checkins, please include a ChangeLog
entry.  When doing the cvs checkin, the ChangeLog entry should be part
of the commit message.  If actively making changes, subscribing to the
classpath commits mailing list is a good idea.

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


From fegray@npl.uiuc.edu Mon Mar 11 15:56:30 2002
Received: from nialas.npl.uiuc.edu ([128.174.13.19])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kWqL-0005Zd-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 15:56:29 -0500
Received: from one.npl.uiuc.edu (one.npl.uiuc.edu [128.174.13.13])
	by nialas.npl.uiuc.edu (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id OAA31653
	for <classpath@gnu.org>; Mon, 11 Mar 2002 14:56:28 -0600
Received: from fegray by one.npl.uiuc.edu with local (Exim 3.12 #1 (Debian))
	id 16kWqK-0005iX-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 14:56:28 -0600
Date: Mon, 11 Mar 2002 14:56:28 -0600
To: classpath@gnu.org
Subject: classpath CVS with ORP not working?
Message-ID: <20020311145628.C21699@npl.uiuc.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
From: Fred Gray <fegray@npl.uiuc.edu>
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

It seems that the current classpath CVS is not working with ORP 1.0.9.  I run
ORP with this script:

-----
#!/bin/sh
export LD_LIBRARY_PATH=/home/fegray/projects/classpath/lib/classpath

# Uncomment for 0.0.3 release
#export CLASSPATH=/home/fegray/projects/classpath/share/classpath:.
# Uncomment for CVS
export CLASSPATH=/home/fegray/projects/classpath/share/classpath/glibj.zip:.

/home/fegray/projects/orp-1.0.9/mains/orp/Linux/dbg/orp -swapjit 0 1 -classpath
$CLASSPATH $*
-----

Running any program (even a null program containing an empty main, and even
a class that doesn't exist), fails with the following messages:

fegray@nplvx2:~$ wraporp Null
No Java handlers found
No Java handlers found
No Java handlers found
Uncaught exception:
No Java handlers found
No Java handlers found

I'm using the versions of all of the dependences from yesterday's Debian
unstable.  This notably includes jikes 1.15b.

With classpath release 0.0.3 built in the same environment (including exactly
the same ORP binary), simple programs seem to work fine.

I'm trying to get the CVS version up and running to experiment with the new 
Swing classes.  Hopefully I can contribute at least some QA work there.

Thanks for your help,

-- Fred Gray


From mark@wildebeest.org Mon Mar 11 16:22:59 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kXFz-0006v8-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 16:22:59 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kXFN-0006Qj-00; Mon, 11 Mar 2002 22:22:21 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16kXFQ-0007GJ-00; Mon, 11 Mar 2002 22:22:24 +0100
Subject: Re: classpath CVS with ORP not working?
From: Mark Wielaard <mark@klomp.org>
To: Fred Gray <fegray@npl.uiuc.edu>
Cc: classpath@gnu.org
In-Reply-To: <20020311145628.C21699@npl.uiuc.edu>
References: <20020311145628.C21699@npl.uiuc.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 11 Mar 2002 22:22:23 +0100
Message-Id: <1015881743.4478.146.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-03-11 at 21:56, Fred Gray wrote:
> It seems that the current classpath CVS is not working with ORP 1.0.9.
Sadly the recent java.lang cleanup broke Orp support for the moment.
You should try a version before that change went in. The following is
known to work: cvs update -D "2002-02-22"

> I'm trying to get the CVS version up and running to experiment with the new 
> Swing classes.  Hopefully I can contribute at least some QA work there.

Note that Swing needs AWT and although AWT works (a little bit) with gcj
it does not currently work with Orp. But if you want to give it a try
then start out with a CVS tree from before the java.lang cleanup and
then only update the [gnu/]java/[awt|swing]/ directories.

Cheers,

Mark


From tromey@creche.cygnus.com Mon Mar 11 22:09:59 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16kcfn-0001Fr-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 22:09:59 -0500
Received: from creche.cygnus.com (ta0201.peakpeak.com [204.144.244.201])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id UAA24350;
	Mon, 11 Mar 2002 20:09:54 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id UAA03487;
	Mon, 11 Mar 2002 20:40:10 -0700
To: Mark Wielaard <mark@klomp.org>
Cc: Fred Gray <fegray@npl.uiuc.edu>, classpath@gnu.org
Subject: Re: classpath CVS with ORP not working?
References: <20020311145628.C21699@npl.uiuc.edu> <1015881743.4478.146.camel@elsschot>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  YOW!!  Everybody out of the GENETIC POOL!
Date: 11 Mar 2002 20:40:10 -0700
In-Reply-To: Mark Wielaard's message of "11 Mar 2002 22:22:23 +0100"
Message-ID: <878z8ya1yd.fsf@creche.redhat.com>
Lines: 9
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

Mark> Note that Swing needs AWT and although AWT works (a little bit)
Mark> with gcj it does not currently work with Orp.

Speaking of which, does anybody know of simple AWT programs I can use
for testing and debugging our AWT implementation?

Tom


From bryce@waitaki.otago.ac.nz Mon Mar 11 22:20:07 2002
Received: from mailhub1.otago.ac.nz ([139.80.64.218])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kcpa-0001u2-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 22:20:06 -0500
Received: (from root@localhost)
	by mailhub1.otago.ac.nz (8.10.1/8.10.1) id g2C3K2s03389;
	Tue, 12 Mar 2002 16:20:02 +1300
Received: from waitaki.otago.ac.nz (waitaki.otago.ac.nz [139.80.75.140])
	by mailhub1.otago.ac.nz (8.10.1/8.10.1) with ESMTP id g2C3K1b03302;
	Tue, 12 Mar 2002 16:20:01 +1300
Received: from waitaki.otago.ac.nz (IDENT:bryce@reason.otago.ac.nz [139.80.119.17])
	by waitaki.otago.ac.nz (8.11.6/8.11.6) with ESMTP id g2C3LWt15400;
	Tue, 12 Mar 2002 16:21:32 +1300
Message-ID: <3C8D73A3.3030507@waitaki.otago.ac.nz>
Date: Tue, 12 Mar 2002 16:18:59 +1300
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221
X-Accept-Language: en-us
MIME-Version: 1.0
To: tromey@redhat.com
CC: classpath@gnu.org
Subject: Re: classpath CVS with ORP not working?
References: <20020311145628.C21699@npl.uiuc.edu> <1015881743.4478.146.camel@elsschot> <878z8ya1yd.fsf@creche.redhat.com>
X-scanner: scanned by Inflex 1.0.9 - (http://pldaniels.com/inflex/)
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Tom Tromey wrote:

>>>>>>"Mark" == Mark Wielaard <mark@klomp.org> writes:
>>>>>>
>
>Mark> Note that Swing needs AWT and although AWT works (a little bit)
>Mark> with gcj it does not currently work with Orp.
>
>Speaking of which, does anybody know of simple AWT programs I can use
>for testing and debugging our AWT implementation?
>

How about

http://www.hpl.hp.com/personal/Hans_Boehm/crcalc/

regards

Bryce.




From cbj@gnu.org Mon Mar 11 22:28:37 2002
Received: from fe6.southeast.rr.com ([24.93.67.53] helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kcxp-0002Fk-00
	for <classpath@gnu.org>; Mon, 11 Mar 2002 22:28:37 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 11 Mar 2002 22:28:36 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2C3SVO23018;
	Mon, 11 Mar 2002 22:28:31 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: tromey@redhat.com
Cc: Mark Wielaard <mark@klomp.org>, Fred Gray <fegray@npl.uiuc.edu>,
   classpath@gnu.org
Subject: Re: classpath CVS with ORP not working?
References: <20020311145628.C21699@npl.uiuc.edu>
	<1015881743.4478.146.camel@elsschot>
	<878z8ya1yd.fsf@creche.redhat.com>
From: Brian Jones <cbj@gnu.org>
Date: 11 Mar 2002 22:28:30 -0500
In-Reply-To: <878z8ya1yd.fsf@creche.redhat.com>
Message-ID: <m3lmcy5ush.fsf@lyta.haphazard.org>
Lines: 25
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Tom Tromey <tromey@redhat.com> writes:

> >>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
> 
> Mark> Note that Swing needs AWT and although AWT works (a little bit)
> Mark> with gcj it does not currently work with Orp.
> 
> Speaking of which, does anybody know of simple AWT programs I can use
> for testing and debugging our AWT implementation?

Not really, but did you look into the AWT test framework used by ACUNIA?

>> Then you should definitely look at the VTE - it's portable,
>> so I could even send you a .jar file if you like.
>>
>> For everything else we use the Mauve framework, too.
>>
>> Regards
>>
>> Chris Gray
>> VM Architect, ACUNIA

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


From rveldema@cs.vu.nl Tue Mar 12 06:55:21 2002
Received: from star.cs.vu.nl ([130.37.24.6])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kkPz-00008x-00
	for <classpath@gnu.org>; Tue, 12 Mar 2002 06:26:11 -0500
Received: from cs.vu.nl (neptune.cs.vu.nl [130.37.30.87])
	by star.cs.vu.nl with esmtp
	(Smail #74) id m16kkPu-000C4PC; Tue, 12 Mar 2002 12:26 +0100
Message-ID: <3C8DE5CD.7030809@cs.vu.nl>
Date: Tue, 12 Mar 2002 12:26:05 +0100
From: "R.S. Veldema" <rveldema@cs.vu.nl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020123
X-Accept-Language: en-us
MIME-Version: 1.0
To: Andrew Selkirk <aselkirk@sympatico.ca>, classpath@gnu.org
Subject: Re: Swing implementation
References: <E16kccN-0000KZ-00@subversions.gnu.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,
     My thought was to work on anything swingish that stops it working.
Sure, I'd like a merge but as it stands I don't know about the copyrights ..
You may need to sign those over to FSF (I had to..)
Someone on this list (classpath@gnu.org) should know what to do.
R.


Andrew Selkirk wrote:

>Hi Ronald,
>
>Great work so far on your swing implementation.  I'm in the 
>process of becoming a classpath member and I also have a 
>partial implementation that I'm looking forward to merging into 
>what you have so far.  I've been working on it over the last 6 
>months in my spare time.  Although there is some overlap, it 
>appears that we've worked mainly on separate areas.  Here 
>are the areas that I have to contribute:
>javax.swing.event (mostly done: about 4-5 classes with 
>TODO's left)
>javax.swing.tree (good chunk)
>javax.swing.table (started)
>javax.swing.undo (mostly done)
>javax.swing.plaf.basic.BasicLookAndFeel (mostly done)
>javax.swing (chunks.  many data models, UIDefaults, 
>Accessibility bits, etc)
>
>On top of that, I have many of the interfaces, exceptions, and 
>various stubbed classes done across the board.
>
>My work mainly focused around the backend data models and 
>structures as well as researching the plaf framework.  My 
>current focus is to finish off tree and get more into table.  How 
>about yourself?  What areas are you actively working at?
>
>Andrew...
>
>





From rveldema@cs.vu.nl Tue Mar 12 06:59:31 2002
Received: from star.cs.vu.nl ([192.31.231.42])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kkiQ-0002ae-00
	for <classpath@gnu.org>; Tue, 12 Mar 2002 06:45:14 -0500
Received: from cs.vu.nl (neptune.cs.vu.nl [130.37.30.87])
	by star.cs.vu.nl with esmtp
	(Smail #74) id m16kkiP-000C4PC; Tue, 12 Mar 2002 12:45 +0100
Message-ID: <3C8DEA49.3010900@cs.vu.nl>
Date: Tue, 12 Mar 2002 12:45:13 +0100
From: "R.S. Veldema" <rveldema@cs.vu.nl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020123
X-Accept-Language: en-us
MIME-Version: 1.0
To: Mark Wielaard <mark@klomp.org>
CC: Fred Gray <fegray@npl.uiuc.edu>, classpath@gnu.org
Subject: Re: classpath CVS with ORP not working?
References: <20020311145628.C21699@npl.uiuc.edu> <1015881743.4478.146.camel@elsschot>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Good idea, I'm going to need a LOT of QA !
R.

Ps, can someone tell me if swing and nio now compile with their setup ?
Nio at least shouldn't run since adding the native side was my target 
for the day
and that isn't over yet.
R.

Mark Wielaard wrote:

>Hi,
>
>On Mon, 2002-03-11 at 21:56, Fred Gray wrote:
>
>>It seems that the current classpath CVS is not working with ORP 1.0.9.
>>
>Sadly the recent java.lang cleanup broke Orp support for the moment.
>You should try a version before that change went in. The following is
>known to work: cvs update -D "2002-02-22"
>
>>I'm trying to get the CVS version up and running to experiment with the new 
>>Swing classes.  Hopefully I can contribute at least some QA work there.
>>
>
>Note that Swing needs AWT and although AWT works (a little bit) with gcj
>it does not currently work with Orp. But if you want to give it a try
>then start out with a CVS tree from before the java.lang cleanup and
>then only update the [gnu/]java/[awt|swing]/ directories.
>
>Cheers,
>
>Mark
>
>_______________________________________________
>Classpath mailing list
>Classpath@gnu.org
>http://mail.gnu.org/mailman/listinfo/classpath
>





From mark@wildebeest.org Tue Mar 12 07:03:23 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kkzy-0003DV-00
	for <classpath@gnu.org>; Tue, 12 Mar 2002 07:03:22 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kkzp-00087F-00; Tue, 12 Mar 2002 13:03:13 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16kkzt-0000I0-00; Tue, 12 Mar 2002 13:03:17 +0100
Subject: Re: classpath CVS with ORP not working?
From: Mark Wielaard <mark@klomp.org>
To: "R.S. Veldema" <rveldema@cs.vu.nl>
Cc: classpath@gnu.org
In-Reply-To: <3C8DEA49.3010900@cs.vu.nl>
References: <20020311145628.C21699@npl.uiuc.edu>
	<1015881743.4478.146.camel@elsschot>  <3C8DEA49.3010900@cs.vu.nl>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 12 Mar 2002 13:03:17 +0100
Message-Id: <1015934597.17891.190.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Tue, 2002-03-12 at 12:45, R.S. Veldema wrote:
> 
> Ps, can someone tell me if swing and nio now compile with their setup ?
> Nio at least shouldn't run since adding the native side was my target 
> for the day
> and that isn't over yet.

Just did a very quick test without looking at any code or really knowing
what is going on.

The standard setup compiles out of the box (because it ignores nio and
swing).

Removing java/nio and gnu/java/nio from the lib/standard.omit file gives
lots and lots of errors.

Running the gen_nio.sh script in the lib directory seems to fix some
files and then running make gives the following errors:

Found 1 semantic error compiling
"../java/nio/channels/SocketChannel.java":

    21.     static SocketChannel open(SocketAddress remote) throws
IOException
                                      <----------->
*** Error: Type java/nio/channels/SocketAddress was not found.

Found 3 semantic errors compiling
"../gnu/java/nio/DatagramChannelImpl.java":

    41.     public DatagramChannel connect(java.net.SocketAddress 
remote)
                                                    <----------->
*** Error: Type java/net/SocketAddress was not found.


    61.     public SocketAddress receive(java.nio.ByteBuffer  dst)
                   <----------->
*** Error: Type gnu/java/nio/SocketAddress was not found.


    61.     public SocketAddress receive(java.nio.ByteBuffer  dst)
                                 <------------------------------->
*** Error: The return type of method "gnu.java.nio.SocketAddress
receive(java.nio.ByteBuffer dst);" does not match the return type of
method "java.nio.channels.SocketAddress receive(java.nio.ByteBuffer
dst);" inherited from type "java/nio/channels/DatagramChannel".

Found 1 semantic error compiling
"../gnu/java/nio/ServerSocketChannelImpl.java":
    15.     InetSocketAddress sa;
            <--------------->
*** Error: Type gnu/java/nio/InetSocketAddress was not found.

Found 2 semantic errors compiling
"../gnu/java/nio/SocketChannelImpl.java":

     9. public class SocketChannelImpl extends SocketChannel
                     <--------------->
*** Error: The abstract method "boolean
connect(java.nio.channels.SocketAddress remote);", inherited from type
"java/nio/channels/SocketChannel", is not implemented in the
non-abstract class "gnu/java/nio/SocketChannelImpl".


    75. 	sa = (InetSocketAddress) remote;
                                         <---->
*** Error: An expression of type "SocketAddress" cannot be cast into
type "InetSocketAddress".

Found 1 semantic error compiling
"../java/nio/channels/FileChannel.java":

     7. public abstract class FileChannel  extends AbstractChannel
                                                   <------------->
*** Error: Type java/nio/channels/AbstractChannel was not found.

So it seems you forgot to check in some classes (SocketAddress and
AbstractChannel at least).

The gen_nio.sh script adds some java/nio files and modifies some
gnu/java/nio files. This does not interact nicely with CVS (the working
directory now contains files that CVS thinks are modified or new) . You
might want to rename the input files to X.java.in and look at how to
generate the actual X.java files with configure(.in) like
gnu/classpath/Configuration.java is. Although that might not be the most
oppropriate solution in this case.

Cheers,

Mark


From gray@acunia.com Tue Mar 12 06:13:01 2002
Received: from nat.be.acunia.com ([194.7.211.211] helo=mail.acunia.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kkDE-0007c7-00; Tue, 12 Mar 2002 06:13:00 -0500
Received: from sophocles.leuven.intern.acunia.com (sophocles.leuven.intern.acunia.com [10.0.1.34])
	by mail.acunia.com (8.11.6/8.11.6) with ESMTP id g2CBCeN06549;
	Tue, 12 Mar 2002 12:12:40 +0100
Date: Tue, 12 Mar 2002 12:08:30 +0100 (CET)
From: "chris.gray" <gray@acunia.com>
X-X-Sender: gray@sophocles.leuven.intern.acunia.com
To: Brian Jones <cbj@gnu.org>
cc: tromey@redhat.com, Mark Wielaard <mark@klomp.org>,
   Fred Gray <fegray@npl.uiuc.edu>, <classpath@gnu.org>
Subject: Re: classpath CVS with ORP not working?
In-Reply-To: <m3lmcy5ush.fsf@lyta.haphazard.org>
Message-ID: <Pine.LNX.4.44.0203121207310.15698-100000@sophocles.leuven.intern.acunia.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On 11 Mar 2002, Brian Jones wrote:

> Tom Tromey <tromey@redhat.com> writes:
> 
> > >>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
> > 
> > Mark> Note that Swing needs AWT and although AWT works (a little bit)
> > Mark> with gcj it does not currently work with Orp.
> > 
> > Speaking of which, does anybody know of simple AWT programs I can use
> > for testing and debugging our AWT implementation?
> 
> Not really, but did you look into the AWT test framework used by ACUNIA?

To help you find it:
 
<URL:http://wonka.acunia.com/cgi-bin/cvsweb.cgi/open-wonka/tool/visualtest/>

-- 

Chris Gray

VM Architect, ACUNAI




From cbj@gnu.org Tue Mar 12 08:28:47 2002
Received: from fe6.southeast.rr.com ([24.93.67.53] helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16kmKd-0000xU-00
	for <classpath@gnu.org>; Tue, 12 Mar 2002 08:28:47 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 12 Mar 2002 08:28:31 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2CDSKX25422;
	Tue, 12 Mar 2002 08:28:20 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: "R.S. Veldema" <rveldema@cs.vu.nl>
Cc: Andrew Selkirk <aselkirk@sympatico.ca>, classpath@gnu.org
Subject: Re: Swing implementation
References: <E16kccN-0000KZ-00@subversions.gnu.org>
	<3C8DE5CD.7030809@cs.vu.nl>
From: Brian Jones <cbj@gnu.org>
Date: 12 Mar 2002 08:28:20 -0500
In-Reply-To: <3C8DE5CD.7030809@cs.vu.nl>
Message-ID: <m33cz5530r.fsf@lyta.haphazard.org>
Lines: 9
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

"R.S. Veldema" <rveldema@cs.vu.nl> writes:

> You may need to sign those over to FSF

This is already being taken care of as quickly as possible.

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


From cbj@gnu.org Wed Mar 13 08:06:52 2002
Received: from fe6.southeast.rr.com ([24.93.67.53] helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16l8Sy-0002NR-00
	for <classpath@gnu.org>; Wed, 13 Mar 2002 08:06:52 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Wed, 13 Mar 2002 08:06:51 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2DD6Qp05136;
	Wed, 13 Mar 2002 08:06:26 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: GNU Classpath <classpath@gnu.org>
Subject: native gtk-peer compile problem
From: Brian Jones <cbj@gnu.org>
Date: 13 Mar 2002 08:06:26 -0500
Message-ID: <m3sn7439d9.fsf@lyta.haphazard.org>
Lines: 19
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I think I accidentally commented out the check for libart the other
day, so today I've put this back in.  If you saw a compile error on
JNI like below then this is the problem.  If you have problems with
aclocal finding this macro, it should be in something like
/usr/share/aclocal/libart.m4, unless you installed from sources in
which case it may not have been installed.

Making all in gtk-peer
make[3]: Entering directory `/home/cbj/cvs/classpath/build/native/jni/gtk-peer'
source='../../../../native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c' object='gnu_java_awt_peer_gtk_GdkFontMetrics.lo' libtool=yes \
depfile='.deps/gnu_java_awt_peer_gtk_GdkFontMetrics.Plo' tmpdepfile='.deps/gnu_java_awt_peer_gtk_GdkFontMetrics.TPlo' \
depmode=gcc3 /bin/sh ../../../../depcomp \
/bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../native/jni/gtk-peer -I../../../include -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include @LIBART_CFLAGS@ -I../../../../native/jni/classpath -I../../../../include -I../../../include    -g -Wall -c -o gnu_java_awt_peer_gtk_GdkFontMetrics.lo `test -f ../../../../native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c || echo '../../../../native/jni/gtk-peer/'`../../../../native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
gcc -DHAVE_CONFIG_H -I. -I../../../../native/jni/gtk-peer -I../../../include -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include @LIBART_CFLAGS@ -I../../../../native/jni/classpath -I../../../../include -I../../../include -g -Wall -c ../../../../native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c -MT gnu_java_awt_peer_gtk_GdkFontMetrics.lo -MD -MP -MF .deps/gnu_java_awt_peer_gtk_GdkFontMetrics.TPlo  -fPIC -DPIC -o gnu_java_awt_peer_gtk_GdkFontMetrics.lo
gcc: cannot specify -o with -c or -S and multiple compilations
make[3]: *** [gnu_java_awt_peer_gtk_GdkFontMetrics.lo] Error 1

-- 
Brian Jones <cbj@gnu.org>


From rveldema@cs.vu.nl Wed Mar 13 09:40:39 2002
Received: from star.cs.vu.nl ([192.31.231.42])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16l9vj-0001mf-00
	for <classpath@gnu.org>; Wed, 13 Mar 2002 09:40:39 -0500
Received: from cs.vu.nl (neptune.cs.vu.nl [130.37.30.87])
	by star.cs.vu.nl with esmtp
	(Smail #74) id m16l9vi-000C4SC; Wed, 13 Mar 2002 15:40 +0100
Message-ID: <3C8F64E6.4050404@cs.vu.nl>
Date: Wed, 13 Mar 2002 15:40:38 +0100
From: "R.S. Veldema" <rveldema@cs.vu.nl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020123
X-Accept-Language: en-us
MIME-Version: 1.0
To: classpath@gnu.org
Subject: classpath & which jvm ?
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Which jvm does the --current-- classpath run with ?
orp doesn't seem to work.
R.



From robilad@yahoo.com Wed Mar 13 11:31:50 2002
Received: from smtp015.mail.yahoo.com ([216.136.173.59])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16lBfJ-0002TY-00
	for <classpath@gnu.org>; Wed, 13 Mar 2002 11:31:49 -0500
Received: from robilad (AUTH plain) at pec-112-181.tnt9.f.uunet.de (HELO clerks) (robilad@149.225.112.181)
  by smtp.mail.vip.sc5.yahoo.com with SMTP; 13 Mar 2002 16:31:44 -0000
Content-Type: text/plain;
  charset="iso-8859-15"
From: Dalibor Topic <robilad@yahoo.com>
To: tromey@redhat.com,
 Mark Wielaard <mark@klomp.org>
Subject: Re: classpath CVS with ORP not working?
Date: Wed, 13 Mar 2002 16:27:59 +0100
X-Mailer: KMail [version 1.3.9]
Cc: Fred Gray <fegray@npl.uiuc.edu>,
 classpath@gnu.org
References: <20020311145628.C21699@npl.uiuc.edu> <1015881743.4478.146.camel@elsschot> <878z8ya1yd.fsf@creche.redhat.com>
In-Reply-To: <878z8ya1yd.fsf@creche.redhat.com>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200203131627.59444.robilad@yahoo.com>
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Tuesday 12 March 2002 04:40, Tom Tromey wrote:
> >>>>> "Mark" =3D=3D Mark Wielaard <mark@klomp.org> writes:
>
> Mark> Note that Swing needs AWT and although AWT works (a little bit)
> Mark> with gcj it does not currently work with Orp.
>
> Speaking of which, does anybody know of simple AWT programs I can use
> for testing and debugging our AWT implementation?

The Java Class Libraries books come with examples for every class. Check =
out=20
the book series homepage somewhere on java.sun.com, there should be a lin=
k to=20
the examples there. The Java 1.0 edition of the book also has its own set=
 of=20
awt examples that you might want to check to see if classpath handles 1.0=
=20
style event processing adequately.

Good luck,

Dalibor Topic

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



From jleuner@elandtech.com Wed Mar 13 14:53:01 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16lDnI-0002ae-00
	for <classpath@gnu.org>; Wed, 13 Mar 2002 13:48:12 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16lDjI-0001OH-00; Wed, 13 Mar 2002 18:44:04 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16lDjk-0005Bw-00; Wed, 13 Mar 2002 18:44:32 +0000
Date: Wed, 13 Mar 2002 18:44:32 +0000
From: John Leuner <jewel@pixie.co.za>
To: classpath@gnu.org
Cc: jewel@pixie.co.za
Subject: GNU Classpath + JRVM
Message-ID: <20020313184432.GB354@bapli>
References: <OFB99BB9C6.5689FDF8-ON85256B74.005CF85C@pok.ibm.com> <20020308211544.GR354@bapli> <20020312183524.GX354@bapli>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020312183524.GX354@bapli>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I've created two documents:

http://people.debian.org/~jewel//jikes/port_poc.html
http://people.debian.org/~jewel//jikes/futurechanges.html

describing my work on porting the Jikes RVM to GNU Classpath (or vice versa).

The biggest issue is:

Where do we put these JRVM specific changes in Classpath?

You can view the changed Classpath files at:

http://people.debian.org/~jewel//jikes/files/vmclasses/

John Leuner

PS

I've mostly been talking about this work on the Jikes lists. For those who don't know,
I've managed to run "hello world" programs, reading and printing of text file programs, 
dynamic class instantiation programs (eg mauve) with a JRVM image compiled solely by
using Classpath and the JRVM Base compiler.

> > Now that I've completed this 'proof of concept', I would like to generate a document or plan for a more thorough port.
> >
> > Next week I hope to identify areas where I have changed JRVM and Classpath and talk about how we can make less of these changes necessary.
> 
> I have written a document at:
> 
> http://people.debian.org/~jewel//jikes/port_poc.html
> 
> Currently it is mostly just a summary for myself.
> 
> Tomorrow I will start asking questions about how to proceed with future work.
> 
> John Leuner
> 
> _______________________________________________
> Jikesrvm-core mailing list
> Jikesrvm-core@www-124.ibm.com
> http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jikesrvm-core


From mark@wildebeest.org Wed Mar 13 15:18:00 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16lDpm-0002zP-00
	for <classpath@gnu.org>; Wed, 13 Mar 2002 13:50:46 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16lDpc-0001IW-00; Wed, 13 Mar 2002 19:50:36 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16lDpg-0007e3-00; Wed, 13 Mar 2002 19:50:40 +0100
Subject: Re: classpath & which jvm ?
From: Mark Wielaard <mark@klomp.org>
To: "R.S. Veldema" <rveldema@cs.vu.nl>
Cc: classpath@gnu.org
In-Reply-To: <3C8F64E6.4050404@cs.vu.nl>
References: <3C8F64E6.4050404@cs.vu.nl>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 13 Mar 2002 19:50:40 +0100
Message-Id: <1016045440.3138.126.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Wed, 2002-03-13 at 15:40, R.S. Veldema wrote:
> 
> Which jvm does the --current-- classpath run with ?
> orp doesn't seem to work.

Sadly, none out of the box :{ Orp is still your best bet when reverting
some of the Throwable/Class changes, or starting from  cvs update -D
"2002-02-22" and selectively updating. Sablevm and Kissme try to track
Classpath CVS a bit, but I don't know if they already implemented the
Class and Throwable changes.

<http://sablevm.sf.net/>
<http://kissme.sf.net/>

Cheers,

Mark


From jleuner@elandtech.com Thu Mar 14 04:24:39 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16lRTS-0000U2-00
	for <classpath@gnu.org>; Thu, 14 Mar 2002 04:24:39 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16lRP6-0003vN-00; Thu, 14 Mar 2002 09:20:08 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16lRPY-00068M-00; Thu, 14 Mar 2002 09:20:36 +0000
Date: Thu, 14 Mar 2002 09:20:36 +0000
From: John Leuner <jewel@pixie.co.za>
To: Mark Wielaard <mark@klomp.org>
Cc: "R.S. Veldema" <rveldema@cs.vu.nl>, classpath@gnu.org
Subject: Re: classpath & which jvm ?
Message-ID: <20020314092036.GC354@bapli>
References: <3C8F64E6.4050404@cs.vu.nl> <1016045440.3138.126.camel@elsschot>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1016045440.3138.126.camel@elsschot>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> > Which jvm does the --current-- classpath run with ?
> > orp doesn't seem to work.
> 
> Sadly, none out of the box :{ Orp is still your best bet when reverting
> some of the Throwable/Class changes, or starting from  cvs update -D
> "2002-02-22" and selectively updating. Sablevm and Kissme try to track
> Classpath CVS a bit, but I don't know if they already implemented the
> Class and Throwable changes.
> 
> <http://sablevm.sf.net/>
> <http://kissme.sf.net/>

Kissme hasn't caught up to these changes yet.

John



From reali@inf.ethz.ch Thu Mar 14 05:03:42 2002
Received: from core.inf.ethz.ch ([129.132.178.196])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16lRcs-0002Nm-00
	for <classpath@gnu.org>; Thu, 14 Mar 2002 04:34:22 -0500
Received: from lillian-ics.inf.ethz.ch (root@lillian-ics.inf.ethz.ch [129.132.134.2])
	by core.inf.ethz.ch (8.9.3/8.9.3) with ESMTP id KAA13187;
	Thu, 14 Mar 2002 10:34:13 +0100 (MET)
Received: from cyclone (cyclone.inf.ethz.ch [129.132.134.29])
	by lillian-ics.inf.ethz.ch (8.9.3/8.9.3) with SMTP id KAA10321;
	Thu, 14 Mar 2002 10:34:16 +0100 (MET)
Message-ID: <007501c1cb3b$67f39450$1d868481@cyclone>
From: "Patrik Reali" <reali@inf.ethz.ch>
To: "R.S. Veldema" <rveldema@cs.vu.nl>, <classpath@gnu.org>
References: <3C8F64E6.4050404@cs.vu.nl>
Subject: Re: classpath & which jvm ?
Date: Thu, 14 Mar 2002 10:34:14 +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.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>


> 
> Which jvm does the --current-- classpath run with ?
> orp doesn't seem to work.
> R.

Jaos (http://www.oberon.ethz.ch/jaos/) works with 
classpath 0.03 and an own implementation of
java/lang/Character.

Jaos is currently in an advanced alpha phase. Textual IO
and file support are implemented; Net and AWT are not supported.

-Patrik



From tuorfa@yahoo.com Thu Mar 14 10:36:52 2002
Received: from web11702.mail.yahoo.com ([216.136.172.68])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16lXHf-0005pR-00
	for <classpath@gnu.org>; Thu, 14 Mar 2002 10:36:52 -0500
Message-ID: <20020314153650.96360.qmail@web11702.mail.yahoo.com>
Received: from [209.129.16.5] by web11702.mail.yahoo.com via HTTP; Thu, 14 Mar 2002 07:36:50 PST
Date: Thu, 14 Mar 2002 07:36:50 -0800 (PST)
From: Zach Smith <tuorfa@yahoo.com>
Subject: AWT?
To: classpath@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hello,

Can anyone tell me what the status of Classpath 
AWT is? I may be interesting in helping on that
part of the project. I can write X/Motif code
(and Java code) for it.

Please respond to me directly at tuorfa@yahoo.com.
Thanks,
Zach Smith

=====
Zach Smith
Email: tuorfa@yahoo.com
Website: http://www.geocities.com/tuorfa
Developer of: * GNU UnRTF (RTF to other format converter)
              * Formae (future any-to-any format converter)
              * Beest (HTML viewer for X)
              * Tuorfa (language translator)

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/


From cbj@gnu.org Fri Mar 15 00:16:47 2002
Received: from mail7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16lk58-0003Ha-00
	for <classpath@gnu.org>; Fri, 15 Mar 2002 00:16:46 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Fri, 15 Mar 2002 00:16:44 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2F5Fv314928;
	Fri, 15 Mar 2002 00:15:57 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Zach Smith <tuorfa@yahoo.com>
Cc: classpath@gnu.org
Subject: Re: AWT?
References: <20020314153650.96360.qmail@web11702.mail.yahoo.com>
From: Brian Jones <cbj@gnu.org>
Date: 15 Mar 2002 00:15:56 -0500
In-Reply-To: <20020314153650.96360.qmail@web11702.mail.yahoo.com>
Message-ID: <m3g0322yyb.fsf@lyta.haphazard.org>
Lines: 27
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Zach Smith <tuorfa@yahoo.com> writes:

> Hello,
> 
> Can anyone tell me what the status of Classpath 
> AWT is? I may be interesting in helping on that
> part of the project. I can write X/Motif code
> (and Java code) for it.
> 
> Please respond to me directly at tuorfa@yahoo.com.
> Thanks,
> Zach Smith

The AWT is not completely functional and in fact can only be
tested/used with some CVS version of gcj at the moment (as far I can
tell).  The peers do need some work (GTK peers), but probably not
nearly as much as the AWT itself.

Please check out the project at
http://savannah.gnu.org/projects/classpath/ and you can grab the
latest from CVS and see for yourself.  This link has more information
on volunteering,
http://www.gnu.org/software/classpath/doc/hacking.html#SEC3

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


From tromey@creche.cygnus.com Fri Mar 15 10:25:37 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16ltaK-0002kl-00; Fri, 15 Mar 2002 10:25:37 -0500
Received: from creche.cygnus.com (ta0206.peakpeak.com [204.144.244.206])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id IAA27396;
	Fri, 15 Mar 2002 08:25:31 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id IAA15300;
	Fri, 15 Mar 2002 08:56:44 -0700
To: Brian Jones <cbj@gnu.org>
Cc: Zach Smith <tuorfa@yahoo.com>, classpath@gnu.org
Subject: Re: AWT?
References: <20020314153650.96360.qmail@web11702.mail.yahoo.com> <m3g0322yyb.fsf@lyta.haphazard.org>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  Concentrate on th'cute, li'l CARTOON GUYS!
 Remember the SERIAL NUMBERS!!  Follow the WHIPPLE AVE EXIT!!
 Have a FREE PEPSI!!  Turn LEFT at th'HOLIDAY INN!!
 JOIN the CREDIT WORLD!!  MAKE me an OFFER!!!
Date: 15 Mar 2002 08:56:44 -0700
In-Reply-To: Brian Jones's message of "15 Mar 2002 00:15:56 -0500"
Message-ID: <87d6y57rk3.fsf@creche.redhat.com>
Lines: 24
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

Zach> Zach Smith <tuorfa@yahoo.com> writes: Can anyone tell me what
Zach> the status of Classpath AWT is? I may be interesting in helping
Zach> on that part of the project. I can write X/Motif code (and Java
Zach> code) for it.

Brian> The AWT is not completely functional and in fact can only be
Brian> tested/used with some CVS version of gcj at the moment (as far I can
Brian> tell).  The peers do need some work (GTK peers), but probably not
Brian> nearly as much as the AWT itself.

I've been doing a little AWT debugging lately.  I think it is hard to
say where the bugs really lie.  For instance, fonts don't really seem
to work (I haven't looked at why).  Text fields don't seem editable.
Bringing up a file dialog will crash your application; this appears to
be a bug in the peers.

That said, there are plenty of bugs in the Java code too.  For
instance we basically don't use the tree lock anywhere -- this is a
big problem.  You can grep for FIXME in java/awt to see other areas
needing help.

Tom


From jleuner@elandtech.com Fri Mar 15 11:13:42 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16luKs-0007il-00; Fri, 15 Mar 2002 11:13:42 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16luGj-0000Sz-00; Fri, 15 Mar 2002 16:09:25 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16luHA-0001jw-00; Fri, 15 Mar 2002 16:09:52 +0000
Date: Fri, 15 Mar 2002 16:09:52 +0000
From: John Leuner <jewel@pixie.co.za>
To: Tom Tromey <tromey@redhat.com>
Cc: Brian Jones <cbj@gnu.org>, Zach Smith <tuorfa@yahoo.com>,
	classpath@gnu.org
Subject: Re: AWT?
Message-ID: <20020315160952.GM354@bapli>
References: <20020314153650.96360.qmail@web11702.mail.yahoo.com> <m3g0322yyb.fsf@lyta.haphazard.org> <87d6y57rk3.fsf@creche.redhat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87d6y57rk3.fsf@creche.redhat.com>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> Zach> Zach Smith <tuorfa@yahoo.com> writes: Can anyone tell me what
> Zach> the status of Classpath AWT is? I may be interesting in helping
> Zach> on that part of the project. I can write X/Motif code (and Java
> Zach> code) for it.
> 
> Brian> The AWT is not completely functional and in fact can only be
> Brian> tested/used with some CVS version of gcj at the moment (as far I can
> Brian> tell).  The peers do need some work (GTK peers), but probably not
> Brian> nearly as much as the AWT itself.
> 
> I've been doing a little AWT debugging lately.  I think it is hard to
> say where the bugs really lie.  For instance, fonts don't really seem
> to work (I haven't looked at why).  Text fields don't seem editable.
> Bringing up a file dialog will crash your application; this appears to
> be a bug in the peers.
> 
> That said, there are plenty of bugs in the Java code too.  For
> instance we basically don't use the tree lock anywhere -- this is a
> big problem.  You can grep for FIXME in java/awt to see other areas
> needing help.

Yeah, there are lots of bugs, but I'm sure they could be fixed with a little
bit of time and effort. We would appreciate it if you could help us identify
what needs work (Zach).

Tom, you have these weird X-Zippy headers in your mails.

John Leuner



From nferrier@tapsellferrier.co.uk Sat Mar 16 13:02:14 2002
Received: from host217-34-135-17.in-addr.btopenworld.com ([217.34.135.17] helo=tf1.tapsellferrier.co.uk)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16mIVS-0005mV-00
	for <classpath@gnu.org>; Sat, 16 Mar 2002 13:02:14 -0500
Received: from host217-34-135-21.in-addr.btopenworld.com ([217.34.135.21] helo=pooh-sticks-bridge.tapsellferrier.co.uk)
	by tf1.tapsellferrier.co.uk with esmtp (Exim 3.35 #1 (Debian))
	id 16mIro-00041L-00; Sat, 16 Mar 2002 18:25:20 +0000
To: classpath@gnu.org
Subject: Patch 184 (FileURLConnection formatting changes)
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 16 Mar 2002 18:43:13 +0000
Message-ID: <87u1rgqrpa.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Can I check in the FileURLConnection changes I submitted? They're
just formatting changes.

I have another patch to FileURLConnection which adds some interesting
methods (ones that aren't exposed through the URLConnection class but
there we are). I'm using these new methods in Paperclips.


I'd very much like to submit the patch to Classpath but I don't want
to do that until the FileURLConnection patch has been approved.


Nic



From bryce@waitaki.otago.ac.nz Sat Mar 16 16:18:37 2002
Received: from 210-86-62-106.jetstart.xtra.co.nz ([210.86.62.106] helo=localhost.localdomain)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16mLZU-0006TV-00
	for <classpath@gnu.org>; Sat, 16 Mar 2002 16:18:36 -0500
Received: from waitaki.otago.ac.nz ([192.168.2.2])
	by localhost.localdomain (8.11.2/8.11.2) with ESMTP id g2GKoAf10886;
	Sun, 17 Mar 2002 08:50:11 +1200
Message-ID: <3C93B689.6050102@waitaki.otago.ac.nz>
Date: Sun, 17 Mar 2002 09:18:01 +1200
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.9+) Gecko/20020313
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
CC: classpath@gnu.org
Subject: Re: Patch 184 (FileURLConnection formatting changes)
References: <87u1rgqrpa.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Nic Ferrier wrote:

>Can I check in the FileURLConnection changes I submitted? They're
>just formatting changes.
>

Certainly. You should always feel free to check in formatting-only 
changes which bring things into line with our coding standards.

>I have another patch to FileURLConnection which adds some interesting
>methods (ones that aren't exposed through the URLConnection class but
>there we are). I'm using these new methods in Paperclips.
>
>I'd very much like to submit the patch to Classpath but I don't want
>to do that until the FileURLConnection patch has been approved.
>

I'm not sure that its a good idea to add extra methods to things like 
the URL protocol drivers, even though in this case it is in the gnu 
namespace.

regards

Bryce.




From nferrier@tapsellferrier.co.uk Sat Mar 16 16:27:12 2002
Received: from host217-34-135-17.in-addr.btopenworld.com ([217.34.135.17] helo=tf1.tapsellferrier.co.uk)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16mLho-0006hz-00
	for <classpath@gnu.org>; Sat, 16 Mar 2002 16:27:12 -0500
Received: from host217-34-135-21.in-addr.btopenworld.com ([217.34.135.21] helo=pooh-sticks-bridge.tapsellferrier.co.uk)
	by tf1.tapsellferrier.co.uk with esmtp (Exim 3.35 #1 (Debian))
	id 16mM49-00045X-00; Sat, 16 Mar 2002 21:50:17 +0000
To: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
Cc: classpath@gnu.org
Subject: Re: Patch 184 (FileURLConnection formatting changes)
References: <87u1rgqrpa.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
	<3C93B689.6050102@waitaki.otago.ac.nz>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 16 Mar 2002 22:08:09 +0000
In-Reply-To: <3C93B689.6050102@waitaki.otago.ac.nz>
Message-ID: <87wuwckvxy.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:

> >I have another patch to FileURLConnection which adds some interesting 
> >methods (ones that aren't exposed through the URLConnection class but 
> >there we are). I'm using these new methods in Paperclips. 
> > 
> >I'd very much like to submit the patch to Classpath but I don't want 
> >to do that until the FileURLConnection patch has been approved. 
> > 
>  
> I'm not sure that its a good idea to add extra methods to things like  
> the URL protocol drivers, even though in this case it is in the gnu  
> namespace. 

Ok. I asked here first and the only person to respond was Aaron and
he responded positively.

I'll submit the patch and you guys can turn it down if you want.


Nic



From cbj@gnu.org Sun Mar 17 17:47:39 2002
Received: from fe5.southeast.rr.com ([24.93.67.52] helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16mjRD-0000AT-00
	for <classpath@gnu.org>; Sun, 17 Mar 2002 17:47:39 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sun, 17 Mar 2002 17:47:11 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2HMjh706230;
	Sun, 17 Mar 2002 17:45:43 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: John Leuner <jewel@pixie.co.za>
Cc: classpath@gnu.org
Subject: Re: GNU Classpath + JRVM
References: <OFB99BB9C6.5689FDF8-ON85256B74.005CF85C@pok.ibm.com>
	<20020308211544.GR354@bapli> <20020312183524.GX354@bapli>
	<20020313184432.GB354@bapli>
From: Brian Jones <cbj@gnu.org>
Date: 17 Mar 2002 17:45:43 -0500
In-Reply-To: <20020313184432.GB354@bapli>
Message-ID: <m3bsdm6cfc.fsf@lyta.haphazard.org>
Lines: 67
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

> I've created two documents:
> 
> http://people.debian.org/~jewel//jikes/port_poc.html
> http://people.debian.org/~jewel//jikes/futurechanges.html
> 
> describing my work on porting the Jikes RVM to GNU Classpath (or
> vice versa).
> 
> The biggest issue is:
> 
> Where do we put these JRVM specific changes in Classpath?
> 
> You can view the changed Classpath files at:
> 
> http://people.debian.org/~jewel//jikes/files/vmclasses/

I've started taking a greater look at these changes for Jikes RVM.  

java/lang/Integer.java - changed TYPE to use VM_Type
java/lang/Double.java
java/lang/Byte.java
java/lang/Float.java
java/lang/Short.java
java/lang/Long.java
java/lang/Boolean.java

Would changing VMClassLoader.getPrimitiveClass(String type) to a
non-native function to call VM_Type work here instead?

All of the places where you either commented out or took out the
System.loadLibrary calls that are inside the 
`if (Configuration.INIT_LOAD_LIBRARY)' blocks seem unnecessary, you
can disable this code in configure using --disable-load-library if
you're not using any native methods at all.  In your case is it
necessary to selectively comments out these blocks based on the class
or package involved?

What is the reason for changing FileDescriptor to make the file
descriptor public and the constructor public?

A number of changes indicate that the VM wants to implement low level
details (usually where Classpath traditionally called native
methods).  I can see two options.  In the past, we have added such
classes to the VM interface and we can do this again even though it is
a much larger number of files.  Instead we could try using a
preprocessor rather than the explicit directory/file separation.

Even with just adding the files to the VM interface and moving them to
vm/reference/... there would still be differences between what is part
of reference and what is required for Jikes RVM which I think would
lead to preprocessing anyway since I would rather not maintain a
vm/reference and a vm/jikesrvm, but I'd like to hear other ideas as
well.  If preprocessing is unavoidable, then perhaps we'll abandon the
vm/reference directory all together and always use preprocessing.

I'm assuming that John will continue to lead the Jikes RVM support
effort and help keep those bits in sync with other changes as they may
occur.  What is the status of this code you reference, "Additional
code was provided by Maria Butrico. The code she sent me is JRVM
specific code that had been inserted into the IBM OTI class
libraries" ?

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


From cbj@gnu.org Sun Mar 17 18:23:56 2002
Received: from fe5.southeast.rr.com ([24.93.67.52] helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16mk0K-00023Q-00
	for <classpath@gnu.org>; Sun, 17 Mar 2002 18:23:56 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sun, 17 Mar 2002 18:23:54 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2HNMQY06370;
	Sun, 17 Mar 2002 18:22:26 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: Bryce McKinlay <bryce@waitaki.otago.ac.nz>, classpath@gnu.org
Subject: Re: Patch 184 (FileURLConnection formatting changes)
References: <87u1rgqrpa.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
	<3C93B689.6050102@waitaki.otago.ac.nz>
	<87wuwckvxy.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
From: Brian Jones <cbj@gnu.org>
Date: 17 Mar 2002 18:22:26 -0500
In-Reply-To: <87wuwckvxy.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
Message-ID: <m3y9gqixu5.fsf@lyta.haphazard.org>
Lines: 31
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

> > >I'd very much like to submit the patch to Classpath but I don't want 
> > >to do that until the FileURLConnection patch has been approved. 

The formatting changes do not require approval, they seem benign.

> > I'm not sure that its a good idea to add extra methods to things like  
> > the URL protocol drivers, even though in this case it is in the gnu  
> > namespace. 
> 
> Ok. I asked here first and the only person to respond was Aaron and
> he responded positively.
> 
> I'll submit the patch and you guys can turn it down if you want.

All I see is the formatting patch which I'll commit soon enough.  

Although there is nothing wrong with adding methods to
gnu/java/net/protocol/file/FileURLConnection.java; it could create
problems for users expecting support for the continued usability of
methods unrelated to the public API we're attempting to be compatible
with.  Maybe if you could explain why you need those methods in
gnu/java/net/.../FileURLConnection and what they are it will make more
sense to me.  It seems like you should be trying to use the public API
provided rather than distort some particular backend of our
implementation.

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


From cbj@gnu.org Sun Mar 17 18:34:56 2002
Received: from fe7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16mkAx-0004CG-00
	for <classpath@gnu.org>; Sun, 17 Mar 2002 18:34:55 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Sun, 17 Mar 2002 18:34:48 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2HNXKc06452;
	Sun, 17 Mar 2002 18:33:20 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: Bryce McKinlay <bryce@waitaki.otago.ac.nz>, classpath@gnu.org
Subject: Re: Patch 184 (FileURLConnection formatting changes)
References: <87u1rgqrpa.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
	<3C93B689.6050102@waitaki.otago.ac.nz>
	<87wuwckvxy.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
	<m3y9gqixu5.fsf@lyta.haphazard.org>
From: Brian Jones <cbj@gnu.org>
Date: 17 Mar 2002 18:33:20 -0500
In-Reply-To: <m3y9gqixu5.fsf@lyta.haphazard.org>
Message-ID: <m3u1reixbz.fsf@lyta.haphazard.org>
Lines: 9
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones <cbj@gnu.org> writes:

> All I see is the formatting patch which I'll commit soon enough.  

Actually I won't be doing this.  Nic, have you had a chance to get indent
working with our Java sources?

-- 
Brian Jones <cbj@gnu.org>


From nferrier@tapsellferrier.co.uk Mon Mar 18 04:50:38 2002
Received: from host217-34-135-17.in-addr.btopenworld.com ([217.34.135.17] helo=tf1.tapsellferrier.co.uk)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16mtmo-0002oK-00; Mon, 18 Mar 2002 04:50:38 -0500
Received: from [194.74.202.254] (helo=alambrechts)
	by tf1.tapsellferrier.co.uk with smtp (Exim 3.35 #1 (Debian))
	id 16mu9K-0007h4-00; Mon, 18 Mar 2002 10:13:54 +0000
Message-ID: <004301c1ce62$e79764a0$3d643dc0@gee.co.uk>
From: "nicferrier" <nferrier@tapsellferrier.co.uk>
To: "Brian Jones" <cbj@gnu.org>
Cc: "Bryce McKinlay" <bryce@waitaki.otago.ac.nz>,
	<classpath@gnu.org>
References: <87u1rgqrpa.fsf@pooh-sticks-bridge.tapsellferrier.co.uk><3C93B689.6050102@waitaki.otago.ac.nz><87wuwckvxy.fsf@pooh-sticks-bridge.tapsellferrier.co.uk><m3y9gqixu5.fsf@lyta.haphazard.org> <m3u1reixbz.fsf@lyta.haphazard.org>
Subject: Re: Patch 184 (FileURLConnection formatting changes)
Date: Mon, 18 Mar 2002 09:25:47 -0000
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 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> Brian Jones <cbj@gnu.org> writes:
> > All I see is the formatting patch which I'll commit soon enough.
>
> Actually I won't be doing this.

I will commit the patch... unless you don't want me to.


>Nic, have you had a chance to get indent
> working with our Java sources?

No not yet. I'm worried about patching indent, the maintainers don't seem
keen to allow C++ patches so I can see them being upset about java patches.

But I will make the changes (and worry about the maintainers later).


Nic



From nferrier@tapsellferrier.co.uk Mon Mar 18 04:50:38 2002
Received: from host217-34-135-17.in-addr.btopenworld.com ([217.34.135.17] helo=tf1.tapsellferrier.co.uk)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16mtmo-0002oL-00; Mon, 18 Mar 2002 04:50:38 -0500
Received: from [194.74.202.254] (helo=alambrechts)
	by tf1.tapsellferrier.co.uk with smtp (Exim 3.35 #1 (Debian))
	id 16mu9L-0007h4-00; Mon, 18 Mar 2002 10:13:56 +0000
Message-ID: <004401c1ce62$e85e1000$3d643dc0@gee.co.uk>
From: "nicferrier" <nferrier@tapsellferrier.co.uk>
To: "Brian Jones" <cbj@gnu.org>
Cc: "Bryce McKinlay" <bryce@waitaki.otago.ac.nz>,
	<classpath@gnu.org>
References: <87u1rgqrpa.fsf@pooh-sticks-bridge.tapsellferrier.co.uk><3C93B689.6050102@waitaki.otago.ac.nz><87wuwckvxy.fsf@pooh-sticks-bridge.tapsellferrier.co.uk> <m3y9gqixu5.fsf@lyta.haphazard.org>
Subject: Re: Patch 184 (FileURLConnection formatting changes)
Date: Mon, 18 Mar 2002 09:30:50 -0000
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 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> Although there is nothing wrong with adding methods to
> gnu/java/net/protocol/file/FileURLConnection.java; it could create
> problems for users expecting support for the continued usability of
> methods unrelated to the public API we're attempting to be compatible
> with.  Maybe if you could explain why you need those methods in
> gnu/java/net/.../FileURLConnection and what they are it will make more
> sense to me.  It seems like you should be trying to use the public API
> provided rather than distort some particular backend of our
> implementation.

The methods I want to add only supplement the existing interface. I will
submit a patch and you can take a look at it but they are essentially two
things I was trying to achieve:

- add a listing framework to the class, this is to support servlet container
requirements
- implement meta methods for Files, eg: getLastModified.

When I've done the formatting changes I'll submit another patch. It's fine
if you don't approve it because I can deliver it with Paperclips.


Nic



From cbj@gnu.org Mon Mar 18 08:46:32 2002
Received: from fe4.southeast.rr.com ([24.93.67.51] helo=mail4.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16mxT6-0005kW-00
	for <classpath@gnu.org>; Mon, 18 Mar 2002 08:46:32 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail4.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 18 Mar 2002 08:47:00 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2IDiro14404;
	Mon, 18 Mar 2002 08:44:53 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: "nicferrier" <nferrier@tapsellferrier.co.uk>
Cc: "Bryce McKinlay" <bryce@waitaki.otago.ac.nz>, <classpath@gnu.org>
Subject: Re: Patch 184 (FileURLConnection formatting changes)
References: <87u1rgqrpa.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
	<3C93B689.6050102@waitaki.otago.ac.nz>
	<87wuwckvxy.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
	<m3y9gqixu5.fsf@lyta.haphazard.org>
	<m3u1reixbz.fsf@lyta.haphazard.org>
	<004301c1ce62$e79764a0$3d643dc0@gee.co.uk>
From: Brian Jones <cbj@gnu.org>
Date: 18 Mar 2002 08:44:53 -0500
In-Reply-To: <004301c1ce62$e79764a0$3d643dc0@gee.co.uk>
Message-ID: <m3k7sahtwq.fsf@lyta.haphazard.org>
Lines: 14
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

"nicferrier" <nferrier@tapsellferrier.co.uk> writes:

> > Brian Jones <cbj@gnu.org> writes:
> > > All I see is the formatting patch which I'll commit soon enough.
> >
> > Actually I won't be doing this.
> 
> I will commit the patch... unless you don't want me to.

Formatting only is fine.  At some point I'd like to "beautify" the
tree before each release.

-- 
Brian Jones <cbj@gnu.org>


From cbj@gnu.org Mon Mar 18 08:54:56 2002
Received: from fe8.southeast.rr.com ([24.93.67.55] helo=mail8.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16mxbD-00060c-00
	for <classpath@gnu.org>; Mon, 18 Mar 2002 08:54:55 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail8.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 18 Mar 2002 08:54:55 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2IDrIv14451;
	Mon, 18 Mar 2002 08:53:18 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: "nicferrier" <nferrier@tapsellferrier.co.uk>
Cc: classpath@gnu.org
Subject: Re: Patch 184 (FileURLConnection formatting changes)
References: <87u1rgqrpa.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
	<3C93B689.6050102@waitaki.otago.ac.nz>
	<87wuwckvxy.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
	<m3y9gqixu5.fsf@lyta.haphazard.org>
	<004401c1ce62$e85e1000$3d643dc0@gee.co.uk>
From: Brian Jones <cbj@gnu.org>
Date: 18 Mar 2002 08:53:18 -0500
In-Reply-To: <004401c1ce62$e85e1000$3d643dc0@gee.co.uk>
Message-ID: <m3g02yhtip.fsf@lyta.haphazard.org>
Lines: 20
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

"nicferrier" <nferrier@tapsellferrier.co.uk> writes:

> The methods I want to add only supplement the existing interface. I will
> submit a patch and you can take a look at it but they are essentially two
> things I was trying to achieve:
> 
> - add a listing framework to the class, this is to support servlet container
> requirements
> - implement meta methods for Files, eg: getLastModified.

For Files, wouldn't you just want to do URL.getFile() and use the
File.getLastModified()?  For web traffic, I think it is just part of
the request/response semantics, right?

> When I've done the formatting changes I'll submit another patch. It's fine
> if you don't approve it because I can deliver it with Paperclips.

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


From nferrier@tapsellferrier.co.uk Mon Mar 18 10:37:59 2002
Received: from host217-34-135-17.in-addr.btopenworld.com ([217.34.135.17] helo=tf1.tapsellferrier.co.uk)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16mzCw-0007sD-00; Mon, 18 Mar 2002 10:37:59 -0500
Received: from host217-34-135-21.in-addr.btopenworld.com ([217.34.135.21] helo=pooh-sticks-bridge.tapsellferrier.co.uk)
	by tf1.tapsellferrier.co.uk with esmtp (Exim 3.35 #1 (Debian))
	id 16mzZX-0007sW-00; Mon, 18 Mar 2002 16:01:19 +0000
To: Brian Jones <cbj@gnu.org>
Cc: classpath@gnu.org
Subject: Re: Patch 184 (FileURLConnection formatting changes)
References: <87u1rgqrpa.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
	<3C93B689.6050102@waitaki.otago.ac.nz>
	<87wuwckvxy.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
	<m3y9gqixu5.fsf@lyta.haphazard.org>
	<004401c1ce62$e85e1000$3d643dc0@gee.co.uk>
	<m3g02yhtip.fsf@lyta.haphazard.org>
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 18 Mar 2002 17:50:16 +0000
In-Reply-To: <m3g02yhtip.fsf@lyta.haphazard.org>
Message-ID: <87hendzrxj.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Brian Jones <cbj@gnu.org> writes:

> "nicferrier" <nferrier@tapsellferrier.co.uk> writes: 
>  
> > The methods I want to add only supplement the existing interface. I will 
> > submit a patch and you can take a look at it but they are essentially two 
> > things I was trying to achieve: 
> >  
> > - add a listing framework to the class, this is to support servlet container 
> > requirements 
> > - implement meta methods for Files, eg: getLastModified. 
>  
> For Files, wouldn't you just want to do URL.getFile() and use the 
> File.getLastModified()?  

Within the class yes. I don't see why the user should have to do
that, in the scenario where URLConnections are used without knowing
what the implementation is it's really useful to have these methods
implemented right.


> For web traffic, I think it is just part of the request/response 
> semantics, right? 

I've not done anything with gnu's HttpURLConnection
implementation. I'm going to at some point, to add 1.1 compatibility
to it.


Nic



From ebb9@email.byu.edu Mon Mar 18 17:25:22 2002
Received: from rwcrmhc53.attbi.com ([204.127.198.39])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16n5ZC-0004in-00
	for <classpath@gnu.org>; Mon, 18 Mar 2002 17:25:22 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc53.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020318222517.NFGQ2951.rwcrmhc53.attbi.com@email.byu.edu>
          for <classpath@gnu.org>; Mon, 18 Mar 2002 22:25:17 +0000
Message-ID: <3C96693E.44F8331E@email.byu.edu>
Date: Mon, 18 Mar 2002 15:25:02 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath list <classpath@gnu.org>
Subject: FYI: javax.accessibility
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I was working last weekend on updating java.applet, and in the process,
decided that it would be worth my while to implement javax.accessibility
first.  As has already been commented, hacking anything related to AWT
is sure interrelated! I checked in this package, my changes to applet
will follow shortly.

2002-03-18  Eric Blake  <ebb9@email.byu.edu>

	* javax/Makefile.am (SUBDIRS): Visit accessibility subdir.
	* javax/accessibility/Makefile.am: New file.
	* javax/accessibility/.cvsignore: New file.
	* javax/accessibility/Accessible.java: Update to 1.4.
	* javax/accessibility/AccessibleAction.java: Update to 1.4.
	* javax/accessibility/AccessibleBundle.java: Implement.
	* javax/accessibility/AccessibleComponent.java: Update to 1.4.
	* javax/accessibility/AccessibleContext.java: Implement.
	* javax/accessibility/AccessibleEditableText.java: New file.
	* javax/accessibility/AccessibleExtendedComponent.java: New file.
	* javax/accessibility/AccessibleExtendedTable.java: New file.
	* javax/accessibility/AccessibleHyperlink.java: Implement.
	* javax/accessibility/AccessibleHypertext.java: Update to 1.4.
	* javax/accessibility/AccessibleIcon.java: New file.
	* javax/accessibility/AccessibleKeyBinding.java: New file.
	* javax/accessibility/AccessibleRelation.java: New file.
	* javax/accessibility/AccessibleRelationSet.java: New file.
	* javax/accessibility/AccessibleResourceBundle.java: Implement.
	* javax/accessibility/AccessibleRole.java: Implement.
	* javax/accessibility/AccessibleSelection.java: Update to 1.4.
	* javax/accessibility/AccessibleState.java: Implement.
	* javax/accessibility/AccessibleStateSet.java: Implement.
	* javax/accessibility/AccessibleTable.java: New file.
	* javax/accessibility/AccessibleTableModelChange.java: New file.
	* javax/accessibility/AccessibleText.java: Update to 1.4.
	* javax/accessibility/AccessibleValue.java: Update to 1.4.

-- 
This signature intentionally left boring.

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


From cbj@gnu.org Mon Mar 18 17:44:31 2002
Received: from fe7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16n5rj-0000SU-00
	for <classpath@gnu.org>; Mon, 18 Mar 2002 17:44:31 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 18 Mar 2002 17:41:42 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2IMe0S16618;
	Mon, 18 Mar 2002 17:40:00 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: FYI: javax.accessibility
References: <3C96693E.44F8331E@email.byu.edu>
From: Brian Jones <cbj@gnu.org>
Date: 18 Mar 2002 17:40:00 -0500
In-Reply-To: <3C96693E.44F8331E@email.byu.edu>
Message-ID: <m3bsdlijpb.fsf@lyta.haphazard.org>
Lines: 14
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

> I was working last weekend on updating java.applet, and in the process,
> decided that it would be worth my while to implement javax.accessibility
> first.  As has already been commented, hacking anything related to AWT
> is sure interrelated! I checked in this package, my changes to applet
> will follow shortly.

Are you updating lib/standard.omit and configure.in to build this
package?

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


From ebb9@email.byu.edu Mon Mar 18 18:02:22 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16n690-0001QD-00; Mon, 18 Mar 2002 18:02:22 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020318230220.DVRB1147.rwcrmhc52.attbi.com@email.byu.edu>;
          Mon, 18 Mar 2002 23:02:20 +0000
Message-ID: <3C9671FA.6E6E2166@email.byu.edu>
Date: Mon, 18 Mar 2002 16:02:18 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Brian Jones <cbj@gnu.org>
CC: Classpath list <classpath@gnu.org>
Subject: Re: FYI: javax.accessibility
References: <3C96693E.44F8331E@email.byu.edu> <m3bsdlijpb.fsf@lyta.haphazard.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Oops. Thanks for the catch. I just committed that too.

Brian Jones wrote:
> 
> Are you updating lib/standard.omit and configure.in to build this
> package?
> 

-- 
This signature intentionally left boring.

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


From jleuner@elandtech.com Tue Mar 19 04:40:52 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16nG6t-0003q1-00; Tue, 19 Mar 2002 04:40:51 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16nG2Z-0000at-00; Tue, 19 Mar 2002 09:36:23 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16nG2v-0005EG-00; Tue, 19 Mar 2002 09:36:45 +0000
Date: Tue, 19 Mar 2002 09:36:45 +0000
From: John Leuner <jewel@pixie.co.za>
To: Brian Jones <cbj@gnu.org>
Cc: John Leuner <jewel@pixie.co.za>, classpath@gnu.org
Subject: Re: GNU Classpath + JRVM
Message-ID: <20020319093645.GQ354@bapli>
References: <OFB99BB9C6.5689FDF8-ON85256B74.005CF85C@pok.ibm.com> <20020308211544.GR354@bapli> <20020312183524.GX354@bapli> <20020313184432.GB354@bapli> <m3bsdm6cfc.fsf@lyta.haphazard.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <m3bsdm6cfc.fsf@lyta.haphazard.org>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> > http://people.debian.org/~jewel//jikes/port_poc.html
> > http://people.debian.org/~jewel//jikes/futurechanges.html
> java/lang/Integer.java - changed TYPE to use VM_Type
> java/lang/Double.java
> java/lang/Byte.java
> java/lang/Float.java
> java/lang/Short.java
> java/lang/Long.java
> java/lang/Boolean.java
> 
> Would changing VMClassLoader.getPrimitiveClass(String type) to a
> non-native function to call VM_Type work here instead?

Yes, that would work.
 
> All of the places where you either commented out or took out the
> System.loadLibrary calls that are inside the 
> `if (Configuration.INIT_LOAD_LIBRARY)' blocks seem unnecessary, you
> can disable this code in configure using --disable-load-library if
> you're not using any native methods at all.  In your case is it
> necessary to selectively comments out these blocks based on the class
> or package involved?

I don't remember any specific reason for commenting them out.

There are/were one or two cases where I had to 'fabricate' a static initializer
for a class, but I think that is unrelated to the commenting of the INIT_LOAD_LIBRARY
 blocks.

> What is the reason for changing FileDescriptor to make the file
> descriptor public and the constructor public?

I don't know, in my notes I didn't write down a reason.

I removed the field, recompiled and it ran successfully.

This was probably a side-effect of including the GNU libraries piece by piece.

> A number of changes indicate that the VM wants to implement low level
> details (usually where Classpath traditionally called native
> methods).  I can see two options.  In the past, we have added such
> classes to the VM interface and we can do this again even though it is
> a much larger number of files.  Instead we could try using a
> preprocessor rather than the explicit directory/file separation.
> 
> Even with just adding the files to the VM interface and moving them to
> vm/reference/... there would still be differences between what is part
> of reference and what is required for Jikes RVM which I think would
> lead to preprocessing anyway since I would rather not maintain a
> vm/reference and a vm/jikesrvm, but I'd like to hear other ideas as
> well.  If preprocessing is unavoidable, then perhaps we'll abandon the
> vm/reference directory all together and always use preprocessing.

I don't like preprocessing because it implies another level in the build process, 
but it looks like the best option at the moment.

Classpath is still changing a lot, I think it will be easier for developers to 
see what effect their changes will have when all the code is in the same place
(versus in separate VM files).

> I'm assuming that John will continue to lead the Jikes RVM support
> effort and help keep those bits in sync with other changes as they may
> occur.  

Sure 

> What is the status of this code you reference, "Additional
> code was provided by Maria Butrico. The code she sent me is JRVM
> specific code that had been inserted into the IBM OTI class
> libraries" ?

This is essentially the code that calls methods in the VM_* classes.

It doesn't really have a "home" .. it was extracted from the changes made 
to the IBM OTI libraries. There may be a few cases where we can reduce
the amount of extra code needed in Classpath by including code upstream in JRVM.

John Leuner


From cbj@gnu.org Tue Mar 19 09:02:57 2002
Received: from fe6.southeast.rr.com ([24.93.67.53] helo=Mail6.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16nKCW-0002OR-00
	for <classpath@gnu.org>; Tue, 19 Mar 2002 09:02:56 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by Mail6.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 19 Mar 2002 09:02:56 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2JE13c20251;
	Tue, 19 Mar 2002 09:01:03 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: John Leuner <jewel@pixie.co.za>
Cc: classpath@gnu.org
Subject: Re: GNU Classpath + JRVM
References: <OFB99BB9C6.5689FDF8-ON85256B74.005CF85C@pok.ibm.com>
	<20020308211544.GR354@bapli> <20020312183524.GX354@bapli>
	<20020313184432.GB354@bapli> <m3bsdm6cfc.fsf@lyta.haphazard.org>
	<20020319093645.GQ354@bapli>
From: Brian Jones <cbj@gnu.org>
Date: 19 Mar 2002 09:01:03 -0500
In-Reply-To: <20020319093645.GQ354@bapli>
Message-ID: <m31yegirmo.fsf@lyta.haphazard.org>
Lines: 63
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

> > Would changing VMClassLoader.getPrimitiveClass(String type) to a
> > non-native function to call VM_Type work here instead?
> 
> Yes, that would work.

Great!

> > All of the places where you either commented out or took out the
> > System.loadLibrary calls that are inside the 
> > `if (Configuration.INIT_LOAD_LIBRARY)' blocks seem unnecessary, you
> > can disable this code in configure using --disable-load-library if
> > you're not using any native methods at all.  In your case is it
> > necessary to selectively comments out these blocks based on the class
> > or package involved?
> 
> I don't remember any specific reason for commenting them out.
> 
> There are/were one or two cases where I had to 'fabricate' a static initializer
> for a class, but I think that is unrelated to the commenting of the INIT_LOAD_LIBRARY
>  blocks.

Okay, I guess we can ignore that change for now.

> > What is the reason for changing FileDescriptor to make the file
> > descriptor public and the constructor public?
> 
> I don't know, in my notes I didn't write down a reason.  I removed
> the field, recompiled and it ran successfully.  This was probably a
> side-effect of including the GNU libraries piece by piece.

And ignore this change too.

> I don't like preprocessing because it implies another level in the build process, 
> but it looks like the best option at the moment.

It's not that bad.  I know where to put this piece and how it should
work; I worry about small details like will generating the .java
source force recompiles on every make invocation?

> Classpath is still changing a lot, I think it will be easier for developers to 
> see what effect their changes will have when all the code is in the same place
> (versus in separate VM files).

I think so too.

> > What is the status of this code you reference, "Additional
> > code was provided by Maria Butrico. The code she sent me is JRVM
> > specific code that had been inserted into the IBM OTI class
> > libraries" ?
> 
> This is essentially the code that calls methods in the VM_* classes.
> 
> It doesn't really have a "home" .. it was extracted from the changes made 
> to the IBM OTI libraries. There may be a few cases where we can reduce
> the amount of extra code needed in Classpath by including code upstream in JRVM.

I'm asking only in reference to any need for assignment paperwork on
those bits.

-- 
Brian Jones <cbj@gnu.org>


From jleuner@elandtech.com Tue Mar 19 09:24:17 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16nKXA-0003pr-00; Tue, 19 Mar 2002 09:24:17 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16nKSp-0003NT-00; Tue, 19 Mar 2002 14:19:47 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16nKTA-0005ak-00; Tue, 19 Mar 2002 14:20:08 +0000
Date: Tue, 19 Mar 2002 14:20:08 +0000
From: John Leuner <jewel@pixie.co.za>
To: Brian Jones <cbj@gnu.org>
Cc: John Leuner <jewel@pixie.co.za>, classpath@gnu.org
Subject: Re: GNU Classpath + JRVM -- Licensing
Message-ID: <20020319142008.GV354@bapli>
References: <OFB99BB9C6.5689FDF8-ON85256B74.005CF85C@pok.ibm.com> <20020308211544.GR354@bapli> <20020312183524.GX354@bapli> <20020313184432.GB354@bapli> <m3bsdm6cfc.fsf@lyta.haphazard.org> <20020319093645.GQ354@bapli> <m31yegirmo.fsf@lyta.haphazard.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <m31yegirmo.fsf@lyta.haphazard.org>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> > > What is the status of this code you reference, "Additional
> > > code was provided by Maria Butrico. The code she sent me is JRVM
> > > specific code that had been inserted into the IBM OTI class
> > > libraries" ?
> > 
> > This is essentially the code that calls methods in the VM_* classes.
> > 
> > It doesn't really have a "home" .. it was extracted from the changes made 
> > to the IBM OTI libraries. There may be a few cases where we can reduce
> > the amount of extra code needed in Classpath by including code upstream in JRVM.
> 
> I'm asking only in reference to any need for assignment paperwork on
> those bits.

Ah.

Maria indicated to me that this code has exactly the same license as JRVM. 

Will we need to approach IBM about assigning copyright for this to the FSF?

How will that affect (this same code) that they're using with the OTI libs?

John Leuner




From brawer@acm.org Tue Mar 19 10:52:49 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16nLur-0005mR-00
	for <classpath@gnu.org>; Tue, 19 Mar 2002 10:52:49 -0500
Received: from [0.0.0.0] (195.15.166.87) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C8EA165000BC7A6 for classpath@gnu.org; Tue, 19 Mar 2002 16:51:47 +0100
From: Sascha Brawer <brawer@acm.org>
To: <classpath@gnu.org>
Subject: Constant Field Values
Date: Tue, 19 Mar 2002 16:48:52 +0100
Message-Id: <20020319154852.17178@pop.schoedler.ch>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

is it ok to commit, without asking the list for individual cases, changes
in order to match constant field values?

Those values are now published at:

   http://java.sun.com/j2se/1.4/docs/api/constant-values.html

I plan to walk through them systematically and review each definition in
the Classpath code.  No promises for how long this will take...

-- Sascha




From ebb9@email.byu.edu Tue Mar 19 11:04:28 2002
Received: from rwcrmhc53.attbi.com ([204.127.198.39])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16nM67-0006Ea-00
	for <classpath@gnu.org>; Tue, 19 Mar 2002 11:04:28 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc53.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020319160426.QNWL2951.rwcrmhc53.attbi.com@email.byu.edu>;
          Tue, 19 Mar 2002 16:04:26 +0000
Message-ID: <3C976167.8D435017@email.byu.edu>
Date: Tue, 19 Mar 2002 09:03:51 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Sascha Brawer <brawer@acm.org>
CC: classpath@gnu.org
Subject: Re: Constant Field Values
References: <20020319154852.17178@pop.schoedler.ch>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I've already been doing some of that in the packages I've touched.  Sun
still hasn't published ALL their constants, but it is a nice start. 
Their doclet fails to list the values for several interfaces, so you
will still have to write small programs to display some values (like I
had to do for java.awt.Transparency.OPAQUE, for example).  But I think
if you have already signed the FSF papers, then go for it.

Sascha Brawer wrote:
> 
> Hi,
> 
> is it ok to commit, without asking the list for individual cases, changes
> in order to match constant field values?
> 
> Those values are now published at:
> 
>    http://java.sun.com/j2se/1.4/docs/api/constant-values.html
> 
> I plan to walk through them systematically and review each definition in
> the Classpath code.  No promises for how long this will take...
> 
> -- Sascha

-- 
This signature intentionally left boring.

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


From sballard@netreach.com Tue Mar 19 11:59:28 2002
Received: from rawaki.netreach.net ([207.29.195.114])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16nMxL-0003ay-00
	for <classpath@gnu.org>; Tue, 19 Mar 2002 11:59:27 -0500
Received: from netreach.com (sballard@rainbow.netreach.net [209.152.221.64]) by rawaki.netreach.net (n1/$Revision: 1.5 $) with ESMTP id LAA11253; Tue, 19 Mar 2002 11:59:53 -0500 (EST)
Message-ID: <3C976E69.49E5FECA@netreach.com>
Date: Tue, 19 Mar 2002 11:59:21 -0500
From: Stuart Ballard <sballard@NetReach.Net>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.17 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Eric Blake <ebb9@email.byu.edu>
CC: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
Subject: Re: Constant Field Values
References: <20020319154852.17178@pop.schoedler.ch> <3C976167.8D435017@email.byu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake wrote:
> 
> I've already been doing some of that in the packages I've touched.  Sun
> still hasn't published ALL their constants, but it is a nice start.
> Their doclet fails to list the values for several interfaces, so you
> will still have to write small programs to display some values (like I
> had to do for java.awt.Transparency.OPAQUE, for example).  But I think
> if you have already signed the FSF papers, then go for it.

This is one thing that can be done with japicompat
(http://stuart.wuffies.net/japi/). I personally think that this is a
very useful tool for classpath, although I'm biased since I wrote it ;)
It has languished quite a lot - I became discouraged since the data
structures and algorithms it uses take a pretty huge amount of memory
when trying to parse JDK versions higher than 1.1. But probably some
perl wizard could figure out a way to fix that...

I just went through and updated the documentation to the best of my
memory (since it was outdated already by the time I got discouraged). If
anyone is interested in taking over maintenance of these tools, I'd be
happy to hand them over. The code, if I remember rightly, is pretty well
commented, so even if a complete rewrite *is* needed to get memory usage
down, there should be a comprehensible code base to start with.

One workaround to the excessive memory usage would be just to operate on
subsets of the API at a time: for example, instead of just doing "+java
-java.awt.peer -java.text.resources" you could do "+java.util" to limit
yourself to the subset of the API that lives under java.util. Also,
.japi files are concatenatable so the full jdk14.japi can be generated
by concatenating the output of multiple Japize runs, and then a suitable
grep pattern can cut it into smaller chunks for japicompatting. This
might make it useful "right now", without having to do a rewrite to get
the memory usage down.

[If anyone has any suggestions of things I ought to do in looking for a
new maintainer, other than making postings like this when the topic
comes up, please reply off-list]

Stuart.

-- 
Stuart Ballard, Programmer
NetReach - Internet Solutions
(215) 283-2300, ext. 126
http://www.netreach.com/


From tromey@creche.cygnus.com Tue Mar 19 12:29:03 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16nNPz-0005xA-00
	for <classpath@gnu.org>; Tue, 19 Mar 2002 12:29:03 -0500
Received: from creche.cygnus.com (ta0196.peakpeak.com [204.144.244.196])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id KAA29308;
	Tue, 19 Mar 2002 10:28:58 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id LAA31655;
	Tue, 19 Mar 2002 11:01:14 -0700
To: Sascha Brawer <brawer@acm.org>
Cc: <classpath@gnu.org>
Subject: Re: Constant Field Values
References: <20020319154852.17178@pop.schoedler.ch>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  It was a JOKE!!  Get it??  I was receiving messages
 from DAVID LETTERMAN!!  YOW!!
Date: 19 Mar 2002 11:01:13 -0700
In-Reply-To: Sascha Brawer's message of "Tue, 19 Mar 2002 16:48:52 +0100"
Message-ID: <87k7s81lp2.fsf@creche.redhat.com>
Lines: 9
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>>>>> "Sascha" == Sascha Brawer <brawer@acm.org> writes:

Sascha> is it ok to commit, without asking the list for individual
Sascha> cases, changes in order to match constant field values?

Yes.  Those are obviously-correct bug fixes.
It is also ok to use reverse engineering to find constant values.

Tom


From jleuner@elandtech.com Tue Mar 19 13:23:20 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16nOGV-0004Kv-00; Tue, 19 Mar 2002 13:23:19 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16nOCA-0006Fk-00; Tue, 19 Mar 2002 18:18:50 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16nOCV-0005wc-00; Tue, 19 Mar 2002 18:19:11 +0000
Date: Tue, 19 Mar 2002 18:19:11 +0000
From: John Leuner <jewel@pixie.co.za>
To: Brian Jones <cbj@gnu.org>
Cc: John Leuner <jewel@pixie.co.za>, classpath@gnu.org
Subject: Re: GNU Classpath + JRVM -- Licensing
Message-ID: <20020319181911.GX354@bapli>
References: <OFB99BB9C6.5689FDF8-ON85256B74.005CF85C@pok.ibm.com> <20020308211544.GR354@bapli> <20020312183524.GX354@bapli> <20020313184432.GB354@bapli> <m3bsdm6cfc.fsf@lyta.haphazard.org> <20020319093645.GQ354@bapli> <m31yegirmo.fsf@lyta.haphazard.org> <20020319142008.GV354@bapli> <m33cywsa07.fsf@lyta.haphazard.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <m33cywsa07.fsf@lyta.haphazard.org>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> > Maria indicated to me that this code has exactly the same license as
> > JRVM.  Will we need to approach IBM about assigning copyright for
> > this to the FSF?  How will that affect (this same code) that they're
> > using with the OTI libs?

In the event that sorting this out takes some time, I assume there wouldn't
be any problems if I maintained these changes as a patch to Classpath?

John Leuner


From cbj@gnu.org Tue Mar 19 15:15:16 2002
Received: from fe5.southeast.rr.com ([24.93.67.52] helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16nQ0q-0006nU-00
	for <classpath@gnu.org>; Tue, 19 Mar 2002 15:15:16 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Tue, 19 Mar 2002 15:04:30 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2JK2XJ21832;
	Tue, 19 Mar 2002 15:02:33 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: John Leuner <jewel@pixie.co.za>
Cc: classpath@gnu.org
Subject: Re: GNU Classpath + JRVM -- Licensing
References: <OFB99BB9C6.5689FDF8-ON85256B74.005CF85C@pok.ibm.com>
	<20020308211544.GR354@bapli> <20020312183524.GX354@bapli>
	<20020313184432.GB354@bapli> <m3bsdm6cfc.fsf@lyta.haphazard.org>
	<20020319093645.GQ354@bapli> <m31yegirmo.fsf@lyta.haphazard.org>
	<20020319142008.GV354@bapli> <m33cywsa07.fsf@lyta.haphazard.org>
	<20020319181911.GX354@bapli>
From: Brian Jones <cbj@gnu.org>
Date: 19 Mar 2002 15:02:33 -0500
In-Reply-To: <20020319181911.GX354@bapli>
Message-ID: <m3lmcouy06.fsf@lyta.haphazard.org>
Lines: 13
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

> > > Maria indicated to me that this code has exactly the same license as
> > > JRVM.  Will we need to approach IBM about assigning copyright for
> > > this to the FSF?  How will that affect (this same code) that they're
> > > using with the OTI libs?
> 
> In the event that sorting this out takes some time, I assume there wouldn't
> be any problems if I maintained these changes as a patch to Classpath?

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


From brawer@acm.org Wed Mar 20 17:08:48 2002
Received: from delysid.gnu.org ([158.121.106.20])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16noGG-0007O8-00
	for <classpath@gnu.org>; Wed, 20 Mar 2002 17:08:48 -0500
Received: from mail01.agrinet.ch ([212.28.134.110])
	by delysid.gnu.org with esmtp (Exim 3.34 #2)
	id 16nleR-0004B4-00
	for <classpath@gnu.org>; Wed, 20 Mar 2002 14:21:35 -0500
Received: from [0.0.0.0] (195.15.166.133) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C8EA165000E2E33 for classpath@gnu.org; Wed, 20 Mar 2002 20:20:03 +0100
From: Sascha Brawer <brawer@acm.org>
To: <classpath@gnu.org>
Subject: java.util.zip.GZIPConstants
Date: Wed, 20 Mar 2002 20:17:36 +0100
Message-Id: <20020320191736.23954@pop.schoedler.ch>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hello,

while reviewing the constant field values in Classpath, I stumbled across
the following situation:

// Classpath
package java.util.zip;

interface GZIPConstants
{
  public static final int GZIP_MAGIC = 0x1f8b;
  public static final int FTEXT = 0x1;
  ...
}


public class GZIPInputStream
  extends InflaterInputStream
  implements GZIPConstants
{
  ...
}


public class GZIPOutputStream
  extends DeflaterOutputStream
  implements GZIPConstants
{
  ...
}



Now, according Sun's J2SE 1.4 Javadoc, one would expect the following:

// Spec
package java.util.zip;

public class GZIPInputStream
  extends InflaterInputStream
{
  public static final int GZIP_MAGIC = 0x1f8b;
  ...
}


public class GZIPOutputStream
  extends DeflaterOutputStream
{
  ...
}


Observations:

1. The spec requires GZIPInputStream.GZIP_MAGIC; Classpath inherits the
field from a package-private interface.

2. According to the spec, there should not be a GZIPOutputStream.GZIP_MAGIC.

3. According to the spec, there should not be a FTEXT anywhere.

Are any of these non-conformant?

-- Sascha




From ebb9@email.byu.edu Wed Mar 20 17:45:36 2002
Received: from delysid.gnu.org ([158.121.106.20])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16nops-00047a-00
	for <classpath@gnu.org>; Wed, 20 Mar 2002 17:45:36 -0500
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by delysid.gnu.org with smtp (Exim 3.34 #2)
	id 16nY9V-0002iu-00
	for <classpath@gnu.org>; Tue, 19 Mar 2002 23:56:45 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020320045603.JKAO1147.rwcrmhc52.attbi.com@email.byu.edu>
          for <classpath@gnu.org>; Wed, 20 Mar 2002 04:56:03 +0000
Message-ID: <3C981621.AFA64FB7@email.byu.edu>
Date: Tue, 19 Mar 2002 21:54:57 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath list <classpath@gnu.org>
Subject: FYI: More AWT updates
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Here's the latest batch. I updated all the interfaces of java.awt, and
in the process had to add methods to Polygon.  I think I got the
algorithms in Polygon correct, but it was a bear to code because of
Sun's definition (in the Shape interface) of included points!  Someone
who is more fluent with computer graphics than me may want to check my
work.

2002-03-19  Eric Blake  <ebb9@email.byu.edu>

	* java/awt/Makefile.am (EXTRA_DIST): Add new files.
	* java/awt/AWTEvent.java: Update to 1.4.
	* java/awt/ActiveEvent.java: Update to 1.4.
	* java/awt/Adjustable.java: Update to 1.4.
	* java/awt/Composite.java: New file.
	* java/awt/CompositeContext.java: New file.
	* java/awt/ItemSelectable.java: Update to 1.4.
	* java/awt/KeyEventDispatcher.java: New file.
	* java/awt/KeyEventPostProcessor.java: New file.
	* java/awt/LayoutManager.java: Update to 1.4.
	* java/awt/LayoutManager2.java: Update to 1.4.
	* java/awt/MenuContainer.java: Update to 1.4.
	* java/awt/Paint.java: Update to 1.4.
	* java/awt/PaintContext.java: Update to 1.4.
	* java/awt/Polygon.java: Update to 1.4, including new methods.
	* java/awt/PrintGraphics.java: Update to 1.4.
	* java/awt/Shape.java: Update to 1.4.
	* java/awt/Stroke.java: New file.
	* java/awt/Transparency.java: Update to 1.4.
-- 
This signature intentionally left boring.

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


From ebb9@email.byu.edu Wed Mar 20 17:58:47 2002
Received: from delysid.gnu.org ([158.121.106.20])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16norr-0007Xb-00
	for <classpath@gnu.org>; Wed, 20 Mar 2002 17:47:39 -0500
Received: from rwcrmhc54.attbi.com ([216.148.227.87])
	by delysid.gnu.org with smtp (Exim 3.34 #2)
	id 16nXxO-0002Qk-00
	for <classpath@gnu.org>; Tue, 19 Mar 2002 23:44:15 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc54.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020320044335.EOPJ1214.rwcrmhc54.attbi.com@email.byu.edu>;
          Wed, 20 Mar 2002 04:43:35 +0000
Message-ID: <3C98133A.F4C5F799@email.byu.edu>
Date: Tue, 19 Mar 2002 21:42:34 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Sascha Brawer <brawer@acm.org>
CC: classpath@gnu.org
Subject: Re: Constant Field Values
References: <20020319154852.17178@pop.schoedler.ch>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Sascha,

Be sure to add ChangeLog entries for the changes you make.  I was
surprised to find that you had changed java.awt.AWTEvent today, because
nothing happened when I did a CVS update on the ChangeLog.

Sascha Brawer wrote:
> 
> Hi,
> 
> is it ok to commit, without asking the list for individual cases, changes
> in order to match constant field values?
> 
> Those values are now published at:
> 
>    http://java.sun.com/j2se/1.4/docs/api/constant-values.html
> 
> I plan to walk through them systematically and review each definition in
> the Classpath code.  No promises for how long this will take...
> 
> -- Sascha

-- 
This signature intentionally left boring.

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


From brawer@acm.org Wed Mar 20 17:50:20 2002
Received: from delysid.gnu.org ([158.121.106.20])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16noh6-0008Lr-00
	for <classpath@gnu.org>; Wed, 20 Mar 2002 17:36:32 -0500
Received: from mail01.agrinet.ch ([212.28.134.110])
	by delysid.gnu.org with esmtp (Exim 3.34 #2)
	id 16ncTu-0000oC-00
	for <classpath@gnu.org>; Wed, 20 Mar 2002 04:34:08 -0500
Received: from [195.15.166.198] (195.15.166.198) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C8EA165000CDF79; Wed, 20 Mar 2002 10:04:01 +0100
From: Sascha Brawer <brawer@acm.org>
To: Eric Blake <ebb9@email.byu.edu>
Cc: <classpath@gnu.org>
Subject: Re: Constant Field Values
Date: Wed, 20 Mar 2002 09:59:54 +0100
Message-Id: <20020320085954.456@pop.schoedler.ch>
In-Reply-To: <3C98133A.F4C5F799@email.byu.edu>
References: <3C98133A.F4C5F799@email.byu.edu>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Eric Blake <ebb9@email.byu.edu> wrote on Tue, 19 Mar 2002 21:42:34 -0700:

>Be sure to add ChangeLog entries for the changes you make.  I was
>surprised to find that you had changed java.awt.AWTEvent today, because
>nothing happened when I did a CVS update on the ChangeLog.

Sorry about that -- I've added an entry.

-- Sascha




From nferrier@tapsellferrier.co.uk Wed Mar 20 18:14:00 2002
Received: from delysid.gnu.org ([158.121.106.20])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16nowt-0000u8-00
	for <classpath@gnu.org>; Wed, 20 Mar 2002 17:52:51 -0500
Received: from host217-34-135-17.in-addr.btopenworld.com ([217.34.135.17] helo=tf1.tapsellferrier.co.uk)
	by delysid.gnu.org with esmtp (Exim 3.34 #2)
	id 16nVNx-0007cq-00
	for <classpath@gnu.org>; Tue, 19 Mar 2002 20:59:29 -0500
Received: from host217-34-135-21.in-addr.btopenworld.com ([217.34.135.21] helo=pooh-sticks-bridge.tapsellferrier.co.uk)
	by tf1.tapsellferrier.co.uk with esmtp (Exim 3.35 #1 (Debian))
	id 16nVfp-0000VW-00; Wed, 20 Mar 2002 02:17:57 +0000
To: classpath@gnu.org
Subject: patch 197: FileURLConnection
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Date: 20 Mar 2002 01:57:08 +0000
Message-ID: <87henc3ssr.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
Lines: 33
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I've submitted the patch I discussed here previously. 

The patch adds some functionality to FileURLConnections. The impetus
for this was GNU-Paperclips which now uses the Classpath code for
implementing a core part of the engine.

We (Paperclips) used to do this by having our own protocol handlers
but this has now become impossible (the change is complex but is due
to multiple webapp configurations).

The methods I've added don't break the API in anyway, they just
supplement it. If Classpath accept these changes it means that
Paperclips on Classpath can be a little leaner than Paperclips on Sun
(because we can detect the presence of this handler and not install
our own).

Here's the ChangeLog entry:

        * gnu/java/net/protocol/file/FileURLConnection.java: 
        added imports for directory listings.
        (getLastModified): new method.
        (getContentLength): new method.
        (exists): new method.
        (isDirectory): new method.
        (getListing): new method.


I am happy to discuss the relative merits of adding this to the
Classpath tree and of course, I'll happily withdraw the patch if you
want me to, I can simply issue the code with Paperclips.


Nic



From tromey@creche.cygnus.com Wed Mar 20 20:57:27 2002
Received: from mail.peakpeak.com ([207.174.178.17] helo=gash2.peakpeak.com)
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16npXs-0001W9-00
	for <classpath@gnu.org>; Wed, 20 Mar 2002 18:31:05 -0500
Received: from creche.cygnus.com (ta0201.peakpeak.com [204.144.244.201])
	by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id QAA23008;
	Wed, 20 Mar 2002 16:31:00 -0700
Received: (from tromey@localhost)
	by creche.cygnus.com (8.9.3/8.9.3) id RAA23211;
	Wed, 20 Mar 2002 17:03:39 -0700
To: Eric Blake <ebb9@email.byu.edu>
Cc: Classpath list <classpath@gnu.org>
Subject: Re: FYI: More AWT updates
References: <3C981621.AFA64FB7@email.byu.edu>
From: Tom Tromey <tromey@redhat.com>
Reply-To: tromey@redhat.com
X-Attribution:  Tom
X-Zippy:  I invented skydiving in 1989!
Date: 20 Mar 2002 17:03:39 -0700
In-Reply-To: Eric Blake's message of "Tue, 19 Mar 2002 21:54:57 -0700"
Message-ID: <873cyupz1g.fsf@creche.redhat.com>
Lines: 16
X-Mailer: Gnus v5.7/Emacs 20.5
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

Eric> Here's the latest batch. I updated all the interfaces of
Eric> java.awt, and in the process had to add methods to Polygon.  I
Eric> think I got the algorithms in Polygon correct, but it was a bear
Eric> to code because of Sun's definition (in the Shape interface) of
Eric> included points!  Someone who is more fluent with computer
Eric> graphics than me may want to check my work.

FYI, some of this stuff might be in libgcj too.  It might be
worthwhile to take a quick look before writing new code.
(I'm not any more confident that I got the algorithms right.  It's
been a long, long time since I did any computer graphics, and I don't
have my books any more.)

Tom


From cbj@gnu.org Wed Mar 20 21:52:46 2002
Received: from fe7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16nsh4-0008JB-00
	for <classpath@gnu.org>; Wed, 20 Mar 2002 21:52:46 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Wed, 20 Mar 2002 21:52:44 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2L2oV029389;
	Wed, 20 Mar 2002 21:50:31 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: GNU Classpath <classpath@gnu.org>
Subject: gmane
From: Brian Jones <cbj@gnu.org>
Date: 20 Mar 2002 21:50:31 -0500
Message-ID: <m3r8mehbwo.fsf@lyta.haphazard.org>
Lines: 7
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

It appears someone has subscribed the mailing lists for classpath to
gmane.  The system is supposed to be able to limit spam through
post authorization, but I will be monitoring closely whether we
begin to receive any spam from this subscriber.

-- 
Brian Jones <cbj@gnu.org>


From cbj@gnu.org Thu Mar 21 00:50:39 2002
Received: from mail7.southeast.rr.com ([24.93.67.54] helo=mail7.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16nvTD-0007eV-00
	for <classpath@gnu.org>; Thu, 21 Mar 2002 00:50:39 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail7.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Thu, 21 Mar 2002 00:50:36 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2L5mMY14170;
	Thu, 21 Mar 2002 00:48:22 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: GNU Classpath <classpath@gnu.org>
Subject: FYI: Intel patches
From: Brian Jones <cbj@gnu.org>
Date: 21 Mar 2002 00:48:22 -0500
Message-ID: <m34rjav5cp.fsf@lyta.haphazard.org>
Lines: 12
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I've committed about 1/3 of the Intel patches, starting with those
in the gnu.* namespace.  There are patches to 60 more files to wade
through so it will probably take me a few days to commit the rest.
I'm having to hand edit out the license change stuff and visually look
over each patch; since these presumably make JBOSS work with ORP &
Classpath I'm committing things as given to us; things will get more
interesting once I hit classes that have significantly changed, if
any.

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


From ebb9@email.byu.edu Thu Mar 21 03:16:49 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16nxke-0001jl-00
	for <classpath@gnu.org>; Thu, 21 Mar 2002 03:16:48 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020321081639.PNIV2626.rwcrmhc51.attbi.com@email.byu.edu>;
          Thu, 21 Mar 2002 08:16:39 +0000
Message-ID: <3C999656.5FF05593@email.byu.edu>
Date: Thu, 21 Mar 2002 01:14:14 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: tromey@redhat.com
CC: Classpath list <classpath@gnu.org>
Subject: Re: FYI: More AWT updates
References: <3C981621.AFA64FB7@email.byu.edu> <873cyupz1g.fsf@creche.redhat.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I hadn't been looking at libgcj much, but a comparison did highlight a
few bugs I had made in Polygon, which I have just patched.  But I'll be
doing that more often, once I can get the Classpath version to
stabilize.

Part of the problem with awt.geom is the stringent requirement of
java.awt.Shape that a point on a boundary is inside the shape only half
the time.  The code in gcj's Polygon was ignoring this fact, so it's
just as well that I rewrote algorithms from scratch (although some could
probably be made a bit more efficient).  Also, there were quite a few
rounding errors while converting to int, in both libgcj and in Classpath
(before I touched it), some missing algorithms I implemented, and other
things that were just plain wrong, like RectangularShape treating
non-rectangles incorrectly.  And I have been running comparisons against
JDK 1.4, trying to reverse engineer all the corner cases without
decompiling any code.  So all in all, this has been, and will continue
to be, a beneficial code review.

Tom Tromey wrote:
> 
> >>>>> "Eric" == Eric Blake <ebb9@email.byu.edu> writes:
> 
> Eric> Here's the latest batch. I updated all the interfaces of
> Eric> java.awt, and in the process had to add methods to Polygon.  I
> Eric> think I got the algorithms in Polygon correct, but it was a bear
> Eric> to code because of Sun's definition (in the Shape interface) of
> Eric> included points!  Someone who is more fluent with computer
> Eric> graphics than me may want to check my work.
> 
> FYI, some of this stuff might be in libgcj too.  It might be
> worthwhile to take a quick look before writing new code.
> (I'm not any more confident that I got the algorithms right.  It's
> been a long, long time since I did any computer graphics, and I don't
> have my books any more.)

Confession time - I haven't even taken a computer graphics course, let
alone have any graphics books.  I'm going solely off the documentation
on the things easy enough to do from scratch (which is why I'm not
touching more advanced things like CubicCurve2D, until I find a good
reference source).

2002-03-21  Eric Blake  <ebb9@email.byu.edu>

	* java/awt/Dimension.java: Update to 1.4.
	* java/awt/Point.java: Update to 1.4.
	* java/awt/Polygon.java (Polygon): Don't share array.
	(contains(double, double)): Use boolean instead of int.
	(getPathIterator): Fix bugs.
	* java/awt/Rectangle.java: Update to 1.4.
	* java/awt/geom/AffineTransform.java: Remove unused nested class.
	* java/awt/geom/Dimension2D.java: Update to 1.4.
	* java/awt/geom/FlatteningpathIterator.java: New file (stubbed).
	* java/awt/geom/Line2D.java: Update to 1.4.
	* java/awt/geom/Makefile.am (EXTRA_DIST) Added
	FlatteningPathIterator.java.
	* java/awt/geom/PathIterator.java: Improve Javadoc.
	* java/awt/geom/Point2D.java: Update to 1.4.
	* java/awt/geom/Rectangle2D.java: Update to 1.4.
	* java/awt/geom/RectangularShape.java: Update to 1.4.
-- 
This signature intentionally left boring.

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


From ebb9@email.byu.edu Thu Mar 21 03:21:37 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16nxpJ-0001tX-00
	for <classpath@gnu.org>; Thu, 21 Mar 2002 03:21:37 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020321082136.GJZX1147.rwcrmhc52.attbi.com@email.byu.edu>;
          Thu, 21 Mar 2002 08:21:36 +0000
Message-ID: <3C99977E.7DDF754C@email.byu.edu>
Date: Thu, 21 Mar 2002 01:19:10 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Sascha Brawer <brawer@acm.org>
CC: classpath@gnu.org
Subject: Re: java.util.zip.GZIPConstants
References: <20020320191736.23954@pop.schoedler.ch>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Sascha Brawer wrote:
> 
> 
> 1. The spec requires GZIPInputStream.GZIP_MAGIC; Classpath inherits the
> field from a package-private interface.

This is binary compatible (if the constant is the same), but might be
nice to move (or duplicate) the constant to the correct place for
reflection compatibility.

> 
> 2. According to the spec, there should not be a GZIPOutputStream.GZIP_MAGIC.

This is not binary compatible.  Classpath should not have public fields
where the JDK does not, because it could lead to name conflicts in user
code.

> 
> 3. According to the spec, there should not be a FTEXT anywhere.

In the interface, it is a problem, because it is public.  But if you
move FTEXT out of the interface, and make it package-private or private,
then it is just fine.  The only things we need to match with the JDK are
protected and public APIs, and serialization.  Besides, having internal
constants is often a good idea, to avoid the "magic number" syndrome.

> 
> Are any of these non-conformant?
> 

-- 
This signature intentionally left boring.

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


From jleuner@elandtech.com Thu Mar 21 11:33:19 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16o5V8-0007h2-00
	for <classpath@gnu.org>; Thu, 21 Mar 2002 11:33:18 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16o5QX-0007JZ-00; Thu, 21 Mar 2002 16:28:33 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16o5Qq-0005kc-00; Thu, 21 Mar 2002 16:28:52 +0000
Date: Thu, 21 Mar 2002 16:28:52 +0000
From: John Leuner <jewel@pixie.co.za>
To: Eric Blake <ebb9@email.byu.edu>
Cc: Sascha Brawer <brawer@acm.org>, classpath@gnu.org
Subject: Re: java.util.zip.GZIPConstants
Message-ID: <20020321162852.GB29537@bapli>
References: <20020320191736.23954@pop.schoedler.ch> <3C99977E.7DDF754C@email.byu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3C99977E.7DDF754C@email.byu.edu>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> > 1. The spec requires GZIPInputStream.GZIP_MAGIC; Classpath inherits the
> > field from a package-private interface.
> 
> This is binary compatible (if the constant is the same), but might be
> nice to move (or duplicate) the constant to the correct place for
> reflection compatibility.
> 
> > 
> > 2. According to the spec, there should not be a GZIPOutputStream.GZIP_MAGIC.
> 
> This is not binary compatible.  Classpath should not have public fields
> where the JDK does not, because it could lead to name conflicts in user
> code.
> 
> > 
> > 3. According to the spec, there should not be a FTEXT anywhere.
> 
> In the interface, it is a problem, because it is public.  But if you
> move FTEXT out of the interface, and make it package-private or private,
> then it is just fine.  The only things we need to match with the JDK are
> protected and public APIs, and serialization.  Besides, having internal
> constants is often a good idea, to avoid the "magic number" syndrome.
> 
> > 
> > Are any of these non-conformant?
> > 

Sascha, would you like to fix these?

John Leuner


From brawer@acm.org Thu Mar 21 11:53:19 2002
Received: from mail01.agrinet.ch ([212.28.134.110])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16o5oV-0000l3-00
	for <classpath@gnu.org>; Thu, 21 Mar 2002 11:53:19 -0500
Received: from [0.0.0.0] (195.15.166.192) by mail01.agrinet.ch (NPlex 5.5.053)
        id 3C8EA165000FEFDE; Thu, 21 Mar 2002 17:52:16 +0100
From: Sascha Brawer <brawer@acm.org>
To: John Leuner <jewel@pixie.co.za>
Cc: <classpath@gnu.org>
Subject: Re: java.util.zip.GZIPConstants
Date: Thu, 21 Mar 2002 17:49:46 +0100
Message-Id: <20020321164946.18048@pop.schoedler.ch>
In-Reply-To: <20020321162852.GB29537@bapli>
References: <20020321162852.GB29537@bapli>
X-Mailer: CTM PowerMail 3.1.1 carbon <http://www.ctmdev.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

John Leuner <jewel@pixie.co.za> wrote on Thu, 21 Mar 2002 16:28:52 +0000:

>Sascha, would you like to fix these?

If you would like to, please feel free to go ahead.

-- Sascha




From reali@inf.ethz.ch Thu Mar 21 17:04:46 2002
Received: from core.inf.ethz.ch ([129.132.178.196])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16oAfu-0001Cp-00
	for <classpath@gnu.org>; Thu, 21 Mar 2002 17:04:46 -0500
Received: from lillian-ics.inf.ethz.ch (root@lillian-ics.inf.ethz.ch [129.132.134.2])
	by core.inf.ethz.ch (8.9.3/8.9.3) with ESMTP id XAA10568
	for <classpath@gnu.org>; Thu, 21 Mar 2002 23:04:41 +0100 (MET)
Received: from cyclone (dua131081.dialup800-stat.ethz.ch [172.16.131.81])
	by lillian-ics.inf.ethz.ch (8.9.3/8.9.3) with SMTP id XAA19435
	for <classpath@gnu.org>; Thu, 21 Mar 2002 23:04:30 +0100 (MET)
Message-ID: <000701c1d124$6088a400$518310ac@cyclone>
From: "Patrik Reali" <reali@inf.ethz.ch>
To: <classpath@gnu.org>
Subject: Locale initialization error
Date: Thu, 21 Mar 2002 23:03:56 +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.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi!

I've run into a initialization problem when class java/util/Locale is
initialized.

The static initialization of Locale creates many instances of class Locale,
whose
constructor calls String.toUpperCase.

  public Locale(String language, String country, String variant)
  {
    this.language = convertLanguage(language);
    this.country = country.toUpperCase();
    this.variant = variant.toUpperCase();
    this.hashcode = (this.language.hashCode() ^ this.country.hashCode()
		     ^ this.variant.hashCode());
  }


String.toUpperCase uses the default locale

  public String toUpperCase()
  {
    return toUpperCase(Locale.getDefault());
  }

but since Locale is still initializing, it does not exist and causes a
NullPointerException in the String.toUpperCase(Locale loc)
fuction as soon as loc is used.

The problem happens also when String.toUpperCase and String.toLowerCase
are invoked directly, as they cause the initialization of Locale too.

I'm not sure if I should post this to the patch manager too, as I have no
patch
available. My approach would be to avoid calling toLowerCase during the
initialization
of the class, by setting using a flag or by using a different (private)
constructor for
the initialization (but this would require a dummy parameter).

Here's the stack dump (as generated by the Aos system) of the problem.
I removed the local variable informations; the numbers after the procedure
are used to distinguish the overloaded methods.

_jlString.String.toLowerCase5543 pc=7751
_jlString.String.toLowerCase1539 pc=7717
_juLocale.Locale.convertLanguage pc=1588
_juLocale.Locale.init7470 pc=1321
_juLocale.Locale.init2121 pc=1260
_juLocale.clinit pc=54
JVMSystem.Execute pc=2352
JVM.CheckInitialized pc=7983
_jlString.String.toUpperCase1539 pc=8251
_StringTest.main pc=1053
JVMSystem.InvokeMethod pc=2388
JVMBase.Method.invokeNative pc=3744
JVM.MainThread.run pc=1256
JVMThreads.RunBody pc=781


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



From mark@wildebeest.org Thu Mar 21 17:29:24 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16oB3j-0002Bs-00
	for <classpath@gnu.org>; Thu, 21 Mar 2002 17:29:23 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16oB3e-0000H1-00
	for <classpath@gnu.org>; Thu, 21 Mar 2002 23:29:18 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16oB3h-0003oV-00
	for <classpath@gnu.org>; Thu, 21 Mar 2002 23:29:21 +0100
Subject: FYI - Kaffe is alive again!
From: Mark Wielaard <mark@klomp.org>
To: classpath@gnu.org
Content-Type: multipart/mixed; boundary="=-AEaDlIrbuuQsawHai/5B"
X-Mailer: Evolution/1.0.2 
Date: 21 Mar 2002 23:29:21 +0100
Message-Id: <1016749761.11582.23.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-AEaDlIrbuuQsawHai/5B
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

The last couple of days the Kaffe mailinglist saw a lot of new posts.
There seems to be an new maintainer and they are interested in using
Classpath as a (second) standard class library.

Attached are two messages from Jim Pick the new maintainer were he
outlines his plans and talks about having Kaffe+Classpath as an option.

Nice,

Mark



--=-AEaDlIrbuuQsawHai/5B
Content-Disposition: inline
Content-Type: message/rfc822

Received: from localhost ([127.0.0.1]) by nescio.wildebeest.org with esmtp
	(Exim 3.34 #1 (Debian)) id 16kvtK-0000Nd-00 for <mark@localhost>; Wed, 13
	Mar 2002 00:41:14 +0100
Delivered-To: markqwk@qwk.net
Received: from marvin.qwk.net [209.210.154.10] by localhost with IMAP
	(fetchmail-5.9.8) for mark@localhost (single-drop); Wed, 13 Mar 2002
	00:41:14 +0100 (CET)
Received: (qmail 10446 invoked by uid 1093); 12 Mar 2002 23:40:50 -0000
Delivered-To: klomp-klomp-mark@klomp.org
Received: (qmail 10410 invoked from network); 12 Mar 2002 23:40:46 -0000
Received: from rufus.w3.org (HELO rpmfind.net) (18.29.1.67) by
	marvin.qwk.net with SMTP; 12 Mar 2002 23:40:46 -0000
Received: from rpmfind.w3.org (localhost [127.0.0.1]) by rpmfind.net
	(8.11.6/8.11.2) with SMTP id g2CNEE124053; Tue, 12 Mar 2002 18:14:18 -0500
Received: (from majordomo@localhost) by rpmfind.net (8.11.6/8.11.2) id
	g2CN3d122544 for kaffe-list; Tue, 12 Mar 2002 18:03:39 -0500
Resent-Date: Tue, 12 Mar 2002 18:03:39 -0500
Resent-Message-Id: <200203122303.g2CN3d122544@rpmfind.net>
X-Authentication-Warning: rpmfind.net: majordomo set sender to
	owner-kaffe@rufus.w3.org using -f
Received: from loco.kaffe.org (loco.pocketlinux.com [206.14.214.138] (may
	be forged)) by rpmfind.net (8.11.6/8.11.2) with ESMTP id g2CN3D122506; Tue,
	12 Mar 2002 18:03:20 -0500
Received: from jim by loco.kaffe.org with local (Exim 3.34 #1 (Debian)) id
	16kvHj-0002Aq-00; Tue, 12 Mar 2002 15:02:23 -0800
Date: Tue, 12 Mar 2002 15:02:23 -0800
From: Jim Pick <jim@kaffe.org>
To: kaffe@rufus.w3.org
Cc: kaffe-announce@rufus.w3.org
Subject: Introduction, new maintainer for kaffe
Message-ID: <20020312230208.GA8325@kaffe.org>
Mime-Version: 1.0
Content-Disposition: inline
User-Agent: Mutt/1.3.27i
Sender: owner-kaffe@rufus.w3.org
Precedence: bulk
Reply-To: kaffe@rufus.w3.org
Errors-To: kaffe-error@rufus.w3.org
X-loop: kaffe@rufus.w3.org
X-mailing-list: kaffe@rufus.w3.org
Resent-from: kaffe@rufus.w3.org
Content-Type: text/plain; charset=us-ascii
X-Evolution-Source: imap://mark@nescio/


Hi,

I'd like to introduce myself.  My name is Jim Pick.

I have volunteered to take over the reigns of the kaffe project from
it's original author, Tim Wilkinson.

I've been following Kaffe's progress since about the time I first got
involved in free software (around 1996).  In the past, I've been an
active Debian maintainer, and I also ran LinuxHQ.com, KernelNotes.org,
and Kernel.org for a while, amongst other things.

I know Tim quite well, as I moved to Berkeley, California (from
Canada) to work with him and Peter Mehlitz at Transvirtual about two
years ago.  Tim is currently involved in the process of starting a new
company, having left Transvirtual at the end of November last year.  I
still work at Transvirtual though, and I'm still good friends with Tim
(we usually meet for coffee in the mornings).  It was during one of
those morning coffees that I asked Tim what was happening with
Kaffe.org, and whether or not he was planning to do any more work on
it.

As I suspected, he stated that he really doesn't have time to do
anymore work on it (especially since he no longer works at
Transvirtual).  He stated that he'd be happy if I took it over.  I
also checked with the new CEO of Transvirtual, Chris Herron, and Peter
Mehlitz, if it was OK with them if I did some work to try to get the
Kaffe.org project moving again, and they thought it was a good idea
and were very supportive.

I've announced my intentions to the core team, and they all seemed OK
with the idea -- I asked if anybody else wanted the job, but there
were no takers.  So I guess I've got the go ahead to do this.  :-)

I've also taken over development of Transvirtual's internal,
proprietary version of Kaffe (now called KaffePro), so I'm in the
situation where I can spend a lot of time thinking about JVM
implementations.  :-)

Anyways, here's what I'm planning to do:

1) Setup a new machine and website for kaffe.org, so everything can be
   centralized on one site.

   Transvirtual has donated a machine and rackspace for it, and I've
   already set it up.  I've already moved the DNS and the ftp site
   onto it.  The current website is looking pretty old and
   out-of-date, so I'm going to replace it with something simpler.

   I'm hoping I can get the CVS archive from Ean Schuessler at
   Brainfood so I can set it up on the new machine.  Also, down the
   road, it would be nice to migrate the mailing list to the new
   machine so Daniel Veillard doesn't have to maintain it.

   I thought about using SourceForge, but I decided against it.

2) Make a new release as soon as possible.

   Version 1.0.6 came out in July, 2000, and there hasn't been a
   release since (although there has been CVS activity).  I'd like to
   do a minimal amount of testing, and see if we can get it out,
   perhaps as early as next week.

3) Clarify the relationship between Transvirtual and Kaffe.org.

   As a long-time kaffe-watcher, I would like to see Kaffe.org be a
   very open project, which incorporates code from, and interoperates
   with all the other free virtual machine projects out there.  I
   definitely see Kaffe.org as being an independent project that isn't
   controlled by Transvirtual.

   Transvirtual is willing to donate time and code to the project to
   make it successful.  On the other hand, it would be best if
   everybody was comfortable with the fact that my employer is
   actively developing a proprietary version of kaffe, called
   KaffePro, which is designed to address the needs of the commercial
   market for clean room Java virtual machine implementations.

   As a commercial software company built on developing Intellectual
   Property, Transvirtual needs to be selective about what it does
   and does not contribute to the project.  You can expect that
   Transvirtual won't hold back bug fixes from the free version, and
   will not prevent others from contributing to the project.

   Transvirtual, as a company, was founded with Kaffe as it's primary
   product, so you can expect to see Transvirtual continue to use,
   maintain and protect the Kaffe trademark for it's own purposes.
   It is important to Transvirtual that Kaffe.org is successful, but
   also that it is clear to the public that Kaffe.org's JVM
   implementation is separate from Transvirtual's KaffePro product,
   even though they share a common heritage.

   (whew, glad that's over, I'm afraid I was starting to sound like a
   lawyer)

4) Start active development on a new major release of kaffe.

   I've got a lot of ideas for what should be done with it.  But I'll
   discuss those separately because I'd like to see some contributions
   and some debate.  :-)

Anyways, this email has been long enough.  I'm looking forward to
working on kaffe and Kaffe.org - it should be fun!

Cheers,

 - Jim

p.s. If you're reading this, and you're going to JavaOne this year in 
     San Francisco, let's get together for beers.  :-)



--=-AEaDlIrbuuQsawHai/5B
Content-Disposition: inline
Content-Type: message/rfc822

Received: from localhost ([127.0.0.1]) by nescio.wildebeest.org with esmtp
	(Exim 3.34 #1 (Debian)) id 16o9er-0000Dc-00 for <mark@localhost>; Thu, 21
	Mar 2002 21:59:37 +0100
Delivered-To: markqwk@qwk.net
Received: from marvin.qwk.net [209.210.154.10] by localhost with IMAP
	(fetchmail-5.9.8) for mark@localhost (single-drop); Thu, 21 Mar 2002
	21:59:37 +0100 (CET)
Received: (qmail 14542 invoked by uid 1093); 21 Mar 2002 20:59:24 -0000
Delivered-To: klomp-klomp-mark@klomp.org
Received: (qmail 14535 invoked from network); 21 Mar 2002 20:59:23 -0000
Received: from rufus.w3.org (HELO rpmfind.net) (18.29.1.67) by
	marvin.qwk.net with SMTP; 21 Mar 2002 20:59:23 -0000
Received: from rpmfind.w3.org (localhost [127.0.0.1]) by rpmfind.net
	(8.11.6/8.11.2) with SMTP id g2LKmT105055; Thu, 21 Mar 2002 15:48:29 -0500
Received: (from majordomo@localhost) by rpmfind.net (8.11.6/8.11.2) id
	g2LKlll04911 for kaffe-list; Thu, 21 Mar 2002 15:47:47 -0500
Resent-Date: Thu, 21 Mar 2002 15:47:47 -0500
Resent-Message-Id: <200203212047.g2LKlll04911@rpmfind.net>
X-Authentication-Warning: rpmfind.net: majordomo set sender to
	owner-kaffe@rufus.w3.org using -f
Received: from www.transvirtual.com (www.transvirtual.com [206.14.214.140])
	by rpmfind.net (8.11.6/8.11.2) with ESMTP id g2LKlg104902 for
	<kaffe@rufus.w3.org>; Thu, 21 Mar 2002 15:47:43 -0500
Received: from localhost.localdomain (glom.transvirtual.com
	[216.38.134.190]) by www.transvirtual.com (8.12.0.Beta7/8.12.0.Beta7/Debian
	8.12.0.Beta7-1) with ESMTP id g2LKlSYC020621 for <kaffe@rufus.w3.org>; Thu,
	21 Mar 2002 12:47:28 -0800
Subject: Re: Most popular applications?
From: Jim Pick <jim@kaffe.org>
To: kaffe@rufus.w3.org
In-Reply-To: <3C9A14C6.50B1294B@netreach.com>
References: <001501c1d0f7$38ab6260$7604a8c0@pepper> 
	<3C9A14C6.50B1294B@netreach.com>
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 21 Mar 2002 12:47:32 -0800
Message-Id: <1016743653.19972.106.camel@clovis>
Mime-Version: 1.0
Sender: owner-kaffe@rufus.w3.org
Precedence: bulk
Reply-To: kaffe@rufus.w3.org
Errors-To: kaffe-error@rufus.w3.org
X-loop: kaffe@rufus.w3.org
X-mailing-list: kaffe@rufus.w3.org
Resent-from: kaffe@rufus.w3.org
Content-Type: text/plain
X-Evolution-Source: imap://mark@nescio/


Thanks for the good suggestions for apps.

> By the way, have you given any thought to improving cooperation with the
> GNU Classpath project? I realize that currently the licensing is
> probably an insurmountable goal to actually merging Kaffe's class
> library with Classpath, but it would be nice to be able to configure
> Kaffe to run --with-classpath, if such a thing were possible.
> Duplication of effort on such a large problem as the Java libraries
> seems so tragically wasteful.

Yeah, the licensing debate has always been a pain.  Lots of splitting
hairs.  :-)

I definitely want to see Classpath running on Kaffe, as an option.  The
primary obstacle I see is just getting the integration work done.  The
licensing issue is primarily that Classpath is GPL + exception, while
Kaffe is strictly GPL.

Transvirtual obviously can't relicense Classpath as part of our KaffePro
proprietary VM, so I see two parallel sets of class libraries going
forward.  

That said, I don't see why we can't redistribute Classpath with Kaffe.  

I'm still pretty good friends with Paul Fisher of the Classpath project
(he used to work with me at Transvirtual, he now works for the FSF), and
he discussed some of the legal issues with me.

Legally, I think that's doable, as long as we clarify that Kaffe's GPL
overrides the exception in Classpath.  That shouldn't have any affect on
people using Kaffe for GPL sort of things.  If people want to do non-GPL
types of things, they are already affected by the fact by Kaffe's
GPLness.  The fact that they use Classpath instead of the Kaffe class
libraries shouldn't add any additional legal burden on them. 
Kaffe+Classpath will have more of a legal burden (eg. pure GPL) than
something like gcj+Classpath (GPL + exception).

I think the old issue used to be whether or not Classpath should be GPL,
or GPL+Exception.  If I understand the long, sad tale correctly, Tim
Wilkinson had convinced RMS not to use GPL+Exception for Classpath,
since Transvirtual was developing and had released the class libraries
for Kaffe under the GPL, and theoretically having a competitive library
under a competing, freer free software license would have been
detrimental to the business.  Red Hat and Paul Fisher wanted it to be
GPL+Exception to make it easier to license to companies.  So even though
Classpath was GPL, they did not want to incorporate the GPL code from
Transvirtual.  Transvirtual has a business of relicensing their
implementation to proprietary customers, so was unwilling to release the
code under anything more liberal than the GPL, fearing it would make it
impossible to sell the proprietary version.  Hence the reason there are
two sets of libraries now.  The IP business is icky.  :-)

But that's history, and now Classpath is GPL+Exception.

People who have need to worry about the legal burden (eg. they have
serious commercial needs) should probably be looking at licensing a
commercial version anyways (eg. KaffePro, Red Hat's stuff, Sun's
version, Insignia, etc.) for other reasons, like protected their own
proprietary intellectual property, patent issues, support needs, etc.

Maybe Classpath might even become the default class library for Kaffe,
if that's what people want to use.  But I don't see any good reason to
completely scrap Kaffe's current class libs either.

Maybe I should go into law...

Cheers,

 - Jim




--=-AEaDlIrbuuQsawHai/5B--


From ebb9@email.byu.edu Thu Mar 21 18:01:41 2002
Received: from rwcrmhc54.attbi.com ([216.148.227.87])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16oBYz-00068F-00
	for <classpath@gnu.org>; Thu, 21 Mar 2002 18:01:41 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc54.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020321230137.WLLD1214.rwcrmhc54.attbi.com@email.byu.edu>;
          Thu, 21 Mar 2002 23:01:37 +0000
Message-ID: <3C9A6645.66CAF0F9@email.byu.edu>
Date: Thu, 21 Mar 2002 16:01:25 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Patrik Reali <reali@inf.ethz.ch>
CC: classpath@gnu.org
Subject: Re: Locale initialization error
References: <000701c1d124$6088a400$518310ac@cyclone>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Patrik Reali wrote:
> 
> Hi!
> 
> I've run into a initialization problem when class java/util/Locale is
> initialized.
> 
> The static initialization of Locale creates many instances of class Locale,
> whose
> constructor calls String.toUpperCase.
> 
>   public Locale(String language, String country, String variant)
>   {
>     this.language = convertLanguage(language);
>     this.country = country.toUpperCase();
>     this.variant = variant.toUpperCase();
>     this.hashcode = (this.language.hashCode() ^ this.country.hashCode()
>                      ^ this.variant.hashCode());
>   }

For these constructors, I tried adding a trusted constructor which does
no capitalization.  I'm still running into a problem here:

private static Locale defaultLocale =
    new Locale(System.getProperty("user.language", ""),
	       System.getProperty("user.region", ""),
	       System.getProperty("user.variant", ""));

According to the Javadoc of java.lang.System, there is no guarantee that
the properties user.language, user.region, or user.variant exist.  Does
Sun document anywhere that these must exist, or who must supply them? 
Or is it just a VM integration requirement of Classpath?  If the latter,
then is it documented in the Classpath/VM integration guide?

If it is something only used by Classpath, then I think this approach
should solve the bootstrap issue:

public final class Locale implements java.io.Serializable, Cloneable
{
  // NOTE: These static finals must be initialized with the trusted
  // constructor to avoid bootstrap cycles with String.toUpperCase.

  /**
   * Locale which represents the English language.
   */
  public static final Locale ENGLISH = new Locale("en", "", true);

...

  /**
   * Creates a new locale with trusted versions of the strings. This is
   * necessary to avoid bootstrap cycles with String.toUpperCase.
   *
   * @param language lowercase two-letter ISO-639 A2 language code
   * @param country uppercase two-letter ISO-3166 A2 contry code
   * @param ignored just for the type signature
   *
   */
  private Locale(String language, String country, boolean ignored)
  {
    this.language = language;
    this.country = country;
    variant = "";
    hashcode = language.hashCode() ^ country.hashCode();
  }

  private static Locale defaultLocale =
    new Locale(System.getProperty("user.language", ""),
	       System.getProperty("user.region", ""), true);


> 
> String.toUpperCase uses the default locale
> 
>   public String toUpperCase()
>   {
>     return toUpperCase(Locale.getDefault());
>   }
> 

We have little choice here, the Javadoc requires this behavior, as well
as a NullPointerException in toUpperCase(null).  If it is still needed,
though, we could add a "bootstrap flag" in String that the VM must set
when bootstrapping is complete. The only use of the locale in
toUpperCase and toLowerCase is to special case two characters in the
Turkish locale.

I just committed my hack shown above - did it do the trick for you? 
(How I wish that I could compile a working VM on cygwin, to answer that
question for myself).

-- 
This signature intentionally left boring.

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


From crawley@dstc.edu.au Fri Mar 22 09:08:47 2002
Received: from piglet.dstc.edu.au ([130.102.176.1])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16oPio-0003xR-00
	for <classpath@gnu.org>; Fri, 22 Mar 2002 09:08:46 -0500
Received: from dstc.edu.au (soluble.dstc.edu.au [130.102.176.43])
	by piglet.dstc.edu.au (8.11.3/8.11.3) with ESMTP id g2ME84h10177
	for <classpath@gnu.org>; Sat, 23 Mar 2002 00:08:04 +1000 (EST)
Message-Id: <200203221408.g2ME84h10177@piglet.dstc.edu.au>
X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4
To: classpath@gnu.org
Subject: Why are these files in lib/standard.omit ?
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sat, 23 Mar 2002 00:08:42 +1000
From: Stephen Crawley <crawley@dstc.edu.au>
X-Scanned-By: MIMEDefang 1.0 (http://www.roaringpenguin.com/mimedefang/)
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

The following files are currently in Classpath's lib/standard.omit

../java/awt/event/InputMethodEvent.java
../java/awt/event/InputMethodListener.java
../java/awt/event/InvocationEvent.java

but this is causing compilation errors for dependent classes.
When I take these 3 files out of the omit list, the compilation
errors go away.

Does anyone know why these 3 files are in the omit list?

-- Steve



From jleuner@elandtech.com Fri Mar 22 09:22:38 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16oPwE-0005Sa-00
	for <classpath@gnu.org>; Fri, 22 Mar 2002 09:22:38 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16oPqw-0005rJ-00; Fri, 22 Mar 2002 14:17:10 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16oPrE-0001vI-00; Fri, 22 Mar 2002 14:17:28 +0000
Date: Fri, 22 Mar 2002 14:17:28 +0000
From: John Leuner <jewel@pixie.co.za>
To: Sascha Brawer <brawer@acm.org>
Cc: John Leuner <jewel@pixie.co.za>, classpath@gnu.org
Subject: Re: java.util.zip.GZIPConstants
Message-ID: <20020322141728.GD29537@bapli>
References: <20020321162852.GB29537@bapli> <20020321164946.18048@pop.schoedler.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020321164946.18048@pop.schoedler.ch>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

> >Sascha, would you like to fix these?
> 
> If you would like to, please feel free to go ahead.
> 
> -- Sascha

No, I insist, after you ...

Seriously though, I'll try make time to do it next week, but feel free to change it before then.

:-)

John Leuner


From reali@inf.ethz.ch Fri Mar 22 16:53:22 2002
Received: from core.inf.ethz.ch ([129.132.178.196])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16oWyP-0000hh-00
	for <classpath@gnu.org>; Fri, 22 Mar 2002 16:53:22 -0500
Received: from lillian-ics.inf.ethz.ch (root@lillian-ics.inf.ethz.ch [129.132.134.2])
	by core.inf.ethz.ch (8.9.3/8.9.3) with ESMTP id WAA14221;
	Fri, 22 Mar 2002 22:52:55 +0100 (MET)
Received: from cyclone (ssda135.dialup-stud.ethz.ch [192.33.88.135])
	by lillian-ics.inf.ethz.ch (8.9.3/8.9.3) with SMTP id WAA04022;
	Fri, 22 Mar 2002 22:52:56 +0100 (MET)
Message-ID: <000701c1d1eb$ed9cf1d0$875821c0@cyclone>
From: "Patrik Reali" <reali@inf.ethz.ch>
To: "Eric Blake" <ebb9@email.byu.edu>
Cc: <classpath@gnu.org>
References: <000701c1d124$6088a400$518310ac@cyclone> <3C9A6645.66CAF0F9@email.byu.edu>
Subject: Re: Locale initialization error
Date: Fri, 22 Mar 2002 19:12:35 +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.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

From: "Eric Blake" <ebb9@email.byu.edu>
> Patrik Reali wrote:
> >
> > Hi!
> >
> > I've run into a initialization problem when class java/util/Locale is
> > initialized.
> >
> For these constructors, I tried adding a trusted constructor which does
> no capitalization.  I'm still running into a problem here:

Your solution with the trusted constructor works properly.
On my side, I tried a different approach:

  public Locale(String language, String country, String variant)
  {
    if (defaulLocale == null) {
      this.language = language;
      this.country = country;
      this.variant = variant;
    } else {
      this.language = convertLanguage(language);
      this.country = country.toUpperCase();
      this.variant = variant.toUpperCase();
    }
    this.hashcode = (this.language.hashCode() ^ this.country.hashCode()
                     ^ this.variant.hashCode());
  }

This works too. It's up to  you to choose the solution you prefer.

> According to the Javadoc of java.lang.System, there is no guarantee that
> the properties user.language, user.region, or user.variant exist.  Does
> Sun document anywhere that these must exist, or who must supply them?
> Or is it just a VM integration requirement of Classpath?  If the latter,
> then is it documented in the Classpath/VM integration guide?
>
VMSystem.java doesn't list those properties.

Locale should maybe install some defaults, if no properties are available:
private static Locale defaultLocale =
    new Locale(System.getProperty("user.language", "en"),
       System.getProperty("user.region", ""),
       System.getProperty("user.variant", ""));

The language is important, because it is used for the convertions.


> I just committed my hack shown above - did it do the trick for you?

It works, thanks.

> (How I wish that I could compile a working VM on cygwin, to answer that
> question for myself).
>
I first had the opposite problem: testing the VM without API. And as I'm
still
testing my JVM, I never now if the error is on my side or not. I would offer
you my
Jaos, but it runs only on the Aos system: nice but different!

Ciao,
  Patrik




From reali@inf.ethz.ch Fri Mar 22 17:29:03 2002
Received: from core.inf.ethz.ch ([129.132.178.196])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16oXWx-0002Mh-00
	for <classpath@gnu.org>; Fri, 22 Mar 2002 17:29:03 -0500
Received: from lillian-ics.inf.ethz.ch (root@lillian-ics.inf.ethz.ch [129.132.134.2])
	by core.inf.ethz.ch (8.9.3/8.9.3) with ESMTP id XAA20594
	for <classpath@gnu.org>; Fri, 22 Mar 2002 23:28:38 +0100 (MET)
Received: from cyclone (ssda158.dialup-stud.ethz.ch [192.33.88.158])
	by lillian-ics.inf.ethz.ch (8.9.3/8.9.3) with SMTP id XAA04239
	for <classpath@gnu.org>; Fri, 22 Mar 2002 23:28:40 +0100 (MET)
Message-ID: <003101c1d1f0$eb2c9bd0$875821c0@cyclone>
From: "Patrik Reali" <reali@inf.ethz.ch>
To: <classpath@gnu.org>
Subject: Problems with Character
Date: Fri, 22 Mar 2002 23:28:15 +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.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi!

I'm experiencing some problems with java.lang.Character.
The methods toUpperCase and toLowerCase return 
wrong results (most of the calls leave the values unchanged,
a few return strange values). I went through the code,
but there's not much.... they're just taking the result from
some tables.

I'm currently using the latest version of Character and CharData.

Can anybody confirm (or dismiss) the problem?

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



From ebb9@email.byu.edu Fri Mar 22 18:46:22 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16oYjm-000120-00
	for <classpath@gnu.org>; Fri, 22 Mar 2002 18:46:22 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020322234601.XBIS2626.rwcrmhc51.attbi.com@email.byu.edu>;
          Fri, 22 Mar 2002 23:46:01 +0000
Message-ID: <3C9BBF6C.7ECA7959@email.byu.edu>
Date: Fri, 22 Mar 2002 16:34:04 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Patrik Reali <reali@inf.ethz.ch>
CC: classpath@gnu.org
Subject: Re: Problems with Character
References: <003101c1d1f0$eb2c9bd0$875821c0@cyclone>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I think the latest version of both files in Classpath should work. 
Could it possibly be a VM error in adding two chars, and casting the
result back to a char?  The data is encoded as signed offsets from the
current character, but stored as unsigned chars in the String constants;
so if your VM does the math wrong, you may be getting a weird index. 
Another possibility - is your VM correctly handling reading in the UTF
string from the constant pool and converting it to char[]?

Can you do some more detective work? What do you get for
Character.readChar('a') and Character.readChar('A')? If I'm reading
CharData correctly, readChar('a') should be 0x1b02, so that you then
index UPPER[54] == '\uffe0' (in other words, 'a' + -30 => 'A'). 
readChar('A') should be 0xd01, so that you index LOWER[26] == ' ' (or
'A' + 32 => 'a').

Patrik Reali wrote:
> 
> Hi!
> 
> I'm experiencing some problems with java.lang.Character.
> The methods toUpperCase and toLowerCase return
> wrong results (most of the calls leave the values unchanged,
> a few return strange values). I went through the code,
> but there's not much.... they're just taking the result from
> some tables.
> 
> I'm currently using the latest version of Character and CharData.
> 
> Can anybody confirm (or dismiss) the problem?
> 
> Thanks,
>   Patrik

-- 
This signature intentionally left boring.

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


From cbj@gnu.org Fri Mar 22 19:34:03 2002
Received: from fe8.southeast.rr.com ([24.93.67.55] helo=mail8.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16oZTv-0004fI-00
	for <classpath@gnu.org>; Fri, 22 Mar 2002 19:34:03 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail8.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Fri, 22 Mar 2002 19:33:28 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2N0Umf24370;
	Fri, 22 Mar 2002 19:30:48 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Stephen Crawley <crawley@dstc.edu.au>
Cc: classpath@gnu.org
Subject: Re: Why are these files in lib/standard.omit ?
References: <200203221408.g2ME84h10177@piglet.dstc.edu.au>
From: Brian Jones <cbj@gnu.org>
Date: 22 Mar 2002 19:30:47 -0500
In-Reply-To: <200203221408.g2ME84h10177@piglet.dstc.edu.au>
Message-ID: <m3sn6st9ag.fsf@lyta.haphazard.org>
Lines: 20
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

> The following files are currently in Classpath's lib/standard.omit
> 
> ../java/awt/event/InputMethodEvent.java
> ../java/awt/event/InputMethodListener.java
> ../java/awt/event/InvocationEvent.java
> 
> but this is causing compilation errors for dependent classes.
> When I take these 3 files out of the omit list, the compilation
> errors go away.
> 
> Does anyone know why these 3 files are in the omit list?

I don't know if those working on the AWT just don't want to yet or if
it was a mistake to not take them out yet.

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


From jleuner@elandtech.com Fri Mar 22 14:26:57 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16oUgi-0004xW-00
	for <classpath@gnu.org>; Fri, 22 Mar 2002 14:26:56 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16oUcG-0000TA-00
	for <classpath@gnu.org>; Fri, 22 Mar 2002 19:22:20 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16oUcX-0003ka-00
	for <classpath@gnu.org>; Fri, 22 Mar 2002 19:22:37 +0000
Message-Id: <E16oUcX-0003ka-00@bapli>
From: John Leuner <jleuner@elandtech.com>
To: classpath@gnu.org
Date: Fri, 22 Mar 2002 19:22:37 +0000
Subject: (no subject)
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

>From jleuner  Fri Mar 22 19:21:31 2002
Return-path: <jleuner@elandtech.com>
Envelope-to: jleuner@localhost
Delivery-date: Fri, 22 Mar 2002 19:21:31 +0000
Received: from bapli
	([127.0.0.1] helo=localhost ident=jleuner)
	by bapli with esmtp (Exim 3.34 #1 (Debian))
	id 16oUbS-0003kI-00
	for <jleuner@localhost>; Fri, 22 Mar 2002 19:21:30 +0000
Received: from pixie.co.za [196.2.48.239]
	by localhost with POP3 (fetchmail-5.9.3)
	for jleuner@localhost (single-drop); Fri, 22 Mar 2002 19:21:30 +0000 (GMT)
Received: from nav18-cpt.mweb.co.za by cpt-mailhost2.mweb.co.za
 (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10)
 with SMTP id <0GTE002LA39L1A@cpt-mailhost2.mweb.co.za> for
 jl25@sims-ms-daemon; Fri, 22 Mar 2002 21:24:57 +0200 (GMT-2)
Received: from lenny.elandtech.com ([212.17.60.214])
 by nav18-cpt.mweb.co.za (NAVGW 2.5.1.19) with SMTP id M2002032221245031831 for
 <jewel@pixie.co.za>; Fri, 22 Mar 2002 21:24:52 +0200
Received: from [192.168.100.211] (helo=bapli ident=mail)
 by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
 id 16oUZv-0000SH-00; Fri, 22 Mar 2002 19:19:55 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
 id 16oUaC-0003jm-00; Fri, 22 Mar 2002 19:20:12 +0000
Date: Fri, 22 Mar 2002 19:20:12 +0000
From: John Leuner <jewel@pixie.co.za>
Subject: JRVM + GNU Classpath
In-reply-to: <OF28BB3F82.9B137DDF-ON85256B83.0053D964@pok.ibm.com>
Sender: John Leuner <jleuner@elandtech.com>
To: jikesrvm-core@www-124.ibm.com
Cc: jewel@pixie.co.za
Message-id: <20020322192012.GE29537@bapli>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-disposition: inline
User-Agent: Mutt/1.3.27i
References: <OF28BB3F82.9B137DDF-ON85256B83.0053D964@pok.ibm.com>
Resent-From: jleuner@bapli
Resent-Date: Fri, 22 Mar 2002 19:22:37 +0000
Resent-To: classpath@gnu.org

I have written a description containing the twenty steps needed to compile and run JRVM 2.02 with GNU Classpath:

http://people.debian.org/~jewel/jikes/STEPS

And associated files:

http://people.debian.org/~jewel/jikes/jikes-cp.tar.gz
http://people.debian.org/~jewel/jikes/jbuild.linkImage.patch

There is more work to be done on this. I should break the JRVM diffs down into 
two patches. There are changes there that should be included in the JRVM source,
 perhaps with a conditional which can be specified in the relevant rvm/config/<file>.

I have to update this to work with the latest code in Classpath CVS, as well as with JRVM 2.03.

This is still pretty much untested, I would like to have a look at the regression tests and mauve later.

John Leuner

On Thu, Mar 21, 2002 at 10:50:40AM -0500, Julian Dolby wrote:
> 
>   Some objects are created during boot image writing, and are subsequently
> used when Jikes RVM is running; the opt. compiler has several such data
> structures.  These objects must be allocated at boot image writing time by
> the JDK and written into the boot image to be read by RVM.  This requires
> that the format of the object created by the JDK (i.e. fields, static data)
> be somewhat similar to that expected at runtime by Jikes RVM.
> 
>   Since the libraries we currently use are not based on Sun code, this is
> not the case for several of the java.util classes.  The purpose of libyuck
> is to force the boot image writer to use the java.util classes Jikes RVM
> expects rather than those it normally uses.  It does this by putting
> libyuck at the front of the bootstrap class path of the JDK.  This is
> fragile because the JDK seems to have some built in assumptions about some
> java.util classes, but it works for the set of classes in there now.
> 
>   I would expect that the CLASSPATH libraries will have similar issues.
> You will likely need to put some set of CLASSPATH classes into libyuck.jar
> to force the JDK to use them when writing boot image objects.
> 
>   You should probably start by not putting anything into libyuck.jar, and
> see where problems arise during boot image writing.  For classes that
> cannot be written into the boot image correctly, try putting them into
> libyuck.
> 
>       -- Julian
> 
> 
> _______________________________________________
> Jikesrvm-core mailing list
> Jikesrvm-core@www-124.ibm.com
> http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jikesrvm-core


From reali@inf.ethz.ch Sat Mar 23 03:49:20 2002
Received: from core.inf.ethz.ch ([129.132.178.196])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16ohDD-0004bU-00
	for <classpath@gnu.org>; Sat, 23 Mar 2002 03:49:19 -0500
Received: from lillian-ics.inf.ethz.ch (root@lillian-ics.inf.ethz.ch [129.132.134.2])
	by core.inf.ethz.ch (8.9.3/8.9.3) with ESMTP id JAA07018;
	Sat, 23 Mar 2002 09:48:55 +0100 (MET)
Received: from cyclone (ssda217.dialup-stud.ethz.ch [192.33.88.217])
	by lillian-ics.inf.ethz.ch (8.9.3/8.9.3) with SMTP id JAA09014;
	Sat, 23 Mar 2002 09:48:37 +0100 (MET)
Message-ID: <005501c1d247$87c91da0$d95821c0@cyclone>
From: "Patrik Reali" <reali@inf.ethz.ch>
To: "Eric Blake" <ebb9@email.byu.edu>
Cc: <classpath@gnu.org>
References: <003101c1d1f0$eb2c9bd0$875821c0@cyclone> <3C9BBF6C.7ECA7959@email.byu.edu>
Subject: Re: Problems with Character
Date: Sat, 23 Mar 2002 09:06:04 +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.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

From: "Eric Blake" <ebb9@email.byu.edu>
> I think the latest version of both files in Classpath should work.
> Could it possibly be a VM error in adding two chars, and casting the
> result back to a char?  The data is encoded as signed offsets from the
> current character, but stored as unsigned chars in the String constants;
> so if your VM does the math wrong, you may be getting a weird index.
> Another possibility - is your VM correctly handling reading in the UTF
> string from the constant pool and converting it to char[]?
>
> Can you do some more detective work? What do you get for
> Character.readChar('a') and Character.readChar('A')? If I'm reading
> CharData correctly, readChar('a') should be 0x1b02, so that you then
> index UPPER[54] == '\uffe0' (in other words, 'a' + -30 => 'A').
> readChar('A') should be 0xd01, so that you index LOWER[26] == ' ' (or
> 'A' + 32 => 'a').
>

I'm sorry. I did cry for the wolf too early. The error must be in my JVM.

To confirm this I just moved the whole CharData and Char into an own
class and let the tests run on another JVM using this class instead of
Character.
There's no error there.

I hope I didn't cause too much panic with this....

-Patrik




From fegray@npl.uiuc.edu Sun Mar 24 18:57:53 2002
Received: from nialas.npl.uiuc.edu ([128.174.13.19])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16pHs0-0004Wr-00
	for <classpath@gnu.org>; Sun, 24 Mar 2002 18:57:52 -0500
Received: from one.npl.uiuc.edu (one.npl.uiuc.edu [128.174.13.13])
	by nialas.npl.uiuc.edu (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id RAA27642;
	Sun, 24 Mar 2002 17:57:52 -0600
Received: from fegray by one.npl.uiuc.edu with local (Exim 3.12 #1 (Debian))
	id 16pHs0-0001kg-00; Sun, 24 Mar 2002 17:57:52 -0600
Date: Sun, 24 Mar 2002 17:57:51 -0600
From: Fred Gray <fegray@uiuc.edu>
To: classpath@gnu.org, orp@yahoogroups.com
Subject: minimal hack to classpath for ORP 1.0.9
Message-ID: <20020324175751.A6719@npl.uiuc.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I think I've figured out the minimal hack to the current classpath CVS to
work with ORP 1.0.9 (at least for programs of the complexity of "Hello world").
Hopefully, this will give the people who understand ORP some ideas on how
to fix things up properly.

Issue 1: Calling methods in java.lang.System from the constructor of 
java.lang.Runtime seems to cause a crash.  Workaround:

Index: vm/reference/java/lang/Runtime.java
===================================================================
RCS file: /cvsroot/classpath/classpath/vm/reference/java/lang/Runtime.java,v
retrieving revision 1.15
diff -u -r1.15 Runtime.java
--- vm/reference/java/lang/Runtime.java 22 Mar 2002 21:25:20 -0000      1.15
+++ vm/reference/java/lang/Runtime.java 24 Mar 2002 23:44:57 -0000
@@ -95,6 +95,14 @@
   {
     if (current != null)
       throw new InternalError("Attempt to recreate Runtime");
+
+    /*
+     * HACKHACK: it seems that calling any System.* methods at this point
+     * crashes ORP 1.0.9, so we force the library path to ".".
+     */
+    libpath = new String[] { "." };
+ 
+/* 
     // XXX Does this need special privileges?
     String path = System.getProperty("java.library.path");
     if (path == null)
@@ -109,6 +117,7 @@
         for (int i = 0; i < libpath.length; i++)
           libpath[i] = t.nextToken();
       }
+*/
   }
 
   /**
===================================================================

Issue 2: Calling clone() on an array in String.getCharArray() causes a
linking error when the method is compiled.  As an aside, I'm at least a
little interested in knowing why (char []).clone() is thought to be faster
than System.arraycopy().  Workaround:

Index: java/lang/String.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/String.java,v
retrieving revision 1.42
diff -u -r1.42 String.java
--- java/lang/String.java       21 Mar 2002 22:30:08 -0000      1.42
+++ java/lang/String.java       24 Mar 2002 23:50:17 -0000
@@ -1415,8 +1415,14 @@
    */
   public char[] toCharArray()
   {
+    /*
+     * HACKHACK: it seems that using clone() on an array at this point
+     * causes ORP 1.0.9 to crash, so we eliminate this optimization.
+     * 
+/*     
     if (count == value.length)
       return (char[]) value.clone();
+*/
     char[] copy = new char[count];
     System.arraycopy(value, offset, copy, 0, count);
     return copy;
===================================================================

Issue 3: It isn't necessary to make any of my simple test programs work, but
this patch to ORP to deal with the re-ordering of fields in java.lang.String
will almost certainly be required for something:

===================================================================
diff -u orp-1.0.9/base_natives/gnu_classpath/include/gnu_specific.h orp-1.0.9-hacked/base_natives/gnu_classpath/include/gnu_specific.h 
--- orp-1.0.9/base_natives/gnu_classpath/include/gnu_specific.h Wed Jan 16 23:49:40 2002
+++ orp-1.0.9-hacked/base_natives/gnu_classpath/include/gnu_specific.h  Mon Mar 18 19:53:39 2002
@@ -13,5 +13,6 @@
 
     JavaArrayOfChar *value;
     int32            count;
+    int32            cachedHashCode;
     int32            offset;
 } Classpath_Java_java_lang_String;
===================================================================

Thanks very much for some great free software,

-- Fred Gray


From ebb9@email.byu.edu Sun Mar 24 19:28:50 2002
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16pILy-0005xB-00
	for <classpath@gnu.org>; Sun, 24 Mar 2002 19:28:50 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020325002848.WCJX1147.rwcrmhc52.attbi.com@email.byu.edu>;
          Mon, 25 Mar 2002 00:28:48 +0000
Message-ID: <3C9E6EED.5A63CEF8@email.byu.edu>
Date: Sun, 24 Mar 2002 17:27:25 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Fred Gray <fegray@uiuc.edu>
CC: classpath@gnu.org, orp@yahoogroups.com
Subject: Re: minimal hack to classpath for ORP 1.0.9
References: <20020324175751.A6719@npl.uiuc.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Fred Gray wrote:
> 
> I think I've figured out the minimal hack to the current classpath CVS to
> work with ORP 1.0.9 (at least for programs of the complexity of "Hello world").
> Hopefully, this will give the people who understand ORP some ideas on how
> to fix things up properly.
>  
> Issue 1: Calling methods in java.lang.System from the constructor of
> java.lang.Runtime seems to cause a crash.

What is the crash you are getting?  I agree that your hack will prevent
calling java.lang.System, but it limits the library search path to ".",
which is most likely wrong: what if any of the core classes need system
properties during the bootstrap phase, such as for grabbing a locale
resource file?  We already have VMSystem.insertSystemProperties, which
System uses to initialize the default properties.  Would it be worth
moving the default properties from System over to Runtime (the way the
default security manager was moved), and having Runtime use this VM
generated property list directly rather than relying on Runtime?

> 
> Issue 2: Calling clone() on an array in String.getCharArray() causes a
> linking error when the method is compiled.  As an aside, I'm at least a
> little interested in knowing why (char []).clone() is thought to be faster
> than System.arraycopy().

Both arraycopy and clone should be native methods, and both can be
implemented pretty much as a memcpy().  However, arraycopy has to do
bounds and type checking (to make sure you aren't doing something stupid
like arraycopy(int[], -1, float[], 0, 1)), where clone doesn't.  But I
think that this hack is appropriate if it will help ORP, so I will
commit it shortly.

-- 
This signature intentionally left boring.

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


From fegray@npl.uiuc.edu Sun Mar 24 21:56:24 2002
Received: from nialas.npl.uiuc.edu ([128.174.13.19])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16pKem-0000RP-00
	for <classpath@gnu.org>; Sun, 24 Mar 2002 21:56:24 -0500
Received: from one.npl.uiuc.edu (one.npl.uiuc.edu [128.174.13.13])
	by nialas.npl.uiuc.edu (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id UAA28338;
	Sun, 24 Mar 2002 20:56:23 -0600
Received: from fegray by one.npl.uiuc.edu with local (Exim 3.12 #1 (Debian))
	id 16pKel-0001lm-00; Sun, 24 Mar 2002 20:56:23 -0600
Date: Sun, 24 Mar 2002 20:56:23 -0600
From: Fred Gray <fegray@uiuc.edu>
To: classpath@gnu.org, orp@yahoogroups.com
Subject: Re: minimal hack to classpath for ORP 1.0.9
Message-ID: <20020324205623.B6719@npl.uiuc.edu>
References: <20020324175751.A6719@npl.uiuc.edu> <3C9E6EED.5A63CEF8@email.byu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3C9E6EED.5A63CEF8@email.byu.edu>; from ebb9@email.byu.edu on Sun, Mar 24, 2002 at 05:27:25PM -0700
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Sun, Mar 24, 2002 at 05:27:25PM -0700, Eric Blake wrote:
> Fred Gray wrote:
> > Issue 1: Calling methods in java.lang.System from the constructor of
> > java.lang.Runtime seems to cause a crash.
> 
> What is the crash you are getting?  

This is the one where ORP prints

  No Java handlers found
  No Java handlers found
  No Java handlers found
  Uncaught exception:
  No Java handlers found
  No Java handlers found

and terminates.  This happens sometime during the very early stages of the 
initialization of the VM; it doesn't even matter whether the class you're
trying to run exists or not.  Some debugging showed that it was getting a
SIGSEGV during the execution of java.lang.Runtime's static initializer and
trying to throw a NullPointerException. 

> Would it be worth
> moving the default properties from System over to Runtime (the way the
> default security manager was moved), and having Runtime use this VM
> generated property list directly rather than relying on Runtime?

I would say that this should be saved for a last resort; I'll stare at ORP 
some more to see if I can figure out how to fix it there.  (I don't have much
experience with ORP yet, so I can't make any promises.)

Thanks,

-- Fred Gray 


From fegray@npl.uiuc.edu Mon Mar 25 00:01:14 2002
Received: from nialas.npl.uiuc.edu ([128.174.13.19])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16pMba-0000kV-00
	for <classpath@gnu.org>; Mon, 25 Mar 2002 00:01:14 -0500
Received: from one.npl.uiuc.edu (one.npl.uiuc.edu [128.174.13.13])
	by nialas.npl.uiuc.edu (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id XAA28761;
	Sun, 24 Mar 2002 23:01:13 -0600
Received: from fegray by one.npl.uiuc.edu with local (Exim 3.12 #1 (Debian))
	id 16pMbZ-0001nx-00; Sun, 24 Mar 2002 23:01:13 -0600
Date: Sun, 24 Mar 2002 23:01:13 -0600
To: classpath@gnu.org, orp@yahoogroups.com
Subject: Re: minimal hack to classpath for ORP 1.0.9
Message-ID: <20020324230113.C6719@npl.uiuc.edu>
References: <20020324175751.A6719@npl.uiuc.edu> <3C9E6EED.5A63CEF8@email.byu.edu> <20020324205623.B6719@npl.uiuc.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20020324205623.B6719@npl.uiuc.edu>; from fegray@uiuc.edu on Sun, Mar 24, 2002 at 08:56:23PM -0600
From: Fred Gray <fegray@npl.uiuc.edu>
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

[Any further messages should probably go to only the classpath list, not 
the ORP list.]

On Sun, Mar 24, 2002 at 08:56:23PM -0600, Fred Gray wrote:
> On Sun, Mar 24, 2002 at 05:27:25PM -0700, Eric Blake wrote:
> 
> > Would it be worth
> > moving the default properties from System over to Runtime (the way the
> > default security manager was moved), and having Runtime use this VM
> > generated property list directly rather than relying on Runtime?

(I assume you mean "rather than relying on System".)

> I would say that this should be saved for a last resort; I'll stare at ORP 
> some more to see if I can figure out how to fix it there.  (I don't have much
> experience with ORP yet, so I can't make any promises.)

After further examination, the problem is clearly a Classpath bug, and the
solution is to do exactly what you said: move the default properties list into
Runtime.  

It's a straightforward bootstrapping problem, and it's apparently already been 
solved once in the past.  See the javadoc for Runtime.setSecurityManager():

   This was moved to Runtime so that Runtime would no longer trigger
   System's class initializer.  Runtime does native library loading, and
   the System class initializer requires native libraries to have been
   loaded.

The world starts out by initializing java.lang.Object.  Its static initializer 
does a System.loadLibrary(), which causes System to be initialized.  The static
initializer for System again calls System.loadLibrary(), which in turn calls 
Runtime.load(), causing Runtime to be initialized.  The static initializer for 
Runtime calls System.getProperty(), but the properties table hasn't been 
constructed yet, so "properties.getProperty(key)" tries to follow a null 
pointer.  Therefore the world ends in a giant kaboom. :-)

I initially thought that I might be able to get around this problem by 
removing the System.loadLibrary() call from System's static initializer
(not from Object's).  That just forces a different sort of crash when Math is
initialized before its native methods have been loaded.

I can pretty easily implement the fix for this, but I don't have copyright 
assignment paperwork, so it would probably be a month or three before it could
be checked in.  Given that this is a rather critical fix, someone else should 
probably write the patch.

Thanks,

-- Fred Gray


From ebb9@email.byu.edu Mon Mar 25 02:53:36 2002
Received: from rwcrmhc53.attbi.com ([204.127.198.39])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16pPIO-0004aI-00
	for <classpath@gnu.org>; Mon, 25 Mar 2002 02:53:36 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc53.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020325075335.SDMF2951.rwcrmhc53.attbi.com@email.byu.edu>;
          Mon, 25 Mar 2002 07:53:35 +0000
Message-ID: <3C9ED6FA.8B34E5B3@email.byu.edu>
Date: Mon, 25 Mar 2002 00:51:22 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Fred Gray <fegray@npl.uiuc.edu>
CC: classpath@gnu.org
Subject: Re: minimal hack to classpath for ORP 1.0.9
References: <20020324175751.A6719@npl.uiuc.edu>
	 <3C9E6EED.5A63CEF8@email.byu.edu> <20020324205623.B6719@npl.uiuc.edu> <20020324230113.C6719@npl.uiuc.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Fred Gray wrote:
> 
> It's a straightforward bootstrapping problem, and it's apparently already been
> solved once in the past.  See the javadoc for Runtime.setSecurityManager():
> 
>    This was moved to Runtime so that Runtime would no longer trigger
>    System's class initializer.  Runtime does native library loading, and
>    the System class initializer requires native libraries to have been
>    loaded.
> 
> The world starts out by initializing java.lang.Object.  Its static initializer
> does a System.loadLibrary(), which causes System to be initialized.  The static
> initializer for System again calls System.loadLibrary(), which in turn calls
> Runtime.load(), causing Runtime to be initialized.  The static initializer for
> Runtime calls System.getProperty(), but the properties table hasn't been
> constructed yet, so "properties.getProperty(key)" tries to follow a null
> pointer.  Therefore the world ends in a giant kaboom. :-)

I did some shuffling and analysis, and I think the latest version in
Classpath has a safe bootstrap sequence.  Can you please test it for
me?  I did not trace the initialization of ClassLoader; I'm hoping that
it does not cause problems before the native libraries are loaded, but
it appears to me that System.getProperty should now be working before
the ClassLoader initialization begins.  Quoting from the patch I made to
Runtime.defaultProperties:

...
   * No matter what class you start initialization with, it defers to
the
   * superclass, therefore Object.<clinit> will be the first Java code
   * executed. From there, the bootstrap sequence, up to the point that
   * native libraries are loaded (as of March 24, when I traced this
   * manually) is as follows:
   *
   * Object.<clinit> uses a String literal, possibly triggering
initialization
   *  String.<clinit> calls WeakHashMap.<init>, triggering
initialization
   *   AbstractMap, WeakHashMap, WeakHashMap$1 have no dependencies
   *  String.<clinit> calls CaseInsensitiveComparator.<init>, triggering
   *      initialization
   *   CaseInsensitiveComparator has no dependencies
   * Object.<clinit> calls System.loadLibrary, triggering initialization
   *  System.<clinit> calls System.loadLibrary
   *  System.loadLibrary calls Runtime.getRuntime, triggering
initialization
   *   Runtime.<clinit> calls Properties.<init>, triggering
initialization
   *    Dictionary, Hashtable, and Properties have no dependencies
   *   Runtime.<clinit> calls insertSystemProperties; the VM must make
sure
   *      that there are not any harmful dependencies
   *   Runtime.<clinit> calls Runtime.<init>
   *    Runtime.<init> calls StringTokenizer.<init>, triggering
initialization
   *     StringTokenizer has no dependencies
   *  System.loadLibrary calls Runtime.loadLibrary
   *   Runtime.loadLibrary should be able to load the library, although
it
   *       will probably set off another string of initializations from
   *       ClassLoader first
   */

2002-03-25  Eric Blake  <ebb9@email.byu.edu>

	* vm/reference/java/lang/Runtime.java (defaultProperties): New
	field, to work around bootstrap issue.
	(securityManager): Make package visible.
	(Runtime): Remove bootstrap dependencies from constructor.
	* vm/reference/java/lang/Thread.java: Use securityManager field
	directly.
	* vm/reference/java/lang/VMSystem.java (insertSystemProperties):
	Move to Runtime, for bootstrap issue.
	* java/lang/Object.java: Document bootstrap importance.
	* java/lang/String.java: Ditto.
	* java/lang/ThreadGroup.java: Use securityManager field directly.
	* java/lang/System.java (defaultProperties): Remove, to work
	around bootstrap issue.
	* java/util/Dictionary.java: Document bootstrap importance.
	* java/util/Hashtable.java: Ditto.
	* java/util/Propeties.java: Ditto.
	* java/util/StringTokenizer.java: Ditto.
	* java/util/WeakHashMap.java: Ditto.

-- 
This signature intentionally left boring.

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


From cbj@gnu.org Mon Mar 25 08:48:17 2002
Received: from fe8.southeast.rr.com ([24.93.67.55] helo=mail8.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16pUpd-0004PF-00
	for <classpath@gnu.org>; Mon, 25 Mar 2002 08:48:17 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail8.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 25 Mar 2002 08:48:16 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2PDixe28126;
	Mon, 25 Mar 2002 08:44:59 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: GNU Classpath <classpath@gnu.org>
Subject: java.util and vm/ref patch
From: Brian Jones <cbj@gnu.org>
Date: 25 Mar 2002 08:44:59 -0500
Message-ID: <m3eli8sqw4.fsf@lyta.haphazard.org>
Lines: 15
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

--=-=-=

If someone has the time, these patches need to be looked over to see
if all or parts of them should be committed.  It's part of the Intel
batch we have paperwork in place for but were not broken out on
Savannah previously.  Everything else has already been committed or
looked over.

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

--=-=-=
Content-Type: application/x-gzip
Content-Disposition: attachment; filename=java.util.diff.gz
Content-Transfer-Encoding: base64

H4sICPEUnjwAA2phdmEudXRpbC5kaWZmAL1Z63PbNhL/LP0ViD7UVEhRLz/lSxvHcefc2HGnTtvc
dDoeiIQsxBSp48OOmvH/3l28CFKU1ORmTpMJSWCx2OdvF3DIZzPSeyK94n1KPtFH2i9yHvXPplme
0iC/4lnu4zDx/X4Q0Sxb0nze30LY7vV62xi1PswLchPkZHRAhgeT8f5kNCCjwWDYdl33H+/S+p2F
5JqmsJIMjyeDk8lgH7mM2q9fk954cOINB8RVz9ev20T+lsU04gG5mX5iIEHMPudOV8990S+EBHMW
PFwnodM9bff0IJ8RZ5lk5NUrkvG/WLft1me+1zOk/OXzNHmCnZ7I++S2COYXEVuwOL/4HLBlzpMY
tzDEoHlOXhHg5brWzinLizQm9yzHbWCB2zCDa0tez21S0/kx4SHQL5JHBjqHG9yepnSVbXd4SVJ3
dTnzbU621m9172h/NPCOiKue2r3GgTzOhSPAlNSPWHyfz41hZklKHCTgMDs4hce/BC28uW636m32
34JGmZN4hP7B/+zWPJ7PeeavkViuV87hZm810BuqkWetzYnS5mSTNrxJlac5jxhxej2OkTf4vwu/
IYb+TbN5TqcR2xpGVapaJFUnvymYaiy2xtPBYIgOwMehsr9KmmwVB5DAMQRIKDNoWeRnUeRc0yVZ
CIMpP13mLKU5BBfPU3DWwockT1e3kJhdn6s5ASftahguVKAufHwBCjXyPQaneO31miAKBPAvcAuC
qx3z2UUBfIlsp1K7/WNQyz3YP7Kiq8Kr3ycfIB4I/lsAwmQc7VZCiYicIFmufCXsQMWAGJsWwQPL
ARcFyqHdhSB/qHEVtX/aS5QRMQg1ZIEM5xEDD+VzRgIKCJz5QvyT8QjFx0cpPlD/wmhIaBySIsMF
SxrwfKWE3iRS5qew6jIG22h50AcgIZBakwphLW2bt31gq/4jjQpGlpSnmW+oPty8vZmQbJ4UUUie
GJkyErIZizP+CLRpcp/SxYKlmSdYiXIjQoJHEbunEYmLKMp+EPoPBwN0nAvPY+/YcqBdW86TOCjS
FGIOqhaf8YBibWkqMpj8QVKA1q8EZjQw21yoFMCI9b2eqUO9nhgx35qpMbyIUYzJ07IsKfRiKAeq
21XaDg/Q3fDU4aoX4Hpgw3zFSP5UyWSwua1ivloKzr+dXf16cWupqWCM+cJvp01r3l3851ZLM1a2
3x8o29u6SXwRUKoKK0rjQ1R06/KhhsZ+D3HyFIOjsMhvMKHraiIDt/gfxpZAO7G/xhyQagMWX/H4
gYU7m7gaWQ2Na7PfBMd1HtvbN1kQx1Y9VGi1SMJztBNajugUNb0SOlHmrAhttz42NHEwg2xFt5TR
I4ZZlLESH1GUo9ERhiM+aqJkPmQ0LaIcEUE2lCbNdMneCilWEpQlXG1Ow/AKRBPJ42BOyjfJT2/W
ldttLMS/sCwp0oC9KeJwRzVuIK0FQQNF68eUk1u2JKMhGY4mo9FkcLwzEJr47Gj2RPnCx7GN/1PB
wEMTBnOyoCtwJuQDQq0oH6FC4+qGgLLwVO86LYn0Tf8lwSQmmNAki/lyyXJgFwEs5glWxhRnlywF
pF7QOIDNpyygWAjgcwXNQpazBcI70OScZablosAK9KOZTF6WKRgBn1rluIXG8HniX8ZQIG9z8PUC
arKs4qNDgUSjQ7tHBJgH3R2z7sagNWGf17uGZ+g+hEgv+437nwtkSafiqbY9GQrrn4y90b7YtwW2
//jxo1XcoIcE89zHScqIWHqOoasl+cE+kqiUdCpe0PhvGlQUy3x8KV83GqikmPEYyidM8fgesF66
/j1dwDYWFcByEtAIuzqcg6xaRjRgzp6/55G9/l6XuKTjl47s2FuICopqRgkNIeDW5Qf+HJsPYYwr
QeXDEe1WxIeOx7NMKeDYYtqHu5aAozWu1t7I9Sv4oeTA4kWTwF8qX6SeJwBBP0tzrKoJ5fDKgbS+
1l9S7EqAhczXbaTCJ7ibfKmSPpdfzzvinnyxiBUgg+a2RsYEikogBralTiUwPKH4bTIDK88YKAIx
YrERACwrFnQtwxMoWeMDbyTPEC3xE9yxVuOBQexiHxoq0RrR+L6g96UB0LtXatAUEEn8ppiBPCSb
Kt/Yo87hoGv6LFRcM1aduNPFw4WNDtWsEY0I9Gy2GOdyTPSALUUXi6wiU5rJBIOUuevA/3o7JTDg
xVcuyKY+AmYcOpq0uz61d7fXMKpZmanq1kCYJ3LIkTZqmX44XZX2eSFrcUtaBxlNdSYAnQp85OkJ
PytLoiOuhMmMHB7pdLoVIit7PVPDZGDg4bAn6IS47itlHyWelQ/46/ebqUTQVygbjbY+qRgY0xlB
Gu22Fr6PNOVUZHoZNr/JMafMk/Gx6OwOD/S9XJklWgNlr9YuYxEwVqtqAyWDjRytup2aaDZayJ5S
C6vTGwykNHpuS+girU3xo4zlbVdVmO7w0Bui7U4OvdGg2ouaA/xiKU9t4vhHMmg68CAtztRKAh6L
r5Q9wvETTqU8hV4SiA0jPJBOCx6FcpnC72BOYWUiF88iOGiri4wKtuFNhBromuor1T0XCIsXlUFZ
FbUt2y52FT9iM47t4oRczhpgQpYHVDNW22HrxXMflv9TWHQb0YVUxlUM2LAiI7p0sZhXkdWEaHX6
UyPippTSYK3sWKtPCEPawvpKA4wsY63J0FjKLENbEKMjU7yIDqOn9+j9b17YXRkazCKlQTlQR1Nm
IXpmGE1moKtqNEZQLEuCBG8kLMt5Sx/cxicDD84l7v5o7I3H1tG9dh5AId+sJ6eW3SNsscxXEtY9
A1cV0+LWpYEhLl6SuTwzAC/IshxT6ic8fZ39fEnCJCjKFKXTpMjFiaMMAVukWhyAf356+45kdJV5
sIrmuCCJxZ3SIw8h1alOdORyx+K7X995SGFxWBTgYdG0q1UWPmR6ncQBePetlQZkuAAVuT0sTkVA
xIneG6+ycK0nJy0OFTKKYkRmg/IG6ppnGQSIdlV5B9VRdsFossMLmOayl+x4pPQdFN/T8sQjAx2E
eA/bYNCi2uoQr2OzOUas+BCRsBYkUS0+qgFSOtQOE3Xo3CpOy4oKExFWfHz3HXmhSNVl/pUpvm8l
K7wnsGFktzINLJRmO7UiGl0UrCsN5QXn05zNxQld7XSnsGQO5+Ipg5AT5S/0UF3wp6fKAvwWUGDQ
Oh29tKN9AknWqfHr4CDFy3qzPmWgLCITzOAmdRGA8KuQxzXIoxMUjk+i5pcHiXjD+WFqjg5u61lf
WqpbSX1Gkq3Dpnud3xl9UAVg66VOna52o1OfFtcweK83HhK8gxlMxrvv9RqZbLzL2T/CS3xXPsxN
tr6NQF7yuhhMLS+8uvpvYapGyY5T/fn2geEhBd1S9mQNBOJ+VlGp+ETvickavBpHqHuh6hi40ojo
yEveDR76RNP+NY35jO24eF0jrPlobb51DUXjLQsIGZPh/uRgPIHj5i4nrXPZ6qXh4VhcesND37gt
U/5Ic0YyLFvmb8k0vFtAW3iXyRbSOcuhrk+LHMsQvGo4lP0XC/GiFNM/7Uqoz4h1cG+XbhaMsT2F
4TsezxJHcMOFpwZS1DzBeagq8V6Ol3AhXoevsLCIksbueRxj3kOvAkYg2ZIFvmGxdR9iJKFGq9o8
pujfXTzXtD8hAAA=
--=-=-=
Content-Type: application/x-gzip
Content-Disposition: attachment; filename=vm.diff.gz
Content-Transfer-Encoding: base64

H4sICMMnnzwAA3ZtLmRpZmYA1Rtpd9s28rP8KxB9KWXJlChbPpvdOI6dKPX1fDTNy+bto0nIYkKR
Wh5WVD//950ZACR4SJbbvn1bNZUlYjCYC3MBcr3RiG3M2EZ6HrGHSTfiIx7xwOHdb/aD3fXt4L57
5NtxbOJ3ZppdB79N7WTcfRZ8bWNj43mkjZPIYx9Tn/V3WG97f7C9b/VZv9ez1trt9gtXbHziLjuz
I5jPrN393t5+bwtx9dfevGEbW3udfp+18c8Oe/NmjbF19ib2ABn7+O4Xy+zhk+4aW9uYpne+5zBa
mRF69rjWrnnqTaY+n/AgiRmub3qhec0jz/a93+07n8MkBi/xPo28BzvhLE7sBNCMvMD2mR8G9yym
Kb/yKPbC4Hb4jr1mm/3edm9vc2uwt7Pd293atrY3Tw8kNqZju7j7xp3ky1cWe/cBYIC5Qer7B0Wo
yyhMAAzQvwsnthfAQOlBYZp473bZzZizNPgehDN9CnNpjrm2oa8hGJLcVRaUWMrPD4qy6a4TlvXu
S/Hk9AuE3XXBg0TzKL7h65JHEy9GScdsqn0GBHymjxqtg3yWBmnarmsg7KHv5+BGSwdfQiUuUnps
IOkdfQ2F60lwQ1apdJKvCci4CxafhOyeJywBZVWUtExHOaKyOeRDYj6+BO1XaZB4E64x3oS1yxw1
W88qdpXFM622FRHA/0vpKG0Y2rhGS5nEE7kGC5zCDmtbg62OJX0DyZ29iXiSRgHJlmaehrbLI/hu
J7B5bRL/2IuFVzDzeSW/IrUolCH8SAByeChiBQ60r0YmxBUn9LIZhXnLVngsiBYMKRmHMWdN8mbr
TcEWjzsoAC8SX32BCphG5eQIvBEzcIFze8KNlgmKjpL4k5eMDYGu2WKtHBpfUriajhs6sY4Pyl7E
YsMbGQggTEQibsD/NOt6Hid8ok00Ac8wAJpALTkOSYCjln/K9tn6OsuUeQsSQQOICWlBCCAx/MTs
wGW+F3xntrIENKv+YBvNqr9jdazdzKx0tRB74WQaBhBEbuZTLiwTmfPiwyiy5+BY6AnOTKI5fN5o
KLpF5BuFEYlcE316FyeRF9wbFrqldqPR7b54yjV9ZU4AAEIPApQGUdc0YvLAlUo+aLZaj2BG3Lw3
2ZdT0jkGaFPEKJqHXCiMYn6+cL8jH/k8uAeErQ1LLPaEb9yP+XMYJLxuQ1JPZTvS2FAQmSGJNWrl
RQuKqTo9ElZgMvGP8DIKXGjviTl24owNGjsPk5MwDdzjHw6fkr/mQs+NwqaQM8maBv3tjrXF2oNB
P8tgVHTQ7KoSdGr8Yu7/8HXNnTTykvmZHdj3IIp4ku0g3DalYRRdFhRQgAD+qrALawYeixsfzHuZ
169gU6/loeJlYUF/xRPTGXPnuzZv8VItLR6hwygIo5pY1YpmIVhVUAtzifoZ+HpRjlMV8kq5TmXa
X5DzFHA+FVUkt8XyPLI0j/ZoHZay+LN0S6WPXdirvg/B/W6u4q7v3RVzmofQcyF3r26uighEKqY0
1ahJvl2dCyADKXFXKM6kva9enukTlhVoOhyVaIfpPYPcyOrv9/v7m1svK9EK2JYXaQOMmPSODi4L
Q4hdePFT7y6yo/mljSGitI+z7UXQaudVQBhG0ZqnqGO5ENqsWPpL72uNtS+E/vrYNJtPB2BCLh/Z
qZ8gmCAf08Q0AtkkzPUisIAwmtcR91R9WLVkxQcKbbvX2WZteN+TQvNgCbXUa9Y7UM8kxcPA5T+y
gdnY87mRRClFIBnSuuvsA6iROWHqwy7gkNiA2UJNO9lXTtb82Qu85B/I1hSyAGC+w04Alfmz44uR
mef7sJHSPFJCNuUFD+F3VKlEw/KxLpJDhAb8B1KOxJoeUnsxMgg3PrnmUzuyQXpHYzvqSD4pzGJE
N8Tc15DVy4jaaEi+v+j8f1X48/whR0XZ295OB8LtZg/kuiUEK12BtEnx7T2ZJEZ6Q7NV/N5RgL4Y
JxIlCvARDof8j//gzjBIeATVkaFMiDkTt5MZFOPBA02VpVORiOqOaDfgH+gPi/dR6PvhDOFAS5DF
sHicJi6W8+Mw/B4DIEpdrxbIq4Hbv5aAHwDOuBlHHLJcnEM2gvCN2rRB2UZcHMyT9kJakOHCt5og
vCCkxxptcTOLRo0nRZk+TjGMKM/ca7VGugtDn9sBxIdJ+MD/zrzLCFcUgWDrWSmQ7se2nxi4B9Hc
0lgmLlqWUURN4HrsxgeZRUsctWvKMCrNOVs7m6vRcFA3UW4HmhilQYGsQmVbkkWqQJZRJZGLZl8B
gYa4BPwruXSylBts/1XbF6UJmdWlQYB79DUb2eDotQn5p+IasOs/qGWMatLIDI0IZW/VIBbPA2cc
hYH3O3eNopSI8RarSS5ftEJmFLpMwLAFG7Xp51ORb3xJm86QFLK9xbJSrqywhasJtpR+TbmRgHBm
RO8QksF7278GxDwr2YzmoY+I5xDTVPeNnHo4Ij+boE5RpM0yn7AqEmNCje+D8UNCvcLih9F9ir1m
bX108YgIvbstaVHGhJZo54/vOCdDq9CiWW0sMizNsurpBvMIgwQS1li4lD9BfTzljjfyuNBODcX8
3oNCNOJuhfBxrXd/ziiKnv7/zzReog5tX9T6+Odkoe//zI9W/aem+eKGr4pFUFQmM3NvmGSWBjEp
MY4DsA1I6agPAnDZUiaX5ytGix0wDtEmPgsjfqw9rXVShlRsi5uYDkp42GeiLVmR5NP/gqgkmi/w
p4vJ/RZit6bOTYpmEkXLKJ0mXGsl/buuKYAv3LZeUNFBjQT0r4UAiS/dv4r4//exlhrJaD4AsC1Q
RY3IgEv2iklHrinCqDS61UvAKshlVviU5SbYDFilFVBtea/cFKifuqw9UD+DSvt33GGbFrOgru/B
P/iwvbdyo2AJ3oUtg16nx9qWqH3bU9v5Dkk3y7rPIOK1tkzjysih+kqwf60fkTzW5oHVqS6dM1Dh
Xx7LD24kkhqIx6dC5l04FC4d2OTHFprtStfvakcX7ae1f7HzEGmC+hsq9gQqRxcjzggq55VsSJj+
6oajwS+zFg1MHvcHjFkM7KM/2B+88LhfR7bULqwdiw716I/oi+BRneg8JiHUVp2sKqc+bkPpSywh
HcH7KEyn7B7fO3nlP5HNEqm/lWcoIsQokVIgghoPloX9HPwjGjo4C2gLsajEYw/RppBrtkzqcItR
Q7RBXBuSgaAG1Ivf0ZChjoUwN1GNKowO2DspnfJ5wZgDbhD1KAonbGpTWykhlIhETtOttpbGowqc
pAIpFlXgMPDIKzIlJ5PkhEmexIQPZX9msEn6HWxu4bEIKVjsH72iFJ+veJyKs6vFMNeaFEULaqa+
t7J7BYVTZHVMWeELl1lw+FojA/1IzxBMy7MqKTcduIWdRXYCYTAIZ9i+EXGoTgf5gZZyGrWaev6o
NDuTquO0Tcdz+U5QXfEaTotnu2L/LCTL8eWWWC363WA+TjnAS5yXNuUZ/6VB/vkoV4PvuehmwWIY
37rreWgzMzxknEfhdB559+OEGUctIGhvl51EHKJPOEpmsGkZHThS2tRhw8AxMTLe4OUFjA/UxoXU
GOPF+/NbYbjUH0WwwhPqJSLmWGI+YPMwZQ5VVa6HzdS7FDaJl+C5eBdsdRKCDudrbXgCJND9Cc4g
C5pQQYRfcIH3PIC0zmeXwpJOPYcHMcSxWETJeEznMWtthF/EGaR9HoyDnYjrVKzfwUrYgGAINEYs
pAwZNoUdzJkPWzmDBD5ZDaM5P66q5cbhlIsbIMAP9bjvOEtjPkr9DgPItfan4c2Hi9sbdnj+mX06
vLo6PL/5fACgyThMISo/cIEIr49h6Qs8RHYAvj0crbXPjq+OPsCEw7fD0+HNZ6T+ZHhzfnx9zU4u
rtghuzy8uhke3Z4eXrHL26vLi+tjE89wuZIjMFEvyBFpIkKHD8W7H5NmP4Pm4jF1+cc2eMSIOxy8
oYs3GcCgntcPiJJusSF3Rcs5AD8gqCIDO7q4/Dw8fw/EDkfgvZIOm2FYEbdOAM1yY+2wwR674Xjh
jl36toPd9RSnb272OuxtGCcIeXa41u5B4LQ2rM3eDru9PiQmD2Ngh1oNQD5XdVIH+1houXRzg67x
+KKVLpgJyZCQ9hiIhNwyCt3UAYMMqG2fJrj1OsWJbgjAwBweHHpJzP2ROAARLEYQh3yq/XMEyP8d
HrQ8YJcD5y2Xtyk3bcZGvuY4nIFtRXjEYvuei4EKzVzwAeEzxkPg2XguiNFIIP1MyHe8iBQ6PMD/
6tNusO8QPErd1ciDyigE2yD5hBYRLRiEVIrbk+qguF9ykSbT9BmYYbAEZHiRVdBEfXd9HVwCnqNI
L4vugO4BpVMeiZICdoftayYVC7+ArhAEGdlezF10LALTG+WULNMywWovnIQNyFOLYTsFBxGxtyCm
gH0MAx4Xnn8MxwH7hQPOSDwvXDJrkzIKl1RzylWhI8Sg31vVlQL+j0qMla6obmz2tvrbu9u9wWB7
sNvb2unvDk5JcFrhI5Jf4W/OeByjjWRdcYSki1YYvdaZyDkSDyfSnsrJp+2I224yBS85EYhMOZHO
r/I8XEwxsg5MlvOLqozqLrnyigujzu89dNpqZTnxDZ5DTtRTgss+hxC34tAhpBmWPPAvI11KTaLK
GIFN6g+D6wS22k1ka9fYKGcsy1jOXsTze3lhVNGbEesqanU5ZAxr1yF5FGE8ecl8nd38+FLSnGtM
1bY6R4qPks0gGzaYqIMmjE1MucEoaukU/BQXCVYckSudcNhfLpukMfk/dH+R57qgcIj4EDjSu2y3
F1OuddKzk6TgBOZMxQcih2/I1rYj0ccmoyPZMoZsL4qG1jckQkggLkhHUlzSxDLm6xiuV8GpwrFI
Fzohy0zKZuN0YgcbWKvRBor4FIJexl1FL2XLqiCQRAo8FDoXIPjtt9/QY7kMU6wZemH+A1Tjz8UE
meP42OTzve9L5JGE4kOdELSyTNyGZG1mFLeePN9l/2TNfdaE8eIwPGtWRajsmeIcmhzucpbgNpf5
ET6ChChypVpjimI1XFABNhXxMncVLO9rFQbkNT/A+ceIyo5vtAhdco8iaGrjOFmmflgGSHyrsqIj
yk8oY5PgfKigM/VpbTgdQ48Z8V/BrMhVSszOcmbF+F/ArEQ0y5idvYjZWUt3nnXH7tU5Mk8QRtaq
xuoTrHpkOaRLKot06vaRSDJx6xOYktZ5GE3IZ0JqDBFjTCd9dKaGO5AS7CxJBwFiCTaVU8PRCIrI
gONxGmbckNpESl0jUAGPq9EK9z9eGU6WBCQpkDz218Zb7LKu0o/49ewPdeKr05b1JarQjTOQNPYm
rE3Ws/a3+vuDXUwwV+9N1OBcfmFvC3uV8G5Z2ZXkws9M9J8tYKvRC7jwosV2UKFT2mHy5jPUIAn/
8pVBLWNDuRZge2IU80R89nnQEjqVLfwTNKvkGB2k+ilTe2WCrGcoaq9GUUcUFOoSkLnoNuhiwuVC
8Hcx3RjpiFK3KkzRui22nulaGKEt/LThA/enwkdBdA19QI/lTGYXWPfK8lH+EkT0gGt/8iIcoCO2
PxGZozVX2jTwzAdRdc8oYVp919TMW7ZtasAb15AvYDmGNm7hFdf+9suOJeqQLj+e2OrT8QT86W+q
rSPu8pcupfH/QH4ZK58c0oVWeYFV93CvX7NQBgG8nxPWHLxKcP2WEYK+AmBPdnwhQxMstFpa51fN
aJzJVBkPSiUcLor3Ll+J34MIYid5itRSLegyLpzjcpAsmqn4oYU++11haAkeGoctSQYYW+LWxCV+
4RA38Vc14rJXCbCPVZK5ABR/oSDQyZ+jYF4n58kni8gZhREdIHh0wxb+/MyKqOBZu93Km/dy9Iv3
VVsEvumt+/IiSvF0RM6yXy5hNk7GtS1+0LY76KgfHskffAin8DYdjfDa4l3h8rJ4mt2qPsOurQdR
IMsysAyQD0FOHZjfMu0p3v41fmI/qR+GxHfqIcBfEaHip00lYLK/blekH6x5dXxze3V+8/nyuEnW
iGfyYI1N2npdOjUfYY6hwcncb9F6mg0WVpb+rzCvbG11c82flGgKU8tgRgamDM5ZZJP/BcB2dKKB
PQAA
--=-=-=--


From mark@wildebeest.org Mon Mar 25 15:51:34 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16pbRG-0007Qy-00
	for <classpath@gnu.org>; Mon, 25 Mar 2002 15:51:34 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16pbR8-0004mV-00
	for <classpath@gnu.org>; Mon, 25 Mar 2002 21:51:26 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16pbRE-0001zh-00
	for <classpath@gnu.org>; Mon, 25 Mar 2002 21:51:32 +0100
Subject: Re: java.util and vm/ref patch
From: Mark Wielaard <mark@klomp.org>
To: GNU Classpath <classpath@gnu.org>
In-Reply-To: <m3eli8sqw4.fsf@lyta.haphazard.org>
References: <m3eli8sqw4.fsf@lyta.haphazard.org>
Content-Type: multipart/mixed; boundary="=-p/r1xwhzmtB4c7KbTrKY"
X-Mailer: Evolution/1.0.2 
Date: 25 Mar 2002 21:51:32 +0100
Message-Id: <1017089492.8823.53.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

Hi,

--- java/util/jar/Manifest.java Mon Dec  3 14:53:26 2001
+++ ../classpath/java/util/jar/Manifest.java    Wed Mar 20 18:09:04 2002
@@ -163,7 +163,8 @@
   private static void read_main_section(Attributes attr,
                                  BufferedReader br) throws IOException
   {
-    read_version_info(attr, br);
+    // version info isn't mandatory at the beginning in jar spec.
+    // read_version_info(attr, br);
     read_attributes(attr, br);
   }
 
Actually according to (both the old and new) spec the first Main
attribute must be the Manifest-Version and it is mandatory. Which tool
creates Manifest files that do not follow this?
http://docs.iplanet.com/docs/manuals/signedobj/jarfile/jar.htm#426027
http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Manifest%20Specification

But it probably cannot hurt to accept such faulty Manifest files.
I have checked in the following:

2002-03-25  Mark Wielaard  <mark@klomp.org>

  * java/util/jar/Attributes.java (putValue(Name,String)): Make package
  private.
  * java/util/Manifest.java (read_main_section): Don't require 
  Manifest-Version info, set to "0.0" when not found.

Cheers,

Mark

--=-p/r1xwhzmtB4c7KbTrKY
Content-Disposition: inline; filename=jar.patch
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-patch; charset=ISO-8859-15

Index: java/util/jar/Attributes.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/jar/Attributes.java,v
retrieving revision 1.6
diff -u -r1.6 Attributes.java
--- java/util/jar/Attributes.java	22 Jan 2002 22:27:01 -0000	1.6
+++ java/util/jar/Attributes.java	25 Mar 2002 20:49:24 -0000
@@ -430,7 +430,7 @@
    * @returns the old value of the attribute name or null if it didn't exi=
st
    * yet
    */
-  private String putValue(Name name, String value)
+  String putValue(Name name, String value)
   {
     return (String) put(name, value);
   }
Index: java/util/jar/Manifest.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/jar/Manifest.java,v
retrieving revision 1.6
diff -u -r1.6 Manifest.java
--- java/util/jar/Manifest.java	22 Jan 2002 22:27:01 -0000	1.6
+++ java/util/jar/Manifest.java	25 Mar 2002 20:49:24 -0000
@@ -174,10 +174,19 @@
   private static void read_main_section(Attributes attr,
 					BufferedReader br) throws IOException
   {
-    read_version_info(attr, br);
+    // According to the spec we should actually call read_version_info() h=
ere.
     read_attributes(attr, br);
+    // Explicitly set Manifest-Version attribute if not set in Main
+    // attributes of Manifest.
+    if (attr.getValue(Attributes.Name.MANIFEST_VERSION) =3D=3D null)
+	    attr.putValue(Attributes.Name.MANIFEST_VERSION, "0.0");
   }
=20
+  /**
+   * Pedantic method that requires the next attribute in the Manifest to b=
e
+   * the "Manifest-Version". This follows the Manifest spec closely but
+   * reject some jar Manifest files out in the wild.
+   */
   private static void read_version_info(Attributes attr,
 					BufferedReader br) throws IOException
   {
@@ -185,7 +194,7 @@
     try
       {
 	String value =3D expect_header(version_header, br);
-	attr.putValue(version_header, value);
+	attr.putValue(Attributes.Name.MANIFEST_VERSION, value);
       }
     catch (IOException ioe)
       {

--=-p/r1xwhzmtB4c7KbTrKY--


From mark@wildebeest.org Mon Mar 25 18:27:46 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16pdsQ-0004XO-00
	for <classpath@gnu.org>; Mon, 25 Mar 2002 18:27:46 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16pdsJ-0004t3-00
	for <classpath@gnu.org>; Tue, 26 Mar 2002 00:27:39 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16pdsO-0000qo-00
	for <classpath@gnu.org>; Tue, 26 Mar 2002 00:27:44 +0100
Subject: Re: java.util and vm/ref patch
From: Mark Wielaard <mark@klomp.org>
To: GNU Classpath <classpath@gnu.org>
In-Reply-To: <m3eli8sqw4.fsf@lyta.haphazard.org>
References: <m3eli8sqw4.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 26 Mar 2002 00:27:44 +0100
Message-Id: <1017098864.8823.124.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

On Mon, 2002-03-25 at 14:44, Brian Jones wrote:
> If someone has the time, these patches need to be looked over to see
> if all or parts of them should be committed.  It's part of the Intel
> batch we have paperwork in place for but were not broken out on
> Savannah previously.  Everything else has already been committed or
> looked over.

    diff -w -uNr java/util/AbstractList.java ../classpath/java/util/AbstractList.java
    --- java/util/AbstractList.java	Thu Oct 25 15:34:20 2001
    +++ ../classpath/java/util/AbstractList.java	Wed Mar 20 18:09:04 2002
    @@ -309,10 +309,10 @@
           public Object next()
           {
             checkMod();
    -        if (pos == size)
    +        if (pos >= size)
               throw new NoSuchElementException();
             last = pos++;
    -        return get(pos);
    +        return get(last);
           }

Bryce checked in a similar patch.

    diff -w -uNr java/util/Arrays.java ../classpath/java/util/Arrays.java
    --- java/util/Arrays.java	Thu Oct 25 15:34:20 2001
    +++ ../classpath/java/util/Arrays.java	Wed Mar 20 18:09:04 2002
    @@ -2420,7 +2420,7 @@
         {
           int size = a.length;
           for (int i = 0; i < size; i++)
    -        if (equals(o, a[i]))
    +        if (this.equals(o, a[i]))
               return i;
           return -1;
         }
    @@ -2429,7 +2429,7 @@
         {
           int i = a.length;
           while (--i >= 0)
    -        if (equals(o, a[i]))
    +        if (this.equals(o, a[i]))
               return i;
           return -1;
         }

I checked in such a patch based on a bug report from Takashi Okamoto.

    diff -w -uNr java/util/Hashtable.java ../classpath/java/util/Hashtable.java
    --- java/util/Hashtable.java	Thu Oct 25 15:34:20 2001
    +++ ../classpath/java/util/Hashtable.java	Wed Mar 20 18:09:04 2002
    @@ -501,7 +501,6 @@
       public synchronized void putAll(Map m)
       {
         Iterator itr = m.entrySet().iterator();
    -
         for (int msize = m.size(); msize > 0; msize--)
           {
             Map.Entry e = (Map.Entry) itr.next();
    @@ -548,6 +547,7 @@
           {
             // This is impossible.
           }
    +    copy.size = 0;
         copy.buckets = new HashEntry[buckets.length];
         copy.putAll(this);
         // Clear the caches.
    @@ -932,6 +932,7 @@
         // Read and use capacity.
         buckets = new HashEntry[s.readInt()];
         int len = s.readInt();
    +    size = 0;
     
         // Read and use key/value pairs.
         // TODO: should we be defensive programmers, and check for illegal nulls?
    @@ -1007,7 +1008,8 @@
             throw new ConcurrentModificationException();
           if (count == 0)
             throw new NoSuchElementException();
    -      count--;
    +      --count;
    +      
           HashEntry e = next;
     
           while (e == null)
    @@ -1015,6 +1017,7 @@
     
           next = e.next;
           last = e;
    +
           if (type == VALUES)
             return e.value;
           if (type == KEYS)
    @@ -1037,7 +1040,8 @@
     
           Hashtable.this.remove(last.key);
           last = null;
    -      knownMod++;
    +      --count;
    +      ++knownMod;
         }
       } // class HashIterator
    
The size = 0 parts seem to be necessary, but I don't get the other parts. 
    diff -w -uNr java/util/LinkedList.java ../classpath/java/util/LinkedList.java
    --- java/util/LinkedList.java	Thu Oct 25 15:34:20 2001
    +++ ../classpath/java/util/LinkedList.java	Wed Mar 20 18:09:04 2002
    @@ -329,7 +329,7 @@
       {
         modCount++;
         size++;
    -    if (size == 0)
    +    if (size == 1)
           first = last = e;
         else
           {
    @@ -727,6 +727,7 @@
       {
         s.defaultReadObject();
         int i = s.readInt();
    +    size = 0;
         while (--i >= 0)
           addLastEntry(new Entry(s.readObject()));
       }

A similar fix for the first part (addLastEntry) was checked in by Bryce.
The size = 0 part seems necessary.

Skipping analysis of ResourceBundle for now.

    diff -w -uNr java/util/WeakHashMap.java ../classpath/java/util/WeakHashMap.java
    --- java/util/WeakHashMap.java	Wed Oct 31 09:00:30 2001
    +++ ../classpath/java/util/WeakHashMap.java	Wed Mar 20 18:09:04 2002
    @@ -472,7 +472,7 @@
          */
         WeakEntry getEntry()
         {
    -      final Object key = get();
    +      final Object key = this.get();
           if (key == null)
             return null;
           return new WeakEntry(key);

I checked in a patch based on a bug report from Takashi Okamoto.

    diff -w -uNr java/util/jar/Manifest.java ../classpath/java/util/jar/Manifest.java
    --- java/util/jar/Manifest.java	Mon Dec  3 14:53:26 2001
    +++ ../classpath/java/util/jar/Manifest.java	Wed Mar 20 18:09:04 2002
    @@ -163,7 +163,8 @@
       private static void read_main_section(Attributes attr,
     					BufferedReader br) throws IOException
       {
    -    read_version_info(attr, br);
    +    // version info isn't mandatory at the beginning in jar spec.
    +    // read_version_info(attr, br);
         read_attributes(attr, br);
       }
     
Just checked in a similar patch.

Summary for java.util - two size = 0 fixes seems to be needed.
The ResourceBundle changes should be checked.

Cheers,

Mark


From mark@wildebeest.org Mon Mar 25 18:41:35 2002
Received: from node1c5f.a2000.nl ([62.108.28.95] helo=nescio.wildebeest.org)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16pe5n-0006vr-00
	for <classpath@gnu.org>; Mon, 25 Mar 2002 18:41:35 -0500
Received: from elsschot.wildebeest.org
	([192.168.1.26] helo=elsschot ident=mail)
	by nescio.wildebeest.org with esmtp (Exim 3.34 #1 (Debian))
	id 16pe5g-0004tX-00
	for <classpath@gnu.org>; Tue, 26 Mar 2002 00:41:28 +0100
Received: from mark by elsschot with local (Exim 3.35 #1 (Debian))
	id 16pe5l-0000uN-00
	for <classpath@gnu.org>; Tue, 26 Mar 2002 00:41:33 +0100
Subject: Re: java.util and vm/ref patch
From: Mark Wielaard <mark@klomp.org>
To: GNU Classpath <classpath@gnu.org>
In-Reply-To: <m3eli8sqw4.fsf@lyta.haphazard.org>
References: <m3eli8sqw4.fsf@lyta.haphazard.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.2 
Date: 26 Mar 2002 00:41:33 +0100
Message-Id: <1017099693.8823.136.camel@elsschot>
Mime-Version: 1.0
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Hi,

Quickly going through the vm.diff.

- I added some of the changes to java.lang.Class already.
- java.lang.Runtime ShutdownHooks have already added by Eric.
- Throwable changes are irrelevant with latest Throwable from CVS.
- java.lang.Thread (contextClassLoader) changes have gone in.
- The java.lang.reflect.Method changes have already been committed.

Summary - it might be a good idea to look at Class, VMClassLoader and
SystemClassLoader for things we missed. But mostly this is done.

Cheers,

Mark


From cbj@gnu.org Mon Mar 25 23:13:06 2002
Received: from fe5.southeast.rr.com ([24.93.67.52] helo=mail5.nc.rr.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16piKY-0003xb-00
	for <classpath@gnu.org>; Mon, 25 Mar 2002 23:13:06 -0500
Received: from lyta.haphazard.org ([66.26.253.29]) by mail5.nc.rr.com  with Microsoft SMTPSVC(5.5.1877.687.68);
	 Mon, 25 Mar 2002 23:13:05 -0500
Received: (from cbj@localhost)
	by lyta.haphazard.org (8.11.6/8.11.6) id g2Q49eJ31345;
	Mon, 25 Mar 2002 23:09:40 -0500
X-Authentication-Warning: lyta.haphazard.org: cbj set sender to cbj@gnu.org using -f
To: Mark Wielaard <mark@klomp.org>
Cc: GNU Classpath <classpath@gnu.org>
Subject: Re: java.util and vm/ref patch
References: <m3eli8sqw4.fsf@lyta.haphazard.org>
	<1017099693.8823.136.camel@elsschot>
From: Brian Jones <cbj@gnu.org>
Date: 25 Mar 2002 23:09:39 -0500
In-Reply-To: <1017099693.8823.136.camel@elsschot>
Message-ID: <m3adswrmv0.fsf@lyta.haphazard.org>
Lines: 29
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Mark Wielaard <mark@klomp.org> writes:

> Hi,
> 
> Quickly going through the vm.diff.
> 
> - I added some of the changes to java.lang.Class already.
> - java.lang.Runtime ShutdownHooks have already added by Eric.
> - Throwable changes are irrelevant with latest Throwable from CVS.
> - java.lang.Thread (contextClassLoader) changes have gone in.
> - The java.lang.reflect.Method changes have already been committed.
> 
> Summary - it might be a good idea to look at Class, VMClassLoader and
> SystemClassLoader for things we missed. But mostly this is done.

Okay,

I'm pretty bummed about the state of Mauve in helping to make it
easier to prove something works correctly in that so many tests are
simply missing.  This is where I'll be spending most of my energy in
the forseeable future.   I'm working on the beans api testing now mostly
so I can learn something about it.  I can see now that the measures I
felt were sort of draconian on the Jikes list with respect to patches
may be needed for Classpath as well just to help build up the base of
tests available.

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


From fegray@npl.uiuc.edu Tue Mar 26 00:28:55 2002
Received: from nialas.npl.uiuc.edu ([128.174.13.19])
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16pjVu-0001NP-00
	for <classpath@gnu.org>; Tue, 26 Mar 2002 00:28:54 -0500
Received: from one.npl.uiuc.edu (one.npl.uiuc.edu [128.174.13.13])
	by nialas.npl.uiuc.edu (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id XAA08981;
	Mon, 25 Mar 2002 23:28:52 -0600
Received: from fegray by one.npl.uiuc.edu with local (Exim 3.12 #1 (Debian))
	id 16pjVs-0002Pn-00; Mon, 25 Mar 2002 23:28:52 -0600
Date: Mon, 25 Mar 2002 23:28:51 -0600
To: Eric Blake <ebb9@email.byu.edu>
Cc: classpath@gnu.org
Subject: Re: minimal hack to classpath for ORP 1.0.9
Message-ID: <20020325232851.A9087@npl.uiuc.edu>
References: <20020324175751.A6719@npl.uiuc.edu> <3C9E6EED.5A63CEF8@email.byu.edu> <20020324205623.B6719@npl.uiuc.edu> <20020324230113.C6719@npl.uiuc.edu> <3C9ED6FA.8B34E5B3@email.byu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3C9ED6FA.8B34E5B3@email.byu.edu>; from ebb9@email.byu.edu on Mon, Mar 25, 2002 at 12:51:22AM -0700
From: Fred Gray <fegray@npl.uiuc.edu>
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

On Mon, Mar 25, 2002 at 12:51:22AM -0700, Eric Blake wrote:
> 
> I did some shuffling and analysis, and I think the latest version in
> Classpath has a safe bootstrap sequence.  Can you please test it for
> me? 
>

Thanks for all of your quick work.  It _almost_ solved the problem.

I did a cvs update to get your changes, and I copied the native method
insertSystemProperties() from VMSystem to Runtime.  ORP still crashed.

>    *    Dictionary, Hashtable, and Properties have no dependencies

This is the where the chain broke.  Adding the properties to the Hashtable
calls Hashtable.hash(), which calls Math.abs(). That causes the static
initializer for Math to be run, and it calls System.loadLibrary().  
Kaboom.

The simple fix for this one is to avoid calling Math.abs().  A patch 
to do that appears below.

The last problem is that the native method System.isWordsBigEndian() 
is needed by the static initializer for System before the Classpath java.lang 
JNI library is loaded.  I enabled ORP's built-in version of this method
(which takes the super-portable "return false" approach to the problem).  
At long last, "Hello world!" appeared.  

The last part of this message is a patch against the pristine ORP 1.0.9 release
with all of the changes I had to make to get it to work.  (It includes the 
patch in Classpath's resource/orp-1.0.9.patch .)

Thanks again for all of your help,

-- Fred Gray

===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/Hashtable.java,v
retrieving revision 1.23
diff -u -r1.23 Hashtable.java
--- Hashtable.java      25 Mar 2002 07:54:38 -0000      1.23
+++ Hashtable.java      26 Mar 2002 04:24:14 -0000
@@ -821,7 +821,12 @@
    */
   private int hash(Object key)
   {
-    return Math.abs(key.hashCode() % buckets.length);
+    // NOTE: using Math.abs() here, attractive as it is, leads to a
+    // bootstrapping problem.
+    int hashVal = key.hashCode() % buckets.length;
+    if(hashVal < 0)
+      hashVal = -hashVal; 
+    return hashVal;
   }
 
   /**
===================================================================

===================================================================
diff -ur orp-1.0.9-pristine/arch/ia32/base/root_set_enum_ia32.cpp orp-1.0.9/arch/ia32/base/root_set_enum_ia32.cpp
--- orp-1.0.9-pristine/arch/ia32/base/root_set_enum_ia32.cpp	Wed Jan 16 23:49:40 2002
+++ orp-1.0.9/arch/ia32/base/root_set_enum_ia32.cpp	Sun Mar 24 17:14:46 2002
@@ -35,9 +35,6 @@
 #include "../x86/x86.h"
 
 #ifdef ORP_POSIX
-#ifdef __linux__
-#include <asm/spinlock.h>
-#endif
 #include "platform2.h"
 #endif
 
diff -ur orp-1.0.9-pristine/base_natives/common_olv2/mon_enter_exit.cpp orp-1.0.9/base_natives/common_olv2/mon_enter_exit.cpp
--- orp-1.0.9-pristine/base_natives/common_olv2/mon_enter_exit.cpp	Wed Jan 16 23:49:40 2002
+++ orp-1.0.9/base_natives/common_olv2/mon_enter_exit.cpp	Sun Mar 24 17:14:46 2002
@@ -294,7 +294,7 @@
 #else
 		"nop;nop;nop"
 #endif
-		::: "memory"
+		: : : "memory"
 	);
 
 #else
diff -ur orp-1.0.9-pristine/base_natives/gnu_classpath/find_natives_array.cpp orp-1.0.9/base_natives/gnu_classpath/find_natives_array.cpp
--- orp-1.0.9-pristine/base_natives/gnu_classpath/find_natives_array.cpp	Wed Jan 16 23:49:40 2002
+++ orp-1.0.9/base_natives/gnu_classpath/find_natives_array.cpp	Mon Mar 25 22:43:30 2002
@@ -122,6 +122,7 @@
 	{ "java_lang_Runtime_freeMemory", (void *) Java_java_lang_Runtime_freeMemory, NI_IS_JNI },
 	{ "java_lang_Runtime_gc", (void *) Java_java_lang_Runtime_gc, NI_IS_JNI },
 	{ "java_lang_Runtime_getLibraryPath", (void *) Java_java_lang_Runtime_getLibraryPath, NI_IS_JNI },
+	{ "java_lang_Runtime_insertSystemProperties", (void *) Java_java_lang_Runtime_insertSystemProperties, NI_IS_JNI },
  //loadLibrary is just for new classpath
 #ifndef OLD_VERSION_CLASSPATH
     { "java_lang_Runtime_loadLibrary", (void *)Java_java_lang_Runtime_loadLibrary, NI_IS_JNI },
@@ -139,6 +140,7 @@
 
 //java.lang.System native methods
     { "java_lang_System_arraycopy", (void  *)java_lang_System_arraycopy,  NI_IS_RNI },
+    { "java_lang_System_isWordsBigEndian", (void *) Java_java_lang_System_isWordsBigEndian, NI_IS_JNI },
 
 //java.lang.Thread native methods
     { "java_lang_Thread_countStackFrames", (void  *)java_lang_Thread_countStackFrames,  NI_IS_RNI },
@@ -344,7 +346,6 @@
 
 	//{ "java_lang_System_currentTimeMillis", (void *) Java_java_lang_System_currentTimeMillis, NI_IS_JNI },
 	{ "java_lang_System_currentTimeMillis", (void *) Java_java_lang_System_currentTimeMillis_no_extra_args, NI_IS_DIRECT },
-    { "java_lang_System_isWordsBigEndian", (void *) Java_java_lang_System_isWordsBigEndian, NI_IS_JNI },
 	{ "java_lang_System_setErr", (void *) Java_java_lang_System_setErr, NI_IS_JNI },
 	{ "java_lang_System_setIn", (void *) Java_java_lang_System_setIn, NI_IS_JNI },
 	{ "java_lang_System_setOut", (void *) Java_java_lang_System_setOut, NI_IS_JNI },
diff -ur orp-1.0.9-pristine/base_natives/gnu_classpath/include/gnu_specific.h orp-1.0.9/base_natives/gnu_classpath/include/gnu_specific.h
--- orp-1.0.9-pristine/base_natives/gnu_classpath/include/gnu_specific.h	Wed Jan 16 23:49:40 2002
+++ orp-1.0.9/base_natives/gnu_classpath/include/gnu_specific.h	Sun Mar 24 17:31:21 2002
@@ -13,5 +13,6 @@
 
     JavaArrayOfChar *value;
     int32            count;
+    int32            cachedHashCode;
     int32            offset;
 } Classpath_Java_java_lang_String;
diff -ur orp-1.0.9-pristine/base_natives/gnu_classpath/include/java_lang_Runtime.h orp-1.0.9/base_natives/gnu_classpath/include/java_lang_Runtime.h
--- orp-1.0.9-pristine/base_natives/gnu_classpath/include/java_lang_Runtime.h	Wed Jan 16 23:49:40 2002
+++ orp-1.0.9/base_natives/gnu_classpath/include/java_lang_Runtime.h	Mon Mar 25 22:43:30 2002
@@ -128,6 +128,14 @@
 JNIEXPORT void JNICALL Java_java_lang_Runtime_loadLibrary
   (JNIEnv *jenv, jobject jobj , jstring lib_name);
 
+// for even newer Classpath
+/*
+ * Class:     java_lang_Runtime
+ * Method:    insertSystemProperties
+ * Signature: (Ljava/util/Properties;)V
+ */
+JNIEXPORT void JNICALL Java_java_lang_Runtime_insertSystemProperties
+  (JNIEnv *, jclass, jobject);
 
 #ifdef __cplusplus
 }
diff -ur orp-1.0.9-pristine/base_natives/gnu_classpath/java_lang_Runtime.cpp orp-1.0.9/base_natives/gnu_classpath/java_lang_Runtime.cpp
--- orp-1.0.9-pristine/base_natives/gnu_classpath/java_lang_Runtime.cpp	Wed Jan 16 23:49:40 2002
+++ orp-1.0.9/base_natives/gnu_classpath/java_lang_Runtime.cpp	Mon Mar 25 22:43:30 2002
@@ -26,10 +26,14 @@
 #endif
 #ifdef ORP_NT
 #include <winbase.h>
+#else
+#include <unistd.h>
+#include <sys/utsname.h>
 #endif
 
 #include "java_lang_Object.h"
 #include "java_lang_Runtime.h"
+#include "properties.h"
 #include "gc_for_orp.h"
 #include "gnu_specific.h"
 
@@ -473,4 +477,96 @@
 	return jl_str;
 
 } // Java_java_lang_String_intern
+
+/*
+ * Class:     Runtime
+ * Method:    insertSystemProperties
+ * Signature: (Ljava/util/Properties;)V
+ */
+
+JNIEXPORT void JNICALL Java_java_lang_Runtime_insertSystemProperties(JNIEnv *jenv, jclass clazz, jobject pProperties)
+{
+
+	// Now, insert all the default properties.
+
+    char local[_MAX_PATH];
+
+    void __stdcall PropPut(JNIEnv *env, jobject pObj, char *pProp, char *pVal);
+
+    PropPut(jenv, pProperties, "user.language", "en");
+    PropPut(jenv, pProperties, "java.home", ".");
+    PropPut(jenv, pProperties, "java.version", "GNU Classpath 0.02");
+    PropPut(jenv, pProperties, "java.vendor", "GNU/FSF");
+	PropPut(jenv, pProperties, "java.vm.name", "Open Runtime Platform");
+    PropPut(jenv, pProperties, "java.vm.version", "1.09");
+    PropPut(jenv, pProperties, "java.vm.vendor", "Intel MRL");
+
+#ifdef ORP_NT
+    PropPut(jenv, pProperties, "file.separator", "\\");
+#else
+    PropPut(jenv, pProperties, "file.separator", "/");
+#endif
+
+    PropPut(jenv, pProperties, "line.separator", "\n");
+    PropPut(jenv, pProperties, "user.region", "US");
+    PropPut(jenv, pProperties, "file.encoding", "8859_1");
+    PropPut(jenv, pProperties, "java.vendor", "Intel MRL");
+    PropPut(jenv, pProperties, "user.name", "ssubram5");
+    PropPut(jenv, pProperties, "os.arch", "x86");
+
+#ifdef ORP_NT
+	OSVERSIONINFO vi;
+	vi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
+	if(!GetVersionEx(&vi)){
+		PropPut(jenv, pProperties, "os.name", "Windows NT");
+		PropPut(jenv, pProperties, "os.version", "4.0");
+	}else{
+		assert(vi.dwPlatformId == VER_PLATFORM_WIN32_NT);
+		if(vi.dwMajorVersion < 5)
+			PropPut(jenv, pProperties, "os.name", "Windows NT");
+		else
+			PropPut(jenv, pProperties, "os.name", "Windows 2000");
+		char buf[20];
+		sprintf(buf, "%d.%d", vi.dwMajorVersion, vi.dwMinorVersion);
+		PropPut(jenv, pProperties, "os.version", buf);
+	}
+#else
+	struct utsname buf;
+	if(uname(&buf)){
+		PropPut(jenv, pProperties, "os.name", "Linux");
+		PropPut(jenv, pProperties, "os.version", "6.1");
+	}else{
+		PropPut(jenv, pProperties, "os.name", buf.sysname);
+		PropPut(jenv, pProperties, "os.version", buf.release);
+	}
+#endif
+
+    PropPut(jenv, pProperties, "java.vendor.url", "http://www.intel.com/");
+#ifdef ORP_NT
+    PropPut(jenv, pProperties, "user.dir", _getcwd(local, _MAX_PATH));
+	char *tmpdir = getenv("TEMP");
+	PropPut(jenv, pProperties, "java.tmpdir", tmpdir != NULL ? tmpdir: ".");
+#else
+    PropPut(jenv, pProperties, "user.dir", getcwd(local, _MAX_PATH));
+	PropPut(jenv, pProperties, "java.tmpdir", "/tmp");
+#endif
+    PropPut(jenv, pProperties, "java.class.path", ORP_Global_State::loader_env->classpath);
+    PropPut(jenv, pProperties, "java.class.version", "45.3");
+
+#ifdef ORP_NT
+    PropPut(jenv, pProperties, "path.separator", ";");
+#else
+    PropPut(jenv, pProperties, "path.separator", ":");
+#endif
+
+    PropPut(jenv, pProperties, "user.home", ".");
+
+//ORP specified/APP specified properties are supported here.
+    Properties::Iterator *iterator = ORP_Global_State::loader_env->properties.getIterator();
+	const Prop_entry *next = NULL;
+	while(next = iterator->next()){
+		PropPut(jenv, pProperties, next->key, ((Prop_String*)next->value)->value);
+	}
+	
+} //Java_java_lang_Runtime_insertSystemProperties
===================================================================


From ebb9@email.byu.edu Tue Mar 26 00:55:00 2002
Received: from rwcrmhc53.attbi.com ([204.127.198.39])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16pjvA-0003wN-00
	for <classpath@gnu.org>; Tue, 26 Mar 2002 00:55:00 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc53.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020326055459.EMCE2951.rwcrmhc53.attbi.com@email.byu.edu>;
          Tue, 26 Mar 2002 05:54:59 +0000
Message-ID: <3CA00C4A.C5F1D82B@email.byu.edu>
Date: Mon, 25 Mar 2002 22:51:06 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Fred Gray <fegray@npl.uiuc.edu>
CC: classpath@gnu.org
Subject: Re: minimal hack to classpath for ORP 1.0.9
References: <20020324175751.A6719@npl.uiuc.edu>
	 <3C9E6EED.5A63CEF8@email.byu.edu> <20020324205623.B6719@npl.uiuc.edu>
	 <20020324230113.C6719@npl.uiuc.edu> <3C9ED6FA.8B34E5B3@email.byu.edu> <20020325232851.A9087@npl.uiuc.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

Fred Gray wrote:
> 
> I did a cvs update to get your changes, and I copied the native method
> insertSystemProperties() from VMSystem to Runtime.  ORP still crashed.
> 
> >    *    Dictionary, Hashtable, and Properties have no dependencies
> 
> This is the where the chain broke.  Adding the properties to the Hashtable
> calls Hashtable.hash(), which calls Math.abs(). That causes the static
> initializer for Math to be run, and it calls System.loadLibrary().
> Kaboom.

Man, those dependencies are annoying.  Would using StrictMath.abs() in
place of Math.abs() work, since StrictMath doesn't use native methods? 
Then again, inlining the check for absolute value saves a method call. 
I'll go ahead and apply that patch you suggested.

> The last problem is that the native method System.isWordsBigEndian()
> is needed by the static initializer for System before the Classpath java.lang
> JNI library is loaded.  I enabled ORP's built-in version of this method
> (which takes the super-portable "return false" approach to the problem).
> At long last, "Hello world!" appeared.

I thought, in my analysis yesterday, that System.isWordsBigEndian
wouldn't be called until after System.loadLibrary("javalang"), called in
Object.<clinit>, has completed.  But thinking about it more, I guess you
are right - Object.<clinit> invokes the System class initializer, which
then executes to completion before returning to Object.<clinit>; and
System.<clinit> does use the native method.  My patch yesterday just
deleted the line in System which called loadLibrary("javalang"),
thinking it was redundant; I guess I was wrong, so I'll add it back in
and document it this time.

> 
> The last part of this message is a patch against the pristine ORP 1.0.9 release
> @@ -344,7 +346,6 @@
> 
>         //{ "java_lang_System_currentTimeMillis", (void *) Java_java_lang_System_currentTimeMillis, NI_IS_JNI },
>         { "java_lang_System_currentTimeMillis", (void *) Java_java_lang_System_currentTimeMillis_no_extra_args, NI_IS_DIRECT },
> -    { "java_lang_System_isWordsBigEndian", (void *) Java_java_lang_System_isWordsBigEndian, NI_IS_JNI },
>         { "java_lang_System_setErr", (void *) Java_java_lang_System_setErr, NI_IS_JNI },
>         { "java_lang_System_setIn", (void *) Java_java_lang_System_setIn, NI_IS_JNI },
>         { "java_lang_System_setOut", (void *) Java_java_lang_System_setOut, NI_IS_JNI },

The last three methods in this section of the patch have been renamed
java_lang_System_setErr0, setIn0, and setOut0, because there must be a
security check in Java first.  You should probably fix those as well, to
avoid another linkage error.

-- 
This signature intentionally left boring.

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


From ebb9@email.byu.edu Thu Mar 28 15:43:19 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16qgju-0004Fp-00
	for <classpath@gnu.org>; Thu, 28 Mar 2002 15:43:19 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020328204317.QZWU2626.rwcrmhc51.attbi.com@email.byu.edu>
          for <classpath@gnu.org>; Thu, 28 Mar 2002 20:43:17 +0000
Message-ID: <3CA3801A.C20960ED@email.byu.edu>
Date: Thu, 28 Mar 2002 13:42:02 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Classpath list <classpath@gnu.org>
Subject: FYI: configure update
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I just upgraded my autotools to automake 1.6, autoconf 1.53, and libtool
1.4d, and in the process had to tweak configure.in to get Classpath to
build again.  Can someone more familiar with these tools check that my
patch is correct?

I also took the liberty of making all the variable tests consistent,
turning things like
  if test $foo = ""; then
into
  if test "x${foo}" = x; then

2002-03-28  Eric Blake  <ebb9@email.byu.edu>

	* .cvsignore: Add autom4te.cache to ignored list.
	* configure.in: Move CLASSPATH_WITH_JAVAH and
	CLASSPATH_WITH_INCLUDEDIR out of conditionals, for use with latest
	autotools. Make variable tests consistent.
	* acinclude.m4: Make variable tests consistent.

-- 
This signature intentionally left boring.

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


From jleuner@elandtech.com Thu Mar 28 15:47:59 2002
Received: from spamisevil.test.ie.vianw.net ([212.17.60.214] helo=lenny.elandtech.com)
	by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
	id 16qgoQ-0004On-00
	for <classpath@gnu.org>; Thu, 28 Mar 2002 15:47:58 -0500
Received: from [192.168.100.211] (helo=bapli ident=mail)
	by lenny.elandtech.com with esmtp (Exim 3.34 #1 (Debian))
	id 16qgjW-00017I-00; Thu, 28 Mar 2002 20:42:54 +0000
Received: from jleuner by bapli with local (Exim 3.34 #1 (Debian))
	id 16qgjg-0005hp-00; Thu, 28 Mar 2002 20:43:04 +0000
Date: Thu, 28 Mar 2002 20:43:04 +0000
From: John Leuner <jewel@pixie.co.za>
To: classpath@gnu.org
Cc: Stephen Crawley <crawley@dstc.edu.au>,
	kissme-general@lists.sourceforge.net
Subject: Re: [Kissme-general] More Classpath change problems
Message-ID: <20020328204304.GD28538@bapli>
References: <200203212304.g2LN49h20238@piglet.dstc.edu.au> <200203221402.g2ME2ah09886@piglet.dstc.edu.au> <20020323174231.GI29537@bapli>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020323174231.GI29537@bapli>
User-Agent: Mutt/1.3.27i
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

I tracked this down to the ClassLoader class.

These patches seem to solve the problem:

Index: gnu/java/lang/SystemClassLoader.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/lang/SystemClassLoader.java,v
retrieving revision 1.1
diff -u -r1.1 SystemClassLoader.java
--- gnu/java/lang/SystemClassLoader.java        22 Mar 2002 21:25:20 -0000      1.1
+++ gnu/java/lang/SystemClassLoader.java        28 Mar 2002 20:43:59 -0000
@@ -59,6 +59,10 @@
  */
 public class SystemClassLoader extends ClassLoader
 {
+    public SystemClassLoader(ClassLoader parent)
+    {
+       super(parent);
+    }
   /** A lock for synchronization when reading jars. */
   private static final Object NO_SUCH_ARCHIVE = new Object();
 

Index: java/lang/ClassLoader.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/ClassLoader.java,v
retrieving revision 1.16
diff -u -r1.16 ClassLoader.java
--- java/lang/ClassLoader.java  22 Mar 2002 21:25:20 -0000      1.16
+++ java/lang/ClassLoader.java  28 Mar 2002 20:45:51 -0000
@@ -713,7 +713,9 @@
                                            "gnu.java.lang.SystemClassLoader");
         try
           {
-            return (ClassLoader) Class.forName(loader).newInstance();
+             System.err.println("loader is " + loader);
+             return new gnu.java.lang.SystemClassLoader(null);
+             //            return (ClassLoader) Class.forName(loader).newInstance();
           }
         catch (Exception e)
           {


Otherwise getSystemClassLoader gets in an infinite loop where the Constructor for SystemClassLoader calls the ClassLoader() constructor which tries to use the system class loader as the parent classloader and round and round it goes ...

John Leuner

> I can now run a bunch of mauve tests, in particular this one fails with some sort of infinite recursion:
> 
> gnu.testlet.java.text.DateFormat.Test
> 
> For later reference:
> 
> #13 0x0807ad4f in java_lang_reflect_Constructor_constructNative (env=0x80d1c90, consObject=0x40c017e0, 
>     args=0x40c017f0, declaringClazz=0x40be93e0, slot=2) at ./lib/indigenous/java.lang.reflect/Constructor.c:46
> #14 0x0805ac58 in JNI_CallNativeMethod (pstFrame=0x89293f0, pstMethod=0x810cc24) at ./vm/jni_native_call.c:868
> #15 0x08050c0c in Interpret (env=0x80d1c90, pstInitFrame=0x8929310, iMultiThread=1)
>     at vm/interp/method_invocation.h:800
> #16 0x080536b2 in INTERP_RunSpecialMethodFromPtr (env=0x80d1c90, pstTheMethod=0x818a388, pi32Args=0x8929300)
>     at ./vm/interp/interp.c:794
> #17 0x0805d5a0 in NewObjectA (env=0x80d1c90, clazz=0x40be93e0, methodID=0x818a388, args=0x0) at ./vm/jni.c:527
> #18 0x0807ad4f in java_lang_reflect_Constructor_constructNative (env=0x80d1c90, consObject=0x40c017ac, 
>     args=0x40c017bc, declaringClazz=0x40be93e0, slot=2) at ./lib/indigenous/java.lang.reflect/Constructor.c:46
> #19 0x0805ac58 in JNI_CallNativeMethod (pstFrame=0x8928398, pstMethod=0x810cc24) at ./vm/jni_native_call.c:868
> #20 0x08050c0c in Interpret (env=0x80d1c90, pstInitFrame=0x89282b8, iMultiThread=1)
>     at vm/interp/method_invocation.h:800
> #21 0x080536b2 in INTERP_RunSpecialMethodFromPtr (env=0x80d1c90, pstTheMethod=0x818a388, pi32Args=0x89282a8)
>     at ./vm/interp/interp.c:794
> #22 0x0805d5a0 in NewObjectA (env=0x80d1c90, clazz=0x40be93e0, methodID=0x818a388, args=0x0) at ./vm/jni.c:527
> #23 0x0807ad4f in java_lang_reflect_Constructor_constructNative (env=0x80d1c90, consObject=0x40c01778, 
>     args=0x40c01788, declaringClazz=0x40be93e0, slot=2) at ./lib/indigenous/java.lang.reflect/Constructor.c:46
> 
> John Leuner
> 
> _______________________________________________
> Kissme-general mailing list
> Kissme-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/kissme-general


From ebb9@email.byu.edu Thu Mar 28 16:38:00 2002
Received: from rwcrmhc51.attbi.com ([204.127.198.38])
	by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian))
	id 16qhaq-0000XO-00
	for <classpath@gnu.org>; Thu, 28 Mar 2002 16:38:00 -0500
Received: from email.byu.edu ([12.254.140.134]) by rwcrmhc51.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020328213758.SPQU2626.rwcrmhc51.attbi.com@email.byu.edu>;
          Thu, 28 Mar 2002 21:37:58 +0000
Message-ID: <3CA38CD3.A2A1838C@email.byu.edu>
Date: Thu, 28 Mar 2002 14:36:19 -0700
From: Eric Blake <ebb9@email.byu.edu>
Organization: BYU Student
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: John Leuner <jewel@pixie.co.za>
CC: classpath@gnu.org, Stephen Crawley <crawley@dstc.edu.au>,
 	kissme-general@lists.sourceforge.net
Subject: Re: [Kissme-general] More Classpath change problems
References: <200203212304.g2LN49h20238@piglet.dstc.edu.au>
	 <200203221402.g2ME2ah09886@piglet.dstc.edu.au> <20020323174231.GI29537@bapli> <20020328204304.GD28538@bapli>
Content-Type: multipart/mixed;
 boundary="------------C5261206DFF37D517C66AC82"
Sender: classpath-admin@gnu.org
Errors-To: classpath-admin@gnu.org
X-BeenThere: classpath@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:classpath-request@gnu.org?subject=help>
List-Post: <mailto:classpath@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=subscribe>
List-Id: Discussion of the implemenation of the core Java class libraries <classpath.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/classpath>,
	<mailto:classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/classpath/>

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

I cleaned your patch up a bit, and once I get it to compile, I'm
committing it. Thanks for the catch - I documented that the class
specified by java.system.class.loader must now have a constructor which
accepts a parent class loader.

John Leuner wrote:
> 
> I tracked this down to the ClassLoader class.
> 
> 
> Otherwise getSystemClassLoader gets in an infinite loop where the Constructor for SystemClassLoader calls the ClassLoader() constructor which tries to use the system class loader as the parent classloader and round and round it goes ...
> 
> John Leuner
> 

2002-03-28  John Leuner  <jewel@debian.org>

	* java/lang/ClassLoader.java (getSystemClassLoader): Break
	infinite loop by specifying parent classloader.
	* gnu/java/lang/SystemClassLoader.java (SystemClassLoader): Add
	proper constructor.

-- 
This signature intentionally left boring.

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

Index: gnu/java/lang/SystemClassLoader.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/lang/SystemClassLoader.java,v
retrieving revision 1.1
diff -u -r1.1 SystemClassLoader.java
--- gnu/java/lang/SystemClassLoader.java	22 Mar 2002 21:25:20 -0000	1.1
+++ gnu/java/lang/SystemClassLoader.java	28 Mar 2002 21:36:04 -0000
@@ -64,6 +64,17 @@
 
   /** Flag to avoid infinite loops. */
   private static boolean is_trying;
+
+  /**
+   * Creates a class loader. Note that the parent may be null, when this is
+   * created as the system class loader by ClassLoader.getSystemClassLoader.
+   *
+   * @param parent the parent class loader
+   */
+  public SystemClassLoader(ClassLoader parent)
+  {
+    super(parent);
+  }
     
   /**
    * Get the URL to a resource.
Index: java/lang/ClassLoader.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/ClassLoader.java,v
retrieving revision 1.16
diff -u -r1.16 ClassLoader.java
--- java/lang/ClassLoader.java	22 Mar 2002 21:25:20 -0000	1.16
+++ java/lang/ClassLoader.java	28 Mar 2002 21:36:05 -0000
@@ -48,6 +48,7 @@
 import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.Map;
+import gnu.java.lang.SystemClassLoader;
 import gnu.java.util.DoubleEnumeration;
 import gnu.java.util.EmptyEnumeration;
 
@@ -685,7 +686,8 @@
    * property <code>java.class.path</code>. This is set as the context
    * class loader for a thread. The system property
    * <code>java.system.class.loader</code>, if defined, is taken to be the
-   * name of the class to use as the system class loader, otherwise this
+   * name of the class to use as the system class loader, which must have
+   * a public constructor which takes a ClassLoader as a parent; otherwise this
    * uses gnu.java.lang.SystemClassLoader.
    *
    * <p>Note that this is different from the bootstrap classloader that
@@ -713,12 +715,28 @@
                                            "gnu.java.lang.SystemClassLoader");
         try
           {
-            return (ClassLoader) Class.forName(loader).newInstance();
+            // Give the new system class loader a null parent.
+            Constructor c = Class.forName(loader).getConstructor
+              ( new Class[] { ClassLoader.class } );
+            return (ClassLoader) c.newInstance(new Object[1]);
           }
         catch (Exception e)
           {
-            throw (Error) new InternalError
-              ("System class loader could not be found: " + e).initCause(e);
+            try
+              {
+                System.err.println("Requested system classloader "
+                                   + loader + " failed, trying "
+                                   + "gnu.java.lang.SystemClassLoader");
+                e.printStackTrace();
+                // Fallback to gnu.java.lang.SystemClassLoader.
+                return new SystemClassLoader(null);
+              }
+            catch (Exception e1)
+              {
+                throw (Error) new InternalError
+                  ("System class loader could not be found: " + e)
+                  .initCause(e);
+              }
           }
       }
     // Check if we may return the system classloader

--------------C5261206DFF37D517C66AC82--



