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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      2.2.0b12

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: