harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pavlenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-341) The method PropertyEditorSupport.getAsText() throws ClassCastException.
Date Tue, 04 Jul 2006 07:31:30 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-341?page=comments#action_12419057 ] 

Andrey Pavlenko commented on HARMONY-341:
-----------------------------------------

Nathan, it looks like the issue is already fixed by M. Loenko. I think you can close the issue.

> The method PropertyEditorSupport.getAsText() throws ClassCastException.
> -----------------------------------------------------------------------
>
>          Key: HARMONY-341
>          URL: http://issues.apache.org/jira/browse/HARMONY-341
>      Project: Harmony
>         Type: Bug

>     Reporter: Andrey Pavlenko
>     Assignee: Nathan Beyer
>  Attachments: PropertyEditorSupport.patch
>
> The method PropertyEditorSupport.getAsText() throws ClassCastException if the source
object is not of Type String.
> Code for reproducing: 
> public class Test {
>     public static void main(String[] args) {
>         PropertyEditor editor = new TestEditor();
>         
>         editor.setValue(new Object());
>         System.out.println(editor.getAsText());
>         System.out.println("PASS");
>     }
>     private static class TestEditor extends PropertyEditorSupport {
>         private TestEditor() {
>             super();
>         }
>     }
> }

-- 
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