RFR: 4893524: Swing drop targets should call close() on transferred readers and streams [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Tue Aug 1 07:15:51 UTC 2023
> 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
Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
Use try-with-resource
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/15033/files
- new: https://git.openjdk.org/jdk/pull/15033/files/aafcd8df..62c816d9
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=15033&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=15033&range=00-01
Stats: 15 lines in 1 file changed: 4 ins; 2 del; 9 mod
Patch: https://git.openjdk.org/jdk/pull/15033.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/15033/head:pull/15033
PR: https://git.openjdk.org/jdk/pull/15033
More information about the client-libs-dev
mailing list