[commit-cp] classpath java/lang/Class.java ChangeLog
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/01/21 19:59:15 Modified files: java/lang : Class.java . : ChangeLog Log message: Fix java.lang.Class field and method API for null names 2011-01-21 Pekka Enberg * java/lang/Class.java: (getDeclaredField): Throw NullPointerException instead of NoSuchFieldException if name is null. (getField): Likewise. (getDeclaredMethod): Throw NullPointerException instead of NoSuchMethodException if name is null. (getMethod): Likewise. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/java/lang/Class.java?cvsroot=classpath&r1=1.55&r2=1.56 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9810&r2=1.9811
[commit-cp] classpath ChangeLog native/jni/java-lang/java_l...
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/01/22 19:20:16 Modified files: . : ChangeLog native/jni/java-lang: java_lang_VMSystem.c Log message: Rename currentTimeMillis to currentTimeMicros Reviewed-by: Andrew Haley 2011-01-22 Pekka Enberg * native/jni/java-lang/java_lang_VMSystem.c (currentTimeMillis): Rename currentTimeMillis to currentTimeMicros to reflect what the function returns. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9811&r2=1.9812 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/java-lang/java_lang_VMSystem.c?cvsroot=classpath&r1=1.16&r2=1.17
[commit-cp] classpath ChangeLog native/jni/java-lang/java_l...
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/01/22 19:28:02 Modified files: . : ChangeLog native/jni/java-lang: java_lang_VMSystem.c Log message: Fix clock_gettime() fallback As suggested by Ivan Maidanski: The clock_gettime(CLOCK_MONOTONIC) function may fail on some machines (even if _POSIX_MONOTONIC_CLOCK has been defined during compilation), so it's better to silently fall-back to gettimeofday() in that case. Reviewed-by: Andrew Haley 2011-01-22 Pekka Enberg * native/jni/java-lang/java_lang_VMSystem.c (Java_java_lang_VMSystem_nanoTime): Fallback to gettimeofday() if clock_gettime(CLOCK_MONOTONIC) fails. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9812&r2=1.9813 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/java-lang/java_lang_VMSystem.c?cvsroot=classpath&r1=1.17&r2=1.18
[commit-cp] classpath java/io/PrintStream.java ChangeLog
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/01/23 13:00:52 Modified files: java/io: PrintStream.java . : ChangeLog Log message: Fix PrintStream constructor API differences for null Reviewed-by: Dr Andrew John Hughes 2011-01-23 Pekka Enberg * java/io/PrintStream.java (PrintStream): Throw NullPointerException if out or encoding is null to be compatible with OpenJDK. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/java/io/PrintStream.java?cvsroot=classpath&r1=1.31&r2=1.32 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9813&r2=1.9814
[commit-cp] classpath ChangeLog java/util/regex/Pattern.java
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/01/26 21:32:08 Modified files: . : ChangeLog java/util/regex: Pattern.java Log message: Implement Pattern.quote() API method Reviewed-by: Dr Andrew John Hughes 2010-07-02 Ivan Maidanski * java/util/regex/Pattern.java: (quote): Implement new 1.5 Java API method. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9814&r2=1.9815 http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/regex/Pattern.java?cvsroot=classpath&r1=1.22&r2=1.23
[commit-cp] classpath ChangeLog java/util/Formatter.java
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/02/16 19:44:29 Modified files: . : ChangeLog java/util : Formatter.java Log message: Fix Formatter.parseInt() wrt. leading zeroes The following test case: public class StringTest { public static void main(String[] args) { System.out.println(String.format("%08x", 1234)); } } produces the following error: Exception in thread "main" java.lang.NumberFormatException: invalid character at position 2 in 08 at java.lang.Integer.parseInt(Integer.java:837) at java.lang.Integer.decode(Integer.java:568) at java.util.Formatter.parseInt(Formatter.java:1191) at java.util.Formatter.parseArgumentIndex(Formatter.java:1212) at java.util.Formatter.format(Formatter.java:1326) at java.util.Formatter.format(Formatter.java:1442) at java.lang.String.format(String.java:1984) at java.lang.String.format(String.java:1990) at StringTest.main(StringTest.java:3) This patch fixes the issue by switching to Integer.parseInt() in java.util.Formatter.parseInt(). Reviewed-by: Dr Andrew John Hughes 2010-02-16 Pekka Enberg * java/util/Formatter.java: (parseInt): Use Integer.parseInt() insted of Integer.decode() because the latter doesn't work with leading zeros which are used in String.format() formatting, for example. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9815&r2=1.9816 http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/Formatter.java?cvsroot=classpath&r1=1.7&r2=1.8
[commit-cp] classpath java/util/HashMap.java ChangeLog
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/02/22 16:09:42 Modified files: java/util : HashMap.java . : ChangeLog Log message: Bump up HashMap default initial capacity While debugging Jython bootstrap issues with GNU Classpath, I noticed that HashMap.DEFAULT_CAPACITY is set to 11 although Java 1.4 has it as 16. 2011-02-22 Pekka Enberg * java/util/HashMap: (DEFAULT_CAPACITY): Make default initial capacity 16 as it is defined in official Javadocs. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/HashMap.java?cvsroot=classpath&r1=1.35&r2=1.36 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9816&r2=1.9817
[commit-cp] classpath java/util/HashMap.java ChangeLog
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/02/22 16:10:18 Modified files: java/util : HashMap.java . : ChangeLog Log message: Fix HashMap.put() to check for hashCode equality before equals() This patch is needed to run Jython 2.5.2 RC 4 under JamVM and GNU Classpath CVS HEAD. It turns out Jythin bootstrap is bit hairy and assumes HashMap.put() checks for hashCode equality before invoking Object.equals(). 2011-02-22 Pekka Enberg * java/util/HashMap: (put): Check for key hashCode equality before invoking Object.equals() to fix compatibility issue with Jython. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/HashMap.java?cvsroot=classpath&r1=1.36&r2=1.37 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9817&r2=1.9818
[commit-cp] classpath ChangeLog java/util/regex/Matcher.java
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/03/02 19:40:13 Modified files: . : ChangeLog java/util/regex: Matcher.java Log message: Fix Matcher.find() infinite loop bug This patch fixes a problem in Match.find() where the following piece of code would enter an infinite loop: System.out.println("hello, world".split("\u"); The root cause is that Matcher.find() returns true for the following snippet: Pattern p = Pattern.compile("\u"); Matcher m = p.matcher("hello, world"); System.out.println(m.find()); 2011-03-02 Pekka Enberg * java/util/regex/Matcher: (find): Make sure match is within input data limits. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9818&r2=1.9819 http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/regex/Matcher.java?cvsroot=classpath&r1=1.25&r2=1.26
[commit-cp] classpath javax/swing/text/html/StyleSheet.java...
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/03/14 19:35:50 Modified files: javax/swing/text/html: StyleSheet.java . : ChangeLog Log message: Fix Use ArrayList.set() in StyleSheet.resolveStyle The following cleanup patch: More warning fixes. 2009-03-09 Andrew John Hughes [snip] * javax/swing/text/html/StyleSheet.java: Add generic typing. changed the code to do ArrayList.set() on an instance thats allocated like this: List> attributes = new ArrayList>(count); This is, however, broken as ArrayList constructor only ensures capacity but doesn't allow you to set() elements outside of ArrayList.size(). This causes the following exception to happen upon JPC start-up: penberg@jaguar:~/testing/jato$ /usr/local/jamvm/bin/jamvm -jar JPCApplication.jar Exception in thread "main" java.lang.ExceptionInInitializerError at java.lang.VMClass.forName(Native Method) at java.lang.Class.forName(Class.java:233) at jamvm.java.lang.JarLauncher.main(JarLauncher.java:46) Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.raiseBoundsError(ArrayList.java:504) at java.util.ArrayList.checkBoundExclusive(ArrayList.java:490) at java.util.ArrayList.set(ArrayList.java:323) at javax.swing.text.html.StyleSheet.resolveStyle(StyleSheet.java:417) at javax.swing.text.html.StyleSheet.getResolvedStyle(StyleSheet.java:376) at javax.swing.text.html.StyleSheet.getRule(StyleSheet.java:358) at javax.swing.text.html.ViewAttributeSet.(ViewAttributeSet.java:112) at javax.swing.text.html.StyleSheet.getViewAttributes(StyleSheet.java:562) [snip] Fix that up. 2011-03-14 Pekka Enberg * javax/swing/text/html/StyleSheet.java: (resolveStyle()): Fix misuse of ArrayList.set(). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/text/html/StyleSheet.java?cvsroot=classpath&r1=1.30&r2=1.31 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9820&r2=1.9821
[commit-cp] classpath native/jni/java-nio/java_nio_VMDirect...
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/03/17 19:52:21 Modified files: native/jni/java-nio: java_nio_VMDirectByteBuffer.c . : ChangeLog Log message: Fix Java_java_nio_VMDirectByteBuffer_allocate() for negative capacity JavaDocs clearly state that ByteBuffer.allocateDirect() must throw IllegalArgumentException if capacity is negative. 2011-03-17 Pekka Enberg * native/jni/java-nio/java_nio_VMDirectByteBuffer.c: (Java_java_nio_VMDirectByteBuffer_allocate): Check for negative capacity. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/java-nio/java_nio_VMDirectByteBuffer.c?cvsroot=classpath&r1=1.15&r2=1.16 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9823&r2=1.9824
[commit-cp] classpath ChangeLog java/util/regex/Matcher.java
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/04/25 11:36:14 Modified files: . : ChangeLog java/util/regex: Matcher.java Log message: Add Matcher.quoteReplacement API method 2011-04-25 Pekka Enberg * java/util/regex/Matcher.java: (quoteReplacement): Implement missing Java 1.5 API method. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9825&r2=1.9826 http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/regex/Matcher.java?cvsroot=classpath&r1=1.26&r2=1.27
[commit-cp] classpath ChangeLog lib/Makefile.am
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/05/29 09:07:07 Modified files: . : ChangeLog lib: Makefile.am Log message: Generate META-INF/INDEX.LIST file for glibj.zip This patch changes the glibj.zip packaging so that META-INF/INDEX.LIST is generated to the file. This is needed for VMClassLoader.getBootPackages() to work correctly: private static String[] getBootPackages() { URL indexList = getResource("META-INF/INDEX.LIST"); if (indexList != null) { NOTE! This problem is only seen with Jato currently as it's the only VM I'm aware of that doesn't override any of the classes in vm/reference. CACAO and JamVM override the whole classloading parts themselves. I asked about this on IRC and Mark Wielaard explained background on the issue: < mjw> 2006-04-19 Olivier Jolly < mjw>* vm/reference/java/lang/VMClassLoader.java (getBootPackages): Loads < mjw>boot packages list from the META-INF/INDEX.LIST file if it exists. < mjw> http://developer.classpath.org/pipermail/classpath-patches/2006-April/001704.html < mjw> "the patch to support the -i option should be incorporated soon and we'll be able to add the creation of the index to the glibj.zip by default." < mjw> soon just happens the be > 5 years... 2011-05-29 Pekka Enberg * lib/Makefile.am: Generate META-INF/INDEX.LST for glibj.zip. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9826&r2=1.9827 http://cvs.savannah.gnu.org/viewcvs/classpath/lib/Makefile.am?cvsroot=classpath&r1=1.149&r2=1.150
[commit-cp] classpath ChangeLog configure.ac native/jni/jav...
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/07/05 18:52:47 Modified files: . : ChangeLog configure.ac native/jni/java-lang: java_lang_VMSystem.c Log message: Fix clock_gettime() support check for Darwin Darwin doesn't support clock_gettime() but has _POSIX_MONOTONIC_CLOCK defined so use a more strict check with HAVE_CLOCK_GETTIME. This fixes the following compilation error: java_lang_VMSystem.c: In function âJava_java_lang_VMSystem_nanoTimeâ: java_lang_VMSystem.c:148: warning: implicit declaration of function âclock_gettimeâ java_lang_VMSystem.c:148: error: âCLOCK_MONOTONICâ undeclared (first use in this function) java_lang_VMSystem.c:148: error: (Each undeclared identifier is reported only once java_lang_VMSystem.c:148: error: for each function it appears in.) 2011-07-05 Pekka Enberg * configure.ac: Check for clock_gettime(). native/jni/java-lang/java_lang_VMSystem.c: (Java_java_lang_VMSystem_nanoTime): Fix compile error on systems that don't have clock_gettime(). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9828&r2=1.9829 http://cvs.savannah.gnu.org/viewcvs/classpath/configure.ac?cvsroot=classpath&r1=1.248&r2=1.249 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/java-lang/java_lang_VMSystem.c?cvsroot=classpath&r1=1.18&r2=1.19
[commit-cp] classpath ChangeLog java/util/HashMap.java
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 11/10/30 07:36:39 Modified files: . : ChangeLog java/util : HashMap.java Log message: Stefan Ring reports that commit f154af6 ("Fix HashMap.put() to check for hashCode equality before equals()") breaks running the CACAO test suite. The breakage looks like this: LD_LIBRARY_PATH=../../../src/cacao/.libs ../../../src/cacao/cacao -Xbootclasspath:../../../src/classes/classes:/home/sr/classpathcvs/share/classpath/glibj.zip -classpath /usr/share/java/junit4.jar:. org.junit.runner.JUnitCore All JUnit version 4.5 .E Time: 0.003 There was 1 failure: 1) initializationError(All) java.lang.NullPointerException at java.util.HashMap.put(HashMap.java:348) at java.util.HashSet.add(HashSet.java:151) at org.junit.runners.model.RunnerBuilder.addParent(RunnerBuilder.java:64) at org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:81) at org.junit.runners.Suite.(Suite.java:88) at org.junit.runners.Suite.(Suite.java:54) at java.lang.reflect.VMConstructor.construct(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:318) at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:35) at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:93) at org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:84) at org.junit.runners.Suite.(Suite.java:66) at org.junit.runner.Request.classes(Request.java:68) at org.junit.runner.JUnitCore.run(JUnitCore.java:107) at org.junit.runner.JUnitCore.runMain(JUnitCore.java:88) at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:54) at org.junit.runner.JUnitCore.main(JUnitCore.java:46) FAILURES!!! Tests run: 1, Failures: 1 Looking at the code, it's obviously broken for HashMap.put() with a null key. 2011-10-24 Pekka Enberg * java/util/HashMap.java: (put): Fix NullPointerException for null keys. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9832&r2=1.9833 http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/HashMap.java?cvsroot=classpath&r1=1.37&r2=1.38
[commit-cp] classpath ChangeLog java/io/IOError.java
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 12/01/06 14:11:23 Modified files: . : ChangeLog Added files: java/io: IOError.java Log message: Add java.io.IOError class This patch adds a missing IOError class to GNU Classpath that was introduced in Java 1.6. 2012-01-05 Pekka Enberg * java/io/IOError: Add new class. Signed-off-by: Pekka Enberg CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9834&r2=1.9835 http://cvs.savannah.gnu.org/viewcvs/classpath/java/io/IOError.java?cvsroot=classpath&rev=1.1
[commit-cp] classpath ChangeLog include/Makefile.am java/la...
CVSROOT:/sources/classpath Module name:classpath Changes by: Pekka Enberg 12/01/08 12:35:54 Modified files: . : ChangeLog include: Makefile.am java/lang : System.java native/jni/java-io: Makefile.am Added files: java/io: Console.java native/jni/java-io: java_io_VMConsole.c vm/reference/java/io: VMConsole.java Log message: Add java/io/Console class and java/lang/System.console() method This patch implements java/io/Console and adds a console() method to java/lang/System. The implementation is lame but it works reasonably well. 2012-01-07 Pekka Enberg * include/Makefile.am: Add java_io_VMConsole.h. * java/io/Console: Add Java 1.6 java/io/Console API. * java/lang/System.java: (console): Add Java 1.6 console() API. * vm/reference/java/io/VMConsole: Add new class. * native/jni/java-io/Makefile.am: Add java_io_VMConsole.c. * native/jni/java-io/java_io_VMConsole.c: Add native helpers for java/io/Console. Signed-off-by: Pekka Enberg CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9835&r2=1.9836 http://cvs.savannah.gnu.org/viewcvs/classpath/include/Makefile.am?cvsroot=classpath&r1=1.89&r2=1.90 http://cvs.savannah.gnu.org/viewcvs/classpath/java/io/Console.java?cvsroot=classpath&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/classpath/java/lang/System.java?cvsroot=classpath&r1=1.65&r2=1.66 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/java-io/Makefile.am?cvsroot=classpath&r1=1.26&r2=1.27 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/java-io/java_io_VMConsole.c?cvsroot=classpath&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/classpath/vm/reference/java/io/VMConsole.java?cvsroot=classpath&rev=1.1
Re: [commit-cp] [SCM] UNNAMED PROJECT branch, gtk3, updated. 5a58f06dc8b6d190c3ef09aad49d0940f33f3ade
On Thu, Sep 19, 2013 at 3:59 AM, Andrew John Hughes wrote: > This is an automated email from the git hooks/post-receive script. It was > generated because a ref change was pushed to the repository containing > the project "UNNAMED PROJECT". Where does the "UNNAMED PROJECT" thing come from? Are we missing something from the git repository for that to be "GNU Classpath"?