changeset 1006:bbb08c1771b2

2008-08-11 Lillian Angel <langel@redhat.com> Fixes Bug #181 * Makefile.am: Added new patch to the list. * patches/icedtea-enum-bug-181.patch: New patch.
author Lillian Angel <langel@redhat.com>
date Mon, 11 Aug 2008 15:12:08 -0400
parents a86e963e785f
children 7cd4d87f69f2
files ChangeLog Makefile.am patches/icedtea-enum-bug-181.patch
diffstat 3 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Aug 08 12:26:14 2008 -0400
+++ b/ChangeLog	Mon Aug 11 15:12:08 2008 -0400
@@ -1,3 +1,9 @@
+2008-08-11  Lillian Angel  <langel@redhat.com>
+
+	Fixes Bug #181
+	* Makefile.am: Added new patch to the list.
+	* patches/icedtea-enum-bug-181.patch: New patch.
+
 2008-08-08  Joshua Sumali  <jsumali@redhat.com>
 
 	* Makefile.am: Add ALT_JAR_CMD to ICEDTEA_ENV if --with-alt-jar is used.
--- a/Makefile.am	Fri Aug 08 12:26:14 2008 -0400
+++ b/Makefile.am	Mon Aug 11 15:12:08 2008 -0400
@@ -500,6 +500,7 @@
 	patches/icedtea-hotspot-citypeflow.patch \
 	patches/icedtea-alpha-fixes.patch \
 	patches/icedtea-alt-jar.patch \
+	patches/icedtea-enum-bu-181.patch \
 	$(SHARK_PATCH) \
 	$(GCC_PATCH) \
 	patches/icedtea-arch.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/icedtea-enum-bug-181.patch	Mon Aug 11 15:12:08 2008 -0400
@@ -0,0 +1,11 @@
+--- openjdkold/jdk/src/share/classes/sun/beans/editors/EnumEditor.java	2008-07-10 15:57:13.000000000 -0400
++++ openjdk/jdk/src/share/classes/sun/beans/editors/EnumEditor.java	2008-08-11 15:07:05.000000000 -0400
+@@ -67,7 +67,7 @@
+     }
+ 
+     public void setValue( Object value ) {
+-        if ( ( value != null ) && ( this.type != value.getClass() ) ) {
++	if ( ( value != null ) && ! ( this.type.isInstance( value ) ) ) {
+             throw new IllegalArgumentException( "Unsupported value: " + value );
+         }
+         Object oldValue;