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

[jira] Created: (HARMONY-2760) [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.

[classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.
------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2760
                 URL: http://issues.apache.org/jira/browse/HARMONY-2760
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Leo Li


class MyProvider extends Provider {               
        MyProvider(String name, double version, String info) {
            super(name, version, info);
        }
}

public void testConstructor() {
	MyProvider myProvider = new MyProvider(null, 1, null);
	assertNull(myProvider.getName());
	assertNull(myProvider.getInfo());
	assertEquals("null", myProvider.getProperty("Provider.id name"));
	assertEquals("null", myProvider.getProperty("Provider.id info"));
}

RI passes.
Harmony fails.

-- 
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] Commented: (HARMONY-2760) [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2760?page=comments#action_12459236 ] 
            
Leo Li commented on HARMONY-2760:
---------------------------------

Verified. Thank you.

> [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2760
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2760
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Paulex Yang
>         Attachments: patch-2760.diff
>
>
> class MyProvider extends Provider {               
>         MyProvider(String name, double version, String info) {
>             super(name, version, info);
>         }
> }
> public void testConstructor() {
> 	MyProvider myProvider = new MyProvider(null, 1, null);
> 	assertNull(myProvider.getName());
> 	assertNull(myProvider.getInfo());
> 	assertEquals("null", myProvider.getProperty("Provider.id name"));
> 	assertEquals("null", myProvider.getProperty("Provider.id info"));
> }
> RI passes.
> Harmony fails.

-- 
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-2760) [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.

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

Paulex Yang reassigned HARMONY-2760:
------------------------------------

    Assignee: Paulex Yang

> [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2760
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2760
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Paulex Yang
>         Attachments: patch-2760.diff
>
>
> class MyProvider extends Provider {               
>         MyProvider(String name, double version, String info) {
>             super(name, version, info);
>         }
> }
> public void testConstructor() {
> 	MyProvider myProvider = new MyProvider(null, 1, null);
> 	assertNull(myProvider.getName());
> 	assertNull(myProvider.getInfo());
> 	assertEquals("null", myProvider.getProperty("Provider.id name"));
> 	assertEquals("null", myProvider.getProperty("Provider.id info"));
> }
> RI passes.
> Harmony fails.

-- 
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-2760) [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.

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

Paulex Yang resolved HARMONY-2760.
----------------------------------

    Resolution: Fixed

Leo, patch applied at revision r488120, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.


> [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2760
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2760
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Paulex Yang
>         Attachments: patch-2760.diff
>
>
> class MyProvider extends Provider {               
>         MyProvider(String name, double version, String info) {
>             super(name, version, info);
>         }
> }
> public void testConstructor() {
> 	MyProvider myProvider = new MyProvider(null, 1, null);
> 	assertNull(myProvider.getName());
> 	assertNull(myProvider.getInfo());
> 	assertEquals("null", myProvider.getProperty("Provider.id name"));
> 	assertEquals("null", myProvider.getProperty("Provider.id info"));
> }
> RI passes.
> Harmony fails.

-- 
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] Updated: (HARMONY-2760) [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.

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

Leo Li updated HARMONY-2760:
----------------------------

    Attachment: patch-2760.diff

Will somebody try the patch?

> [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2760
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2760
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Attachments: patch-2760.diff
>
>
> class MyProvider extends Provider {               
>         MyProvider(String name, double version, String info) {
>             super(name, version, info);
>         }
> }
> public void testConstructor() {
> 	MyProvider myProvider = new MyProvider(null, 1, null);
> 	assertNull(myProvider.getName());
> 	assertNull(myProvider.getInfo());
> 	assertEquals("null", myProvider.getProperty("Provider.id name"));
> 	assertEquals("null", myProvider.getProperty("Provider.id info"));
> }
> RI passes.
> Harmony fails.

-- 
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-2760) [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.

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

Leo Li closed HARMONY-2760.
---------------------------


> [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2760
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2760
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Paulex Yang
>         Attachments: patch-2760.diff
>
>
> class MyProvider extends Provider {               
>         MyProvider(String name, double version, String info) {
>             super(name, version, info);
>         }
> }
> public void testConstructor() {
> 	MyProvider myProvider = new MyProvider(null, 1, null);
> 	assertNull(myProvider.getName());
> 	assertNull(myProvider.getInfo());
> 	assertEquals("null", myProvider.getProperty("Provider.id name"));
> 	assertEquals("null", myProvider.getProperty("Provider.id info"));
> }
> RI passes.
> Harmony fails.

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