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

[TESTBUG] Test closed/javax/swing/JTextArea/5042886/bug5042886.java fails due to mismatch of getPreferredSize() and getPreferredScrollableViewportSize() values in WindowsClassicLookAndFeel

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • P4
    • Resolution: Unresolved
    • 8, 9, 11
    • tbd
    • client-libs
    • 32 bit -client -Xmixed -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel

    Description

      Test name(s): closed/javax/swing/JTextArea/5042886/bug5042886.java
      JDK tested:9b60
      OS tested:Windows
      Is it a regression? No
      Regression introduced in release/build: N/A
                                          
      Is it platform specific? Yes (Fails for WindowsClassicLookAndFeel)
                                 
      The is failure reproduced; Windows

      ----------System.err:(13/929)----------
      java.lang.RuntimeException: Failed: JTextArea.getPreferredSize() != JTextArea.getPreferredScrollableViewportSize()
      at bug5042886.main(bug5042886.java:23)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:502)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:745)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Failed: JTextArea.getPreferredSize() != JTextArea.getPreferredScrollableViewportSize()
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Failed: JTextArea.getPreferredSize() != JTextArea.getPreferredScrollableViewportSize()

      Attachments

        Issue Links

          Activity

            People

              mvs Manukumar V S
              pchopra Pooja Chopra (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: