# HG changeset patch # User Omair Majid # Date 1230142372 18000 # Node ID 136f40a0dae4dbfb3a92d09c1ef9fea743ec6030 # Parent a139f3afcef391dba766050317e3cbc48f8898c5 2008-12-24 Omair Majid * patches/icedtea-a11y-property-change.patch: New file. * Makefile.am (ICEDTEA_PATCHES): Apply the above. * HACKING: Document the above. diff -r a139f3afcef3 -r 136f40a0dae4 ChangeLog --- 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 + + * patches/icedtea-a11y-property-change.patch: New file. + * Makefile.am (ICEDTEA_PATCHES): Apply the above. + * HACKING: Document the above. + 2008-12-24 Gary Benson * patches/icedtea-cc-interp-jvmti.patch: New file. diff -r a139f3afcef3 -r 136f40a0dae4 HACKING --- 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: diff -r a139f3afcef3 -r 136f40a0dae4 Makefile.am --- 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 diff -r a139f3afcef3 -r 136f40a0dae4 patches/icedtea-a11y-property-change.patch --- /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);