On Fri, 26 May 2023 17:18:42 GMT, Mandy Chung <mch...@openjdk.org> wrote:
> Looks fine. This version matches the current implementation where > `getCanonicalName` returns non-null. When the implementation of > `getCanonicalName` is updated to return null, the spec should be updated. > > Nit: `<p>` is needed assuming the section of "Unnamed Classes" has 3 > paragraphs. Thanks @mlchung. Yes, the current spec matches what the implementation in @JimLaskey 's PR https://github.com/openjdk/jdk/pull/13689 does at the time of writing. Discussions are on-going with the JEP 445 team regarding whether and how to implement a "isUnnamedClass" predicate for core reflection which would allow the `getCanonicalName` method to screen for unnamed classes and return null, as would reasonably be implied by a reading of the most current draft JLS updates. ------------- PR Comment: https://git.openjdk.org/jdk/pull/14165#issuecomment-1564901806