On Fri, 21 Nov 2025 16:32:49 GMT, David Beaumont <[email protected]> wrote:

> Adds a semantic reason for failure which can be optionally interrogated by 
> calling code.
> Use the 'Reason.BAD_VERSION' value to trigger a different translated error 
> message from the JImageTask.
> 
> I would consider moving the error message string into the Reason enum to 
> simplify the code triggering the error and avoid message string duplication, 
> but it's not straightforward due to the need to supply the version numbers.
> 
> We can use this approach to provide translated messages for all the distinct 
> failure reasons if needed.

This pull request has been closed without being integrated.

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

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

Reply via email to