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

[Pagination] page is requested, with number more than accessible.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx
    • 2.2.0b12

      After RT-22026.

      In standart application, set page count to 10. Set current page index to 15. Yes, we don't navigate to 15, but I catch exception:

      java.lang.IllegalArgumentException: Incorrect index : 15
      at javafx.scene.control.test.pagination.PaginationApp$PaginationScene.checkIndexCorrectness(PaginationApp.java:269)
      at javafx.scene.control.test.pagination.PaginationApp$PaginationScene.createPage(PaginationApp.java:241)
      at javafx.scene.control.test.pagination.PaginationApp$PaginationScene$1.call(PaginationApp.java:89)
      at javafx.scene.control.test.pagination.PaginationApp$PaginationScene$1.call(PaginationApp.java:85)
      at com.sun.javafx.scene.control.skin.PaginationSkin.createPage(PaginationSkin.java:338)
      at com.sun.javafx.scene.control.skin.PaginationSkin.animateSwitchPage(PaginationSkin.java:381)

      This is my exception, in my app: it says, that factory was called to create page 15. Set current page index to 25 and 25th page will be requested. But we are still on the last page.

      Affected tests:
      ControlsAutomatedTestSuite/javafx/scene/control/test/pagination/PaginationTest/currentPageIndexPropertyTest

            jgiles Jonathan Giles
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: