Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 77254 invoked from network); 14 Oct 2006 02:11:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Oct 2006 02:11:08 -0000 Received: (qmail 52322 invoked by uid 500); 14 Oct 2006 02:10:58 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 52301 invoked by uid 500); 14 Oct 2006 02:10:58 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 52290 invoked by uid 99); 14 Oct 2006 02:10:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 19:10:58 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 19:10:56 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9AF99714316 for ; Fri, 13 Oct 2006 19:10:11 -0700 (PDT) Message-ID: <23937343.1160791811632.JavaMail.jira@brutus> Date: Fri, 13 Oct 2006 19:10:11 -0700 (PDT) From: "Svetlana Samoilenko (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-516) [classlib] [beans] java.beans.PropertyEditorSupport.getAsText() throws unexpected ClassCastException In-Reply-To: <12799173.1148645669764.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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