JDK-6862615 : Reg-test java/awt/FontClass/CreateFont/fileaccess/FontFile.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2009-07-21
  • Updated: 2015-03-23
  • Resolved: 2011-05-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7-poolResolved
Related Reports
Relates :  
Description
The regression testcase java/awt/FontClass/CreateFont/fileaccess/FontFile.java fails with the following error on Jdk7b66 pit build. I tried on WindowsXP, Solaris Sparc10 and RHEL5.

java.security.AccessControlException: access denied ("java.io.FilePermission" "somefile" "read")
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:345)
	at java.security.AccessController.checkPermission(AccessController.java:555)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
	at java.awt.Font.createFont(Font.java:994)
	at FontFile.main(FontFile.java:61)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:623)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:717)

JavaTest Message: Test threw exception: java.security.AccessControlException: access denied ("java.io.FilePermission" "somefile" "read")
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.security.AccessControlException: access denied ("java.io.FilePermission" "somefile" "read")
result: Failed. Execution failed: `main' threw exception: java.security.AccessControlException: access denied ("java.io.FilePermission" "somefile" "read")


test result: Failed. Execution failed: `main' threw exception: java.security.AccessControlException: access denied ("java.io.FilePermission" "somefile" "read")


Also attached is the .jtr file

Comments
EVALUATION The test has already been updated in JDK6 train. It includes additional shell script that starts the java class. See jdk6 ws as a reference: http://jre.sfbay/java/re/jdk/6u22/promoted/ea/b30/j4b/ws/j2se/test/java/awt/FontClass/CreateFont/fileaccess/
18-08-2010