RFR: 8361115: javax/swing/JComboBox/bug4276920.java unnecessarily throws Error instead of RuntimeException
duke
duke at openjdk.org
Thu Jul 3 19:39:40 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.
@manukumarvs
Your change (at version 4f2a9a0709cb8ae03294262265dedd091337b129) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26056#issuecomment-3033400291
More information about the client-libs-dev
mailing list