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/06/30 12:29:47 UTC
[jira] Created: (AXIS2-4416) ADB generates unnecessary anonymous
inner classes
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
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.
[jira] Resolved: (AXIS2-4416) ADB generates unnecessary anonymous
inner classes
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved AXIS2-4416.
------------------------------------
Resolution: Fixed
Fix Version/s: 1.6
> 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
> Fix For: 1.6
>
>
> 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.
[jira] Assigned: (AXIS2-4416) ADB generates unnecessary anonymous
inner classes
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ 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.