Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 27260 invoked from network); 19 Apr 2010 21:11:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Apr 2010 21:11:14 -0000 Received: (qmail 63258 invoked by uid 500); 19 Apr 2010 21:11:14 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 63093 invoked by uid 500); 19 Apr 2010 21:11:13 -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 63085 invoked by uid 99); 19 Apr 2010 21:11:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 21:11:13 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 21:11:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3JLAn5l004982 for ; Mon, 19 Apr 2010 17:10:49 -0400 (EDT) Message-ID: <18107224.20901271711449266.JavaMail.jira@thor> Date: Mon, 19 Apr 2010 17:10:49 -0400 (EDT) From: "Jeremy Bauer (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Assigned: (OPENJPA-1613) Exception thrown when enhancing a (property access) class that has an abstract @MappedSuperclass with no annotated properties In-Reply-To: <1877038334.30121270596513997.JavaMail.jira@brutus.apache.org> 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-1613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Bauer reassigned OPENJPA-1613: ------------------------------------- Assignee: Jeremy Bauer > Exception thrown when enhancing a (property access) class that has an abstract @MappedSuperclass with no annotated properties > ----------------------------------------------------------------------------------------------------------------------------- > > Key: OPENJPA-1613 > URL: https://issues.apache.org/jira/browse/OPENJPA-1613 > Project: OpenJPA > Issue Type: Bug > Components: kernel > Affects Versions: 2.0.0-beta2, 2.0.0-beta3 > Reporter: Simon Droscher > Assignee: Jeremy Bauer > Fix For: 2.0.1 > > Attachments: abstract-subclass.patch, OPENJPA-1613-failing-code-changes.diff, OPENJPA-1613-tests.diff > > > If you have a class (using property access) that has an abstract @MappedSuperclass that happens to have no annotated methods, you get the following exception when enhancing: > org.apache.openjpa.util.MetaDataException: "implicit property access" for class "org.apache.openjpa.persistence.simple.SubclassPerson" is not consistent with "implicit field access" used by its persistent superclass "org.apache.openjpa.persistence.simple.AbstractSuperclass". All persistent classes in an inheritance hierarchy must use a single implicit field or property based access style or explicitly declare an access style. > Presumably the enhancer is deciding incorrectly that the superclass is using field access. A workaround is to annotate the superclass with @Access(AccessType.PROPERTY) so the enhancer doesn't make this assumption, but that is not JPA 1.0 backwards compatible. > This did not occur in any of the OpenJPA 1.* versions -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.