United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6444769 [TEST] java/awt/Insets/WindowWithWarningTest/WindowWithWarningTest.html fails
6444769 : [TEST] java/awt/Insets/WindowWithWarningTest/WindowWithWarningTest.html fails

Details
Type:
Bug
Submit Date:
2006-06-28
Status:
Closed
Updated Date:
2012-05-17
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
client-libs
OS:
generic
Sub-Component:
java.awt
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6,6u31-rev,7
Fixed Versions:
7

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
JDK		    : Fails:  Mustang b88
Platform[s]         : Fails On: Solaris x86 9 and Solaris 10 sparc
Failing Test [s]    : java/awt/Insets/WindowWithWarningTest/WindowWithWarningTest.html

    Test source location:
    =====================
/net/cady/export/jdk1.6.0/promoted/all/b88/ws/j2se/test/java/awt/Insets/WindowWithWarningTest/WindowWithWarningTest.html

    jtr file location:
    ==================
/net/cady/export6/results/mustang/b88/reg/regression-reg-IA9-2006-06-16-16-35-38-0981/workDir/java/awt/Insets/WindowWithWarningTest/WindowWithWarningTest.jtr

    How to reproduce:
    ====================
    - Set JAVA_HOME to Mustang b88 solaris-i586
    - cd /net/cady/export/jdk1.6.0/promoted/all/b88/ws/j2se/test/java/awt/Insets/WindowWithWarningTest
    - /net/koori.sfbay/onestop/jct-tools/2.1.6/archive/fcs/binaries/solaris/bin/jtreg -r:/tmp -w:/tmp ./WindowWithWarningTest.html

    Test output:
    ============
java.lang.RuntimeException: Exception java.security.AccessControlException: access denied (java.awt.AWTPermission createRobot)
        at WindowWithWarningTest.start(WindowWithWarningTest.java:119)
        at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:133)
        at java.lang.Thread.run(Thread.java:619)
STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: Exception java.security.AccessControlException: access denied (java.awt.AWTPermission createRobot)
result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Exception java.security.AccessControlException: access denied (java.awt.AWTPermission createRobot)

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk7/build/jdk/rev/3db5ac2b4c62
                                     
2011-01-17
EVALUATION

The enhanced security warning first introduced in 6u10, and now ported to jdk 7 doesn't add a security banner to the contents of the window anymore, and therefore doesn't affect the insets of top-level windows (see 6693253).

This makes the test in question completely useless, and it better be removed.
                                     
2010-12-14
EVALUATION

Fixed in JDK7: http://hg.openjdk.java.net/jdk7/awt/jdk/rev/3db5ac2b4c62
                                     
2010-12-14
SUGGESTED FIX

Problem disappears if Robot is created before SecurityManager is replaced.
                                     
2007-10-22
EVALUATION

It's a non-standard test and it installs it's own security manager.
                                     
2006-06-29
EVALUATION

This test does specifically create SecurityManager to force WarningWindow on a toplevel. Now, the only forbidden thing in this security settings should be creation of a toplevel window without a warning: everything else should be permitted. 

We can ensure it either by explicit permission of many various things in this programmed SecurityManager or by creating ~/.java.policy file with AllPermission granted. My techlead says, this last option must be supposed for all our tests. So I'm closing this as not a bug.
                                     
2006-06-29



Hardware and Software, Engineered to Work Together