I'm using VisualVM 1.3.8 to analyze a heap dump and the following query shows up with 0 results:
select s from java.lang.String s where s.count >= 0
Doing select s from java.lang.String
shows several strings of size >= 0 so I don't see why this wouldn't work. This also applies when using other types of custom objects and trying to query based on a field (e.g. myObj.value). I'm wondering if this is a bug or there is in fact a special way to access the fields that is not documented. I'm using OpenJDK 8 fwiw.
Edit: the query about is basically given as an example on the visualvm site so I'm having trouble understanding why it doesn't work.