Andrew John Hughes | 1 Mar 2008 10:16
Picon
Gravatar

FYI: First uses of CPStringBuilder

This starts using CPStringBuilder in the reflection classes in
preference to StringBuilder.

ChangeLog:

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

	* gnu/classpath/CPStringBuffer.java,
	* gnu/classpath/CPStringBuilder.java:
	Rename class to CPStringBuilder.
	* java/lang/reflect/Modifier.java,
	* vm/reference/java/lang/reflect/Constructor.java,
	* vm/reference/java/lang/reflect/Field.java,
	* vm/reference/java/lang/reflect/Method.java:
	Use CPStringBuilder.

--

-- 
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
Attachment (pr21869-02.diff): text/x-diff, 84 KiB
Andrew John Hughes | 1 Mar 2008 13:03
Picon
Gravatar

FYI: PR21869: CPStringBuilder bug fix

I forgot to make the constructor accessible when creating a
String by reflection in CPStringBuilder.

ChangeLog:

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

	* gnu/classpath/CPStringBuilder.java:
	Make the constructor accessible.

--

-- 
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
Attachment (pr21869-04.diff): text/x-diff, 645 bytes
David Daney | 1 Mar 2008 17:51

Re: FYI: Add CPStringBuffer

David Daney wrote:
> Andrew John Hughes wrote:
>> This adds our new non-copying variant of StringBuilder, which
>> I've called CPStringBuffer.  It should be used internally where
>> we can get away with a non-synchronized non-copying string buffer.
>>
>> ChangeLog:
>>
>
> I missed the change log part but...
>
>
> > +package gnu.classpath;
>
>
> Can we make it package private to java.lang?
Well that will not work.  It would not be accessible where needed.

How do we do this in libgcj?  I didn't think we used reflection.

David Daney

Andrew John Hughes | 1 Mar 2008 11:13
Picon
Gravatar

FYI: More use of CPStringBuilder

This switches more StringBuilder use to CPStringBuilder.
I also placed the class in gnu.java.lang which I didn't spot
first time round...

ChangeLog:

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

	* gnu/classpath/CPStringBuilder.java:
	Removed.
	* gnu/java/awt/font/OpenTypeFontPeer.java,
	* gnu/java/awt/font/autofit/Edge.java,
	* gnu/java/awt/font/autofit/LatinBlue.java,
	* gnu/java/awt/font/autofit/Segment.java,
	* gnu/java/awt/font/autofit/Width.java,
	* gnu/java/awt/font/opentype/truetype/Point.java,
	* gnu/java/awt/java2d/ActiveEdges.java,
	* gnu/java/awt/peer/GnomeDesktopPeer.java,
	* gnu/java/awt/peer/KDEDesktopPeer.java,
	* gnu/java/awt/peer/x/XFontPeer.java:
	Use CPStringBuilder.
	* gnu/java/lang/CPStringBuilder.java:
	Moved from gnu.classpath.
	* gnu/java/lang/ClassHelper.java,
	* gnu/java/lang/reflect/GenericSignatureParser.java,
	* gnu/java/lang/reflect/TypeSignature.java,
	* gnu/java/net/protocol/http/ChunkedInputStream.java,
	* gnu/java/net/protocol/http/Cookie.java,
	* gnu/java/net/protocol/http/HTTPConnection.java,
	* gnu/java/net/protocol/http/Headers.java,
(Continue reading)

Andrew John Hughes | 2 Mar 2008 03:08
Picon
Gravatar

RFC: Separate reflection classes into a VM interface

This patch separates out common methods from the reflection VM
interfaces (Field, Constructor, Method) so that they are provided
in Classpath itself, and only native methods now appear in 
new VMField, VMMethod and VMConstructor classes in the VM interface.
There is a lot of duplicate code in these classes that is currently
left to the VM to maintain, resulting in large parts of these files
in the VM being verbatim copies of the reference implementation and
dependent on package-private Classpath methods.

Comments please.

ChangeLog:

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

	* java/lang/reflect/Constructor.java,
	* java/lang/reflect/Field.java,
	* java/lang/reflect/Method.java:
	New classes within GNU Classpath that provide
	common reflection functionality.
	* vm/reference/java/lang/reflect/Constructor.java,
	* vm/reference/java/lang/reflect/Field.java,
	* vm/reference/java/lang/reflect/Method.java:
	Removed.
	* vm/reference/java/lang/reflect/VMConstructor.java,
	* vm/reference/java/lang/reflect/VMField.java,
	* vm/reference/java/lang/reflect/VMMethod.java:
	New VM interface for reflection.

