You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Dmitry A. Durnev (JIRA)" <ji...@apache.org> on 2006/09/12 17:39:22 UTC
[jira] Created: (HARMONY-1448) [classlib][awt] Paint can be set to
null by Graphics2D.setPaint()
[classlib][awt] Paint can be set to null by Graphics2D.setPaint()
-----------------------------------------------------------------
Key: HARMONY-1448
URL: http://issues.apache.org/jira/browse/HARMONY-1448
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Dmitry A. Durnev
Priority: Minor
Spec says:
--
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
[jira] Updated: (HARMONY-1448) [classlib][awt] Paint can be set to
null by Graphics2D.setPaint()
Posted by "Dmitry A. Durnev (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1448?page=all ]
Dmitry A. Durnev updated HARMONY-1448:
--------------------------------------
Patch Info: [Patch Available]
> [classlib][awt] Paint can be set to null by Graphics2D.setPaint()
> -----------------------------------------------------------------
>
> Key: HARMONY-1448
> URL: http://issues.apache.org/jira/browse/HARMONY-1448
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Dmitry A. Durnev
> Assigned To: Mikhail Loenko
> Priority: Minor
> Attachments: 1448-Graphics2D_tests.patch, HARMONY-1448.diff
>
>
> Spec says:
--
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
[jira] Commented: (HARMONY-1448) [classlib][awt] Paint can be set
to null by Graphics2D.setPaint()
Posted by "Dmitry A. Durnev (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1448?page=comments#action_12434660 ]
Dmitry A. Durnev commented on HARMONY-1448:
-------------------------------------------
Fixed the problem for me both on Windows & Linux.
> [classlib][awt] Paint can be set to null by Graphics2D.setPaint()
> -----------------------------------------------------------------
>
> Key: HARMONY-1448
> URL: http://issues.apache.org/jira/browse/HARMONY-1448
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Dmitry A. Durnev
> Priority: Minor
> Attachments: 1448-Graphics2D_tests.patch, HARMONY-1448.diff
>
>
> Spec says:
--
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
[jira] Assigned: (HARMONY-1448) [classlib][awt] Paint can be set to
null by Graphics2D.setPaint()
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1448?page=all ]
Alexey Petrenko reassigned HARMONY-1448:
----------------------------------------
Assignee: Alexey Petrenko (was: Mikhail Loenko)
> [classlib][awt] Paint can be set to null by Graphics2D.setPaint()
> -----------------------------------------------------------------
>
> Key: HARMONY-1448
> URL: http://issues.apache.org/jira/browse/HARMONY-1448
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Dmitry A. Durnev
> Assigned To: Alexey Petrenko
> Priority: Minor
> Attachments: 1448-Graphics2D_tests.patch, HARMONY-1448.diff
>
>
> Spec says:
--
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
[jira] Commented: (HARMONY-1448) [classlib][awt] Paint can be set
to null by Graphics2D.setPaint()
Posted by "Dmitry A. Durnev (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1448?page=comments#action_12434191 ]
Dmitry A. Durnev commented on HARMONY-1448:
-------------------------------------------
Calling this method with a null Paint object does not have any effect on the current Paint attribute of this Graphics2D.
But on Harmony we can set Paint to null. The following test
------------------------------------------------------------------------
import java.awt.Frame;
import java.awt.Graphics2D;
import java.awt.Paint;
public class PaintTest {
public static void main(String[] args) {
Frame f = new Frame();
f.addNotify();
Graphics2D g2d = (Graphics2D) f.getGraphics();
Paint paint = g2d.getPaint();
System.out.println(paint);
g2d.setPaint(null);
System.out.println(g2d.getPaint());
}
}
---------------------------------------------------------------
prints:
java.awt.Color[r=0,g=0,b=0]
java.awt.Color[r=0,g=0,b=0]
on RI and
java.awt.SystemColor[index=9]
null
on Harmony.
> [classlib][awt] Paint can be set to null by Graphics2D.setPaint()
> -----------------------------------------------------------------
>
> Key: HARMONY-1448
> URL: http://issues.apache.org/jira/browse/HARMONY-1448
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Dmitry A. Durnev
> Priority: Minor
>
> Spec says:
--
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
[jira] Closed: (HARMONY-1448) [classlib][awt] Paint can be set to
null by Graphics2D.setPaint()
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1448?page=all ]
Alexey Petrenko closed HARMONY-1448.
------------------------------------
Resolution: Fixed
Patch has been applied. All the tests are passed.
> [classlib][awt] Paint can be set to null by Graphics2D.setPaint()
> -----------------------------------------------------------------
>
> Key: HARMONY-1448
> URL: http://issues.apache.org/jira/browse/HARMONY-1448
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Dmitry A. Durnev
> Assigned To: Alexey Petrenko
> Priority: Minor
> Attachments: 1448-Graphics2D_tests.patch, HARMONY-1448.diff
>
>
> Spec says:
--
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
[jira] Updated: (HARMONY-1448) [classlib][awt] Paint can be set to
null by Graphics2D.setPaint()
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1448?page=all ]
Alexey Petrenko updated HARMONY-1448:
-------------------------------------
Attachment: HARMONY-1448.diff
Here is a fix for this issue. All setPaint methods are checking for null now.
> [classlib][awt] Paint can be set to null by Graphics2D.setPaint()
> -----------------------------------------------------------------
>
> Key: HARMONY-1448
> URL: http://issues.apache.org/jira/browse/HARMONY-1448
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Dmitry A. Durnev
> Priority: Minor
> Attachments: 1448-Graphics2D_tests.patch, HARMONY-1448.diff
>
>
> Spec says:
--
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
[jira] Assigned: (HARMONY-1448) [classlib][awt] Paint can be set to
null by Graphics2D.setPaint()
Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1448?page=all ]
Mikhail Loenko reassigned HARMONY-1448:
---------------------------------------
Assignee: Mikhail Loenko
> [classlib][awt] Paint can be set to null by Graphics2D.setPaint()
> -----------------------------------------------------------------
>
> Key: HARMONY-1448
> URL: http://issues.apache.org/jira/browse/HARMONY-1448
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Dmitry A. Durnev
> Assigned To: Mikhail Loenko
> Priority: Minor
> Attachments: 1448-Graphics2D_tests.patch, HARMONY-1448.diff
>
>
> Spec says:
--
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
[jira] Commented: (HARMONY-1448) [classlib][awt] Paint can be set
to null by Graphics2D.setPaint()
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1448?page=comments#action_12434635 ]
Alexey Petrenko commented on HARMONY-1448:
------------------------------------------
I'll prepare a patch.
> [classlib][awt] Paint can be set to null by Graphics2D.setPaint()
> -----------------------------------------------------------------
>
> Key: HARMONY-1448
> URL: http://issues.apache.org/jira/browse/HARMONY-1448
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Dmitry A. Durnev
> Priority: Minor
> Attachments: 1448-Graphics2D_tests.patch
>
>
> Spec says:
--
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
[jira] Updated: (HARMONY-1448) [classlib][awt] Paint can be set to
null by Graphics2D.setPaint()
Posted by "Dmitry A. Durnev (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1448?page=all ]
Dmitry A. Durnev updated HARMONY-1448:
--------------------------------------
Attachment: 1448-Graphics2D_tests.patch
Attached patch adds Graphics2D regression tests both for screen & image graphics.
> [classlib][awt] Paint can be set to null by Graphics2D.setPaint()
> -----------------------------------------------------------------
>
> Key: HARMONY-1448
> URL: http://issues.apache.org/jira/browse/HARMONY-1448
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Dmitry A. Durnev
> Priority: Minor
> Attachments: 1448-Graphics2D_tests.patch
>
>
> Spec says:
--
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