[ 
https://issues.apache.org/jira/browse/JENA-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne resolved JENA-116.
--------------------------------

    Resolution: Fixed
      Assignee: Andy Seaborne

Patch applied - thanks.

> DatasetGraphMap.getGraph() should call addGraph() instead of adding directly 
> to graph collection
> ------------------------------------------------------------------------------------------------
>
>                 Key: JENA-116
>                 URL: https://issues.apache.org/jira/browse/JENA-116
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ
>            Reporter: Stephen Allen
>            Assignee: Andy Seaborne
>            Priority: Minor
>         Attachments: JENA-116-r1170776.patch
>
>
> The DatasetGraphMap class is useful for implementing a quad store as a 
> collection of triplestores, but when you attempt to retrieve a graph that 
> does not exist, a new one is created but bypasses the addGraph() method.
> Parliament needs to register all new graphs in an internal table (so that it 
> knows which directory and files on disk correspond to each graph).  It does 
> this by overriding the addGraph() method.
> I've attached a patch that fixes this issue and also removes the "final" 
> modifier on the getGraph() method (not strictly necessary for our use case, 
> but it seemed out of place since no other methods are final, and I can 
> imagine implementations that may want to override that method).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to