Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 17104 invoked from network); 21 Oct 2005 00:03:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Oct 2005 00:03:50 -0000 Received: (qmail 80254 invoked by uid 500); 21 Oct 2005 00:03:50 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 80243 invoked by uid 99); 21 Oct 2005 00:03:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2005 17:03:50 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.36] (HELO brmea-mail-4.sun.com) (192.18.98.36) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2005 17:03:49 -0700 Received: from fe-amer-10.sun.com ([192.18.108.184]) by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id j9L03SeT028169 for ; Thu, 20 Oct 2005 18:03:28 -0600 (MDT) Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.1 HotFix 0.11 (built Jan 28 2005)) id <0IOO00H01O24CY00@mail-amer.sun.com> (original mail from Craig.Russell@Sun.COM) for jdo-dev@db.apache.org; Thu, 20 Oct 2005 18:03:28 -0600 (MDT) Received: from [192.168.0.10] ([24.6.172.77]) by mail-amer.sun.com (Sun Java System Messaging Server 6.1 HotFix 0.11 (built Jan 28 2005)) with ESMTPSA id <0IOO0067TO5SVLZE@mail-amer.sun.com> for jdo-dev@db.apache.org; Thu, 20 Oct 2005 18:03:28 -0600 (MDT) Date: Thu, 20 Oct 2005 17:03:26 -0700 From: Craig L Russell Subject: Re: Non-serializable object id classes In-reply-to: <1129802549.43576b35f0bff@webmail.jpox.org> Sender: Craig.Russell@Sun.COM To: jdo-dev@db.apache.org Message-id: <0440EBF9-C72E-49D2-B5F1-8AF21D4AD542@sun.com> MIME-version: 1.0 X-Mailer: Apple Mail (2.733) Content-type: text/plain; format=flowed; delsp=yes; charset=US-ASCII Content-transfer-encoding: 7BIT References: <4357670E.8080809@spree.de> <1129802549.43576b35f0bff@webmail.jpox.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, There is no test in the TCK for this condition, as there is no specific behavior required in the specification. As you can see from JPOX, the enhancer might fail or the runtime might fail. So it is a requirement, just not a requirement that can be tested. :-( Craig On Oct 20, 2005, at 3:02 AM, erik@jpox.org wrote: > Michael, > > JPOX raises InvalidPrimaryKeyException if the id class is not > Serializable. Your > class should not get enhanced and the cause is logged (log4j). If > you want, > enable log4j to write to the console. > > Quoting Michael Watzek : > > >> Craig, >> >> I am unsure about chapter "5.4.1 Application (primary key) >> identity" in >> the spec (version 9/9/2005). That chapter requires "... JDO object id >> has all of the characteristics of an RMI remote object, ...". One >> sentence further the spec specifies: >> >> "A5.4.1-3 REMOVE THIS ASSERTION [...]" >> >> Part of that assertion is the requirement on object id classes to be >> serializable. >> >> The TCK does not implement this assertion. Does this mean, that it is >> valid to specify non-serializable object id classes? >> >> Andy, Erik, >> >> if I call the JPOX enhancer for a class (among others) having >> application identity and the object identity class is not >> serializable, >> then the enhancement process silently exits without any (error) >> messages. Also, there is no exit code indicating an error. As a >> consequence, no classes are enhanced. Would it make sense to write a >> warning (or error) message to the console indicating the problem? >> >> Regards, >> Michael >> -- >> ------------------------------------------------------------------- >> Michael Watzek Tech@Spree Engineering GmbH >> mailto:mwa.tech@spree.de Buelowstr. 66 >> Tel.: ++49/30/235 520 36 10783 Berlin - Germany >> Fax.: ++49/30/217 520 12 http://www.spree.de/ >> ------------------------------------------------------------------- >> >> > > > >