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 ax...@ws.apache.org on 2004/09/14 12:53:37 UTC
[jira] Updated: (AXIS-1554) attempting to use incompatible return type - method getCause()
The following issue has been updated:
Updater: Andrei Iltchenko (mailto:andrei.iltchenko@nl.compuware.com)
Date: Tue, 14 Sep 2004 3:51 AM
Comment:
Please find attached the patch for the problem.
Changes:
Attachment changed to 27372.txt
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/AXIS-1554?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1554
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1554
Summary: attempting to use incompatible return type - method getCause()
Type: Bug
Status: Unassigned
Priority: Blocker
Project: Axis
Components:
WSDL processing
Versions:
current (nightly)
Assignee:
Reporter: Andrei Iltchenko
Created: Tue, 14 Sep 2004 3:49 AM
Updated: Tue, 14 Sep 2004 3:51 AM
Environment: JDK 1.4.X
Description:
WSDL2Java's bean and fault writers are oblivious to the fact that java.lang.Throwable and org.apache.axis.AxisFault, which always serve as base classes for service specific exception classes that it generates, have a certain set of properties. So that when we are dealing with a fault part that refers to a complex type like the one defined below:
<complexType name="MyException">
<sequence>
<element name="cause" type="xsd:string" />
<element name="message" type="xsd:int" />
</sequence>
</complexType>
WSDL2Java gemerates Java code that violates the semantic rules of Java:
MyException.java [36:1] getCause() in
mypackage.myexception cannot override getCause() in
java.rmi.RemoteException; attempting to use incompatible return type
found : java.lang.String
required: java.lang.Throwable
public java.lang.String getCause() {
^
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira