Andrew John Hughes | 16 Nov 21:26
Gravatar

FYI: Add generics to gnu.xml.transform.Bindings

Adding generics to Bindings in preparation for
fixing PR classpath/38147.

ChangeLog:

2008-11-16  Andrew John Hughes  <gnu_andrew <at> member.fsf.org>

	* gnu/xml/transform/Bindings.java:
	Add generics to collections.

-- 
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
Index: gnu/xml/transform/Bindings.java
===================================================================
RCS file: /sources/classpath/classpath/gnu/xml/transform/Bindings.java,v
retrieving revision 1.6
diff -u -u -r1.6 Bindings.java
--- gnu/xml/transform/Bindings.java	17 Mar 2008 01:28:14 -0000	1.6
+++ gnu/xml/transform/Bindings.java	16 Nov 2008 05:25:03 -0000
@@ -68,17 +68,17 @@
   /**
(Continue reading)

Andrew John Hughes | 16 Nov 03:52
Gravatar

FYI: Improve exception output from crypto key selection

The exception for key selection reports an invalid key sizes,
but doesn't report what key sizes are valid.

ChangeLog:

2008-11-16  Andrew John Hughes  <gnu_andrew <at> member.fsf.org>

	* gnu/javax/crypto/jce/key/SecretKeyGeneratorImpl.java:
	(init(int,SecureRandom)): Improve exception message.

-- 
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
Index: gnu/javax/crypto/jce/key/SecretKeyGeneratorImpl.java
===================================================================
RCS file: /sources/classpath/classpath/gnu/javax/crypto/jce/key/SecretKeyGeneratorImpl.java,v
retrieving revision 1.3
diff -u -u -r1.3 SecretKeyGeneratorImpl.java
--- gnu/javax/crypto/jce/key/SecretKeyGeneratorImpl.java	26 Jun 2006 13:30:14 -0000	1.3
+++ gnu/javax/crypto/jce/key/SecretKeyGeneratorImpl.java	16 Nov 2008 02:49:06 -0000
@@ -97,7 +97,8 @@
   {
(Continue reading)

Tom Tromey | 24 Oct 17:21
Favicon
Gravatar

Patch: FYI: AIX fixlet in fdlibm.h

I'm checking this in.

This comes from a GCC maintainer.  fdlibm fails to build on AIX
because 'hz' is defined in some system header there.  This patch works
around the problem by undeffing hz.

Tom

ChangeLog:
2008-10-23  David Edelsohn  <edelsohn <at> gnu.org>

	* native/fdlibm/fdlibm.h: Undef hz.

Index: native/fdlibm/fdlibm.h
===================================================================
RCS file: /cvsroot/classpath/classpath/native/fdlibm/fdlibm.h,v
retrieving revision 1.15
diff -u -r1.15 fdlibm.h
--- native/fdlibm/fdlibm.h	13 Sep 2007 19:39:42 -0000	1.15
+++ native/fdlibm/fdlibm.h	24 Oct 2008 15:23:55 -0000
@@ -24,6 +24,14 @@
 #include <config.h>
 #include <stdlib.h>

+/*
+ * AIX includes a header that defines hz,
+ * which conflicts with an fdlibm variable in some functions.
+ */
+#ifdef _AIX
+#undef hz
(Continue reading)

Andrew John Hughes | 21 Oct 00:02
Gravatar

FYI: More ANTLR fixes

This patch fixes two issues: it removes some redundant
broken checks from m4/ac_prog_antlr.m4 and ensures that
gjdoc_gendir is used when executing antlr to generate the
parser.

ChangeLog:

2008-10-20  Andrew John Hughes  <gnu_andrew <at> member.fsf.org>

	* m4/ac_prog_antlr.m4:
	Remove redundant checks.
	* tools/Makefile.am:
	Use gjdoc_gendir when calling antlr.

--

-- 
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
Index: m4/ac_prog_antlr.m4
===================================================================
RCS file: /sources/classpath/classpath/m4/ac_prog_antlr.m4,v
retrieving revision 1.5
diff -u -u -r1.5 ac_prog_antlr.m4
(Continue reading)

Tom Tromey | 16 Oct 19:16
Favicon
Gravatar

FYI: make jar use foreach

I'm checking this in.

While looking at a jar oddity I found that it was still explicitly
using iterators.  IMO it is cleaner to use the 1.5 foreach feature.
This patch implements this.

Tom

ChangeLog:
2008-10-16  Tom Tromey  <tromey <at> redhat.com>

	* tools/gnu/classpath/tools/jar/WorkSet.java (initSet): Use
	foreach.  Change argument type.
	(WorkSet): Change argument type.
	* tools/gnu/classpath/tools/jar/Indexer.java (indexJarFile): Use
	foreach.
	* tools/gnu/classpath/tools/jar/Creator.java
	(writeCommandLineEntries): Use foreach.
	(getAllEntries): Likewise.

