You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2011/02/22 02:40:38 UTC
[jira] Created: (CXF-3353) can't refer to java.lang.Exception in
gererated fault code
can't refer to java.lang.Exception in gererated fault code
----------------------------------------------------------
Key: CXF-3353
URL: https://issues.apache.org/jira/browse/CXF-3353
Project: CXF
Issue Type: Bug
Components: Tooling
Reporter: Freeman Fang
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: http://www.atlassian.com/software/jira
[jira] Commented: (CXF-3353) can't refer to java.lang.Exception in
gererated fault code
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997623#comment-12997623 ]
Freeman Fang commented on CXF-3353:
-----------------------------------
attach a wsdl to expose this issue
> can't refer to java.lang.Exception in gererated fault code
> ----------------------------------------------------------
>
> Key: CXF-3353
> URL: https://issues.apache.org/jira/browse/CXF-3353
> 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: http://www.atlassian.com/software/jira
[jira] Resolved: (CXF-3353) can't refer to java.lang.Exception in
gererated fault code
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved CXF-3353.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.3.3
2.4
commit fix
http://svn.apache.org/viewvc?rev=1073302&view=rev for trunk
http://svn.apache.org/viewvc?rev=1073334&view=rev for 2.3.x branch
> can't refer to java.lang.Exception in gererated fault code
> ----------------------------------------------------------
>
> Key: CXF-3353
> URL: https://issues.apache.org/jira/browse/CXF-3353
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 2.4, 2.3.3
>
> 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: http://www.atlassian.com/software/jira
[jira] Assigned: (CXF-3353) can't refer to java.lang.Exception in
gererated fault code
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang reassigned CXF-3353:
---------------------------------
Assignee: Freeman Fang
> can't refer to java.lang.Exception in gererated fault code
> ----------------------------------------------------------
>
> Key: CXF-3353
> URL: https://issues.apache.org/jira/browse/CXF-3353
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Reporter: Freeman Fang
> Assignee: Freeman Fang
>
> 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: http://www.atlassian.com/software/jira
[jira] Commented: (CXF-3353) can't refer to java.lang.Exception in
gererated fault code
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997624#comment-12997624 ]
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: https://issues.apache.org/jira/browse/CXF-3353
> 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: http://www.atlassian.com/software/jira
[jira] Updated: (CXF-3353) can't refer to java.lang.Exception in
gererated fault code
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang updated CXF-3353:
------------------------------
Attachment: hello_world.wsdl
> can't refer to java.lang.Exception in gererated fault code
> ----------------------------------------------------------
>
> Key: CXF-3353
> URL: https://issues.apache.org/jira/browse/CXF-3353
> 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: http://www.atlassian.com/software/jira