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

Sadeep Jayasumana updated AXIS2-4890:
-------------------------------------

    Description: 
When a class implements an interface (or extends a class) which is a 
parameterized type, compiler creates a synthetic method which behaves as a 
bridge method in order to support sub classing. Axis2 detects this bridge 
method as an overloaded method and hence does not properly support service 
classes having parameterized super types. For example, axis2 does not support 
EchoClass below as a service class.

public interface Echo<T> {
    public T echo(T value);
}

public class EchoClass implements Echo<String> {
    public String echo(String value) {
        return value;
    }
}


  was:When a class implements an interface (or extends a class) which is a 
parameterized type, compiler creates a synthetic method which behaves as a 
bridge method in order to support sub classing. Axis2 detects this bridge 
method as an overloaded method and hence does not properly support service 
classes having parameterized super types.

     Issue Type: New Feature  (was: Improvement)

> Support for service classes having a Java 5 parameterized type 
> (class/multiple interfaces) as a super type.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4890
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4890
>             Project: Axis2
>          Issue Type: New Feature
>          Components: adb, kernel
>    Affects Versions: 1.5.3
>            Reporter: Sadeep Jayasumana
>            Assignee: Senaka Fernando
>             Fix For: nightly
>
>         Attachments: patch.txt, patch2.txt
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> When a class implements an interface (or extends a class) which is a 
> parameterized type, compiler creates a synthetic method which behaves as a 
> bridge method in order to support sub classing. Axis2 detects this bridge 
> method as an overloaded method and hence does not properly support service 
> classes having parameterized super types. For example, axis2 does not support 
> EchoClass below as a service class.
> public interface Echo<T> {
>     public T echo(T value);
> }
> public class EchoClass implements Echo<String> {
>     public String echo(String value) {
>         return value;
>     }
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to