Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3353

can't refer to java.lang.Exception in gererated fault code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.3, 2.4
    • Tooling
    • None

    Description

      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

      Attachments

        1. hello_world.wsdl
          4 kB
          Freeman Yue Fang

        Issue Links

          Activity

            People

              ffang Freeman Yue Fang
              ffang Freeman Yue Fang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: