[
https://issues.apache.org/jira/browse/TINKERPOP3-789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stephen mallette updated TINKERPOP3-789:
----------------------------------------
Fix Version/s: (was: 3.1.0-incubating)
> Choose then Enforce Semantics for Graph.close()
> -----------------------------------------------
>
> Key: TINKERPOP3-789
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-789
> Project: TinkerPop 3
> Issue Type: Improvement
> Components: structure, test-suite
> Affects Versions: 3.0.1-incubating
> Reporter: stephen mallette
> Assignee: stephen mallette
>
> The semantics for {{Graph.close()}} are fairly open right now. See
> TinkerGraph:
> {code}
> gremlin> graph = TinkerFactory.createModern()
> ==>tinkergraph[vertices:6 edges:6]
> gremlin> graph.close()
> ==>null
> gremlin> graph.vertices()
> ==>v[1]
> ==>v[2]
> ==>v[3]
> ==>v[4]
> ==>v[5]
> ==>v[6]
> {code}
> Seems like a call to {{close()}} should mean something especially since we
> implement {{AutoCloseable}}. I believe that most graphs throw exceptions
> (Titan does {{IllegalStateException}} i think) if you try to access the graph
> once {{close()}} is called.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)