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

WebHistory.goFoward() causes an exception when called in newly created WebEngine

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u6
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
      web

      Description

      When calling WebHisotry.goForward() on WebHistory object which is tied to a newly created WebEngine without history, the following exception is thrown:

      java.lang.IndexOutOfBoundsException: the effective index 1 is out of the range [0..-1]
      at javafx.scene.web.WebHistory.go(WebHistory.java:278)
      at javafx.scene.web.WebHistory.goForward(WebHistory.java:313)
      at com.sun.fx.webnode.tests.commonUtils.HistoryTestClass$6.run(HistoryTestClass.java:96)
      at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:142)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
      at java.lang.Thread.run(Thread.java:722)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ant Anton Tarasov
                Reporter:
                ilatyshe Irina Grineva (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: