You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Claude Warren (JIRA)" <ji...@apache.org> on 2013/09/25 18:50:02 UTC

[jira] [Commented] (JENA-543) Seq created from resource in another model results in Seq from the wrong model.

    [ https://issues.apache.org/jira/browse/JENA-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13777729#comment-13777729 ] 

Claude Warren commented on JENA-543:
------------------------------------

Clarification of results:

With Resource in model 1 only

resource.getModel() == model1
model2.getSeq( resource ).getModel() == model2 is false
model2.getSeq( resource ).getModel() == model1 is true

With Resource in model 1 and model 2, using 

resource.getModel() == model1
model2.getSeq( resource ).getModel() == model2 is false
model2.getSeq( resource ).getModel() == model1 is false

model.getSeq( resource ) always returns a seq that is attached to the model that the resource is attached to.




                
> Seq created from resource in another model results in Seq from the wrong model.
> -------------------------------------------------------------------------------
>
>                 Key: JENA-543
>                 URL: https://issues.apache.org/jira/browse/JENA-543
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Jena
>    Affects Versions: Jena 2.11.0
>            Reporter: Claude Warren
>         Attachments: SeqTest.java, SeqTest.java
>
>
> Create model 1.
> Create a resource in model 1
> Create model 2
> call Seq s = model2.getSeq( resource )
> s.getModel() == model1 is true
> s.getModel() == model2 is false
> s.getModel() should return model2

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira