changeset 1296:136f40a0dae4

2008-12-24 Omair Majid <omajid@redhat.com> * patches/icedtea-a11y-property-change.patch: New file. * Makefile.am (ICEDTEA_PATCHES): Apply the above. * HACKING: Document the above.
author Omair Majid <omajid@redhat.com>
date Wed, 24 Dec 2008 13:12:52 -0500
parents a139f3afcef3
children b97986da0d62
files ChangeLog HACKING Makefile.am patches/icedtea-a11y-property-change.patch
diffstat 4 files changed, 26 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Dec 24 13:33:17 2008 +0000
+++ b/ChangeLog	Wed Dec 24 13:12:52 2008 -0500
@@ -1,3 +1,9 @@
+2008-12-24  Omair Majid  <omajid@redhat.com>
+
+	* patches/icedtea-a11y-property-change.patch: New file.
+	* Makefile.am (ICEDTEA_PATCHES): Apply the above.
+	* HACKING: Document the above.
+
 2008-12-24  Gary Benson  <gbenson@redhat.com>
 
 	* patches/icedtea-cc-interp-jvmti.patch: New file.
--- a/HACKING	Wed Dec 24 13:33:17 2008 +0000
+++ b/HACKING	Wed Dec 24 13:12:52 2008 -0500
@@ -78,6 +78,7 @@
 * icedtea-format-warnings.patch: Fix build failures with -Wformat=1.
 * icedtea-io_util-overflow.patch: Replace some code to correctly handle overflows. (S6788196)
 * icedtea-cc-interp-jvmti.patch: Disable some JVMTI capabilities which are unsupported or do not work with the C++ interpreter.
+* icedtea-a11y-property-change.patch: Dont fire PropertyChangeEvent if the property hasnt changed.
 
 The following patches are only applied to OpenJDK6 in IcedTea6:
 
--- a/Makefile.am	Wed Dec 24 13:33:17 2008 +0000
+++ b/Makefile.am	Wed Dec 24 13:12:52 2008 -0500
@@ -687,7 +687,8 @@
 endif
 
 ICEDTEA_PATCHES += \
-	$(DISTRIBUTION_PATCHES)
+	$(DISTRIBUTION_PATCHES) \
+	patches/icedtea-a11y-property-change.patch
 
 stamps/extract.stamp: stamps/download.stamp
 if OPENJDK_SRC_DIR_FOUND
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/icedtea-a11y-property-change.patch	Wed Dec 24 13:12:52 2008 -0500
@@ -0,0 +1,17 @@
+--- AccessibleContext.java.orig	2008-12-24 11:33:22.000000000 -0500
++++ openjdk/jdk/src/share/classes/javax/accessibility/AccessibleContext.java	2008-12-24 11:35:29.000000000 -0500
+@@ -736,6 +736,14 @@
+                                    Object oldValue,
+                                    Object newValue) {
+         if (accessibleChangeSupport != null) {
++
++            if (oldValue == newValue) {
++                return;
++            }
++            if (oldValue != null && newValue != null && oldValue.equals(newValue)) {
++                return;
++            }
++
+             if (newValue instanceof PropertyChangeEvent) {
+                 PropertyChangeEvent pce = (PropertyChangeEvent)newValue;
+                 accessibleChangeSupport.firePropertyChange(pce);