Edouard G. Parmelan (Re: Planning for next release (1.0.7))

2002-03-22 Thread Takashi Okamoto


From: Jim Pick [EMAIL PROTECTED]
Subject: Planning for next release (1.0.7)
Date: Thu, 21 Mar 2002 07:04:32 -0800

 Finally, when we decide to do this release, I think we should dedicate it to
 the memory of Edouard Parmelan.  For those that don't know, he was one of
 the most active Kaffe developers, a member of the core team, and one of the
 driving forces behind the project.  He died tragically in a motorcycle
 accident last year, leaving behind a wife and kids.

I haven't known that until read Jim's post and I was very surprised.
EPG took some of my patches and gave comments when I tried to use
jakarta products such as tomcat and ant with kaffe. 

I really regret him though I haven't met him. I'm fully agree your
idea, Jim. All of kaffe users should know him.

He also had been contributing for a lot of project other than
kaffe. We can find some of his works at following URL:

  http://egp.free.fr/

He was great. 


Takashi Okamoto




Re: [bug] java.util.LinkedList

2001-08-29 Thread Takashi Okamoto


At Tue, 28 Aug 2001 11:00:22 +0200,
Edouard G. Parmelan [EMAIL PROTECTED] wrote:
 Thanks, I think I have fix it in current CVS Tree.

I tried last night. But it haven't fixed yet. 
I ran TextXMLOutputter.java which is include jdom distribution.

ex.
# java -classpath /usr/share/java/xerces.jar:/usr/share/java/jdom.jar:. 
samples.TextXMLOutputter foo.xml
java.lang.StackOverflowError
at java.util.ArrayList.add(ArrayList.java:line unknown, pc 0x8337bf8)
at java.util.ArrayList.add(ArrayList.java:183)
.
.
.

Takashi Okamoto



[bug] java.util.LinkedList

2001-07-28 Thread Takashi Okamoto


Hi, kaffe!

I tried to report by BTS. But I can't submit report, so I mail directly...

jdom sample samples.DOMBuilderDemo doesn't work with kaffe.
java.util.LinkedList may be wrong because there are no problem when I
use gnu classpath's java.util.LinkdList instead of Kaffe's.

here is dump message:
java.lang.StackOverflowError
at java.util.ArrayList.add(ArrayList.java:line unknown, pc 0x8337bf8)
at java.util.ArrayList.add(ArrayList.java:183)
at org.jdom.PartialList.add(PartialList.java:200)
at org.jdom.PartialList.addLast(PartialList.java:174)
at java.util.LinkedList.add(LinkedList.java:128)
at org.jdom.PartialList.add(PartialList.java:206)
at org.jdom.PartialList.addLast(PartialList.java:174)
at java.util.LinkedList.add(LinkedList.java:128)
at org.jdom.PartialList.add(PartialList.java:206)
.
.
.


regards.

Takashi Okamoto



Re: [PATCH] Japanese character aliases

2001-07-19 Thread Takashi Okamoto

At Fri, 20 Jul 2001 07:39:10 +0900,
Takashi Okamoto wrote:
 I want to add new charset aliases to kaffe for Japanese because some
 Japanese applications use these encoding. I atached patch. 

Oops, I forgot a patch. 
This is it.

regards.

Takashi Okamoto


 ConverterAlias.java.diff


[PATCH] Deflater.java (for Ant)

2001-05-14 Thread Takashi Okamoto


Hi, Kaffe!

I have been trying that Jakarta Ant work with Kaffe. Then, I found a 
problem at java/util/zip/Deflater.java. Exception is thrown when
setLevel() is called with default compress level 
(Deflater.DEFAULT_COMPRESSION = -1), but SUN's Deflater.java works
fine then.

It prevents Ant from working with Kaffe.  So, Default compress level 
should be permitted to set. 

I attached a patch. Please take it.

Regards.
---
Takashi Okamoto

