harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Pervov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2461) [classlib][security] Setting "no-go" security manager does not result in AccessControlException.
Date Tue, 05 Dec 2006 12:53:21 GMT
[classlib][security] Setting "no-go" security manager does not result in AccessControlException.
------------------------------------------------------------------------------------------------

                 Key: HARMONY-2461
                 URL: http://issues.apache.org/jira/browse/HARMONY-2461
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Pavel Pervov
         Attachments: test.java

The attached test prints "PASSED" on Sun and BEA VMs and "FAILED" on Harmony DRLVM:
-----
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)

PASSED
-----
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC:
 System optimized over throughput (initial strategy singleparpar))

PASSED
java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
        at java.security.AccessController.checkPermission(AccessController.java:427)
        at java.lang.SecurityManager.checkPermission(Ljava.security.Permission;)V(Unknown
Source)
        at test$1.checkPermission(test.java:8)
        at java.util.logging.LogManager.checkAccess(LogManager.java:927)
        at java.util.logging.LogManager.reset(LogManager.java:631)
        at java.util.logging.LogManager$Cleaner.run(LogManager.java:204)
-----
Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors,
as applicable.
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r482136, (Dec  4 2006), Windows/ia32/msvc 1310, debug build
http://incubator.apache.org/harmony
FAILED

Notes:
1) Sun seems to reset SecurityManager for its internal operations on VM shutdown. BEA fails
to acquire permissions for logging shutdown operations.
2) (off-topic) Both RIs prints empty line after version information
3) (off-topic) The URL printed by Harmony still points to incubator

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