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

StackOverflowError happened by TextField.setFont(...)

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      generic
    • OS:
      linux, aix

      Backports

        Description

        I could see following exception by TextField.setFont(...)

        =====================
        Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
                at java.desktop/javax.swing.plaf.basic.BasicTextUI$UpdateHandler.layoutContainer(BasicTextUI.java:2061)
                at java.desktop/java.awt.Container.layout(Container.java:1537)
                at java.desktop/java.awt.Container.doLayout(Container.java:1526)
                at java.desktop/java.awt.Container.validateTree(Container.java:1722)
                at java.desktop/java.awt.Container.validate(Container.java:1657)
                at java.desktop/sun.awt.X11.XTextFieldPeer.setFont(XTextFieldPeer.java:290)
                at java.desktop/java.awt.Component.validate(Component.java:2976)
                at java.desktop/java.awt.Container.validateTree(Container.java:1740)
                at java.desktop/java.awt.Container.validate(Container.java:1657)
                at java.desktop/sun.awt.X11.XTextFieldPeer.setFont(XTextFieldPeer.java:290)
                at java.desktop/java.awt.Component.validate(Component.java:2976)
                at java.desktop/java.awt.Container.validateTree(Container.java:1740)
        ...
        =====================

        It seemed that sun.awt.X11.XTextFieldPeer.setFont(...) was called recursively.

        Mail thread started on August, 2018,
        http://mail.openjdk.java.net/pipermail/awt-dev/2018-August/014240.html
        http://mail.openjdk.java.net/pipermail/awt-dev/2018-September/014267.html

        Review approval:
        http://mail.openjdk.java.net/pipermail/awt-dev/2018-October/014403.html
        http://mail.openjdk.java.net/pipermail/awt-dev/2018-October/014552.html

        JDK-8212677's test case code was merged:
        Review approval:
        http://mail.openjdk.java.net/pipermail/awt-dev/2018-December/014829.html

        Another review was requested. The test case did not have "@test" tag
        http://mail.openjdk.java.net/pipermail/awt-dev/2018-December/014860.html

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  itakiguchi Ichiroh Takiguchi
                  Reporter:
                  itakiguchi Ichiroh Takiguchi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: