An expression should follow current language syntax, with the exception of the meta syntax that dbx introduces to deal with scope and arrays.
You can use the print command to evaluate an expression, local variable, or parameter in Java code.
For more information, see print Command.
dbx supports the C++ dynamic_cast and typeid operators. When evaluating expressions with these two operators, dbx makes calls to certain rtti functions made available by the compiler. If the source doesn’t explicitly use the operators, those functions might not have been generated by the compiler, and dbx fails to evaluate the expression.