<AWT Dev> <Awt Dev>  Review Request for 8014725: closed/java/awt/Clipboard/HTMLTransferTest/HTMLTransferTest.html failed intermittently
semyon.sadetsky at oracle.com
Wed Aug 5 12:11:07 UTC 2015
Please review fix for JDK9:
The test is moved from closed to open repo. Initially it was a test
issue: new document html flavor parameters introduced in 7075105 were
not taken into account.
After the test is fixed and run an issue was found in the code. In case
InputStream is used as transferable object it is converted to a number
of compatible formats but during this conversion InputStream can be read
many times without resetting its position after each read. As result the
InputStream is exhausted during the first flavor conversion and then all
consequent flavors receive empty content. Stream reset was added as
solution to this.
More information about the awt-dev