--

-- 
(Continue reading)

Mark Wielaard | 2 Mar 2008 23:50
Favicon
Gravatar

Re: FYI: Use GMP for BigInteger

Hi,

On Fri, 2008-02-29 at 09:27 +0100, Mark Wielaard wrote:
> This breaks the build when gmp isn't installed (see below).
> Could you look into that?

I still have that when gmp isn't installed. But I do now get a clean
distcheck when gpm is installed with the following patch to explicitly
include lang-math in the dist files:

2008-03-02  Mark Wielaard  <mark <at> klomp.org>

    * native/jni/Makefile.am (DIST_SUBDIRS): Add java-math.

This should also fix up the autobuilder.

Committed,

Mark

diff -u -r1.21 Makefile.am
--- native/jni/Makefile.am      28 Feb 2008 22:44:23 -0000      1.21
+++ native/jni/Makefile.am      2 Mar 2008 22:47:00 -0000
 <at>  <at>  -36,6 +36,7  <at>  <at> 
   $(ALSADIR) $(DSSIDIR) $(GTKDIR) $(CLASSPATH_QT_PEER_DIR) $(XMLJDIR) \
   $(CLASSPATH_GCONF_PEER_DIR) $(CLASSPATH_GSTREAMER_PEER_DIR)
 DIST_SUBDIRS = classpath java-io java-lang java-net java-nio java-util \
+               java-math \
                gtk-peer gconf-peer gstreamer-peer qt-peer xmlj midi-alsa \
                midi-dssi native-lib
(Continue reading)

Andrew John Hughes | 3 Mar 2008 03:26
Picon
Gravatar

FYI: Fix compilation of java.math native libraries where GMP isn't present

This turns off the native java.math libraries if GMP is not found
or asked for.

ChangeLog:

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

	PR classpath/28664
	* native/jni/Makefile.am: Check CREATE_GMPBI_LIBRARY
	and only compile GMP libraries if set.

--

-- 
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
Attachment (pr28664-02.diff): text/x-diff, 1311 bytes
Andrew John Hughes | 3 Mar 2008 03:26
Picon
Gravatar

Re: FYI: Use GMP for BigInteger

On 02/03/2008, Mark Wielaard <mark <at> klomp.org> wrote:
> Hi,
>
>
>  On Fri, 2008-02-29 at 09:27 +0100, Mark Wielaard wrote:
>  > This breaks the build when gmp isn't installed (see below).
>  > Could you look into that?
>
>
> I still have that when gmp isn't installed. But I do now get a clean
>  distcheck when gpm is installed with the following patch to explicitly
>  include lang-math in the dist files:
>
>  2008-03-02  Mark Wielaard  <mark <at> klomp.org>
>
>     * native/jni/Makefile.am (DIST_SUBDIRS): Add java-math.
>
>  This should also fix up the autobuilder.
>
>  Committed,
>
>  Mark
>
>  diff -u -r1.21 Makefile.am
>  --- native/jni/Makefile.am      28 Feb 2008 22:44:23 -0000      1.21
>  +++ native/jni/Makefile.am      2 Mar 2008 22:47:00 -0000
>   <at>  <at>  -36,6 +36,7  <at>  <at> 
>    $(ALSADIR) $(DSSIDIR) $(GTKDIR) $(CLASSPATH_QT_PEER_DIR) $(XMLJDIR) \
>    $(CLASSPATH_GCONF_PEER_DIR) $(CLASSPATH_GSTREAMER_PEER_DIR)
>   DIST_SUBDIRS = classpath java-io java-lang java-net java-nio java-util \
(Continue reading)

Chris Burdess | 3 Mar 2008 10:31
Favicon

Re: FYI: More use of CPStringBuilder

Andrew John Hughes wrote:
> This switches more StringBuilder use to CPStringBuilder.

Sorry, why was this necessary again?
--

-- 
Chris Burdess
Andrew John Hughes | 3 Mar 2008 10:44
Picon
Gravatar

Re: FYI: More use of CPStringBuilder

On 03/03/2008, Chris Burdess <dog <at> bluezoo.org> wrote:
> Andrew John Hughes wrote:
>  > This switches more StringBuilder use to CPStringBuilder.
>
>
> Sorry, why was this necessary again?
>  --
>
> Chris Burdess
>
>

Using CPStringBuilder avoids copying the array from the builder to the
String object where we don't need to do that.
--

-- 
Andrew :-)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net


Gmane