adapt to core changes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3229 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
65bfb788b7
commit
edbee5a1e7
|
@ -23,7 +23,7 @@ import com.ibm.wala.cast.java.ssa.EnclosingObjectReference;
|
|||
import com.ibm.wala.classLoader.IClass;
|
||||
import com.ibm.wala.fixpoint.IVariable;
|
||||
import com.ibm.wala.ipa.cha.IClassHierarchy;
|
||||
import com.ibm.wala.shrikeBT.BinaryOpInstruction;
|
||||
import com.ibm.wala.shrikeBT.IBinaryOpInstruction;
|
||||
import com.ibm.wala.ssa.IR;
|
||||
import com.ibm.wala.ssa.SSABinaryOpInstruction;
|
||||
import com.ibm.wala.ssa.SymbolTable;
|
||||
|
@ -37,7 +37,7 @@ public class AstJavaTypeInference extends AstTypeInference {
|
|||
protected class AstJavaTypeOperatorFactory extends AstTypeOperatorFactory implements AstJavaInstructionVisitor {
|
||||
public void visitBinaryOp(SSABinaryOpInstruction instruction) {
|
||||
if (doPrimitives) {
|
||||
BinaryOpInstruction.IOperator op = instruction.getOperator();
|
||||
IBinaryOpInstruction.IOperator op = instruction.getOperator();
|
||||
if (op == AstConstants.BinaryOp.EQ || op == AstConstants.BinaryOp.NE || op == AstConstants.BinaryOp.LT
|
||||
|| op == AstConstants.BinaryOp.GE || op == AstConstants.BinaryOp.GT || op == AstConstants.BinaryOp.LE) {
|
||||
result = new DeclaredTypeOperator(PrimitiveType.BOOLEAN);
|
||||
|
|
|
@ -29,6 +29,7 @@ public class JavaSourceAnalysisScope extends AnalysisScope {
|
|||
|
||||
public JavaSourceAnalysisScope(Collection<Language> languages) {
|
||||
super(languages);
|
||||
initForJava();
|
||||
EclipseProjectPath.SOURCE_REF.setParent(getLoader(APPLICATION));
|
||||
getLoader(SYNTHETIC).setParent(EclipseProjectPath.SOURCE_REF);
|
||||
|
||||
|
|
Loading…
Reference in New Issue