forked from JavaTX/JavaCompilerCore
Merge branch 'bytecode2' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into unify-test
This commit is contained in:
commit
2869f07a58
@ -282,7 +282,6 @@ public class BytecodeGenMethod implements StatementVisitor {
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getLargerType(String lexpType, String rexpType) {
|
private String getLargerType(String lexpType, String rexpType) {
|
||||||
@ -782,7 +781,7 @@ public class BytecodeGenMethod implements StatementVisitor {
|
|||||||
doUnboxing(getResolvedType(methodCall.getType()));
|
doUnboxing(getResolvedType(methodCall.getType()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(methodRefl == null && !isReturnStmt) {
|
if(methodRefl == null/* && !isReturnStmt*/) {
|
||||||
if(isBinaryExp)
|
if(isBinaryExp)
|
||||||
doUnboxing(getResolvedType(methodCall.getType()));
|
doUnboxing(getResolvedType(methodCall.getType()));
|
||||||
}
|
}
|
||||||
@ -1081,7 +1080,11 @@ public class BytecodeGenMethod implements StatementVisitor {
|
|||||||
break;
|
break;
|
||||||
case "java/lang/Integer":
|
case "java/lang/Integer":
|
||||||
// zweite Argument isLong
|
// zweite Argument isLong
|
||||||
visitIntegerLiteral(((Double) value).intValue(), false);
|
// visitIntegerLiteral(((Double) value).intValue(), false);
|
||||||
|
if(value instanceof Double)
|
||||||
|
visitIntegerLiteral(((Double) value).intValue(), false);
|
||||||
|
if(value instanceof Integer)
|
||||||
|
visitIntegerLiteral(((Integer) value).intValue(), false);
|
||||||
break;
|
break;
|
||||||
case "java/lang/Long":
|
case "java/lang/Long":
|
||||||
visitLongLiteral(((Double) value).longValue(), true);
|
visitLongLiteral(((Double) value).longValue(), true);
|
||||||
|
@ -432,6 +432,9 @@ public class Signature {
|
|||||||
|
|
||||||
while(subAndSuperTph.containsKey(superTph)) {
|
while(subAndSuperTph.containsKey(superTph)) {
|
||||||
superTph = subAndSuperTph.get(superTph);
|
superTph = subAndSuperTph.get(superTph);
|
||||||
|
if(tphsInRel.containsValue(superTph)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
tphsInRel.put(tphsInRel.size(), superTph);
|
tphsInRel.put(tphsInRel.size(), superTph);
|
||||||
numOfVisitedPairs++;
|
numOfVisitedPairs++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user