Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 89289 invoked from network); 14 Mar 2006 02:49:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Mar 2006 02:49:03 -0000 Received: (qmail 29212 invoked by uid 500); 14 Mar 2006 02:49:03 -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 29201 invoked by uid 99); 14 Mar 2006 02:49:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2006 18:49:03 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2006 18:49:02 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 8B50BD49FC for ; Tue, 14 Mar 2006 02:48:41 +0000 (GMT) Message-ID: <20708355.1142304521567.JavaMail.jira@ajax> Date: Tue, 14 Mar 2006 02:48:41 +0000 (GMT) From: "Martin Zaun (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Updated: (JDO-299) Signature test needed checking compliance of implementations with JDO2.0 API In-Reply-To: <1134851442.1139583836028.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JDO-299?page=all ] Martin Zaun updated JDO-299: ---------------------------- Attachment: api20_defs.txt attached is an updated version of the API signature descriptor file. > FetchPlan should verify the values of the static fields. I updated the descriptor file for these constant field values: public interface javax.jdo.FetchPlan: public static final String DEFAULT = "default"; public static final String ALL = "all"; public static final int DETACH_UNLOAD_FIELDS = 2; public static final int DETACH_LOAD_FIELDS = 1; public static final int FETCH_SIZE_GREEDY = -1; public static final int FETCH_SIZE_OPTIMAL = 0; public class javax.jdo.listener.InstanceLifecycleEvent: public static final int CREATE = 0; public static final int LOAD = 1; public static final int STORE = 2; public static final int CLEAR = 3; public static final int DELETE = 4; public static final int DIRTY = 5; public static final int DETACH = 6; public static final int ATTACH = 7; public interface javax.jdo.Query: public static final String JDOQL = "javax.jdo.query.JDOQL"; public static final String SQL = "javax.jdo.query.SQL"; public interface javax.jdo.spi.PersistenceCapable: public static final byte READ_WRITE_OK = 0; public static final byte LOAD_REQUIRED = 1; public static final byte READ_OK = -1; public static final byte CHECK_READ = 1; public static final byte MEDIATE_READ = 2; public static final byte CHECK_WRITE = 4; public static final byte MEDIATE_WRITE = 8; public static final byte SERIALIZABLE = 16; There are 4 public static fields in JDOPermission for which I cannot (easily) add constant definitions (not literals). But perhaps they don't belong into the descriptor file anyway (they're not mentioned in the spec): public final class javax.jdo.spi.JDOPermission: public static final javax.jdo.spi.JDOPermission GET_METADATA; public static final javax.jdo.spi.JDOPermission MANAGE_METADATA; public static final javax.jdo.spi.JDOPermission SET_STATE_MANAGER; public static final javax.jdo.spi.JDOPermission CLOSE_PERSISTENCE_MANAGER_FACTORY; > Do you intend to test the "implements" clause of the interfaces? I'm testing the 'extends' clause for interfaces (they cannot have 'implements', which is also tested). > In general, I think we should not verify protected or private methods. I've removed all protected declarations from the descriptor file. > Reviewed up to but not including InstanceCallbacks. Thx, so far. > Signature test needed checking compliance of implementations with JDO2.0 API > ---------------------------------------------------------------------------- > > Key: JDO-299 > URL: http://issues.apache.org/jira/browse/JDO-299 > Project: JDO > Type: Task > Components: tck20 > Reporter: Martin Zaun > Assignee: Martin Zaun > Priority: Minor > Fix For: JDO 2 final > Attachments: api20_defs.txt > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira