You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrey Pavlenko (JIRA)" <ji...@apache.org> on 2006/12/11 15:45:22 UTC
[jira] Commented: (HARMONY-2066) [classlib][awt] RenderingHints
throws unexpected NPE
[ http://issues.apache.org/jira/browse/HARMONY-2066?page=comments#action_12457364 ]
Andrey Pavlenko commented on HARMONY-2066:
------------------------------------------
I think the behavior of Harmony is reasonable here. RenderingHints should not contain invalid key/value pairs. RI does not perform validation of data in the constructor and I think it's a bug.
> [classlib][awt] RenderingHints throws unexpected NPE
> ----------------------------------------------------
>
> Key: HARMONY-2066
> URL: http://issues.apache.org/jira/browse/HARMONY-2066
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
>
> ========= Spec ============
> Nothing about exceptions
> ============ Test ===========
> import java.awt.RenderingHints;
> import javax.swing.text.DefaultEditorKit;
> public class Test {
> public static void main(String args[]) {
> RenderingHints localRenderingHints = new RenderingHints(
> RenderingHints.KEY_ANTIALIASING,
> new DefaultEditorKit());
> System.out.println("passed");
> }
> }
> ========== RI ============
> passed
> ============= Harmony ==========
> Uncaught exception in main:
> java.lang.IllegalArgumentException
> at java.awt.RenderingHints.put(RenderingHints.java:99)
> at java.awt.RenderingHints.<init>(RenderingHints.java:79)
> at Test.main(Test.java:9)
--
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