RFR: 8178969: [TESTBUG] Wrong reporting of gc/g1/humongousObjects/TestHeapCounters test.
    Ivan Walulya 
    iwalulya at openjdk.java.net
       
    Thu Apr 28 08:06:45 UTC 2022
    
    
  
On Wed, 27 Apr 2022 08:19:15 GMT, Albert Mingkun Yang <ayang 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.)
Thanks @albertnetymk and @tschatzl for the reviews.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8415
    
    
More information about the hotspot-gc-dev
mailing list