Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 72736 invoked from network); 17 Oct 2007 19:53:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2007 19:53:11 -0000 Received: (qmail 5453 invoked by uid 500); 17 Oct 2007 19:52:59 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 5307 invoked by uid 500); 17 Oct 2007 19:52:59 -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 5298 invoked by uid 99); 17 Oct 2007 19:52:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2007 12:52:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2007 19:53:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 922977141FE for ; Wed, 17 Oct 2007 12:52:50 -0700 (PDT) Message-ID: <12970778.1192650770579.JavaMail.jira@brutus> Date: Wed, 17 Oct 2007 12:52:50 -0700 (PDT) From: "Kevin Sutter (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-408) Improve error processing for openjpa.RuntimeUnenhancedClasses property settings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Improve error processing for openjpa.RuntimeUnenhancedClasses property settings ------------------------------------------------------------------------------- Key: OPENJPA-408 URL: https://issues.apache.org/jira/browse/OPENJPA-408 Project: OpenJPA Issue Type: Sub-task Components: kernel Affects Versions: 1.0.0, 1.0.1, 1.1.0 Reporter: Kevin Sutter Assignee: Kevin Sutter >From the parent Issue... o I think the "unsupported" option for the openjpa.RuntimeUnenhancedClasses property is hiding a more meaningful message. For example, if I run with "warn" option, I get the warning message (runtime-optimization-disabled) and a null is returned. In this scenario, the processing continues and then I get this message: org.apache.openjpa.persistence.ArgumentException: Attempt to cast instance "..." to PersistenceCapable failed. Ensure that it has been enhanced. But, if I run with the "unsupported" option, then the only message I get is the (runtime-optimization-disabled) exception. Although it still indicates an error exists, it's not as clear as the "PersistenceCapable" message. Not sure if we should re-think the "warn" vs "unsupported" argument, or maybe just an update to the message text for (runtime-optimization-disabled). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.