This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: [patch] Import GNU Classpath 0.98


Reposting for a third time, but with the patch compressed this time round.

---------- Forwarded message ----------
From: Andrew John Hughes <gnu_andrew@member.fsf.org>
Date: 2009/2/13
Subject: [patch] Import GNU Classpath 0.98
To: java-patches@gcc.gnu.org


This is a merge from the classpath-0_98-release tag into
trunk. ÂIt brings in the final few differences between the
last merge (2009/01/02) and the release (2009/02/05), namely:

2009-02-06 ÂAndrew John Hughes Â<ahughes@redhat.com>

   Â* NEWS:
   ÂAdd stub for 0.99.
   Â* configure.ac:
   ÂBump to 0.99.
   Â* doc/www.gnu.org/announce/20090205.wml,
   Â* doc/www.gnu.org/downloads/downloads.wml,
   Â* doc/www.gnu.org/newsitems.txt:
   ÂUpdate website.

2009-02-05 ÂAndrew John Hughes Â<ahughes@redhat.com>

   Â* NEWS: Add VM updates.

2009-02-05 ÂAndrew John Hughes Â<ahughes@redhat.com>

   Â* NEWS: Updated.
   Â* configure.ac:
   ÂBump to 0.98 proper.

2009-02-05 ÂAndrew Haley Â<aph@redhat.com>

   ÂPR libgcj/38861
   Â* native/plugin/gcjwebplugin.cc: Cope with the changed header file
   Âformat. Âhttps://bugzilla.mozilla.org/show_bug.cgi?id=455458
   Â(GCJ_GetJavaClass): Likewise.
   Â(NP_Initialize): Likewise.

2009-02-05 ÂMark Wielaard Â<mark@klomp.org>

   ÂPR classpath/38912:
   Â* gnu/xml/stream/XMLParser.java:
   Â(getLocalName()): Respect stringInterning.
   Â(getName()): Likewise.
   Â(getPrefix()): Likewise.

2009-02-04 ÂAndrew John Hughes Â<ahughes@redhat.com>

   Â* native/jni/native-lib/cpproc.c:
   Â(cpproc_forkAndExec): Don't return on a -1
   Âresult from chdir as this may be valid in
   Âsome cases. ÂA better fix is needed.

2009-02-03 ÂAndrew John Hughes Â<ahughes@redhat.com>

   Â* native/jni/native-lib/cpproc.c:
   Â(cpproc_forkAndExec): Handle return of
   Âchdir.

2009-02-03 ÂAndrew John Hughes Â<ahughes@redhat.com>

   ÂPR classpath/38417:
   Â* gnu/java/security/jce/prng/SecureRandomAdapter.java:
   ÂRemove unneeded import.
   Â* gnu/javax/crypto/jce/prng/FortunaImpl.java:
   ÂFix typo.
   Â* java/security/SecureRandom.java:
   ÂRemove duplicate use of VMSecureRandom,
   Âcall SecureRandomAdapter instead.
   Â* vm/reference/gnu/java/security/jce/prng/VMSecureRandom.java:
   ÂMoved from java/security so SecureRandomAdapter can
   Âaccess it.

2009-01-22 ÂMario Torre Â<neugens@aicas.com>

   ÂPR classpath/38417:
   Â* gnu/java/security/jce/prng/SecureRandomAdapter.java:
   Â(getSeed(int)): New; retrieve seed from source specified
   Âby securerandom.source property or failing that, use
   ÂVMSecureRandom.
   Â* gnu/javax/crypto/jce/prng/ARCFourRandomSpi.java:
   Â(engineGenerateSeed(int)): Use SecureRandomAdapter.
   Â(engineNextBytes(byte[])): Initialise using new seed.
   Â* gnu/javax/crypto/jce/prng/CSPRNGSpi.java:
   Â(engineGenerateSeed(int)): Use SecureRandomAdapter.
   Â(engineNextBytes(byte[])): Initialise using new seed.
   Â* gnu/javax/crypto/jce/prng/FortunaImpl.java:
   Â(engineSetSeed(byte[])): Initialise with new seed if unused.
   Â(engineGenerateSeed(int)): Use SecureRandomAdapter.
   Â* gnu/javax/crypto/jce/prng/ICMRandomSpi.java:
   Â(engineGenerateSeed(int)): Use SecureRandomAdapter.
   Â(engineNextBytes(byte[])): Initialise using new seed.
   Â* gnu/javax/crypto/jce/prng/UMacRandomSpi.java:
   Â(engineGenerateSeed(int)): Use SecureRandomAdapter.
   Â(engineNextBytes(byte[])): Initialise using new seed.
   Â* gnu/javax/crypto/prng/ICMGenerator.java:
   Â(setup(Map)): Call fillBlock().

