RFR: JDK-8280168 Add Objects.toDefaultString [v2]

Mandy Chung mchung at openjdk.java.net
Wed Jan 19 18:02:40 UTC 2022


On Wed, 19 Jan 2022 02:57:10 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> While it is strongly recommend to not use the default toString for a class, at times it is the least-bad alternative. When that alternative needs to be used, it would be helpful to have the implementation already available, such as in Objects.toDefaultString(). This method is analagous to System.identityHashCode.
>> 
>> Please also review the CSR: https://bugs.openjdk.java.net/browse/JDK-8280184
>
> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Respond to review feedback.

Looks good.   I reviewed the CSR but please update the CSR with the updated spec.

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

Marked as reviewed by mchung (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/7139


More information about the core-libs-dev mailing list