From dev-return-6501-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Thu Oct 18 01:54:12 2007 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 68587 invoked from network); 18 Oct 2007 01:54:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Oct 2007 01:54:12 -0000 Received: (qmail 76378 invoked by uid 500); 18 Oct 2007 01:53:59 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 76356 invoked by uid 500); 18 Oct 2007 01:53: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 76342 invoked by uid 99); 18 Oct 2007 01:53: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 18:53: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; Thu, 18 Oct 2007 01:54:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1D19471423B for ; Wed, 17 Oct 2007 18:53:51 -0700 (PDT) Message-ID: <486984.1192672431116.JavaMail.jira@brutus> Date: Wed, 17 Oct 2007 18:53:51 -0700 (PDT) From: "Kevin Sutter (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Resolved: (OPENJPA-408) Improve error processing for openjpa.RuntimeUnenhancedClasses property settings In-Reply-To: <12970778.1192650770579.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Sutter resolved OPENJPA-408. ---------------------------------- Resolution: Invalid Fix Version/s: 1.1.0 1.0.1 Invalid Issue -- working as designed. > 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 > Fix For: 1.0.1, 1.1.0 > > > 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.