Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8076151

[TESTBUG] Test java/awt/FontClass/CreateFont/fileaccess/FontFile.java fails

XMLWordPrintable

    • b65
    • generic
    • generic

        Test name(s): java/awt/FontClass/CreateFont/fileaccess/FontFile.java
        JDK tested: 8u60b07,9b55
        OS tested:Windows,Mac
        Is it a regression? No
        Regression introduced in release/build: N/A
                                    
        Is it platform specific? No
                           
        The is failure reproduced:Windows, MacOSX
        ----------System.out:(2/182)*----------
        Will try to access K:\\regression\\workspaces\\1.8.0\\1.8.0_60b07\\j2se\\test\\java\\awt\\FontClass\\CreateFont\\fileaccess\\..\\A.ttf
        File is available. Verify no access under SM
        ----------System.err:(17/1150)----------
        java.security.AccessControlException: access denied ("java.io.FilePermission" "somefile" "read")
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
        at java.security.AccessController.checkPermission(AccessController.java:884)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at java.awt.Font.createFont(Font.java:1051)
        at FontFile.main(FontFile.java:61)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:745)

        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")

              pchopra Pooja Chopra (Inactive)
              pchopra Pooja Chopra (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: