You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Loenko (JIRA)" <ji...@apache.org> on 2006/06/05 16:30:45 UTC
[jira] Closed: (HARMONY-516) [classlib] [beans]
java.beans.PropertyEditorSupport.getAsText() throws unexpected
ClassCastException
[ http://issues.apache.org/jira/browse/HARMONY-516?page=all ]
Mikhail Loenko closed HARMONY-516:
----------------------------------
verified by Svetlana
> [classlib] [beans] java.beans.PropertyEditorSupport.getAsText() throws unexpected ClassCastException
> ----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-516
> URL: http://issues.apache.org/jira/browse/HARMONY-516
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Svetlana Samoilenko
> Assignee: Mikhail Loenko
> Priority: Minor
> Attachments: PropertyEditorSupport.diffs, PropertyEditorSupportTest.txt
>
> ClassCastException occurs on wrong converting (String)value.
> import junit.framework.TestCase;
> import java.beans.*;
> public class test extends TestCase {
> public static void main(String[] args) {
> PropertyEditorSupport support = new PropertyEditorSupport();
> String[] value = null;
> assertEquals("null",support.getAsText());
> value = new String[] {"java.awt.Color.orange"};
> support.setValue(value);
> assertEquals(value.toString(),support.getAsText());
> }
> Output on Harmonyjava.lang.ClassCastException
> at java.beans.PropertyEditorSupport.getAsText()
> at test.main(test.java:11)
--
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