RFR: JDK-8322878: Including sealing information Class.toGenericString() [v7]

Pavel Rappo prappo at openjdk.org
Wed Jan 10 18:30:26 UTC 2024


On Wed, 10 Jan 2024 18:16:05 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> As recently discussed on core libs, sealed-ness information could be included in the Class.toGenericString() output, analagous to how "modifiers" that also correspond to JVM access flags are handled.
>> 
>> This is the initial spec, implementation, and test updated needed for that change. If there is consensus this is a reasonable direction, I'll create the CSR, etc.
>
> Joe Darcy has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains eight additional commits since the last revision:
> 
>  - Adjust JLS quote and update copyright.
>  - Merge branch 'master' into JDK-8322878
>  - Expand test cases.
>  - Update spec; test sealed class structures.
>  - Improve regression test.
>  - Update non-sealed computation.
>  - Add non-seal'ing support.
>  - JDK-8322878: Including sealing information Class.toGenericString()

> /contributor add @pavelrappo

Thanks, Joe. Making me an "overriding author" was a bit over the top. :)

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

PR Comment: https://git.openjdk.org/jdk/pull/17239#issuecomment-1885397723


More information about the core-libs-dev mailing list