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

TextField/TextArea: on Windows, ArrayIndexOutOfBoundsException for complex Thai characters.

    Details

      Description

      8.0 b105, run attached program, it contains a Text and a TextField to display Thai text "น้ำ". Text is able to display it correctly, but for TextField, java.lang.ArrayIndexOutOfBoundsException is reported.
      It happens in TextArea as well. Not sure if it's related to the fix of RT-26250

      java.lang.ArrayIndexOutOfBoundsException: 3
      at com.sun.javafx.text.TextRun.getCharOffset(TextRun.java:543)
      at com.sun.prism.sw.SWGraphics.drawString(SWGraphics.java:751)
      at com.sun.javafx.sg.prism.NGText.renderText(NGText.java:312)
      at com.sun.javafx.sg.prism.NGText.renderContent2D(NGText.java:270)
      at com.sun.javafx.sg.prism.NGShape.renderContent(NGShape.java:225)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1811)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1729)
      at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:228)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:194)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1166)
      at com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:2035)
      at com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:1929)
      at com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:1955)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1807)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1729)
      at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:228)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:194)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1166)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1811)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1729)
      at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:228)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:194)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1166)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1811)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1729)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:328)
      at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:208)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:87)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
      at java.lang.Thread.run(Thread.java:724)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fheidric Felipe Heidrich (Inactive)
                Reporter:
                jennyh Jenny Huang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: