You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2006/08/11 17:22:16 UTC
[jira] Resolved: (HARMONY-1050) [classlib][io] compatibility:
different exception order for new FilePermission(null, "drink")
[ http://issues.apache.org/jira/browse/HARMONY-1050?page=all ]
Tim Ellison resolved HARMONY-1050.
----------------------------------
Resolution: Fixed
Thanks Denis.
Fixed in LUNI module at repo revision r430805.
Please check that this fully resolves your issue.
> [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