You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "David T. Adcox (JIRA)" <tu...@ws.apache.org> on 2007/03/20 21:11:32 UTC

[jira] Created: (TUSCANY-1186) Sequenced type of DataObject returns 'null' from getSequence() method, it should return empty Sequence object

Sequenced type of  DataObject returns 'null' from getSequence() method, it should return empty Sequence object
--------------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-1186
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1186
             Project: Tuscany
          Issue Type: Bug
          Components: Java SDO Implementation
    Affects Versions: Java-SDO-M3
         Environment: n/a
            Reporter: David T. Adcox
             Fix For: Java-SDO-M3


The SDO for Java 2.1 spec states this about the getSequence() behavior in section 3.1.1:

3. Sequenced. A DataObject is similar to a JavaBean plus it has order within and
across Properties. In XML this is equivalent to a DOM. When using XML, a
Sequence (see Sequence) represents the order of all the XML elements in the
DataObject. Values are available through get(property) but order across Properties
is maintained through the Sequence interface. getSequence() returns a Sequence
of the XML elements for the case of XML. XML Attributes do not have the
concept of order and are accessed through get(property).

Currently, the code is returning a null, rather than an empty Sequence object.  I'll attach a sample application to demonstrate the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TUSCANY-1186) Sequenced type of DataObject returns 'null' from getSequence() method, it should return empty Sequence object

Posted by "David T. Adcox (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482515 ] 

David T. Adcox commented on TUSCANY-1186:
-----------------------------------------

I need to amend the comments for this issue.  It is only for Statically defined types that this problem occurs.  Dynamically defined types appear to work correctly.

> Sequenced type of  DataObject returns 'null' from getSequence() method, it should return empty Sequence object
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1186
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1186
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-M3
>         Environment: n/a
>            Reporter: David T. Adcox
>             Fix For: Java-SDO-M3
>
>
> The SDO for Java 2.1 spec states this about the getSequence() behavior in section 3.1.1:
> 3. Sequenced. A DataObject is similar to a JavaBean plus it has order within and
> across Properties. In XML this is equivalent to a DOM. When using XML, a
> Sequence (see Sequence) represents the order of all the XML elements in the
> DataObject. Values are available through get(property) but order across Properties
> is maintained through the Sequence interface. getSequence() returns a Sequence
> of the XML elements for the case of XML. XML Attributes do not have the
> concept of order and are accessed through get(property).
> Currently, the code is returning a null, rather than an empty Sequence object.  I'll attach a sample application to demonstrate the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TUSCANY-1186) Sequenced type of DataObject returns 'null' from getSequence() method, it should return empty Sequence object

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482530 ] 

Frank Budinsky commented on TUSCANY-1186:
-----------------------------------------

David, your example looks kind of nutty.

1) mixed="true" and sdo:sequenced="true" are redundant.
2) you can't have mixed="true" in a type that extends a base type (e.g., in type "Sequenced") - that's invalid XSD.

Does the example need to be so complicated? What does class APITest have to do with the problem? What exactly isn't working? Is isSequenced() returning true for the generated class "Sequenced", but the getSequence() method isn't returning the Sequence? If so, this sounds like it may be a problem with the no-EMF codegen annotations for a mixed types - but I thought you recently checked and concluded that those annotations were being generated correctly. Maybe it's broken because of the baseclass/subclass split. Maybe because of the invalid mixed=true in the subclass. Can you narrow this down and be more specific? Thanks.

> Sequenced type of  DataObject returns 'null' from getSequence() method, it should return empty Sequence object
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1186
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1186
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-M3
>         Environment: n/a
>            Reporter: David T. Adcox
>             Fix For: Java-SDO-M3
>
>         Attachments: api_test.xsd, Test1186.jar
>
>
> The SDO for Java 2.1 spec states this about the getSequence() behavior in section 3.1.1:
> 3. Sequenced. A DataObject is similar to a JavaBean plus it has order within and
> across Properties. In XML this is equivalent to a DOM. When using XML, a
> Sequence (see Sequence) represents the order of all the XML elements in the
> DataObject. Values are available through get(property) but order across Properties
> is maintained through the Sequence interface. getSequence() returns a Sequence
> of the XML elements for the case of XML. XML Attributes do not have the
> concept of order and are accessed through get(property).
> Currently, the code is returning a null, rather than an empty Sequence object.  I'll attach a sample application to demonstrate the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Closed: (TUSCANY-1186) Sequenced type of DataObject returns 'null' from getSequence() method, it should return empty Sequence object

Posted by "David T. Adcox (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David T. Adcox closed TUSCANY-1186.
-----------------------------------

    Resolution: Invalid

The schema being used for this test case seems to be invalid.  I've created a much slimmer schema and test case and can not reproduce the issue.  There may still be an issue here, but I think we first need to clean up the CTS schema and test case that identified this issue (and others).

> Sequenced type of  DataObject returns 'null' from getSequence() method, it should return empty Sequence object
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1186
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1186
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-M3
>         Environment: n/a
>            Reporter: David T. Adcox
>             Fix For: Java-SDO-M3
>
>         Attachments: api_test.xsd, Test1186.jar
>
>
> The SDO for Java 2.1 spec states this about the getSequence() behavior in section 3.1.1:
> 3. Sequenced. A DataObject is similar to a JavaBean plus it has order within and
> across Properties. In XML this is equivalent to a DOM. When using XML, a
> Sequence (see Sequence) represents the order of all the XML elements in the
> DataObject. Values are available through get(property) but order across Properties
> is maintained through the Sequence interface. getSequence() returns a Sequence
> of the XML elements for the case of XML. XML Attributes do not have the
> concept of order and are accessed through get(property).
> Currently, the code is returning a null, rather than an empty Sequence object.  I'll attach a sample application to demonstrate the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (TUSCANY-1186) Sequenced type of DataObject returns 'null' from getSequence() method, it should return empty Sequence object

Posted by "David T. Adcox (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David T. Adcox updated TUSCANY-1186:
------------------------------------

    Attachment: api_test.xsd
                Test1186.jar

The jar file contains a test client (Test1186) and the associated static SDO package.  The package was generated using the XSD2Java generator, no options.  The source schema is being attached.

> Sequenced type of  DataObject returns 'null' from getSequence() method, it should return empty Sequence object
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1186
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1186
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-M3
>         Environment: n/a
>            Reporter: David T. Adcox
>             Fix For: Java-SDO-M3
>
>         Attachments: api_test.xsd, Test1186.jar
>
>
> The SDO for Java 2.1 spec states this about the getSequence() behavior in section 3.1.1:
> 3. Sequenced. A DataObject is similar to a JavaBean plus it has order within and
> across Properties. In XML this is equivalent to a DOM. When using XML, a
> Sequence (see Sequence) represents the order of all the XML elements in the
> DataObject. Values are available through get(property) but order across Properties
> is maintained through the Sequence interface. getSequence() returns a Sequence
> of the XML elements for the case of XML. XML Attributes do not have the
> concept of order and are accessed through get(property).
> Currently, the code is returning a null, rather than an empty Sequence object.  I'll attach a sample application to demonstrate the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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