Return-Path: X-Original-To: apmail-cayenne-dev-archive@www.apache.org Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 03D72799A for ; Tue, 4 Oct 2011 09:58:19 +0000 (UTC) Received: (qmail 45697 invoked by uid 500); 4 Oct 2011 09:58:18 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 45677 invoked by uid 500); 4 Oct 2011 09:58:18 -0000 Mailing-List: contact dev-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 dev@cayenne.apache.org Received: (qmail 45669 invoked by uid 99); 4 Oct 2011 09:58:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 09:58:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 04 Oct 2011 09:58:11 +0000 Received: (qmail 8616 invoked from network); 4 Oct 2011 09:57:50 -0000 Received: from unknown (HELO ?192.168.1.95?) (194.158.197.10) by vorsha.objectstyle.org with SMTP; 4 Oct 2011 09:57:50 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Cayenne-generated classes need @SuppressWarnings("serial") From: Andrus Adamchik In-Reply-To: Date: Tue, 4 Oct 2011 12:57:49 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <6C2F9C1A-E3F4-4F9B-BC3B-31518F1C3C48@objectstyle.org> References: <4E8916C1.4080407@apache.org><70E83A33-BF26-44BE-BEB5-A28607DF4F6F@objectstyle.org> To: user@cayenne.apache.org, dev@cayenne.apache.org X-Mailer: Apple Mail (2.1084) On Oct 4, 2011, at 12:48 PM, Durchholz, Joachim wrote: > In that case, it may help to declare the generated classes abstract. = Abstract classes cannot be deserialized, so the compiler should not = complain. Oh and BTW, generated classes are abstract (at least in 3.1), and the = compiler still complains - separately about superclass and subclass. So = there's more work to do for us to figure out how to handle this = correctly. Andrus