<AWT Dev> [8] Review Request: JDK-8025440 [TEST_BUG] com/sun/awt/SecurityWarning/GetSizeShouldNotReturnZero.java failed since jdk8b108

Petr Pchelko petr.pchelko at oracle.com
Thu Sep 26 02:11:55 PDT 2013

Hello, AWT Team.

Please review the fix for the following issue:
The fix is available at:

After SecurityManager.checkTopLevelWindow was deprecated in JDK-8008981 the test fails.
This fix updates the test. The CopyClassFile util is introduced - it's copying the class file into the specified directory in the test working dir. This is needed to use the -Xbootclasspath, so that the new SecurityManager could work.

This is a test fix, no code is affected.

With best regards. Petr.

More information about the awt-dev mailing list