harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svetlana Samoilenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-516) [classlib] [beans] java.beans.PropertyEditorSupport.getAsText() throws unexpected ClassCastException
Date Sat, 14 Oct 2006 02:10:11 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-516?page=comments#action_12442126 ] 
            
Svetlana Samoilenko commented on HARMONY-516:
---------------------------------------------


   [[ Old comment, sent by email on Tue, 30 May 2006 07:32:50 +0400 ]]

mI[A,
k SOVALENI@ exception oSTALSQ PRI TAKOJ PRAWKE
 public String getAsText() {
      return newValue == null ? "null" : (String)newValue;
  }
pRAWILXNEE BUDET

       return newValue == null ? "null" : newValue.toString();

Regards,
Svetlana


> [classlib] [beans] java.beans.PropertyEditorSupport.getAsText() throws unexpected ClassCastException
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-516
>                 URL: http://issues.apache.org/jira/browse/HARMONY-516
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Svetlana Samoilenko
>         Assigned To: 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

        

Mime
View raw message