Hi,

The current implementation of AccessibleContext propagates PropertyChangeEvents that dont correspond do a change. This patch checks that the new value and the old value are different before firing a PropertyChangeEvent. This has been committed to icedtea as http://icedtea.classpath.org/hg/icedtea6/rev/136f40a0dae4.

Apologies in advance if this isn't the correct list to post this patch.

Cheers,

Omair
--- AccessibleContext.java.orig 2008-12-24 11:33:22.000000000 -0500
+++ 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);

Reply via email to