Integrated: 4893524: Swing drop targets should call close() on transferred readers and streams

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Aug 3 07:26:44 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

This pull request has now been integrated.

Changeset: 58906bf8
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/58906bf8fbbf4417149e796325bcbaec189d538b
Stats:     15 lines in 1 file changed: 5 ins; 2 del; 8 mod

4893524: Swing drop targets should call close() on transferred readers and streams

Reviewed-by: serb, tr, aivanov

-------------

PR: https://git.openjdk.org/jdk/pull/15033



More information about the client-libs-dev mailing list