On Wed, 26 Jul 2023 07:15:56 GMT, Prasanta Sadhukhan <[email protected]> 
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 <[email protected]>
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

Reply via email to