harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1050) [classlib][io] compatibility: different exception order for new FilePermission(null, "drink")
Date Thu, 03 Aug 2006 07:30:13 GMT
[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


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