Integrated: 8361115: javax/swing/JComboBox/bug4276920.java unnecessarily throws Error instead of RuntimeException
Manukumar V S
mvs at openjdk.org
Thu Jul 3 22:34:43 UTC 2025
On Tue, 1 Jul 2025 04:57:05 GMT, Manukumar V S <mvs at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: 16af4733
Author: Manukumar V S <mvs at openjdk.org>
Committer: Phil Race <prr at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/16af473397a7b3a6e6e33dd684d0d511168b989b
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
8361115: javax/swing/JComboBox/bug4276920.java unnecessarily throws Error instead of RuntimeException
Reviewed-by: prr
-------------
PR: https://git.openjdk.org/jdk/pull/26056
More information about the client-libs-dev
mailing list