Skip to content

Commit bfb1a7d

Browse files
Kazuhisa Takakurignu-andrew
authored andcommitted
4660158: TTY: NumberFormatException while trying to set values by 'set' command
Reviewed-by: andrew Backport-of: 6c4e462b47983509cea416c001982559edf53b59
1 parent 0357abb commit bfb1a7d

File tree

10 files changed

+2392
-3111
lines changed

10 files changed

+2392
-3111
lines changed

jdk/src/share/classes/com/sun/tools/example/debug/expr/Expr.jj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,10 @@ void MultiplicativeExpression() :
539539
}
540540

541541
void UnaryExpression() :
542-
{}
542+
{Token tok;}
543543
{
544-
( "+" | "-" ) UnaryExpression()
545-
{ throw new ParseException("operation not yet supported"); }
544+
( tok = "+" | tok = "-" ) UnaryExpression()
545+
{ push( LValue.operation(vm, tok, pop(), frameGetter) ); }
546546
|
547547
PreIncrementExpression()
548548
|
@@ -566,10 +566,10 @@ void PreDecrementExpression() :
566566
}
567567

568568
void UnaryExpressionNotPlusMinus() :
569-
{}
569+
{Token tok;}
570570
{
571-
( "~" | "!" ) UnaryExpression()
572-
{ throw new ParseException("operation not yet supported"); }
571+
( tok = "~" | tok = "!" ) UnaryExpression()
572+
{ push( LValue.operation(vm, tok, pop(), frameGetter) ); }
573573
|
574574
LOOKAHEAD( CastLookahead() )
575575
CastExpression()

0 commit comments

Comments
 (0)