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] Created: (HARMONY-516) [classlib] [beans] java.beans.PropertyEditorSupport.getAsText() throws unexpected ClassCastException
Date Fri, 26 May 2006 12:14:29 GMT
[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
    Priority: Minor


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