Thank you for the report.

I have created an issue on it: 8064468 ownedWindowList access requires synchronization in Window.setAlwaysOnTop() method
     https://bugs.openjdk.java.net/browse/JDK-8064468

  Thanks,
  Alexandr.

On 11/10/2014 4:14 PM, Holger Brands wrote:
Hello,

we observed the following exception on Java8u25 :

java.util.ConcurrentModificationException

at java.util.Vector$Itr.checkForComodification(Unknown Source)

at java.util.Vector$Itr.next(Unknown Source)

at java.awt.Window.setAlwaysOnTop(Unknown Source)

at de.eurodata.commons.swing.SwingUtils$1.run(SwingUtils.java:344)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

at java.awt.EventQueue.access$400(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at de.eurodata.commons.swing.event.AWTThrowableHandler.dispatchEvent(AWTThrowableHandler.java:28)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)


It seems to me that java.awt.Windows.setAlwaysOnTop iterates over "ownedWindowList" without proper synchronisation.

What do you think?

Thanks,
Holger


Reply via email to