[ https://issues.apache.org/jira/browse/XMLBEANS-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wing Yew Poon reassigned XMLBEANS-326: -------------------------------------- Assignee: Radu Preotiuc-Pietro > Method naming when an extension method is defined, which returns a generated > type > --------------------------------------------------------------------------------- > > Key: XMLBEANS-326 > URL: https://issues.apache.org/jira/browse/XMLBEANS-326 > Project: XMLBeans > Issue Type: Bug > Components: Tools > Affects Versions: Version 2.2 > Environment: Linux, jdk1.6.0, xmlbeans-2.2.0 > Reporter: Joakim Recht > Assignee: Radu Preotiuc-Pietro > > When an extension method returns a type, which itself is a generated type, > the methods in the original interface are renamed to *2, like this: > KeyedReference addNewKeyedReference2(); > instead of > KeyedReference addNewKeyedReference(); > I have an extension interface with a method like this: > KeyedReference getKeyedReference(String name); > In a handler class, the corresponding static method is implemented. In > xsdconfig, I have this: > <xb:extension for="dk.itst.uddi.client.types.core.CategoryBag"> > <xb:interface name="dk.itst.uddi.client.extension.CategoryBagExtension"> > > <xb:staticHandler>dk.itst.uddi.client.extension.CategoryBagHandler</xb:staticHandler> > </xb:interface> > </xb:extension> > I have two xsdconfig files: One for namespace mapping and one for extensions. > The build goes like this: > - Run xmlbeans with only namespace mapping file > - Compile the extension classes and the generated xmlbeans > - Delete generated beans (only source files) > - Generate xmlbeans with both xsdconfig files > - Compile everything > Without the extension, the extended interface has a method KeyedReference > addNewKeyedReference(), but after the extension is enabled, the same method > is called KeyedReference addNewKeyedReference2(). The extension method works > alright. > The problem only occurs when the return type is a generated type. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org For additional commands, e-mail: dev-h...@xmlbeans.apache.org