harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-1050) [classlib][io] compatibility: different exception order for new FilePermission(null, "drink")
Date Fri, 11 Aug 2006 14:56:14 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1050?page=all ]

Tim Ellison reassigned HARMONY-1050:
------------------------------------

    Assignee: Tim Ellison

> [classlib][io] compatibility: different exception order for new FilePermission(null,
"drink")
> ---------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1050
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1050
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>            Reporter: Denis Kishenko
>         Assigned To: Tim Ellison
>
> Different exception order for RI and Harmony
> Test -----------------------------------------------------
> import java.io.*;
> public class bug9277 {
>     public static void main (String[] args) { 
>         new FilePermission(null, "drink");
>    }   
> }
> Output ------------------------------------------------
> RI
> java.lang.IllegalArgumentException: invalid permission: drink
> 	at java.io.FilePermission.getMask(FilePermission.java:482)
> 	at java.io.FilePermission.<init>(FilePermission.java:264)
> 	at bug9277.main(bug9277.java:5)
> Harmony
> java.lang.NullPointerException: path is null
> 	at java.io.FilePermission.init(FilePermission.java:99)
> 	at java.io.FilePermission.<init>(FilePermission.java:72)
> 	at bug9277.main(bug9277.java:5)

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