From dev-return-12958-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Tue Jul 28 15:53:34 2009 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 11548 invoked from network); 28 Jul 2009 15:53:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jul 2009 15:53:20 -0000 Received: (qmail 46457 invoked by uid 500); 28 Jul 2009 15:54:37 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 46412 invoked by uid 500); 28 Jul 2009 15:54:37 -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 46402 invoked by uid 99); 28 Jul 2009 15:54:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2009 15:54:37 +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; Tue, 28 Jul 2009 15:54:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E5C8E234C04B for ; Tue, 28 Jul 2009 08:54:14 -0700 (PDT) Message-ID: <1488631392.1248796454940.JavaMail.jira@brutus> Date: Tue, 28 Jul 2009 08:54:14 -0700 (PDT) From: "Daniel Kulesz (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1199) Mapping maps changes statically declared types during runtime without warning In-Reply-To: <1291919015.1248796454861.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-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulesz updated OPENJPA-1199: ----------------------------------- Attachment: jpatest.zip example code demonstrating the problem > Mapping maps changes statically declared types during runtime without warning > ----------------------------------------------------------------------------- > > Key: OPENJPA-1199 > URL: https://issues.apache.org/jira/browse/OPENJPA-1199 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 1.2.1 > Environment: Ubuntu 9.04 x86_64 / jdk-7-ea-bin-b62-linux-x64-25_jun_2009.bin > Reporter: Daniel Kulesz > Attachments: jpatest.zip > > > When using map mapping in OpenJPA, statically declared types in Sets are changed to types of attributes they refer to in other Entities during runtime without warning. This can lead to (rather unexpected) Class cast exceptions. > The attached (commented) example code demonstrates the problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.