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:30:58 UTC

[jira] Created: (HARMONY-341) The method PropertyEditorSupport.getAsText() throws ClassCastException.

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


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


[jira] Updated: (HARMONY-341) The method PropertyEditorSupport.getAsText() throws ClassCastException.

Posted by "Andrey Pavlenko (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Commented: (HARMONY-341) The method PropertyEditorSupport.getAsText() throws ClassCastException.

Posted by "Andrey Pavlenko (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Resolved: (HARMONY-341) The method PropertyEditorSupport.getAsText() throws ClassCastException.

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-341?page=all ]
     
Nathan Beyer resolved HARMONY-341:
----------------------------------

    Resolution: Fixed

Fixed by another commit.

> 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


[jira] Closed: (HARMONY-341) The method PropertyEditorSupport.getAsText() throws ClassCastException.

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-341?page=all ]
     
Nathan Beyer closed HARMONY-341:
--------------------------------


> 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


[jira] Commented: (HARMONY-341) The method PropertyEditorSupport.getAsText() throws ClassCastException.

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-341?page=comments#action_12419015 ] 

Nathan Beyer commented on HARMONY-341:
--------------------------------------

Can you take a look at the latest code in SVN? I think this was resolved by someone else already? Please let me know if I can close this issue. Thanks.

> 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


[jira] Assigned: (HARMONY-341) The method PropertyEditorSupport.getAsText() throws ClassCastException.

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-341?page=all ]

Nathan Beyer reassigned HARMONY-341:
------------------------------------

    Assign To: Nathan Beyer

> 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