-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b22
The implementation in jdk.internal.module.ModulePatcher$JarResourceFinder.getByteBuffer() currently gets a InputStream and reads all the bytes from it before returning those bytes as a ByteBuffer. However, the InputStream is never closed after these bytes have been read:
byte[] bytes = getInputStream().readAllBytes();
return ByteBuffer.wrap(bytes);
The InputStream should be closed before returning from this method.
byte[] bytes = getInputStream().readAllBytes();
return ByteBuffer.wrap(bytes);
The InputStream should be closed before returning from this method.
- links to
-
Commit(master)
openjdk/jdk/76995067
-
Review(master)
openjdk/jdk/28014