On Mon, 1 Dec 2025 20:30:30 GMT, Roger Riggs <[email protected]> wrote:
> ArchivedClassesTest is added to compare archived serialized class objects
> against current classes.
> Note: these are the serialized class objects themselves, for example
> `java.lang.String.class`, not instances of the class, for example "Hello".
> The archived classes reference was built against the latest released version:
> 25.0.1+8.
>
> The test fails if the serialized class reference archive is missing from the
> repository
> or if there are any incompatible changes to the serialized bytes.
> Normal output from the test includes:
> - The version of the serialized class archive
> - Listing (if any) of incompatible classes
> - Listing of classes with compatible changes
> - Listing of classes in the archive that are not in the current version
> - Listing of classes in the current version not found in the archive
>
> The change of java.nio.ByteOrder from a class to enum is reported as an
> approved incompatible change.
test/jdk/java/io/Serializable/ClassSerialization/ArchivedClassesTest.java line
476:
> 474: * @return Stream of matching classes
> 475: */
> 476: public static Stream<Class<?>> findAll() {
Does this test have to be limited to the standard modules? I would think it
should find all classes in packages that are exported unconditionally (to all
modules).
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28586#discussion_r2581080077