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

javax/swing/text/html/StyleSheet/TestWrongCSSFontSize.java failed with IllegalArgumentException

    XMLWordPrintable

    Details

      Description

      Warning: the fonts "Lucida Grande" and "Lucida Grande" are not available for the Java logical font "Dialog", which may have unexpected appearance or behavior. Re-enable the "Lucida Grande" font to remove this warning.
      Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning.
      Warning: the fonts "Lucida Grande" and "Lucida Grande" are not available for the Java logical font "SansSerif", which may have unexpected appearance or behavior. Re-enable the "Lucida Grande" font to remove this warning.
      Warning: the fonts "Menlo" and "Courier" are not available for the Java logical font "Monospaced", which may have unexpected appearance or behavior. Re-enable the "Menlo" font to remove this warning.
      Warning: the fonts "Lucida Grande" and "Lucida Grande" are not available for the Java logical font "DialogInput", which may have unexpected appearance or behavior. Re-enable the "Lucida Grande" font to remove this warning.
      java.lang.reflect.InvocationTargetException
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1368)
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1343)
      at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1479)
      at TestWrongCSSFontSize.main(TestWrongCSSFontSize.java:154)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)
      Caused by: java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
      at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
      at java.desktop/java.awt.image.BufferedImage.<init>(BufferedImage.java:333)
      at TestWrongCSSFontSize.captureImage(TestWrongCSSFontSize.java:138)
      at TestWrongCSSFontSize.lambda$main$0(TestWrongCSSFontSize.java:163)
      at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mikael Mikael Vidstedt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: