You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Anton Ivanov (JIRA)" <ji...@apache.org> on 2006/12/07 13:40:21 UTC

[jira] Created: (HARMONY-2518) java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue)

java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue)
-----------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2518
                 URL: http://issues.apache.org/jira/browse/HARMONY-2518
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Anton Ivanov
            Priority: Trivial


IOException is thrown for java.security.cert.PolicyQualifierInfo((byte[])null ) while RI throws NullPointerException.
Specification says that IOException is "thrown if the byte array does not represent a valid and parsable policy qualifier".
NullPointerException that is thrown by RI  is not mentioned in the specification.
This is a compatibility issue.

The test to reproduce the issue:

import java.security.cert.PolicyQualifierInfo;
import java.io.IOException;

public class PolicyQualifierInfoTest { 
    public static void main (String[] args) { 
        try { 
            PolicyQualifierInfo pqi 
                    = new PolicyQualifierInfo((byte[])null );
            System.out.println("passed without any exception!");
        } catch (IOException e) { 
            System.out.println("failed: " + e); 
        } catch (NullPointerException e) { 
            System.out.println("passed: " + e); 
        } 
    } 
}

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

        

[jira] Assigned: (HARMONY-2518) java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue)

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2518?page=all ]

Stepan Mishura reassigned HARMONY-2518:
---------------------------------------

    Assignee: Stepan Mishura

> java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue)
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2518
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2518
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>         Assigned To: Stepan Mishura
>            Priority: Trivial
>
> IOException is thrown for java.security.cert.PolicyQualifierInfo((byte[])null ) while RI throws NullPointerException.
> Specification says that IOException is "thrown if the byte array does not represent a valid and parsable policy qualifier".
> NullPointerException that is thrown by RI  is not mentioned in the specification.
> This is a compatibility issue.
> The test to reproduce the issue:
> import java.security.cert.PolicyQualifierInfo;
> import java.io.IOException;
> public class PolicyQualifierInfoTest { 
>     public static void main (String[] args) { 
>         try { 
>             PolicyQualifierInfo pqi 
>                     = new PolicyQualifierInfo((byte[])null );
>             System.out.println("passed without any exception!");
>         } catch (IOException e) { 
>             System.out.println("failed: " + e); 
>         } catch (NullPointerException e) { 
>             System.out.println("passed: " + e); 
>         } 
>     } 
> }

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

        

[jira] Resolved: (HARMONY-2518) [classlib][security] java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue)

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2518?page=all ]

Stepan Mishura resolved HARMONY-2518.
-------------------------------------

    Resolution: Fixed

Thanks Anton - the bug was fixed in SECURITY module at r483828.

Please check that the fix fully resolves your problem.

> [classlib][security] java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue)
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2518
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2518
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>         Assigned To: Stepan Mishura
>            Priority: Trivial
>
> IOException is thrown for java.security.cert.PolicyQualifierInfo((byte[])null ) while RI throws NullPointerException.
> Specification says that IOException is "thrown if the byte array does not represent a valid and parsable policy qualifier".
> NullPointerException that is thrown by RI  is not mentioned in the specification.
> This is a compatibility issue.
> The test to reproduce the issue:
> import java.security.cert.PolicyQualifierInfo;
> import java.io.IOException;
> public class PolicyQualifierInfoTest { 
>     public static void main (String[] args) { 
>         try { 
>             PolicyQualifierInfo pqi 
>                     = new PolicyQualifierInfo((byte[])null );
>             System.out.println("passed without any exception!");
>         } catch (IOException e) { 
>             System.out.println("failed: " + e); 
>         } catch (NullPointerException e) { 
>             System.out.println("passed: " + e); 
>         } 
>     } 
> }

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

        

[jira] Closed: (HARMONY-2518) [classlib][security] java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue)

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stepan Mishura closed HARMONY-2518.
-----------------------------------


Closing: no response from reporter - assuming OK.

> [classlib][security] java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue)
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2518
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2518
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>            Assignee: Stepan Mishura
>            Priority: Trivial
>
> IOException is thrown for java.security.cert.PolicyQualifierInfo((byte[])null ) while RI throws NullPointerException.
> Specification says that IOException is "thrown if the byte array does not represent a valid and parsable policy qualifier".
> NullPointerException that is thrown by RI  is not mentioned in the specification.
> This is a compatibility issue.
> The test to reproduce the issue:
> import java.security.cert.PolicyQualifierInfo;
> import java.io.IOException;
> public class PolicyQualifierInfoTest { 
>     public static void main (String[] args) { 
>         try { 
>             PolicyQualifierInfo pqi 
>                     = new PolicyQualifierInfo((byte[])null );
>             System.out.println("passed without any exception!");
>         } catch (IOException e) { 
>             System.out.println("failed: " + e); 
>         } catch (NullPointerException e) { 
>             System.out.println("passed: " + e); 
>         } 
>     } 
> }

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


[jira] Updated: (HARMONY-2518) [classlib][security] java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue)

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2518?page=all ]

Stepan Mishura updated HARMONY-2518:
------------------------------------

    Summary: [classlib][security] java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue)  (was: java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue))

> [classlib][security] java.security.cert.PolicyQualifierInfo((byte[])null ) throws IOException while RI throws NullPointerException (compatibility issue)
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2518
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2518
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>         Assigned To: Stepan Mishura
>            Priority: Trivial
>
> IOException is thrown for java.security.cert.PolicyQualifierInfo((byte[])null ) while RI throws NullPointerException.
> Specification says that IOException is "thrown if the byte array does not represent a valid and parsable policy qualifier".
> NullPointerException that is thrown by RI  is not mentioned in the specification.
> This is a compatibility issue.
> The test to reproduce the issue:
> import java.security.cert.PolicyQualifierInfo;
> import java.io.IOException;
> public class PolicyQualifierInfoTest { 
>     public static void main (String[] args) { 
>         try { 
>             PolicyQualifierInfo pqi 
>                     = new PolicyQualifierInfo((byte[])null );
>             System.out.println("passed without any exception!");
>         } catch (IOException e) { 
>             System.out.println("failed: " + e); 
>         } catch (NullPointerException e) { 
>             System.out.println("passed: " + e); 
>         } 
>     } 
> }

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