RFR: 8344854: Modernize test/jdk/java/net/URLClassLoader/RemoveJar.java
    Eirik Bjørsnøs 
    eirbjo at openjdk.org
       
    Fri Nov 22 14:15:17 UTC 2024
    
    
  
On Fri, 22 Nov 2024 13:57:17 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> Hi Eirik, IIRC the cache is global - so I don't think running the test in the same VM will work. I mean, I don't think we will be testing the same thing.
That is a fair point. On the other hand; the test asserts that the file can be deleted. If it was in the global cache at the end of the test run, the deletion would not work. So the test proves anything it puts the cache is also taken out, otherwise the test should fail (at least on Windows).
We still run in `/othervm`, so we should be  isolated from other tests putting things in the cache.
What do you think?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22319#issuecomment-2493857879
    
    
More information about the net-dev
mailing list