Index: tools/gnu/classpath/tools/jar/Creator.java
===================================================================
RCS file: /cvsroot/classpath/classpath/tools/gnu/classpath/tools/jar/Creator.java,v
retrieving revision 1.8
diff -u -r1.8 Creator.java
--- tools/gnu/classpath/tools/jar/Creator.java	26 May 2008 19:03:41 -0000	1.8
+++ tools/gnu/classpath/tools/jar/Creator.java	16 Oct 2008 17:12:45 -0000
@@ -1,5 +1,5 @@
 /* Creator.java - create a new jar file
- Copyright (C) 2006 Free Software Foundation, Inc.
(Continue reading)

Robert Lougher | 10 Oct 08:53

Missing ReleaseArrayElements

Hi,

This fixes a missing ReleaseArrayElements in the GTK peer code (fixing
a noticeable memory leak).

Rob.
Index: native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
===================================================================
RCS file: /sources/classpath/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c,v
retrieving revision 1.26
diff -u -r1.26 gnu_java_awt_peer_gtk_CairoGraphics2D.c
--- native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c	11 Sep 2007 09:48:49 -0000	1.26
+++ native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c	10 Oct 2008 06:44:01 -0000
@@ -372,6 +372,7 @@
     }
     gdk_threads_leave();

+  (*env)->ReleaseLongArrayElements (env, java_fontset, fonts, 0);
   g_free(glyphs);
 }

Andrew John Hughes | 9 Oct 23:05
Gravatar

FYI: More ANTLR fixes

This adds a check for cantlr (some Debian specific binary
suggested by doko) and ensures that the parser is only generated
when both GJDoc and GJDoc parser building are turned on.

ChangeLog:

2008-10-06  Andrew John Hughes  <gnu_andrew <at> member.fsf.org>

	* m4/ac_prog_antlr:
	Check for cantlr as well.
	* tools/Makefile.am:
	Only build GJDoc parser when both
	CREATE_GJDOC and CREATE_GJDOC_PARSER
	are on.

--

-- 
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
Index: m4/ac_prog_antlr.m4
===================================================================
RCS file: /sources/classpath/classpath/m4/ac_prog_antlr.m4,v
retrieving revision 1.4
(Continue reading)

Andrew John Hughes | 5 Oct 23:17
Gravatar

FYI: Make building the GJDoc parser optional

This patch makes generating the GJDoc parser with antlr
optional in the same way as regenerating the headers (i.e.
regeneration is turned on automatically, if they are not
found during the configure run).

ChangeLog:

2008-10-02  Andrew John Hughes  <gnu_andrew <at> member.fsf.org>

	* configure.ac:
	Add regen-gjdoc-parser option,
	and separate antlr tests.
	* m4/ac_prog_antlr.m4:
	Turn single test into AC_LIB_ANTLR
	and AC_PROG_ANTLR.
	* m4/ac_prog_java.m4:
	Quote tests.
	* tools/Makefile.am:
	Support CREATE_GJDOC_PARSER option.

--

-- 
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
(Continue reading)

Andrew John Hughes | 30 Sep 03:08
Gravatar

FYI: GCJ Merge Backports #02

Backporting this from doko:

2008-09-29  Matthias Klose  <doko <at> ubuntu.com>

	* m4/ac_prog_antlr.m4:
	Check for antlr binary as well.

-- 
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
Index: m4/ac_prog_antlr.m4
===================================================================
RCS file: /sources/classpath/classpath/m4/ac_prog_antlr.m4,v
retrieving revision 1.2
diff -u -u -r1.2 ac_prog_antlr.m4
--- m4/ac_prog_antlr.m4	14 Sep 2008 23:39:50 -0000	1.2
+++ m4/ac_prog_antlr.m4	30 Sep 2008 00:53:55 -0000
@@ -34,10 +34,10 @@
      test -f $ANTLR_JAR || AC_MSG_ERROR([specified ANTLR jar file $ANTLR_JAR not found.]) \
         && AC_MSG_NOTICE([using ANTLR parser generator in $ANTLR_JAR])
   fi
-  AC_CHECK_TOOLS([ANTLR], [runantlr])
(Continue reading)

Andrew John Hughes | 29 Sep 22:43
Gravatar

FYI: GCJ Merge Backports #01

This patch backports a number of (largely formatting) cleanups I did
on recent Classpath patches in the GCJ merge tree.

ChangeLog:

2008-09-28  Andrew John Hughes  <gnu_andrew <at> member.fsf.org>

	* configure.ac:
	Always check for JAVA prior to ANTLR check.
	* java/lang/ThreadLocal.java,
	* java/lang/ThreadLocalMap.java:
	Rename notFound back to sentinel to avoid
	potential issues with use of the old name.
	Cleanup formatting.
	* java/nio/Buffer.java,
	* java/nio/ByteBuffer.java,
	* java/nio/ByteBufferImpl.java,
	* java/nio/CharBuffer.java,
	* java/nio/CharViewBufferImpl.java,
	* java/nio/DirectByteBufferImpl.java,
	* java/nio/DoubleBuffer.java,
	* java/nio/DoubleBufferImpl.java,
	* java/nio/FloatBuffer.java,
	* java/nio/FloatBufferImpl.java,
	* java/nio/IntBuffer.java,
	* java/nio/LongBuffer.java,
	* java/nio/LongBufferImpl.java,
	* java/nio/MappedByteBuffer.java,
	* java/nio/ShortBuffer.java,
	* java/nio/ShortBufferImpl.java,
(Continue reading)

Mario Torre | 16 Sep 21:41
Favicon

FYI: System.getenv

Hi all!

I just submitted this patch that fixes a problem in our System.getenv()
method.

It's possible to have variable in the form of:

key=value=value=value

like (from my env list):

XDM_MANAGED=method=classic

cheers,
Mario

2008-09-16  Mario Torre  <neugens <at> aicas.com>

    * java/lang/System.java (getenv): Fix env entries of the form
    key=value=value=value not parsed correctly. 

--

-- 
Mario Torre, Software Developer, http://www.jroller.com/neugens/
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-53
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
(Continue reading)


Gmane