2009-01-22 ÂMark Wielaard Â<mark@klomp.org>

   Â* tools/gnu/classpath/tools/gjdoc/Main.java (getGjdocVersion):
   ÂRead version.properties from package.

2009-01-05 ÂRobert Schuster Â<robertschuster@fsfe.org>

   Â* gnu/java/awt/peer/gtk/CairoGraphics2D.java:
   Â(drawPolyline): Rewritten.

2009-01-05 ÂAndrew John Hughes Â<gnu_andrew@member.fsf.org>

   Â* Makefile.am:
   ÂAdd ChangeLog-2008 to EXTRA_DIST.

In short, a few bug fixes and one security fix related to seed generation
for random data. ÂTesting shows that the setting in classpath.security now leads
to a read from /dev/urandom when retrieving random data via
java.security.SecureRandom
(not the case with gcj 4.3.3). ÂIf this setting is absent,
VMSecureRandom is used.
I've provided a POSIX implementation in the patch which uses
/dev/random. ÂThis can
be tested by commenting out the line in classpath.security. ÂIt
occasionally blocks,
showing the use of /dev/random over /dev/urandom. ÂGiven this is not
used by default
(as I initially believed), I'm not sure whether we should include this
or just revert
to the default Java-based spinning threads implementation. ÂNeither
the default from
classpath.security or the native implementation will work on win32.

OK for trunk?

ChangeLog:

2009-02-13 ÂAndrew John Hughes Â<ahughes@redhat.com>

   ÂImport GNU Classpath (classpath-0_98-release).

   Â* libjava/Makefile.am: Add natVMSecureRandom.cc.
   Â* libjava/Makefile.in: Regenerated.
   Â* libjava/classpath/ChangeLog,
   Â* libjava/classpath/Makefile.am: Merged.
   Â* libjava/classpath/Makefile.in: Regenerated.
   Â* libjava/classpath/NEWS: Merged.
   Â* libjava/classpath/config.guess,
   Â* libjava/classpath/config.sub,
   Â* libjava/classpath/configure: Regenerated.
   Â* libjava/classpath/configure.ac: Merged.
   Â* libjava/classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,
   Â* libjava/classpath/gnu/java/security/jce/prng/SecureRandomAdapter.java,
   Â* libjava/classpath/gnu/javax/crypto/jce/prng/ARCFourRandomSpi.java,
   Â* libjava/classpath/gnu/javax/crypto/jce/prng/CSPRNGSpi.java,
   Â* libjava/classpath/gnu/javax/crypto/jce/prng/FortunaImpl.java,
   Â* libjava/classpath/gnu/javax/crypto/jce/prng/ICMRandomSpi.java,
   Â* libjava/classpath/gnu/javax/crypto/jce/prng/UMacRandomSpi.java,
   Â* libjava/classpath/gnu/javax/crypto/prng/ICMGenerator.java,
   Â* libjava/classpath/gnu/xml/stream/XMLParser.java,
   Â* libjava/classpath/java/security/SecureRandom.java,
   Â* libjava/classpath/native/jni/native-lib/cpproc.c,
   Â* libjava/classpath/native/plugin/gcjwebplugin.cc,
   Â* libjava/classpath/tools/gnu/classpath/tools/gjdoc/Main.java: Merged.
   Â* libjava/configure: Regenerated.
   Â* libjava/configure.ac: Add symlink for
natVMSecureRandomPosix.cc to natVMSecureRandom.cc
   Â* libjava/gnu/classpath/Configuration.java: Change version to 0.98.
   Â* libjava/gnu/java/security/jce/prng/SecureRandomAdapter.h: Regenerated.
   Â* libjava/gnu/java/security/jce/prng/VMSecureRandom.h: Generated.
   Â* libjava/gnu/java/security/jce/prng/VMSecureRandom.java: Added
native implementation.
   Â* libjava/gnu/java/security/jce/prng/natVMSecureRandomPosix.cc:
Wrapper around /dev/random.
   Â* libjava/gnu/javax/crypto/jce/prng/CSPRNGSpi.h,
   Â* libjava/gnu/javax/crypto/jce/prng/FortunaImpl.h,
   Â* libjava/java/security/SecureRandom.h: Regenerated.
   Â* libjava/java/security/VMSecureRandom$Spinner.h,
   Â* libjava/java/security/VMSecureRandom.h,
   Â* libjava/java/security/VMSecureRandom.java: Removed.
   Â* libjava/sources.am: Move VMSecureRandom to gnu.java.security.jce.prng.

--
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

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



-- 
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

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: 0.98_merge-11.diff.gz
Description: GNU Zip compressed data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]