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

Selecting a word within a text rendered in a TextArea might wipe out the TextArea's content

    Details

      Description

      Run the attached Java code.
      What you get at startup is TextArea-1.
      Now double click any word in the TextArea; what you get is TextArea-2 & the stack below is printed.

      For some reason I got this issue on Windows XP SP3 + JDK 7 U3 as well as on Windows Vista Business (64-bit) + JDK 6U29 (64-bit) but on Windows 7 (64-bit) + JDK 6U30 (64-bit) it went well, the word has been selected without affecting the whole TextArea's instance.

      Adapter validation failed for all adapters
      java.lang.NullPointerException
      at com.sun.prism.j2d.J2DPrismGraphics.drawString(Unknown Source)
      at com.sun.javafx.sg.prism.NGText.drawString(Unknown Source)
      at com.sun.javafx.sg.prism.NGText.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.renderForClip(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.renderRectClip(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.renderClip(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(Unknown Source)
      at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(Unknown Source)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(Unknown Source)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
      at com.sun.prism.render.RenderJob.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:722)
      java.lang.NullPointerException
      at com.sun.prism.j2d.J2DPrismGraphics.drawString(Unknown Source)
      at com.sun.javafx.sg.prism.NGText.drawString(Unknown Source)
      at com.sun.javafx.sg.prism.NGText.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.renderForClip(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.renderRectClip(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.renderClip(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
      at com.sun.javafx.sg.BaseNode.render(Unknown Source)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(Unknown Source)
      at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(Unknown Source)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(Unknown Source)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
      at com.sun.prism.render.RenderJob.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:722)

        Attachments

        1. HelloTextArea.java
          3 kB
          Yves Joan
        2. TextArea-1.bmp
          1.41 MB
          Yves Joan
        3. TextArea-2.bmp
          1.43 MB
          Yves Joan

          Issue Links

            Activity

              People

              • Assignee:
                thor Thor Johannesson (Inactive)
                Reporter:
                yjoan Yves Joan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: