You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2009/07/05 11:16:14 UTC

[jira] Assigned: (AXIS2-4416) ADB generates unnecessary anonymous inner classes

     [ https://issues.apache.org/jira/browse/AXIS2-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen reassigned AXIS2-4416:
--------------------------------------

    Assignee: Andreas Veithen

> ADB generates unnecessary anonymous inner classes
> -------------------------------------------------
>
>                 Key: AXIS2-4416
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4416
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>            Priority: Minor
>
> ADB generates the following code inside the getOMElement method:
> org.apache.axiom.om.OMDataSource dataSource = new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME) {
>     public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
>         <bean class name>.this.serialize(MY_QNAME,factory,xmlWriter);
>     }
> };
> Since the "serialize" method is declared by the ADBBean interface, using an anonymous inner class is actually not necessary. ADBBean already has everything it needs (the reference to the bean and MY_QNAME; factory is not needed as explained in AXIS2-4415) to invoke that method directly.

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