You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "chunrong lai (JIRA)" <ji...@apache.org> on 2008/10/22 12:06:46 UTC

[jira] Created: (HARMONY-6001) [classlib][security-kernel] problems in AccessControlContext.equals(..)

[classlib][security-kernel] problems in AccessControlContext.equals(..)
-----------------------------------------------------------------------

                 Key: HARMONY-6001
                 URL: https://issues.apache.org/jira/browse/HARMONY-6001
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M7
            Reporter: chunrong lai



  I checked the classlib test failure in ExecutorsTest::testPrivilegedThreadFactory and see harmony breaks in below threadAssertTrue. At the same time RI just pass the test case. So I think maybe the related module can be improved. 

        .....
        final AccessControlContext thisacc = AccessController.getContext();
        Runnable r = new Runnable() {
                public void run() {
		    try {
                                             ......
		  threadAssertTrue(thisacc.equals(AccessController.getContext()));
 		    } catch(SecurityException ok) {
                                                 ......
		    }
                }
            };
          ...
            e.execute(r);
          ...

    It is also noted that if I move the definition of thisAcc into the try section, harmony can pass modified test case without problem (AccessController.getContext().equals(AccessController.getContext()) is true).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.