A bug of JSDT [message #1739705] |
Thu, 04 August 2016 07:12 |
oh xh Messages: 1 Registered: August 2016 |
Junior Member |
|
|
[file]
org.eclipse.wst.jsdt.core.dom.ASTConverter.java
[source]
public Expression convert(org.eclipse.wst.jsdt.internal.compiler.ast.EqualExpression expression) {
...
switch ((expression.bits & org.eclipse.wst.jsdt.internal.compiler.ast.ASTNode.OperatorMASK) >> org.eclipse.wst.jsdt.internal.compiler.ast.ASTNode.OperatorSHIFT) {
case org.eclipse.wst.jsdt.internal.compiler.ast.OperatorIds.EQUAL_EQUAL :
infixExpression.setOperator(InfixExpression.Operator.EQUALS);
break;
case org.eclipse.wst.jsdt.internal.compiler.ast.OperatorIds.NOT_EQUAL :
infixExpression.setOperator(InfixExpression.Operator.NOT_EQUALS);
}
return infixExpression;
}
[bug]
It doesn't handle with EQUAL_EQUAL_EQUAL and NOT_EQUAL_EQUAL .
--------------------
case org.eclipse.wst.jsdt.internal.compiler.ast.OperatorIds.EQUAL_EQUAL_EQUAL :
infixExpression.setOperator(InfixExpression.Operator.EQUALS_EQUAL_EQUAL);
break;
case org.eclipse.wst.jsdt.internal.compiler.ast.OperatorIds.NOT_EQUAL_EQUAL :
infixExpression.setOperator(InfixExpression.Operator.NOT_EQUALS_EQUAL );
break;
|
|
|
Powered by
FUDForum. Page generated in 0.04417 seconds