Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 91271 invoked from network); 5 Nov 2008 14:10:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Nov 2008 14:10:05 -0000 Received: (qmail 98679 invoked by uid 500); 5 Nov 2008 14:10:11 -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 98668 invoked by uid 99); 5 Nov 2008 14:10:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2008 06:10:11 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2008 14:09:02 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2A3F6234C278 for ; Wed, 5 Nov 2008 06:09:44 -0800 (PST) Message-ID: <1559281054.1225894184158.JavaMail.jira@brutus> Date: Wed, 5 Nov 2008 06:09:44 -0800 (PST) From: "Ilan Kirsh (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Created: (JDO-611) GetObjectIdForPersistentInterface - Implementation Class / PICompany / ICompany Mess MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org GetObjectIdForPersistentInterface - Implementation Class / PICompany / ICompany Mess ------------------------------------------------------------------------------------- Key: JDO-611 URL: https://issues.apache.org/jira/browse/JDO-611 Project: JDO Issue Type: Test Components: tck2 Affects Versions: JDO 2 maintenance release 2 Reporter: Ilan Kirsh I have two issues with this test: (1) IMO, PICompany should be written instead of ICompany: (a) ICompany icompany = (ICompany)pm.newInstance(PICompany.class); instead of: ICompany icompany = (ICompany)pm.newInstance(ICompany.class); and: (b) addTearDownClass(PICompany.class); instead of: addTearDownClass(ICompany.class); ICompany is not persistence capable, so the implementation does not have to handle it. (2) I think that the following check is wrong: if (icompanyOidClass != icompany.getClass()) icompany.getClass() => the physical internal implementation class icompanyOidClass => the logical interface (PICompany) Actually and exception should be thrown if (icompanyOidClass == icompany.getClass()) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.