You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Pinaki Poddar (JIRA)" <ji...@apache.org> on 2008/12/16 02:27:44 UTC

[jira] Created: (OPENJPA-828) Externalizer fails with ClassCastException with runtime enhancement

Externalizer fails with ClassCastException with runtime enhancement
-------------------------------------------------------------------

                 Key: OPENJPA-828
                 URL: https://issues.apache.org/jira/browse/OPENJPA-828
             Project: OpenJPA
          Issue Type: Bug
            Reporter: Pinaki Poddar


Several issues [1] are reported with @Externalizer field failing with ClassCastException. The issue appears only for runtime enhanced classes and not for build time enhancement.

[1] http://n2.nabble.com/%40Externalizer-does-not-work-on-persist--tt209702.html#a209702

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OPENJPA-828) Externalizer fails with ClassCastException with runtime enhancement

Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pinaki Poddar resolved OPENJPA-828.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0
                   2.0.0-M1

> Externalizer fails with ClassCastException with runtime enhancement
> -------------------------------------------------------------------
>
>                 Key: OPENJPA-828
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-828
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Pinaki Poddar
>             Fix For: 2.0.0-M1, 2.0.0
>
>
> Several issues [1] are reported with @Externalizer field failing with ClassCastException. The issue appears only for runtime enhanced classes and not for build time enhancement.
> [1] http://n2.nabble.com/%40Externalizer-does-not-work-on-persist--tt209702.html#a209702

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-828) Externalizer fails with ClassCastException with runtime enhancement

Posted by "Julien Kronegg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696009#action_12696009 ] 

Julien Kronegg commented on OPENJPA-828:
----------------------------------------

Got this issue using Boolean->CHAR Y/N mapping for runtime enhanced classes under OpenJPA 1.2.1:

    @Column(name="flag", nullable=true, length=1)
    @ExternalValues({"true=Y", "false=N"})
    @org.apache.openjpa.persistence.Type(char.class)
    public Boolean getFlag() {
      ..
    }

Applying changes described in the following edits solved the problem:
http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java?view=diff&r1=726926&r2=726927&pathrev=726927

This issue should also be solved in 1.2 and 1.3 branches...

> Externalizer fails with ClassCastException with runtime enhancement
> -------------------------------------------------------------------
>
>                 Key: OPENJPA-828
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-828
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Pinaki Poddar
>             Fix For: 2.0.0-M1, 2.0.0
>
>
> Several issues [1] are reported with @Externalizer field failing with ClassCastException. The issue appears only for runtime enhanced classes and not for build time enhancement.
> [1] http://n2.nabble.com/%40Externalizer-does-not-work-on-persist--tt209702.html#a209702

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-828) Externalizer fails with ClassCastException with runtime enhancement

Posted by "Julien Kronegg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696013#action_12696013 ] 

Julien Kronegg commented on OPENJPA-828:
----------------------------------------

See also this forum thread: http://n2.nabble.com/Convert-boolean-to-String-type-using-ExternalValues-td1659239.html

> Externalizer fails with ClassCastException with runtime enhancement
> -------------------------------------------------------------------
>
>                 Key: OPENJPA-828
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-828
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Pinaki Poddar
>             Fix For: 2.0.0-M1, 2.0.0
>
>
> Several issues [1] are reported with @Externalizer field failing with ClassCastException. The issue appears only for runtime enhanced classes and not for build time enhancement.
> [1] http://n2.nabble.com/%40Externalizer-does-not-work-on-persist--tt209702.html#a209702

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.