[
https://issues.apache.org/jira/browse/CXF-3229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977275#action_12977275
]
Jesse Long commented on CXF-3229:
---------------------------------
Good news. References to unqualified class names in java source code are
resolved by first looking for inner classes, then classes from the same package
and finally classes from java.lang. So, because the fault is xxx.Exception, and
the interface is xxx.MyInterface, the "throws Exception" will refer to
xxx.Exception. :)
> Generated Exception files should extend java.lang.Exception, not Exception
> --------------------------------------------------------------------------
>
> Key: CXF-3229
> URL: https://issues.apache.org/jira/browse/CXF-3229
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS, Tooling
> Affects Versions: 2.3.0, 2.3.1, 2.4
> Environment: All
> Reporter: Jesse Long
> Attachments: cxf-Exception.patch
>
>
> WSDL2Java generates Java source code, for faults, it generates exceptions.
> When the fault name is Exception, the code looks like
> public class Exception extends Exception
> Which is a cyclic inheritance problem. It should be:
> public class Exception extends java.lang.Exception
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.