JDK 25 |
---|
25 b06Fixed |
CSR :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
JDK-8347816 :
|
The Inflater and Deflater classes require the caller to call end() after use, because these objects retain references to native memory. This is clearly documented. However, there is no way to use these classes with the try-with-resources statement, because they don't implement AutoCloseable. These classes should implement a close() method that simply calls end(), and the classes should be retrofitted to implement AutoCloseable.
|