Issue:
javax/swing/JComboBox/bug4276920.java unnecessarily throws Error instead of 
RuntimeException whenever a test failure occurs.
This causes unnecessary extra attention in CI systems and triggers task 
failures as throwing an Error will write the error message to System.err and 
the CI system will detect it as an 'Error' and fails the task eventually.
But this is just a normal test failure only and just need to throw 
'RuntimeException' and no need to throw an 'Error'.

Fix:
Replace 'Error' with 'RuntimeException'

Testing:
Tested using mach5 in all the available platforms.
Tested manually the negative (failure) condition also and verified that its 
throwing 'RuntimeException' in cases of failure.

-------------

Commit messages:
 - 8361115: javax/swing/JComboBox/bug4276920.java unnecessarily throws Error 
instead of RuntimeException

Changes: https://git.openjdk.org/jdk/pull/26056/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26056&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8361115
  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/26056.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26056/head:pull/26056

PR: https://git.openjdk.org/jdk/pull/26056

Reply via email to