letzte tests
This commit is contained in:
parent
ab36050f9b
commit
5f731bb09c
@ -196,19 +196,12 @@ public class UnifyTypeFactory {
|
|||||||
RefTypeOrTPHOrWildcardOrGeneric tr = UnifyTypeFactory.convert(mp.getRhsType(), tphs);
|
RefTypeOrTPHOrWildcardOrGeneric tr = UnifyTypeFactory.convert(mp.getRhsType(), tphs);
|
||||||
if(tl instanceof TypePlaceholder){
|
if(tl instanceof TypePlaceholder){
|
||||||
if(tr instanceof TypePlaceholder) {
|
if(tr instanceof TypePlaceholder) {
|
||||||
<<<<<<< HEAD
|
|
||||||
if(mp.getPairOp().equals(PairOperator.EQUALSDOT))
|
|
||||||
//throw new DebugException("TPH =. TPH ist ein ungültiges Ergebnis");
|
|
||||||
//Einfach ignorieren TODO: Das hier muss ausgebessert werden:
|
|
||||||
return new PairTPHequalRefTypeOrWildcardType((TypePlaceholder)tl, ASTFactory.createObjectType());
|
|
||||||
else
|
|
||||||
=======
|
|
||||||
if(mp.getPairOp().equals(PairOperator.EQUALSDOT)) {
|
if(mp.getPairOp().equals(PairOperator.EQUALSDOT)) {
|
||||||
return new PairTPHEqualTPH((TypePlaceholder)tl, (TypePlaceholder)tr);
|
return new PairTPHEqualTPH((TypePlaceholder)tl, (TypePlaceholder)tr);
|
||||||
//Einfach ignorieren TODO: Das hier muss ausgebessert werden:
|
//Einfach ignorieren TODO: Das hier muss ausgebessert werden:
|
||||||
//return new PairTPHequalRefTypeOrWildcardType((TypePlaceholder)tl, ASTFactory.createObjectType());
|
//return new PairTPHequalRefTypeOrWildcardType((TypePlaceholder)tl, ASTFactory.createObjectType());
|
||||||
}else{
|
}else{
|
||||||
>>>>>>> eb8db0e0eb901afd5f4502ee4f7769a394b23422
|
|
||||||
return new PairTPHsmallerTPH((TypePlaceholder)tl, (TypePlaceholder)tr);
|
return new PairTPHsmallerTPH((TypePlaceholder)tl, (TypePlaceholder)tr);
|
||||||
}
|
}
|
||||||
}else if(tr instanceof RefType){
|
}else if(tr instanceof RefType){
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
public class DuMethod{
|
public class DuMethod{
|
||||||
|
|
||||||
method(a,b){
|
method(a){
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
10
test/bytecode/IfTest.jav
Normal file
10
test/bytecode/IfTest.jav
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
public class IfTest{
|
||||||
|
Integer m1(Boolean b) {
|
||||||
|
Integer i;
|
||||||
|
if(b) {
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
}
|
@ -29,7 +29,7 @@ public class JavaTXCompilerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void test() throws IOException, java.lang.ClassNotFoundException {
|
public void test() throws IOException, java.lang.ClassNotFoundException {
|
||||||
System.out.println(rootDirectory);
|
System.out.println(rootDirectory);
|
||||||
String fileName = "IfTest";
|
String fileName = "LamAssign";
|
||||||
filesToTest.add(new File(rootDirectory+fileName+".jav"));
|
filesToTest.add(new File(rootDirectory+fileName+".jav"));
|
||||||
System.out.println(rootDirectory+fileName+".jav");
|
System.out.println(rootDirectory+fileName+".jav");
|
||||||
JavaTXCompiler compiler = new JavaTXCompiler(filesToTest);
|
JavaTXCompiler compiler = new JavaTXCompiler(filesToTest);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user