You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexander Simbirtsev (JIRA)" <ji...@apache.org> on 2006/12/12 12:10:21 UTC
[jira] Created: (HARMONY-2629) [classlib][swing]
javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
[classlib][swing] javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
---------------------------------------------------------------------------------------------
Key: HARMONY-2629
URL: http://issues.apache.org/jira/browse/HARMONY-2629
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Alexander Simbirtsev
getBackground() method on RI returns the same value that was passed to the constructor as a "background" parameter:
BasicArrowButton(int direction,
Color background,
Color shadow,
Color darkShadow,
Color highlight)
Harmony returns a different value.
Use the following code to reproduce:
import java.awt.Color;
import javax.swing.plaf.basic.BasicArrowButton;
import junit.framework.TestCase;
public class Test extends TestCase {
public void testcase1() {
final Color c = Color.red;
BasicArrowButton b = new BasicArrowButton(240, c, c, c, c);
System.out.println("parameter background == " + c);
System.out.println("getBackground()==" + b.getBackground());
assertSame(c, b.getBackground());
}
}
--
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-2629) [classlib][swing]
javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
Posted by "Alexander Simbirtsev (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2629?page=all ]
Alexander Simbirtsev updated HARMONY-2629:
------------------------------------------
Attachment: basicarrowbutton-patch.txt
Here's the proposed fix
> [classlib][swing] javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
> ---------------------------------------------------------------------------------------------
>
> Key: HARMONY-2629
> URL: http://issues.apache.org/jira/browse/HARMONY-2629
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexander Simbirtsev
> Attachments: basicarrowbutton-patch.txt
>
>
> getBackground() method on RI returns the same value that was passed to the constructor as a "background" parameter:
> BasicArrowButton(int direction,
> Color background,
> Color shadow,
> Color darkShadow,
> Color highlight)
> Harmony returns a different value.
> Use the following code to reproduce:
> import java.awt.Color;
> import javax.swing.plaf.basic.BasicArrowButton;
> import junit.framework.TestCase;
> public class Test extends TestCase {
> public void testcase1() {
> final Color c = Color.red;
> BasicArrowButton b = new BasicArrowButton(240, c, c, c, c);
> System.out.println("parameter background == " + c);
> System.out.println("getBackground()==" + b.getBackground());
> assertSame(c, b.getBackground());
> }
> }
--
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] Resolved: (HARMONY-2629) [classlib][swing]
javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hindess resolved HARMONY-2629.
-----------------------------------
Resolution: Fixed
Assignee: Mark Hindess
Applied patches in r495981. Please confirm they have been applied as expected.
> [classlib][swing] javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
> ---------------------------------------------------------------------------------------------
>
> Key: HARMONY-2629
> URL: https://issues.apache.org/jira/browse/HARMONY-2629
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexander Simbirtsev
> Assigned To: Mark Hindess
> Attachments: basicarrowbutton-patch.txt, H2629-BasicArrowButtonTest.patch
>
>
> getBackground() method on RI returns the same value that was passed to the constructor as a "background" parameter:
> BasicArrowButton(int direction,
> Color background,
> Color shadow,
> Color darkShadow,
> Color highlight)
> Harmony returns a different value.
> Use the following code to reproduce:
> import java.awt.Color;
> import javax.swing.plaf.basic.BasicArrowButton;
> import junit.framework.TestCase;
> public class Test extends TestCase {
> public void testcase1() {
> final Color c = Color.red;
> BasicArrowButton b = new BasicArrowButton(240, c, c, c, c);
> System.out.println("parameter background == " + c);
> System.out.println("getBackground()==" + b.getBackground());
> assertSame(c, b.getBackground());
> }
> }
--
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
[jira] Updated: (HARMONY-2629) [classlib][swing]
javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
Posted by "Alexander Simbirtsev (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2629?page=all ]
Alexander Simbirtsev updated HARMONY-2629:
------------------------------------------
Patch Info: [Patch Available]
> [classlib][swing] javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
> ---------------------------------------------------------------------------------------------
>
> Key: HARMONY-2629
> URL: http://issues.apache.org/jira/browse/HARMONY-2629
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexander Simbirtsev
> Attachments: basicarrowbutton-patch.txt
>
>
> getBackground() method on RI returns the same value that was passed to the constructor as a "background" parameter:
> BasicArrowButton(int direction,
> Color background,
> Color shadow,
> Color darkShadow,
> Color highlight)
> Harmony returns a different value.
> Use the following code to reproduce:
> import java.awt.Color;
> import javax.swing.plaf.basic.BasicArrowButton;
> import junit.framework.TestCase;
> public class Test extends TestCase {
> public void testcase1() {
> final Color c = Color.red;
> BasicArrowButton b = new BasicArrowButton(240, c, c, c, c);
> System.out.println("parameter background == " + c);
> System.out.println("getBackground()==" + b.getBackground());
> assertSame(c, b.getBackground());
> }
> }
--
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-2629) [classlib][swing]
javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
Posted by "Alexander Simbirtsev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464696 ]
Alexander Simbirtsev commented on HARMONY-2629:
-----------------------------------------------
fine! thanks Mark
> [classlib][swing] javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
> ---------------------------------------------------------------------------------------------
>
> Key: HARMONY-2629
> URL: https://issues.apache.org/jira/browse/HARMONY-2629
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexander Simbirtsev
> Assigned To: Mark Hindess
> Attachments: basicarrowbutton-patch.txt, H2629-BasicArrowButtonTest.patch
>
>
> getBackground() method on RI returns the same value that was passed to the constructor as a "background" parameter:
> BasicArrowButton(int direction,
> Color background,
> Color shadow,
> Color darkShadow,
> Color highlight)
> Harmony returns a different value.
> Use the following code to reproduce:
> import java.awt.Color;
> import javax.swing.plaf.basic.BasicArrowButton;
> import junit.framework.TestCase;
> public class Test extends TestCase {
> public void testcase1() {
> final Color c = Color.red;
> BasicArrowButton b = new BasicArrowButton(240, c, c, c, c);
> System.out.println("parameter background == " + c);
> System.out.println("getBackground()==" + b.getBackground());
> assertSame(c, b.getBackground());
> }
> }
--
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
[jira] Closed: (HARMONY-2629) [classlib][swing]
javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hindess closed HARMONY-2629.
---------------------------------
Verified. Thanks.
> [classlib][swing] javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
> ---------------------------------------------------------------------------------------------
>
> Key: HARMONY-2629
> URL: https://issues.apache.org/jira/browse/HARMONY-2629
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexander Simbirtsev
> Assigned To: Mark Hindess
> Attachments: basicarrowbutton-patch.txt, H2629-BasicArrowButtonTest.patch
>
>
> getBackground() method on RI returns the same value that was passed to the constructor as a "background" parameter:
> BasicArrowButton(int direction,
> Color background,
> Color shadow,
> Color darkShadow,
> Color highlight)
> Harmony returns a different value.
> Use the following code to reproduce:
> import java.awt.Color;
> import javax.swing.plaf.basic.BasicArrowButton;
> import junit.framework.TestCase;
> public class Test extends TestCase {
> public void testcase1() {
> final Color c = Color.red;
> BasicArrowButton b = new BasicArrowButton(240, c, c, c, c);
> System.out.println("parameter background == " + c);
> System.out.println("getBackground()==" + b.getBackground());
> assertSame(c, b.getBackground());
> }
> }
--
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
[jira] Updated: (HARMONY-2629) [classlib][swing]
javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2629?page=all ]
Dmitry Irlyanov updated HARMONY-2629:
-------------------------------------
Attachment: H2629-BasicArrowButtonTest.patch
Regression test
> [classlib][swing] javax.swing.plaf.basic.BasicArrowButton.getBackground() returns wrong value
> ---------------------------------------------------------------------------------------------
>
> Key: HARMONY-2629
> URL: http://issues.apache.org/jira/browse/HARMONY-2629
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexander Simbirtsev
> Attachments: basicarrowbutton-patch.txt, H2629-BasicArrowButtonTest.patch
>
>
> getBackground() method on RI returns the same value that was passed to the constructor as a "background" parameter:
> BasicArrowButton(int direction,
> Color background,
> Color shadow,
> Color darkShadow,
> Color highlight)
> Harmony returns a different value.
> Use the following code to reproduce:
> import java.awt.Color;
> import javax.swing.plaf.basic.BasicArrowButton;
> import junit.framework.TestCase;
> public class Test extends TestCase {
> public void testcase1() {
> final Color c = Color.red;
> BasicArrowButton b = new BasicArrowButton(240, c, c, c, c);
> System.out.println("parameter background == " + c);
> System.out.println("getBackground()==" + b.getBackground());
> assertSame(c, b.getBackground());
> }
> }
--
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