harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2477) [classlib][annotation] java.lang.annotation.IncompleteAnnotationException(null,String ) does not throw NullPointerException (RI compatibility issue)
Date Sun, 24 Dec 2006 18:47:23 GMT
     [ 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

        

Mime
View raw message