RFR: 8310242: Clarify the name parameter to Class::forName [v4]
Chen Liang
liach at openjdk.org
Wed Jun 21 10:04:05 UTC 2023
On Wed, 21 Jun 2023 09:54:53 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Binary name is a long-standing behavior. It's a spec bug.
>
>> Binary name is a long-standing behavior. It's a spec bug.
>
> Yes, I view this PR as just specifying long standing behavior. The name used for array class may be surprising but I don't think it can be changed.
Such array names and binary name for nested/inner classes have always been returned by `Class::getName` as well, so they shouldn't be too surprising considering the old specification mentions it reuses the `getName` format.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14528#discussion_r1236736162
More information about the core-libs-dev
mailing list