From a32648caf5ea9c630f06cca1eb73829e77cf129d Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Wed, 13 Apr 2016 15:01:11 +0300 Subject: [PATCH] IDEA-154629 Character is an invalid type for bit-shifting operations in Evaluate Expression --- .../engine/evaluation/expression/EvaluatorBuilderImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/java/debugger/impl/src/com/intellij/debugger/engine/evaluation/expression/EvaluatorBuilderImpl.java b/java/debugger/impl/src/com/intellij/debugger/engine/evaluation/expression/EvaluatorBuilderImpl.java index b0a57d5e5b98..62b397e26c01 100644 --- a/java/debugger/impl/src/com/intellij/debugger/engine/evaluation/expression/EvaluatorBuilderImpl.java +++ b/java/debugger/impl/src/com/intellij/debugger/engine/evaluation/expression/EvaluatorBuilderImpl.java @@ -500,6 +500,11 @@ public class EvaluatorBuilderImpl implements EvaluatorBuilder { } } } + // unary numeric promotion if applicable + else if (operation == JavaTokenType.GTGT || operation == JavaTokenType.LTLT || operation == JavaTokenType.GTGTGT) { + lResult = handleUnaryNumericPromotion(lType, lResult); + rResult = handleUnaryNumericPromotion(rType, rResult); + } return new BinaryExpressionEvaluator(lResult, rResult, operation, expressionExpectedType.getCanonicalText()); }