[
https://issues.apache.org/jira/browse/JENA-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14253955#comment-14253955
]
Bruno P. Kinoshita commented on JENA-563:
-----------------------------------------
StatementImpl#getBag uses an RDFNode to cast the object to Bag (IIUC it
actually wraps the Resource within a Bag object if the object is not a Bag).
Several methods in Statement state that an exception will be thrown if the
underlying object is not of the right type. I think we can either close this
issue as Not An Issue, or remove the statement from all Javadocs in Statement.
I'm okay with any of these options.
> Statement from Default Model does not throw exception when creating Bag
> -----------------------------------------------------------------------
>
> Key: JENA-563
> URL: https://issues.apache.org/jira/browse/JENA-563
> Project: Apache Jena
> Issue Type: Bug
> Reporter: Claude Warren
> Attachments: dummy.java
>
>
> The documentation for Statement.getBag() states:
> "An exception will be thrown if the object is not a Resource."
> However in the case of the default model creating an Bag on a Literal
> succeeds.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)