harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-6233) [java6][classlib][security] Fix incorrect behavior of implies method of BasicPermission
Date Mon, 17 Aug 2009 19:35:14 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Hindess resolved HARMONY-6233.
-----------------------------------

    Resolution: Fixed

Thanks for the bug fix and test.  I've applied your patch in r805109.  Please confirm (and
close this JIRA) that it has been applied as expected.

Please don't set the "Fix Version" field unless the big *must* be fixed in that version -
i.e. it is a regression or some other critical bug.  Thanks.


> [java6][classlib][security] Fix incorrect behavior of implies method of BasicPermission
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6233
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6233
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M10
>            Reporter: Jim Yu
>            Assignee: Mark Hindess
>             Fix For: 5.0M11
>
>         Attachments: HARMONY-6233.diff
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> There is a simple testcase as following. For RI, it will print the message as the implies
method will return true while our java 6 branch would return false. Obviously, our behavior
is incorrect since "exitVM" should be "implied by" "exitVM". I've got a fix for this bug.
> import java.security.Permission;
> public class TestRuntimePermission {
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         Permission permission_exitVM = new RuntimePermission("exitVM");
>         if(permission_exitVM.implies(new RuntimePermission("exitVM"))) {
>             System.out.println("exitVM implies exitVM");
>         }
>         
>     }
> }

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


Mime
View raw message