On Fri, 31 Jul 2026 04:31:55 GMT, David Holmes <[email protected]> wrote:

> Please review this simple change to give a more informative error message for 
> `UnsupportedClassVersionError` when trying to load a recent classfile on an 
> older VM. The wording used has already been finalized - see JBS.
> 
> Testing:
> 
> - Updated test runtime/ClassFile/UnsupportedClassFileVersion.java. 
> - Added a new test case to 
> `test/hotspot/jtreg/runtime/ClassFile/PreviewVersion.java` to show preview 
> classfiles are also handled as expected
> 
> Tier 1 sanity testing.
> 
> Thanks
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 4afa191e
Author:    David Holmes <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/4afa191eec3b1ca29893be43e9034e99e0e0d2ce
Stats:     26 lines in 3 files changed: 18 ins; 0 del; 8 mod

8385593: Clarify the wording of UnsupportedClassVersionError

Reviewed-by: phubner, fbredberg, liach

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

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

Reply via email to