This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Description
In the project graph-algorithm-tests, in HugeGraphWeightTest:
private void mkDb(final int nodes, final int relsPerNode) {
db.executeAndCommit(__ -> {
try (Statement st = db.statement()) {
TokenWriteOperations token = st.tokenWriteOperations();
int type = token.relationshipTypeGetOrCreateForName("TYPE");
int key = token.propertyKeyGetOrCreateForName("weight");
DataWriteOperations write = st.dataWriteOperations();
NewRel newRel = newRel(write, type, key);
long[] nodeIds = new long[nodes];
for (int i = 0; i < nodes; i++) {
nodeIds[i] = write.nodeCreate();
}
int pageSize = PageUtil.pageSizeFor(MemoryUsage.BYTES_OBJECT_REF);
for (int i = 0; i < nodes; i += pageSize) {
int max = Math.min(pageSize, nodes - i);
for (int j = 0; j < max; j++) {
long sourceId = nodeIds[i + j];
for (int k = 1; k <= relsPerNode; k++) {
int targetIndex = j + k;
if (targetIndex >= pageSize) {
targetIndex = j - k;
}
long targetId = nodeIds[i + targetIndex];
newRel.mk(sourceId, targetId);
}
}
}
} catch (KernelException e) {
throw new RuntimeException(e);
}
});
Throws the error `The method executeAndCommit(Consumer<? super GraphDatabaseService>) is ambiguous for the type ImplementDatabaseRule`.
I'm using Eclipse Oxygen, JRE 1.8. I'm working on the branch 3.2.