-
Bug
-
Resolution: Fixed
-
P2
-
8
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;
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;
- duplicates
-
JDK-7133207 Regression: ClassCastException thrown from Component.setFocusTraversalKeys_NoIDCheck instead of IAE
-
- Closed
-