CXF
  1. CXF
  2. CXF-3238

idl2wsdl fails when constant is used to define string lenght

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.3.2, 2.4
    • Component/s: Tooling
    • Labels:
      None

      Description

      if the idl looks like this

      #ifndef INCLUDE_COMMON_IDL
      #define INCLUDE_COMMON_IDL

      module Test

      { const long NAME_LENGTH = 32; typedef string<NAME_LENGTH> Name; }

      ;

      #endif

      simply run the idl2wsdl tool we will see the exception
      Error : org.apache.cxf.tools.common.ToolException: For input string: "NAME_LENGTH"

        Activity

        Show
        Freeman Fang added a comment - commit fix http://svn.apache.org/viewvc?rev=1057488&view=rev for trunk http://svn.apache.org/viewvc?rev=1057492&view=rev for 2.3.x branch
        Hide
        Freeman Fang added a comment -

        not fix the case that in a module

        Show
        Freeman Fang added a comment - not fix the case that in a module
        Hide
        Freeman Fang added a comment -
        Show
        Freeman Fang added a comment - also fix the inner module case http://svn.apache.org/viewvc?rev=1058070&view=rev for trunk http://svn.apache.org/viewvc?rev=1058080&view=rev for 2.3.x branch

          People

          • Assignee:
            Freeman Fang
            Reporter:
            Freeman Fang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development