You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by xm...@xml.apache.org on 2004/10/20 05:22:54 UTC

[jira] Created: (XMLBEANS-74) Sample code error

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-74

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-74
    Summary: Sample code error
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: XMLBeans
 Components: 
             Samples
   Versions:
             Version 1.0.3

   Assignee: 
   Reporter: Lascar Anderssen

    Created: Tue, 19 Oct 2004 8:22 PM
    Updated: Tue, 19 Oct 2004 8:22 PM
Environment: Windows XP SP2, JDK 1.4.2

Description:
The following file:

xmlbeans-1.0.3\samples\enumeration\SchemaEnum\src\org\apache\xmlbeans\samples\enumeration\SchemaEnum.java

breaks the Samples build due to an error in code on line 116:

 LineItem items = po.getLineItemArray();

the return type of getLineItemArray() is an array, yet items is not defined as such. 

the correct line should be:

LineItem[] items = po.getLineItemArray();

so compilation will be successful


---------------------------------------------------------------------
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Resolved: (XMLBEANS-74) Sample code error

Posted by "Kevin Krouse (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-74?page=history ]
     
Kevin Krouse resolved XMLBEANS-74:
----------------------------------

    Resolution: Fixed

> Sample code error
> -----------------
>
>          Key: XMLBEANS-74
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-74
>      Project: XMLBeans
>         Type: Bug
>   Components: Samples
>     Versions: Version 1.0.3
>  Environment: Windows XP SP2, JDK 1.4.2
>     Reporter: Lascar Anderssen
>     Priority: Minor

>
> The following file:
> xmlbeans-1.0.3\samples\enumeration\SchemaEnum\src\org\apache\xmlbeans\samples\enumeration\SchemaEnum.java
> breaks the Samples build due to an error in code on line 116:
>  LineItem items = po.getLineItemArray();
> the return type of getLineItemArray() is an array, yet items is not defined as such. 
> the correct line should be:
> LineItem[] items = po.getLineItemArray();
> so compilation will be successful

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Closed: (XMLBEANS-74) Sample code error

Posted by "Kevin Krouse (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-74?page=history ]
     
Kevin Krouse closed XMLBEANS-74:
--------------------------------


> Sample code error
> -----------------
>
>          Key: XMLBEANS-74
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-74
>      Project: XMLBeans
>         Type: Bug
>   Components: Samples
>     Versions: Version 1.0.3
>  Environment: Windows XP SP2, JDK 1.4.2
>     Reporter: Lascar Anderssen
>     Priority: Minor

>
> The following file:
> xmlbeans-1.0.3\samples\enumeration\SchemaEnum\src\org\apache\xmlbeans\samples\enumeration\SchemaEnum.java
> breaks the Samples build due to an error in code on line 116:
>  LineItem items = po.getLineItemArray();
> the return type of getLineItemArray() is an array, yet items is not defined as such. 
> the correct line should be:
> LineItem[] items = po.getLineItemArray();
> so compilation will be successful

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org