Community
Participate
Working Groups
Since the ViatraQueryEngine only uses QuerySpecification objects as keys, it is possible to have multiple queries with the same FQN loaded into an engine. In addition, the getMatcher(String fqn) method does not look at already loaded queries and simply assumes that a query with the given FQN that is different from the one returned by the registry has not been initialized.
New Gerrit change created: https://git.eclipse.org/r/75830
We discussed that it is by design that the engine uses the QuerySpecification objects as keys and does not care about fully qualified names. See gerrit change: - I have updated the JavaDoc of the ViatraQueryEngine.getMatcher(String fqn) method to clarify that the query specification registry is used to get the specification for the given FQN. - I have also added a test case to ensure that any change in this behavior is detected.
Gerrit change https://git.eclipse.org/r/75830 was merged to [master]. Commit: http://git.eclipse.org/c/viatra/org.eclipse.viatra.git/commit/?id=f0bff87a268cfa4b701ff3eb0f5f8a29711a4199
Fixed in master.