[ 
http://issues.apache.org/jira/browse/AXIS-2026?page=comments#action_12312976 ] 

Davanum Srinivas commented on AXIS-2026:
----------------------------------------

Hans,

Can i persuade you to run "ant clean all-tests" from ws-axis/java directory? 
there are more failures with latest patch.

thanks,
dims

     [java]   [foreach] 
/home/dims/ws-axis/java/build/work/test/wsdl/roundtrip/RoundtripTestServiceTestCase.java:226:
 setShortArray(java.lang.Short[]) in test.wsdl.roundtrip.BondInvestment cannot 
be applied to (short[])
     [java]   [foreach]         sendValue.setShortArray(shortArray);
     [java]   [foreach]                  ^
     [java]   [foreach] 
/home/dims/ws-axis/java/build/work/test/wsdl/roundtrip/RoundtripTestServiceTestCase.java:284:
 cannot resolve symbol
     [java]   [foreach] symbol  : method assertEquals 
(java.lang.String,short,java.lang.Short)
     [java]   [foreach] location: class 
test.wsdl.roundtrip.RoundtripTestServiceTestCase
     [java]   [foreach]         assertEquals("The expected and actual values 
did not match.",
     [java]   [foreach]         ^
     [java]   [foreach] 
/home/dims/ws-axis/java/build/work/test/wsdl/roundtrip/RoundtripTestServiceTestCase.java:376:
 cannot resolve symbol
     [java]   [foreach] symbol  : method assertEquals 
(java.lang.String,short,java.lang.Short)
     [java]   [foreach] location: class 
test.wsdl.roundtrip.RoundtripTestServiceTestCase
     [java]   [foreach]         assertEquals("The expected and actual values 
did not match.",
     [java]   [foreach]         ^
     [java]   [foreach] 
/home/dims/ws-axis/java/build/work/test/wsdl/roundtrip/RoundtripTestServiceTestCase.java:459:
 setShortArray(java.lang.Short[]) in test.wsdl.roundtrip.BondInvestment cannot 
be applied to (short[])
     [java]   [foreach]         sendValue.setShortArray(shortArray);
     [java]   [foreach]                  ^
     [java]   [foreach] 
/home/dims/ws-axis/java/build/work/test/wsdl/roundtrip/RoundtripTestServiceTestCase.java:513:
 setShortArray(java.lang.Short[]) in test.wsdl.roundtrip.BondInvestment cannot 
be applied to (short[])
     [java]   [foreach]         sendValue.setShortArray(shortArray);
     [java]   [foreach]                  ^
     [java]   [foreach] 
/home/dims/ws-axis/java/build/work/test/wsdl/roundtrip/RoundtripTestSoapBindingImpl.java:110:
 setShortArray(java.lang.Short[]) in test.wsdl.roundtrip.BondInvestment cannot 
be applied to (short[])
     [java]   [foreach]         sendValue.setShortArray(shortArray);
     [java]   [foreach]                  ^
     [java]   [foreach] 
/home/dims/ws-axis/java/build/work/test/wsdl/roundtrip/RoundtripTestSoapBindingImpl.java:163:
 operator == cannot be applied to java.lang.Short,short
     [java]   [foreach]             (in0.getShortArray()[0] == (short) 30) &&
     [java]   [foreach]                                     ^
     [java]   [foreach] 
/home/dims/ws-axis/java/build/work/test/wsdl/roundtrip/RoundtripTestSoapBindingImpl.java:218:
 setShortArray(java.lang.Short[]) in test.wsdl.roundtrip.BondInvestment cannot 
be applied to (short[])
     [java]   [foreach]         sendValue.setShortArray(shortArray);
     [java]   [foreach]                  ^
     [java]   [foreach] 
/home/dims/ws-axis/java/build/work/test/wsdl/roundtrip/RoundtripTestSoapBindingImpl.java:270:
 operator == cannot be applied to java.lang.Short,short
     [java]   [foreach]               (in0.getShortArray()[0] == (short) 30) &&
     [java]   [foreach]                                       ^
     [java]   [foreach] 9 errors

     [java] BUILD FAILED


> wsdl2java does not generate array of wrappers for soapenc array nillable 
> elements
> ---------------------------------------------------------------------------------
>
>          Key: AXIS-2026
>          URL: http://issues.apache.org/jira/browse/AXIS-2026
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: JDK 1.4.2_06, Linux
>     Reporter: Hans
>     Assignee: Davanum Srinivas
>  Attachments: diff.zip, patch.txt, testcase_diff.zip
>
> For the following structure
> <xsd:complexType name="StructureType">
>     <xsd:all>
>         <xsd:element name="fld" type="s0:intarr" minOccurs="0"/>
>     </xsd:all>
> </xsd:complexType>
> <xsd:complexType name="intarr">
>     <xsd:complexContent>
>         <xsd:restriction base="soapenc:Array">
>             <xsd:sequence>
>                 <xsd:element name="element" type="s:int"
>                     nillable="true" minOccurs="0" maxOccurs="unbounded"/>
>             </xsd:sequence>
>         </xsd:restriction>
>     </xsd:complexContent>
> </xsd:complexType>
> wsdl2java from Axis 1.1 generates a Java Class like:
> class StructureType implements Serializable {
>     private Integer[] fld;
> ...
> But with Axis 1.2 the following is generated:
> class StructureType implements Serializable {
>     private int[] fld;
> ... 
> This is incorrect - type should be Integer[].
> I will have a go at creating a fix for this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to