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/05 18:28:22 UTC

[jira] Created: (HARMONY-2477) java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)

java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)
-----------------------------------------------------------------------------------------------------------------------------

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


java.lang.IncompleteAnnotationException(Class<? extends Annotation> annotationType,String elementName) does not throw 
NullPointerException if annotationType == null while RI throws. But there is no mention of any exceptions in the specificarion. 
So this is a compatibility issue.

The code to reproduce the issue:

import junit.framework.TestCase;
import java.lang.annotation.IncompleteAnnotationException;

public class TestIncompleteAnnotationException extends TestCase {     

   public void test1 () {  
       try {  
           IncompleteAnnotationException obj 
               = new IncompleteAnnotationException(null, "str");
           fail("NullPointerException must be thrown");                
       } catch (NullPointerException e) {
           //expected
       }
    }
}

-- 
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-2477) [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)

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

Alexei Zakharov resolved HARMONY-2477.
--------------------------------------

    Resolution: Fixed

Thanks for the patch Vasily. Changes were applied at the revision r495297 (AllTests stuff was dropped). Please verify. 

> [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2477
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2477
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>         Assigned To: Alexei Zakharov
>            Priority: Trivial
>         Attachments: Harmony-2477-Test.patch, Harmony-2477.patch
>
>
> java.lang.IncompleteAnnotationException(Class<? extends Annotation> annotationType,String elementName) does not throw 
> NullPointerException if annotationType == null while RI throws. But there is no mention of any exceptions in the specificarion. 
> So this is a compatibility issue.
> The code to reproduce the issue:
> import junit.framework.TestCase;
> import java.lang.annotation.IncompleteAnnotationException;
> public class TestIncompleteAnnotationException extends TestCase {     
>    public void test1 () {  
>        try {  
>            IncompleteAnnotationException obj 
>                = new IncompleteAnnotationException(null, "str");
>            fail("NullPointerException must be thrown");                
>        } catch (NullPointerException e) {
>            //expected
>        }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2477) [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)

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

Alexei Zakharov updated HARMONY-2477:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2477
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2477
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>            Priority: Trivial
>         Attachments: Harmony-2477-Test.patch, Harmony-2477.patch
>
>
> java.lang.IncompleteAnnotationException(Class<? extends Annotation> annotationType,String elementName) does not throw 
> NullPointerException if annotationType == null while RI throws. But there is no mention of any exceptions in the specificarion. 
> So this is a compatibility issue.
> The code to reproduce the issue:
> import junit.framework.TestCase;
> import java.lang.annotation.IncompleteAnnotationException;
> public class TestIncompleteAnnotationException extends TestCase {     
>    public void test1 () {  
>        try {  
>            IncompleteAnnotationException obj 
>                = new IncompleteAnnotationException(null, "str");
>            fail("NullPointerException must be thrown");                
>        } catch (NullPointerException e) {
>            //expected
>        }
>     }
> }

-- 
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-2477) [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)

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

Vasily Zakharov updated HARMONY-2477:
-------------------------------------

    Attachment: Harmony-2477-Test.patch

Attached test patch.

Had to create the test classes structure for Annotation module.

This patch has one problem - the single test contained there is in fact run 3 times, I'm not sure why.


> [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2477
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2477
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>            Priority: Trivial
>         Attachments: Harmony-2477-Test.patch, Harmony-2477.patch
>
>
> java.lang.IncompleteAnnotationException(Class<? extends Annotation> annotationType,String elementName) does not throw 
> NullPointerException if annotationType == null while RI throws. But there is no mention of any exceptions in the specificarion. 
> So this is a compatibility issue.
> The code to reproduce the issue:
> import junit.framework.TestCase;
> import java.lang.annotation.IncompleteAnnotationException;
> public class TestIncompleteAnnotationException extends TestCase {     
>    public void test1 () {  
>        try {  
>            IncompleteAnnotationException obj 
>                = new IncompleteAnnotationException(null, "str");
>            fail("NullPointerException must be thrown");                
>        } catch (NullPointerException e) {
>            //expected
>        }
>     }
> }

-- 
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-2477) [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2477?page=comments#action_12460943 ] 
            
Vasily Zakharov commented on HARMONY-2477:
------------------------------------------

> This patch has one problem - the single test contained there is in fact run 3 times, I'm not sure why.

In fact, this is clearly due to AllClasses classes presence. As discussed here: http://thread.gmane.org/gmane.comp.java.harmony.devel/20329/focus=22194 those classes could probably be removed and that would resolve the problem.


> [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2477
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2477
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>         Assigned To: Alexei Zakharov
>            Priority: Trivial
>         Attachments: Harmony-2477-Test.patch, Harmony-2477.patch
>
>
> java.lang.IncompleteAnnotationException(Class<? extends Annotation> annotationType,String elementName) does not throw 
> NullPointerException if annotationType == null while RI throws. But there is no mention of any exceptions in the specificarion. 
> So this is a compatibility issue.
> The code to reproduce the issue:
> import junit.framework.TestCase;
> import java.lang.annotation.IncompleteAnnotationException;
> public class TestIncompleteAnnotationException extends TestCase {     
>    public void test1 () {  
>        try {  
>            IncompleteAnnotationException obj 
>                = new IncompleteAnnotationException(null, "str");
>            fail("NullPointerException must be thrown");                
>        } catch (NullPointerException e) {
>            //expected
>        }
>     }
> }

-- 
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-2477) [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)

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

Alexei Zakharov reassigned HARMONY-2477:
----------------------------------------

    Assignee: Alexei Zakharov

> [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2477
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2477
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>         Assigned To: Alexei Zakharov
>            Priority: Trivial
>         Attachments: Harmony-2477-Test.patch, Harmony-2477.patch
>
>
> java.lang.IncompleteAnnotationException(Class<? extends Annotation> annotationType,String elementName) does not throw 
> NullPointerException if annotationType == null while RI throws. But there is no mention of any exceptions in the specificarion. 
> So this is a compatibility issue.
> The code to reproduce the issue:
> import junit.framework.TestCase;
> import java.lang.annotation.IncompleteAnnotationException;
> public class TestIncompleteAnnotationException extends TestCase {     
>    public void test1 () {  
>        try {  
>            IncompleteAnnotationException obj 
>                = new IncompleteAnnotationException(null, "str");
>            fail("NullPointerException must be thrown");                
>        } catch (NullPointerException e) {
>            //expected
>        }
>     }
> }

-- 
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-2477) [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)

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

Alexei Zakharov closed HARMONY-2477.
------------------------------------


verified by Vasily

> [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2477
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2477
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>         Assigned To: Alexei Zakharov
>            Priority: Trivial
>         Attachments: Harmony-2477-Test.patch, Harmony-2477.patch
>
>
> java.lang.IncompleteAnnotationException(Class<? extends Annotation> annotationType,String elementName) does not throw 
> NullPointerException if annotationType == null while RI throws. But there is no mention of any exceptions in the specificarion. 
> So this is a compatibility issue.
> The code to reproduce the issue:
> import junit.framework.TestCase;
> import java.lang.annotation.IncompleteAnnotationException;
> public class TestIncompleteAnnotationException extends TestCase {     
>    public void test1 () {  
>        try {  
>            IncompleteAnnotationException obj 
>                = new IncompleteAnnotationException(null, "str");
>            fail("NullPointerException must be thrown");                
>        } catch (NullPointerException e) {
>            //expected
>        }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2477) [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463964 ] 

Vasily Zakharov commented on HARMONY-2477:
------------------------------------------

Thanks Alexei, the patch is fine.


> [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2477
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2477
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>         Assigned To: Alexei Zakharov
>            Priority: Trivial
>         Attachments: Harmony-2477-Test.patch, Harmony-2477.patch
>
>
> java.lang.IncompleteAnnotationException(Class<? extends Annotation> annotationType,String elementName) does not throw 
> NullPointerException if annotationType == null while RI throws. But there is no mention of any exceptions in the specificarion. 
> So this is a compatibility issue.
> The code to reproduce the issue:
> import junit.framework.TestCase;
> import java.lang.annotation.IncompleteAnnotationException;
> public class TestIncompleteAnnotationException extends TestCase {     
>    public void test1 () {  
>        try {  
>            IncompleteAnnotationException obj 
>                = new IncompleteAnnotationException(null, "str");
>            fail("NullPointerException must be thrown");                
>        } catch (NullPointerException e) {
>            //expected
>        }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2477) [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)

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

Vasily Zakharov updated HARMONY-2477:
-------------------------------------

    Attachment: Harmony-2477.patch

Attached fix patch.


> [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2477
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2477
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>            Priority: Trivial
>         Attachments: Harmony-2477.patch
>
>
> java.lang.IncompleteAnnotationException(Class<? extends Annotation> annotationType,String elementName) does not throw 
> NullPointerException if annotationType == null while RI throws. But there is no mention of any exceptions in the specificarion. 
> So this is a compatibility issue.
> The code to reproduce the issue:
> import junit.framework.TestCase;
> import java.lang.annotation.IncompleteAnnotationException;
> public class TestIncompleteAnnotationException extends TestCase {     
>    public void test1 () {  
>        try {  
>            IncompleteAnnotationException obj 
>                = new IncompleteAnnotationException(null, "str");
>            fail("NullPointerException must be thrown");                
>        } catch (NullPointerException e) {
>            //expected
>        }
>     }
> }

-- 
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-2477) [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)

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

Alexei Zakharov updated HARMONY-2477:
-------------------------------------

    Summary: [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)  (was: java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue))

> [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2477
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2477
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Ivanov
>            Priority: Trivial
>
> java.lang.IncompleteAnnotationException(Class<? extends Annotation> annotationType,String elementName) does not throw 
> NullPointerException if annotationType == null while RI throws. But there is no mention of any exceptions in the specificarion. 
> So this is a compatibility issue.
> The code to reproduce the issue:
> import junit.framework.TestCase;
> import java.lang.annotation.IncompleteAnnotationException;
> public class TestIncompleteAnnotationException extends TestCase {     
>    public void test1 () {  
>        try {  
>            IncompleteAnnotationException obj 
>                = new IncompleteAnnotationException(null, "str");
>            fail("NullPointerException must be thrown");                
>        } catch (NullPointerException e) {
>            //expected
>        }
>     }
> }

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