The bug is inside c.java which parses the result from kdb.
If you run GridViewer with the following query
String query ="get `:test/ set ([] a:til 10)";
then you get the following exception
Dec 07, 2020 10:04:00 PM kx.examples.GridViewer main
SEVERE: null
java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.Object;
at kx.c$Flip.<init>(c.java:479)
at kx.c.r(c.java:977)
at kx.c.deserialize(c.java:1395)
at kx.c.readMsg(c.java:1522)
at kx.c.k(c.java:1602)
at kx.c.k(c.java:1617)
at kx.examples.GridViewer.main(GridViewer.java:48)
The bug is inside c.java which parses the result from kdb.
If you run GridViewer with the following query
String query ="get `:test/ set ([] a:til 10)";then you get the following exception