From f601897d9e4a5520cdbd6f4be7465962bda7f493 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Tue, 5 Aug 2008 14:05:36 -0600 Subject: [PATCH 1/3] Accept uppercase letters as digits, per the spec for Character.digit --- classpath/java/lang/Character.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classpath/java/lang/Character.java b/classpath/java/lang/Character.java index 6627ae3170..7d097366a8 100644 --- a/classpath/java/lang/Character.java +++ b/classpath/java/lang/Character.java @@ -96,6 +96,8 @@ public final class Character implements Comparable { digit = c - '0'; } else if ((c >= 'a') && (c <= 'z')) { digit = c - 'a' + 10; + } else if ((c >= 'A') && (c <= 'Z')) { + digit = c - 'A' + 10; } else { return -1; } From 7e0941f6fb47b3c459f818dc9de00414195e573b Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Tue, 5 Aug 2008 14:06:37 -0600 Subject: [PATCH 2/3] Added java.lang.AssertionError --- classpath/java/lang/AssertionError.java | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 classpath/java/lang/AssertionError.java diff --git a/classpath/java/lang/AssertionError.java b/classpath/java/lang/AssertionError.java new file mode 100644 index 0000000000..ba5d2589e4 --- /dev/null +++ b/classpath/java/lang/AssertionError.java @@ -0,0 +1,45 @@ +/* Copyright (c) 2008, Avian Contributors + + Permission to use, copy, modify, and/or distribute this software + for any purpose with or without fee is hereby granted, provided + that the above copyright notice and this permission notice appear + in all copies. + + There is NO WARRANTY for this software. See license.txt for + details. */ + +package java.lang; + +public class AssertionError extends Error { + public AssertionError() { + super("", null); + } + + public AssertionError(boolean detailMessage) { + super(""+detailMessage, null); + } + + public AssertionError(char detailMessage) { + super(""+detailMessage, null); + } + + public AssertionError(double detailMessage) { + super(""+detailMessage, null); + } + + public AssertionError(float detailMessage) { + super(""+detailMessage, null); + } + + public AssertionError(int detailMessage) { + super(""+detailMessage, null); + } + + public AssertionError(long detailMessage) { + super(""+detailMessage, null); + } + + public AssertionError(Object detailMessage) { + super(""+detailMessage, null); + } +} From e45b1f68c75bd0de9155e56282ba6c7ae74f3c44 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Tue, 5 Aug 2008 14:15:10 -0600 Subject: [PATCH 3/3] prepend copyright notice and license to source files --- classpath/java/lang/Override.java | 10 ++++++++++ classpath/java/lang/SuppressWarnings.java | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/classpath/java/lang/Override.java b/classpath/java/lang/Override.java index ce25b9559a..428ae9c4f0 100644 --- a/classpath/java/lang/Override.java +++ b/classpath/java/lang/Override.java @@ -1,3 +1,13 @@ +/* Copyright (c) 2008, Avian Contributors + + Permission to use, copy, modify, and/or distribute this software + for any purpose with or without fee is hereby granted, provided + that the above copyright notice and this permission notice appear + in all copies. + + There is NO WARRANTY for this software. See license.txt for + details. */ + package java.lang; public @interface Override { diff --git a/classpath/java/lang/SuppressWarnings.java b/classpath/java/lang/SuppressWarnings.java index 5e35ed01ba..6862f2df87 100644 --- a/classpath/java/lang/SuppressWarnings.java +++ b/classpath/java/lang/SuppressWarnings.java @@ -1,3 +1,13 @@ +/* Copyright (c) 2008, Avian Contributors + + Permission to use, copy, modify, and/or distribute this software + for any purpose with or without fee is hereby granted, provided + that the above copyright notice and this permission notice appear + in all copies. + + There is NO WARRANTY for this software. See license.txt for + details. */ + package java.lang;