harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2707) [classlib][swing] javax.swing.plaf.basic.BasicArrowButton.paintTriangle() throws unexpected NPE when incorrect 'direction' parameter is passed in
Date Mon, 15 Jan 2007 13:42:27 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Hindess closed HARMONY-2707.
---------------------------------


Verified.  Thanks.

> [classlib][swing] javax.swing.plaf.basic.BasicArrowButton.paintTriangle() throws unexpected
NPE when incorrect 'direction' parameter is passed in
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2707
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2707
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Assigned To: Mark Hindess
>         Attachments: H2707-BasicArrowButtonTest.patch, Utilities-patch.txt
>
>
> Use the following code to reproduce:
> import java.awt.Graphics2D;
> import java.awt.image.BufferedImage;
> import javax.swing.plaf.basic.BasicArrowButton;
> import junit.framework.TestCase;
> public class Test extends TestCase {
>     private static final int INCORRECT_DIRECTION = 10;
>     public void testcase1() {                                    
>         try {
>             Graphics2D g2D = new BufferedImage(6, 6, BufferedImage.TYPE_INT_RGB).createGraphics();
>             BasicArrowButton ab = new BasicArrowButton(0);
>             ab.paintTriangle(g2D, 0, 0, 0, INCORRECT_DIRECTION, true);
>         } catch (NullPointerException e) {
>             fail("NPE thrown");
>         }
>     }
> }

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

        

Mime
View raw message