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

IAE when PageUp pressed on Choice

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      generic
    • OS:
      linux

      Description

      When pressing PageUp on the opened choice the IAE get thrown:
      Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: illegal Choice item position: -1
              at java.awt.Choice.select(Choice.java:413)
              at sun.awt.X11.XChoicePeer.keyPressed(XChoicePeer.java:255)
              at sun.awt.X11.XChoicePeer.handleJavaKeyEvent(XChoicePeer.java:196)
              at sun.awt.X11.XChoicePeer$1.run(XChoicePeer.java:982)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

      How to reproduce:
      1) run the test on linux
      2) open a choice and press Down several times to remove items until only one extra item gets remained till the scrollbar becomes disappear. So far the scrollbar should still be visible.
      3) close the choice
      4) press the button (now every keypress will remove and then add item in the dropdown list)
      5) open the choice
      6) press PageDown and then PageUp
      IAE should be thrown this time.

        Attachments

          Activity

            People

            Assignee:
            dav Andrei Dmitriev (Inactive)
            Reporter:
            dav Andrei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: