You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrey Pavlenko (JIRA)" <ji...@apache.org> on 2006/04/13 11:33:01 UTC
[jira] Updated: (HARMONY-341) The method
PropertyEditorSupport.getAsText() throws ClassCastException.
[ http://issues.apache.org/jira/browse/HARMONY-341?page=all ]
Andrey Pavlenko updated HARMONY-341:
------------------------------------
Attachment: PropertyEditorSupport.patch
The attached patch fixes the problem.
> 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
> 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