xiazcy commented on code in PR #3559:
URL: https://github.com/apache/tinkerpop/pull/3559#discussion_r3641938627
##########
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/WhereTest.java:
##########
@@ -552,5 +583,19 @@ public Traversal<Vertex, String>
get_g_VX1X_asXaX_out_hasXageX_whereXgtXaXX_byXa
public Traversal<Vertex, String>
get_g_VX3X_asXaX_in_out_asXbX_whereXa_eqXbXX_byXageX_name(final Object v3Id) {
return g.V(v3Id).as("a").in().out().as("b").where("a",
eq("b")).by("age").values("name");
}
+
+ @Override
+ public Traversal<Vertex, Integer> get_g_V_valuesXageX_whereXgtX5XX() {
+ // gt(5) yields a P whose value is an Integer rather than a String
scope key; the cast mimics the
+ // erased P<String> that reaches where(P) via raw types, bytecode,
or deserialization
+ final P<String> nonStringKeyPredicate = (P<String>) (P) gt(5);
Review Comment:
Curious, why the double cast for (P) here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]