[
https://issues.apache.org/jira/browse/JENA-1786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16984479#comment-16984479
]
ASF subversion and git services commented on JENA-1786:
-------------------------------------------------------
Commit 57d3539ac1ab0367c9f50cb93eac960a2ae3aac9 in jena's branch
refs/heads/master from Pavel Mikhailovskii
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=57d3539 ]
JENA-1786: DatasetGraphMonitor exposes unwrapped graphs (#639)
* JENA-1786: DatasetGraphMonitor exposes unwrapped graphs
* Use GraphView.createDefaultGraph in DatasetGraphMonitor
> DatasetGraphMonitor exposes unwrapped graphs
> --------------------------------------------
>
> Key: JENA-1786
> URL: https://issues.apache.org/jira/browse/JENA-1786
> Project: Apache Jena
> Issue Type: Bug
> Reporter: Pavel Mikhailovskii
> Assignee: Andy Seaborne
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Both DatasetGraphMonitor.getDefaultGraph and DatasetGraphMonitor.getGraph
> expose unwrapped graphs from the underlying DatasetGraph. Any changes made to
> those graphs skip DatasetGraphMonitor's change monitoring.
> To reproduce:
> {code:java}
> public class TestDatasetMonitor extends BaseTest {
> ...
> @Test public void countChanges_05() {
> DatasetGraph dsgBase = DatasetGraphFactory.create() ;
> DatasetChangesCounter dsgChanges = new DatasetChangesCounter() ;
> DatasetGraph dsg = new DatasetGraphMonitor(dsgBase, dsgChanges) ;
> check(dsgChanges, 0, 0, 0, 0) ;
> Graph g = dsg.getDefaultGraph();
> g.add(quad1.asTriple()) ;
> g.delete(quad1.asTriple()) ;
> g.add(quad1.asTriple()) ;
> g.delete(quad1.asTriple()) ;
> check(dsgChanges, 2, 2, 0, 0) ;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)