Re: Potential URLClassLoader bug?

2024-10-10 Thread Patrick Reinhart
Hi Jaikiran, Thanks for the info. I will consult the bug for more details then. Patrick > Am 10.10.2024 um 16:21 schrieb Jaikiran Pai : > > Hello Patrick, > > This is a known bug https://bugs.openjdk.org/browse/JDK-8315993 which gets > triggered when the getResource() gets called on a URL r

Potential URLClassLoader bug?

2024-10-10 Thread Patrick Reinhart
Hi Everybody, I recently stumbled over a strange behavior within the URLClassLoader under Windows regarding a left open file handle even though everything is handled within try-with-resources blocks. Here is simple test that passes under Linux & Mac but fails under Windows: import java.io.*;