harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-1629) [classlib][awt]Compatibility: java.awt.image.LookupOp constructor for null LookupTable parameter throws NPE on RI while it doesn't on Harmony.
Date Mon, 18 Dec 2006 14:48:24 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1629?page=all ]

Alexey Petrenko reassigned HARMONY-1629:
----------------------------------------

    Assignee: Alexey Petrenko

> [classlib][awt]Compatibility: java.awt.image.LookupOp constructor for null LookupTable
parameter throws NPE on RI while it doesn't on Harmony.
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1629
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1629
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: Harmony-1629-test.patch, Harmony-1629.patch
>
>
> java.awt.image.LookupOp(LookupTable lookup, RenderingHints hints)  constructor for null
LookupTable parameter throws NPE on RI while it doesn't on Harmony. NPE is unspecified in
the spec, so it's a compatibility issue.
> Test to reproduce:
> ---------test.java-----------
> import java.awt.*;
> import java.awt.image.*;
> public class test{
>     public static void main(String[] args) {
>         RenderingHints localRenderingHints = new RenderingHints(null);
>         try {
>             LookupOp returnValue = new LookupOp(null, localRenderingHints);
>             System.out.println("Fail: NullPointerException expected!");
>         } catch (NullPointerException npe) {
>             System.out.println("Success: " + npe + " was thrown!");
>         }
>     }
> }
> ---------------------------------------
> ====== Output RI ======= 
> Success: java.lang.NullPointerException was thrown!
> ====== Output Harmony ====== 
> Fail: NullPointerException 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