4660158: TTY: NumberFormatException while trying to set values by 'se… · openjdk/jdk8u-dev@bfb1a7d (original) (raw)

File tree

10 files changed

lines changed

10 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -539,10 +539,10 @@ void MultiplicativeExpression() :
539 539 }
540 540
541 541 void UnaryExpression() :
542 -{}
542 +{Token tok;}
543 543 {
544 - ( "+" | "-" ) UnaryExpression()
545 - { throw new ParseException("operation not yet supported"); }
544 + ( tok = "+" | tok = "-" ) UnaryExpression()
545 +{ push( LValue.operation(vm, tok, pop(), frameGetter) ); }
546 546 |
547 547 PreIncrementExpression()
548 548 |
@@ -566,10 +566,10 @@ void PreDecrementExpression() :
566 566 }
567 567
568 568 void UnaryExpressionNotPlusMinus() :
569 -{}
569 +{Token tok;}
570 570 {
571 - ( "~" | "!" ) UnaryExpression()
572 - { throw new ParseException("operation not yet supported"); }
571 + ( tok = "~" | tok = "!" ) UnaryExpression()
572 +{ push( LValue.operation(vm, tok, pop(), frameGetter) ); }
573 573 |
574 574 LOOKAHEAD( CastLookahead() )
575 575 CastExpression()