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

Regression on combo boxes in b96 of Mustang

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b96
    • Introduced In Version:
      6
    • Resolved In Build:
      b98
    • CPU:
      x86
    • OS:
      windows_2000

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0-rc"
      Java(TM) SE Runtime Environment (build 1.6.0-rc-b96)
      Java HotSpot(TM) Client VM (build 1.6.0-rc-b96, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows 2000 [Version 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      The code in BasicLookAndFeel initComponentDefaults is:

      "ComboBox.ancestorInputMap",
                  "ComboBox.isEnterSelectablePopup", Boolean.FALSE,
      new UIDefaults.LazyInputMap(new Object[] {
      "ESCAPE", "hidePopup",
      "PAGE_UP", "pageUpPassThrough",
      "PAGE_DOWN", "pageDownPassThrough",
      "HOME", "homePassThrough",
      "END", "endPassThrough",
      "ENTER", "enterPressed"
      }),

      while it should be

                  "ComboBox.isEnterSelectablePopup", Boolean.FALSE,
      "ComboBox.ancestorInputMap",
      new UIDefaults.LazyInputMap(new Object[] {
      "ESCAPE", "hidePopup",
      "PAGE_UP", "pageUpPassThrough",
      "PAGE_DOWN", "pageDownPassThrough",
      "HOME", "homePassThrough",
      "END", "endPassThrough",
      "ENTER", "enterPressed"
      }),

      The result is that for *all* third-party LAFs that extend Basic and not Metal, there's a ClassCastException in BasicComboBoxUI.getInputMap since the "ComboBox.ancestorInputMap" points to a string "ComboBox.isEnterSelectablePopup" and not to a InputMap

      REGRESSION. Last worked in version mustang


      REPRODUCIBILITY :
      This bug can be reproduced always.

      Release Regression From : mustang
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.
      The bug is a regression of the 6428549.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mlapshin Mikhail Lapshin (Inactive)
              Reporter:
              gmanwanisunw Girish Manwani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: