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/08/16 12:13:16 UTC
[jira] Commented: (HARMONY-1199) [classlib][beans] Default Propery
Editor for java.lang.String class throws IllegalArgumentException
[ http://issues.apache.org/jira/browse/HARMONY-1199?page=comments#action_12428360 ]
Mikhail Loenko commented on HARMONY-1199:
-----------------------------------------
Igor, method setAsText added by the patch already presents in the StringEditor class
Am I missing something?
> [classlib][beans] Default Propery Editor for java.lang.String class throws IllegalArgumentException
> ---------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1199
> URL: http://issues.apache.org/jira/browse/HARMONY-1199
> Project: Harmony
> Issue Type: Bug
> Reporter: Igor V. Stolyarov
> Assigned To: Mikhail Loenko
> Priority: Minor
> Attachments: Harmony-1199.patch
>
>
> org.apache.harmony.beans.editors.StringEditor.setAsText(String text) throws IllegalArgumentException, default RI String Property Editor doesn't
> Test-----------------------------------------------------------------------------------------
> import java.beans.*;
> public class PropEditorTest{
> public static void main(String argv[])throws ClassNotFoundException{
> PropertyEditor pe = PropertyEditorManager.findEditor(Class.forName("java.lang.String"));
> System.out.println(pe);
> pe.setAsText("111");
> System.out.println(pe.getValue());
> }
> }
> Output:--------------------------------------------------------------------------------------------------
> JRockit:
> C:\test>%JAVA_HOME%\bin\java -showversion PropEditorTest
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC:
> System optimized over throughput (initial strategy singleparpar))
> sun.beans.editors.StringEditor@1b4998
> 111
> -----------------------------------------------------------------------------------------------------------
> Harmony:
> C:\test>%JAVA_HOME%\bin\java -showversion PropEditorTest
> java version 1.5 (subset)
> (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as app
> licable.
> org.apache.harmony.beans.editors.StringEditor@7620762
> Exception in thread "main" java.lang.IllegalArgumentException: 111
> at java.beans.PropertyEditorSupport.setAsText(PropertyEditorSupport.java
> :72)
> at PropEditorTest.main(PropEditorTest.java:14)
--
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