Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 59387 invoked from network); 6 Apr 2009 08:58:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Apr 2009 08:58:42 -0000 Received: (qmail 51997 invoked by uid 500); 6 Apr 2009 08:58:41 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 51912 invoked by uid 500); 6 Apr 2009 08:58:41 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 51902 invoked by uid 99); 6 Apr 2009 08:58:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 08:58:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 08:58:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CB2E2234C04B for ; Mon, 6 Apr 2009 01:58:13 -0700 (PDT) Message-ID: <1471398998.1239008293831.JavaMail.jira@brutus> Date: Mon, 6 Apr 2009 01:58:13 -0700 (PDT) From: "Julien Kronegg (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-828) Externalizer fails with ClassCastException with runtime enhancement In-Reply-To: <1653420706.1229390864188.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on 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.