Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 80789 invoked from network); 25 Jun 2010 15:11:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Jun 2010 15:11:12 -0000 Received: (qmail 69680 invoked by uid 500); 25 Jun 2010 15:11:12 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 69629 invoked by uid 500); 25 Jun 2010 15:11:11 -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 69621 invoked by uid 99); 25 Jun 2010 15:11:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 15:11:10 +0000 X-ASF-Spam-Status: No, hits=-1545.1 required=10.0 tests=ALL_TRUSTED,AWL 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; Fri, 25 Jun 2010 15:11:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5PFAnmQ019493 for ; Fri, 25 Jun 2010 15:10:49 GMT Message-ID: <4899443.59761277478649301.JavaMail.jira@thor> Date: Fri, 25 Jun 2010 11:10:49 -0400 (EDT) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-1707) A warning message should be logged when a down level enhanced Entity is encountered. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 A warning message should be logged when a down level enhanced Entity is encountered. ------------------------------------------------------------------------------------ Key: OPENJPA-1707 URL: https://issues.apache.org/jira/browse/OPENJPA-1707 Project: OpenJPA Issue Type: Improvement Components: kernel Affects Versions: 2.0.0 Reporter: Rick Curtis Assignee: Rick Curtis Currently when PCEnhancer is called to enhance an Entity that was previous enhanced it will simply noop and move on. It could be smarter and use the PersistenceCapable.pcGetEnhancementContractVersion to detect and when an Entity has been enhanced with an older version of the enhancer and log a warning message. A similar change would also need to be made to PCClassFileTransformer.needsEnhance to perform the same sort of logic at runtime. This would be particularly helpful in the case where an application was compiled/enhanced/packaged and a bug was fixed in the enhancer but the pre-packaged app still has the bad bytecode. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.