---
--- Deflater.java.orig  Tue May 15 00:24:40 2001
+++ Deflater.java   Tue May 15 00:24:23 2001
@@ -85,7 +85,7 @@
 
   public synchronized void setLevel(int lvl)
   {
-if (lvl  0 || lvl  9) {
+if ((level != DEFAULT_COMPRESSION)  (lvl  0 || lvl  9)) {
   throw new IllegalArgumentException(levels 0-9 supported);
 }
 level = lvl;




[Patch] System.lang.setProperty() method is lacked

2001-03-16 Thread Takashi Okamoto


Hi,

Kaffe's java.lang.System doesn't have setProperty() method.
Please add it.

Takashi Okamoto


--- System.java.origFri Mar 16 19:51:31 2001
+++ System.java Thu Mar 15 22:38:09 2001
@@ -184,6 +184,11 @@
props = prps;
 }
 
+public static String setProperty(String key, String value) {
+   checkPropertyAccess();
+   return (String) props.setProperty(key, value);
+}
+
 public static void setSecurityManager(SecurityManager s) {
if (security != defaultSecurityManager) {
throw new SecurityException();




Re: can't compile log4j by Ant

2001-03-14 Thread Takashi Okamoto


At Wed, 14 Mar 2001 14:14:52 +0100,
Edouard G. Parmelan [EMAIL PROTECTED] wrote:
 What's the value of newLength passed by
 org.apache.tools.ant.util.SourceFileScanner.restrict() ?

0

 But this case is handle by ensureCapacity(x, false) so:
  
 boolean newBuf = ensureCapacity(newLength, isStringized);
 
 Could you test that with Ant ?

Sure, It's worked fine with Ant:)


BTW, I have one more problem while compiling log4j:(
Kaffe's java.awt.Color does't have Color(int r, int g, int b, int a).
So, I added following constructor at java.awt.Color :

private Color ( byte r, byte g, byte b, byte a) {
rgbValue = ((a  0xff) 24 | ((r  0xff)  16) | ((g  0xff)  8)  | (b  
0xff);
}

But I don't know it's right or not, sorry...

Takshi Okamoto



Re: ANT fix

2001-03-07 Thread Takashi Okamoto


At Wed, 7 Mar 2001 15:17:29 -0800 (PST),
Archie Cobbs [EMAIL PROTECTED] wrote:
   Should be fixed.
 
 Just to be clear, I didn't use the fix posted because it was
 'tainted' by exposure to Sun's implementation.

Oops, I'll be careful next time.

Thanks.

Takashi Okamoto



[PATCH] for bug #756(Ant doesn't work)

2001-03-06 Thread Takashi Okamoto


Hi, kaffe!! 

I made patch for bug #756 that Jakartra-Ant (Java Build tool) doesn't
work with Kaffe. Error occurs when buffer length (len) is 0 at
write(byte[] buf, int off, int len) method  in
java/util/zip/ZipOutputStream.java and java/util/zip/DeflateOutputStream.java

My patch throw IndexOutOfBoundsException() when offset (off) and
length (len) are invalid, and exit method when length is 0.
(I refered SUN's java/util/zip/* and modified them.)

Ant will be one of most important software for Java. 
Please fix this problem.

regards.
--
Takashi Okamoto

-
diff -urN orig/libraries/javalib/java/util/zip/DeflaterOutputStream.java 
libraries/javalib/java/util/zip/DeflaterOutputStream.java
--- orig/libraries/javalib/java/util/zip/DeflaterOutputStream.java  Wed Mar  7 
08:21:19 2001
+++ libraries/javalib/java/util/zip/DeflaterOutputStream.java   Wed Mar  7 08:09:32 
+2001
@@ -60,6 +60,11 @@
 }
 
 public void write(byte b[], int off, int len) throws IOException {
+if ((off | len | (off + len) | (b.length - (off + len)))  0) {
+ throw new IndexOutOfBoundsException();
+} else if (len == 0) {
+ return;
+}
def.setInput(b, off, len);
deflate();
 }
diff -urN orig/libraries/javalib/java/util/zip/ZipOutputStream.java 
libraries/javalib/java/util/zip/ZipOutputStream.java
--- orig/libraries/javalib/java/util/zip/ZipOutputStream.java   Wed Mar  7 08:20:57 
2001
+++ libraries/javalib/java/util/zip/ZipOutputStream.javaWed Mar  7 08:11:38 
+2001
@@ -321,6 +321,13 @@
 
 public synchronized void write(byte[] buf, int off, int len) throws IOException
 {
+   if ((off  0) || (off  buf.length) || (len  0) ||
+((off + len)  buf.length) || ((off + len)  0)) {
+throw new IndexOutOfBoundsException();
+} else if (len == 0) {
+return;
+}
+
super.write(buf, off, len);
crc.update(buf, off, len);
 }