RFR: 8178969: [TESTBUG] Wrong reporting of gc/g1/humongousObjects/TestHeapCounters test.

Albert Mingkun Yang ayang at openjdk.java.net
Wed Apr 27 08:22:41 UTC 2022


On Wed, 27 Apr 2022 07:39:12 GMT, Ivan Walulya <iwalulya at openjdk.org> wrote:

> Hi all,
> 
> Please review this small fix on the error message. The `getSimpleName()` returns an empty string for anonymous classes, and in this case, the enum values are objects of anonymous classes. 
> 
> Thanks
> Ivan

I think [name()](https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Enum.html#name()) makes more sense -- we wanna print the exact type not it's string representation. (The two are the same here though.)

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

Marked as reviewed by ayang (Reviewer).

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



More information about the hotspot-gc-dev mailing list