Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » A bug of JSDT
A bug of JSDT [message #1739705] Thu, 04 August 2016 07:12
oh xh is currently offline oh xhFriend
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;
Previous Topic: Neon errors/warnings from files not in a source tree
Next Topic:latest declared built
Goto Forum:
  


Current Time: Thu Dec 05 08:00:18 GMT 2024

Powered by FUDForum. Page generated in 0.04417 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top