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

closed/java/awt/Focus/SetFocusTraversalKeysTest/SetFocusTraversalTest.html failed since 1.8.0b19

XMLWordPrintable

    • b19
    • 8
    • b40
    • generic
    • generic, windows
    • Verified

      closed/java/awt/Focus/SetFocusTraversalKeysTest/SetFocusTraversalTest.html failed since 1.8.0b19 on all platforms

      see comments for more details
      caused by fix of CR 7117334
      http://hg.openjdk.java.net/jdk8/awt/jdk/diff/75bd7295c706/src/share/classes/java/awt/Component.java :
      - for (Iterator iter = keystrokes.iterator(); iter.hasNext(); ) {
      - Object obj = iter.next();
      -
      - if (obj == null) {
      + for (AWTKeyStroke keystroke : keystrokes ) {
      +
      + if (keystroke == null) {
      throw new IllegalArgumentException("cannot set null focus traversal key");
      }
      -
      - // Fix for 6195828:
      - //According to javadoc this method should throw IAE instead of ClassCastException
      - if (!(obj instanceof AWTKeyStroke)) {
      - throw new IllegalArgumentException("object is expected to be AWTKeyStroke");
      - }
      - AWTKeyStroke keystroke = (AWTKeyStroke)obj;

            bagiras Oleg Pekhovskiy (Inactive)
            vakulova Vera Akulova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: