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)
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)
- is blocked by
-
JDK-8126167 WebHistory API looks inconsistent
- Resolved
- relates to
-
JDK-8126167 WebHistory API looks inconsistent
- Resolved