RFR: 4893524: Swing drop targets should call close() on transferred readers and streams
Sergey Bylokhov
serb at openjdk.org
Wed Jul 26 22:40:39 UTC 2023
On Wed, 26 Jul 2023 07:15:56 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> The issue here is a Reader(stream) is requested to handle a drop, via DataFlavor.getReaderForText(), and then the reader is completely read, but it isn't closed. It should be closed as soon as possible to release some native resources.
> Fix is made to close the stream after it is being used
Marked as reviewed by serb (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/15033#pullrequestreview-1548718997
More information about the client-libs-dev
mailing list