RFR: 4660158: TTY: NumberFormatException while trying to set values by 'set' command

Staffan Larsen staffan.larsen at oracle.com
Mon Nov 4 06:41:39 PST 2013

This is an old one! Nothing like being bored on a plane...

The problem here was that the expression evaluator in jdb did not handle numbers larger than Integer.MAX_VALUE. When necessary these need to be converted to longs instead of ints.

While I was touching the code, I added support for the unary operations: -, +, ~ and ! (did I mention I was bored).

There are many files changed in the webrev, but I've actually only touched three (Expr.jj, LValue.java, JdbExprTest.sh) the rest are generated by javacc. The generated files have lost their copyright headers. If needed, I can add those back before pushing the change, but since it's manual work I want to do it after the review is done.

webrev: http://cr.openjdk.java.net/~sla/4660158/webrev.00/
bug: https://bugs.openjdk.java.net/browse/JDK-4660158


More information about the serviceability-dev mailing list