harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Beyer (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-1226) Files can't be read with security manager installed
Date Sat, 26 Aug 2006 18:48:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1226?page=all ]

Nathan Beyer resolved HARMONY-1226.
-----------------------------------

    Resolution: Fixed

Resolving this issue, as it seems to have been worked out.

> Files can't be read with security manager installed
> ---------------------------------------------------
>
>                 Key: HARMONY-1226
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1226
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib, App-Oriented Bug Reports
>         Environment: Windows XP Professional 
>            Reporter: Anton Luht
>
> This bug was found during investigating of mx4j JUnit test failure
> Files can't be read after security manager is installed.
> Harmony + DRLVM Version:
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r432532, (Aug 18 2006), Windows/ia32/msvc 1310, debug build
> http://incubator.apache.org/harmony
> Code to reproduce:
> public class Test  { 
>     public static void main (String[] args) throws Exception {
>     	System.setSecurityManager(new SecurityManager() {});
>         System.out.println(new java.io.File("Test.class").exists());
>     }
> }
> Output in RI:
> true
> Output in DRLVM+Harmony:
> java.security.AccessControlException: Permission check failed (java.io.FilePermi
> ssion Test.class read)
>         at java.security.AccessControlContext.checkPermission()
>         at java.security.AccessController.checkPermission()
>         at java.lang.SecurityManager.checkPermission(SecurityManager.java:737)
>         at java.lang.SecurityManager.checkRead(SecurityManager.java:397)
>         at java.io.File.exists(File.java:435)
>         at Test.main(Test.java:4)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message