Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 18309 invoked from network); 5 Aug 2007 16:17:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2007 16:17:52 -0000 Received: (qmail 12235 invoked by uid 500); 5 Aug 2007 16:17:52 -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 12224 invoked by uid 99); 5 Aug 2007 16:17:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2007 09:17:52 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2007 16:17:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 765597141ED for ; Sun, 5 Aug 2007 09:17:29 -0700 (PDT) Message-ID: <31711060.1186330649473.JavaMail.jira@brutus> Date: Sun, 5 Aug 2007 09:17:29 -0700 (PDT) From: "Andy Jefferson (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Resolved: (JDO-509) Enhancement failure on persistent interface that extends non-persistent interface In-Reply-To: <30206027.1184202032636.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JDO-509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andy Jefferson resolved JDO-509. -------------------------------- Resolution: Fixed Think this issue is now resolved. All PI tests pass for me > Enhancement failure on persistent interface that extends non-persistent interface > --------------------------------------------------------------------------------- > > Key: JDO-509 > URL: https://issues.apache.org/jira/browse/JDO-509 > Project: JDO > Issue Type: Bug > Components: tck2 > Reporter: Michelle Caisse > Assignee: Michelle Caisse > Fix For: JDO 2 maintenance release 1 > > Attachments: company_ds_jdo.patch > > > Imagine that the existing interface company.ICompany is not persistent and there is a new interface company.PICompany that extends ICompany. Existing xml metadata is modified to refer to PICompany rather than ICompany. On enhancement, we get the error below. Craig suggests that using the reflective "getDeclaredMethod" instead of the reflective "getMethod" could give this error. These are changes that we would like to check in for the 2.1 maintenance release. > [java] An error was encountered reading the specified input files. Please consult the log for details. The following may help : Class org.apache.jdo.tck.pc. > company.IPCompany has property null.companyid declared in MetaData, but this method doesnt exist in the class! > [java] Exception in thread "main" Class org.apache.jdo.tck.pc.company.IPCompany has property null.companyid declared in MetaData, but this method doesnt exist in the class! > [java] org.jpox.metadata.InvalidMetaDataException: Class org.apache.jdo.tck.pc.company.IPCompany has property null.companyid declared in MetaData, but this method doesnt exist in the class! > [java] at org.jpox.metadata.InterfaceMetaData.populatePropertyMetaData(InterfaceMetaData.java:538) > [java] at org.jpox.metadata.InterfaceMetaData.populate(InterfaceMetaData.java:436) > [java] at org.jpox.metadata.MetaDataManager.populateFileMetaData(MetaDataManager.java:1590) > [java] at org.jpox.metadata.JDOMetaDataManager.loadMetaDataForClass(JDOMetaDataManager.java:615) > [java] at org.jpox.metadata.JDOMetaDataManager.getMetaDataForClassInternal(JDOMetaDataManager.java:308) > [java] at org.jpox.metadata.AbstractClassMetaData.determineSuperClassName(AbstractClassMetaData.java:618) > [java] at org.jpox.metadata.InterfaceMetaData.populate(InterfaceMetaData.java:421) > [java] at org.jpox.metadata.MetaDataManager.populateFileMetaData(MetaDataManager.java:1590) > [java] at org.jpox.metadata.MetaDataManager.initialise(MetaDataManager.java:313) > [java] at org.jpox.enhancer.JPOXEnhancer.getFileMetaDataForInput(JPOXEnhancer.java:716) > [java] at org.jpox.enhancer.JPOXEnhancer.main(JPOXEnhancer.java:531) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.