cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <>
Subject [jira] Commented: (CXF-3353) can't refer to java.lang.Exception in gererated fault code
Date Tue, 22 Feb 2011 01:50:38 GMT


Freeman Fang commented on CXF-3353:

though in best practice we should use different name for wsdl and wsdl types, also we should
use some more meaningful name for exception but not just "exception", I still think we MAY
need consider this one as a bug which we need address

> can't refer to java.lang.Exception in gererated fault code
> ----------------------------------------------------------
>                 Key: CXF-3353
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>         Attachments: hello_world.wsdl
> if wsdl and wsdl types are using same name namespace, also in the types we define a fault
with name
> <element name="exception">
> then generated code like
> public class ServiceException extends Exception {
> The exception here should be java.lang.Exception,
> but the java compile consider it as inner faulttype org.apache.hello_world_soap_http_provider.Exception
in the
> same package, which cause compilation error.
> We should always use java.lang.Exception in the generated code to avoid such error

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message