axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Created: (AXIS-1587) WSDL2Java doesn't identify nillable- attributes
Date Tue, 05 Oct 2004 05:40:32 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1587

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1587
    Summary: WSDL2Java doesn't identify nillable- attributes
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             current (nightly)

   Assignee: 
   Reporter: Sami Lakka

    Created: Mon, 4 Oct 2004 10:39 PM
    Updated: Mon, 4 Oct 2004 10:39 PM
Environment: Axis-1.2-RC1 and all Axis-1.2 releases

Description:
WSDL2Java should not bind elements that have nillable- attribute as an primitive value (int
etc.) This bug can be fixed by adding
following lines have into JavaBeanWriter (method preprocess, line 318):

  
if (attr.getOptional() || attr.getNillable()) 
   typeName = Utils.getWrapperType(typeName); 

 
The following line have to be added to SchemaUtils (method addAttributeToVector, line 1579):

attr.setNillable(JavaUtils.isTrueExplicitly(Utils.getAttribute (child,"nillable")));

Following methods have to be added to ContainedAttribute (or more likely refactored to the
ContainedEntry). The boolean attribute nillable has also to be added to ContainedAttribute
 

    public void setNillable(boolean nillable) { 
        this.nillable = nillable; 
    } 

    public boolean getNillable() { 
        return nillable; 
    } 


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message