You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by "Daniel Weidele (JIRA)" <em...@incubator.apache.org> on 2011/06/16 17:11:47 UTC

[jira] [Created] (EMPIREDB-109) Missing conversion for Type double in ObjectUtils.convert

Missing conversion for Type double in ObjectUtils.convert
---------------------------------------------------------

                 Key: EMPIREDB-109
                 URL: https://issues.apache.org/jira/browse/EMPIREDB-109
             Project: Empire-DB
          Issue Type: Bug
          Components: Core
    Affects Versions: empire-db-2.1.0-incubating
            Reporter: Daniel Weidele
            Priority: Trivial


"org.apache.empire.commons.ObjectUtils.convert(Class, Object)" seems to miss the check "assignableFrom(Double.class)".

I ran into it by querying a simple list of type Double while the Oracle driver returned BigDecimals.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (EMPIREDB-109) Missing conversion for Type double in ObjectUtils.convert

Posted by "Rainer Döbele (JIRA)" <em...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/EMPIREDB-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rainer Döbele resolved EMPIREDB-109.
------------------------------------

       Resolution: Fixed
    Fix Version/s: empire-db-2.2.0-incubating

Thanks for your patch Daniel.
I have applied it and check it in.


> Missing conversion for Type double in ObjectUtils.convert
> ---------------------------------------------------------
>
>                 Key: EMPIREDB-109
>                 URL: https://issues.apache.org/jira/browse/EMPIREDB-109
>             Project: Empire-DB
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: empire-db-2.1.0-incubating
>            Reporter: Daniel Weidele
>            Assignee: Rainer Döbele
>            Priority: Trivial
>             Fix For: empire-db-2.2.0-incubating
>
>         Attachments: ObjectUtils.java.patch
>
>
> "org.apache.empire.commons.ObjectUtils.convert(Class, Object)" seems to miss the check "assignableFrom(Double.class)".
> I ran into it by querying a simple list of type Double while the Oracle driver returned BigDecimals.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (EMPIREDB-109) Missing conversion for Type double in ObjectUtils.convert

Posted by "Daniel Weidele (JIRA)" <em...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/EMPIREDB-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Weidele updated EMPIREDB-109:
------------------------------------

    Attachment: ObjectUtils.java.patch

Attached patch proposal.

> Missing conversion for Type double in ObjectUtils.convert
> ---------------------------------------------------------
>
>                 Key: EMPIREDB-109
>                 URL: https://issues.apache.org/jira/browse/EMPIREDB-109
>             Project: Empire-DB
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: empire-db-2.1.0-incubating
>            Reporter: Daniel Weidele
>            Priority: Trivial
>         Attachments: ObjectUtils.java.patch
>
>
> "org.apache.empire.commons.ObjectUtils.convert(Class, Object)" seems to miss the check "assignableFrom(Double.class)".
> I ran into it by querying a simple list of type Double while the Oracle driver returned BigDecimals.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (EMPIREDB-109) Missing conversion for Type double in ObjectUtils.convert

Posted by "Rainer Döbele (JIRA)" <em...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/EMPIREDB-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rainer Döbele reassigned EMPIREDB-109:
--------------------------------------

    Assignee: Rainer Döbele

> Missing conversion for Type double in ObjectUtils.convert
> ---------------------------------------------------------
>
>                 Key: EMPIREDB-109
>                 URL: https://issues.apache.org/jira/browse/EMPIREDB-109
>             Project: Empire-DB
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: empire-db-2.1.0-incubating
>            Reporter: Daniel Weidele
>            Assignee: Rainer Döbele
>            Priority: Trivial
>         Attachments: ObjectUtils.java.patch
>
>
> "org.apache.empire.commons.ObjectUtils.convert(Class, Object)" seems to miss the check "assignableFrom(Double.class)".
> I ran into it by querying a simple list of type Double while the Oracle driver returned BigDecimals.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira