RFR: 4893524: Swing drop targets should call close() on transferred readers and streams
Prasanta Sadhukhan
psadhukhan at openjdk.org
Wed Jul 26 07:23:01 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
-------------
Commit messages:
- 4893524: Swing drop targets should call close() on transferred readers and streams
- Merge branch 'master' of github.com:prsadhuk/jdk
- Merge remote-tracking branch 'upstream/master'
- Merge remote-tracking branch 'upstream/master'
- Revert "Fix"
- Fix
Changes: https://git.openjdk.org/jdk/pull/15033/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15033&range=00
Issue: https://bugs.openjdk.org/browse/JDK-4893524
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 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