harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elena Sayapina (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4271) [classlib][swing] DefaultCaret.paint(Graphics g) throws NullPointerException if set caret visible
Date Fri, 22 Jun 2007 11:46:27 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507213
] 

Elena Sayapina commented on HARMONY-4271:
-----------------------------------------

Test case testPaint of functional (https://issues.apache.org/jira/browse/HARMONY-3528) test
org.apache.harmony.test.func.api.javax.swing.text.DefaultCaret/DefaultCaretTest fails bacause
of this bug. 

> [classlib][swing] DefaultCaret.paint(Graphics g) throws NullPointerException if set caret
visible
> -------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4271
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4271
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Elena Sayapina
>            Priority: Minor
>
> DefaultCaret.paint(Graphics g) throws NullPointerException if set caret visible.
> Harmony throws NullPointerException on the following test while RI does not:
> (Also note that if remove dc.setVisible(true); or change it to dc.setVisible(false);
the test passes)
> import javax.swing.text.DefaultCaret;
> public class caretPaintTest {
> 	public static void main(String[] args) {
> 		DefaultCaret dc = new DefaultCaret();
> 		dc.setVisible(true);
> 		dc.paint(null);
> 		System.out.println("TEST PASSED");
> 	}
> }
> Output on Harmony-r549703:
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or
its licensors,
> as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r549703, (Jun 22 2007), Windows/ia32/msvc 1310, release build
> http://harmony.apache.org
> Uncaught exception in main:
> java.lang.NullPointerException
>         at javax.swing.text.DefaultCaret.paint(DefaultCaret.java:874)
>         at caretPaintTest.main(caretPaintTest.java:8)
> Output on RI:
> java version "1.5.0_11"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)
> TEST PASSED

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


Mime
View raw message