Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-1453

WSDL To Java - Invalid name for generated class if complex type name contains a period.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jbossws-2.0.1
    • None
    • tools-jaxrpc
    • None

      The following compex type: -

      <complexType name='String.Array'>
      <sequence>
      <element maxOccurs='unbounded' minOccurs='0' name='value' nillable='true' type='string'/>
      </sequence>
      </complexType>

      Causes the following class to be generated: -

      package org.jboss.support.phonebook;

      public class String.Array
      {

      protected java.lang.String[] value;
      public String.Array(){}

      public String.Array(java.lang.String[] value){
      this.value=value;
      }
      public java.lang.String[] getValue()

      { return value ;}

      public void setValue(java.lang.String[] value)

      { this.value=value; }

      }

      This class name is invalid and the period needs to be replaced.

              darran.lofthouse@redhat.com Darran Lofthouse
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: