Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F371F4A12 for ; Tue, 5 Jul 2011 09:57:51 +0000 (UTC) Received: (qmail 92814 invoked by uid 500); 5 Jul 2011 09:57:51 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 92746 invoked by uid 500); 5 Jul 2011 09:57:51 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 92405 invoked by uid 99); 5 Jul 2011 09:57:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 09:57:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 09:57:45 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 32FC642760 for ; Tue, 5 Jul 2011 09:57:24 +0000 (UTC) Date: Tue, 5 Jul 2011 09:57:24 +0000 (UTC) From: "Andrus Adamchik (JIRA)" To: commits@cayenne.apache.org Message-ID: <204641326.72.1309859844205.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CAY-1412) Failures when defining callbacks for abstract entities 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/CAY-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrus Adamchik updated CAY-1412: --------------------------------- Fix Version/s: (was: 3.0.2) 3.0.3 > Failures when defining callbacks for abstract entities > ------------------------------------------------------ > > Key: CAY-1412 > URL: https://issues.apache.org/jira/browse/CAY-1412 > Project: Cayenne > Issue Type: Bug > Affects Versions: 3.0 > Reporter: Andrus Adamchik > Priority: Minor > Fix For: 3.0.3, 3.1 (final) > > > http://markmail.org/message/urk6a4c2owilyxmw > If a class for an abstract entity is defined as "abstract" (for now manually, see CAY-1411), and a callback method is not defined (it will be generated as abstract in _Entity class), Cayenne would throw something like this: > Exception in thread "main" java.lang.IllegalArgumentException: Class mrg.model.Product has no valid callback method 'xxxxx' > inside CallbackOnEntity. CallbackOnEntity should take into account abstract method definition in a superclass to prevent this from happenning. > For now a simple workaround is to define a noop non-abstract method in the abstract subclass. > -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira