Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7146550

[macosx] DnD test failure in createCompatibleWritableRaster()

XMLWordPrintable

    • 2d
    • b13
    • x86
    • os_x
    • Verified

        In 7124373 there are mentioned 2 tests failing with a similar exception. Now, first of them runs OK in b11 after a fix to 7124373 but not the second.

        It is
        java/awt/dnd/ImageDecoratedDnDNegative/ImageDecoratedDnDNegative
        and it still fails in b11 with quite the same

        Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
         at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
         at java.awt.image.BufferedImage.<init>(BufferedImage.java:357)
         at sun.lwawt.macosx.CImage$Creator.createFromImage(CImage.java:101)
         at sun.lwawt.macosx.CPlatformWindow.getImageForTarget(CPlatformWindow.java:734)
         at sun.lwawt.macosx.CPlatformWindow.updateIconImages(CPlatformWindow.java:541)
         at sun.lwawt.macosx.CPlatformWindow.setVisible(CPlatformWindow.java:506)
         at sun.lwawt.LWWindowPeer$1.run(LWWindowPeer.java:273)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
         at java.awt.EventQueue.access$000(EventQueue.java:101)
         at java.awt.EventQueue$3.run(EventQueue.java:666)
         at java.awt.EventQueue$3.run(EventQueue.java:664)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:240)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:146)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:142)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:134)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

              bae Andrew Brygin
              yan Yuri Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: