Skip to content

Commit 16af473

Browse files
Manukumar V Sprrace
authored andcommitted
8361115: javax/swing/JComboBox/bug4276920.java unnecessarily throws Error instead of RuntimeException
Reviewed-by: prr
1 parent da0a51c commit 16af473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/javax/swing/JComboBox/bug4276920.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -44,7 +44,7 @@ public static void main(String[] args) throws Exception {
4444
SwingUtilities.invokeAndWait(combo::hidePopup);
4545
int after = combo.getRepaintCount();
4646
if (after > before) {
47-
throw new Error("Failed 4276920: BasicComboPopup.hide() caused unnecessary repaint()");
47+
throw new RuntimeException("Failed 4276920: BasicComboPopup.hide() caused unnecessary repaint()");
4848
}
4949
} finally {
5050
if (frame != null) {

0 commit comments

Comments
 (0)