[ 
https://issues.apache.org/jira/browse/JDO-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510436
 ] 

Craig Russell commented on JDO-507:
-----------------------------------

The issue is the CompanyFactory interface that defines the methods in terms of 
the company interfaces.
    IAddress newAddress(long addrid, String street, String city, 
            String state, String zipcode, String country);
And then the implementation does this:
    public IAddress newAddress() {
        return (IAddress)pm.newInstance(addressClass);
    }
Looking at the requirements for the xml bean factory, it might be possible to 
remove the interfaces from the factory and just use Object as the return type. 
The requirements for the xml bean factory is for a constructor method and 
setter methods without any requirements on the return types at all. This would 
be similar to what we did with the convenience methods that return Object 
instead of Address or IAddress.

>  Completeness test for persistent interface fails with annotations
> ------------------------------------------------------------------
>
>                 Key: JDO-507
>                 URL: https://issues.apache.org/jira/browse/JDO-507
>             Project: JDO
>          Issue Type: Task
>          Components: tck2
>    Affects Versions: JDO 2 maintenance release 1
>            Reporter: Michelle Caisse
>
> Annotations on persistent interfaces have not yet been implemented by jpox. I 
> have added the test to configurations.list, so it gets run on any complete 
> test run, but I have not yet added the classes to the list of jdo metadata 
> files in project.properties because that causes enhancement to fail. 
> Therefore, the test currently gives the following error: 
>     [java] Class org.apache.jdo.tck.pc.companyAnnotatedDS.PICompany has field 
> org.apache.jdo.tck.pc.companyAnnotatedDS.PICompany.address declared in 
> MetaData, but this field doesnt exist in the class!
>     [java] org.jpox.metadata.InvalidMetaDataException: Class 
> org.apache.jdo.tck.pc.companyAnnotatedDS.PICompany has field 
> org.apache.jdo.tck.pc.companyAnnotatedDS.PICompany.address declared in 
> MetaData, but this field doesnt exist in the cl
> ass!
> ...
> When the feature is implemented, project.properties must be edited to include 
> PI*.class in the list for enhancement.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to