RFR: 8274929: Crash while reading specific clipboard content [v2]

Kevin Rushforth kcr at openjdk.java.net
Thu Nov 11 13:43:45 UTC 2021


On Thu, 11 Nov 2021 10:46:13 GMT, Pankaj Bansal <pbansal at openjdk.org> wrote:

>> Kevin Rushforth has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update check to test that bufferSize is exactly the right size
>
> tests/system/src/test/java/test/javafx/scene/input/ClipboardTest.java line 47:
> 
>> 45: import sun.awt.datatransfer.SunClipboard;
>> 46: 
>> 47: import static org.junit.Assert.*;
> 
> I am not sure about how strict we are about using wildcard imports in tests in JavaFX. You can change this or keep it as it is, depending upon the answer to the first statement.

In general wildcard imports are discouraged; static imports (e.g., `Assert.*`) are an exception used in many of our tests.

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

PR: https://git.openjdk.java.net/jfx/pull/662


More information about the openjfx-dev mailing list