RFR (S): 8241704: Add test case for unloadable class with nest host error

David Holmes david.holmes at oracle.com
Mon Mar 30 14:01:21 UTC 2020

Bug: https://bugs.openjdk.java.net/browse/JDK-8241704
webrev: http://cr.openjdk.java.net/~dholmes/8241704/webrev/

After JDK-8241562 there is an untested code path in 
ResolutionErrorTable::free_entry if we can unload a class that had a 
nest host validation or resolution error. So I took an existing nest 
host membership test (where the claimed host is in another package) and 
ran it in a new classloader and then triggered unloading. With a 
debugging printf enabled this showed the previously unused code path 
being executed.


More information about the valhalla-dev mailing list