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

javax/swing/GraphicsConfigNotifier/StalePreferredSize.java fails on mac10.13

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 12
    • Fix Version/s: 12
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b23
    • OS:
      os_x, windows_7

      Description

      Fails with LookAndFeel: javax.swing.plaf.nimbus.NimbusLookAndFeel
      typeFont = 0
      text = <html><span>A few words to get started before the bug</span><span>overlapping text</span></html>
      text = <html>A quick brown fox jumps over the lazy dog</html>
      Component: javax.swing.JButton[,0,0,277x27,invalid,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.synth.SynthBorder@1b4745df,flags=288,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=<html>A quick brown fox jumps over the lazy dog</html>,defaultCapable=true]
      Before: java.awt.Dimension[width=249,height=15]
      After: java.awt.Dimension[width=277,height=27]
      java.lang.reflect.InvocationTargetException
              at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367)
              at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342)
              at StalePreferredSize.checkComponent(StalePreferredSize.java:169)
              at StalePreferredSize.test(StalePreferredSize.java:140)
              at StalePreferredSize.main(StalePreferredSize.java:98)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
              at java.base/java.lang.Thread.run(Thread.java:835)
      Caused by: java.lang.RuntimeException: Wrong PreferredSize
              at StalePreferredSize.lambda$checkComponent$18(StalePreferredSize.java:188)
              at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
              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(Native Method)
              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

          Activity

            People

            • Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              psadhukhan Prasanta Sadhukhan
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: