forked from JavaTX/JavaCompilerCore
Merge branch 'bytecode2' into plugin
This commit is contained in:
commit
581e5e574e
@ -888,7 +888,7 @@ public class BytecodeGenMethod implements StatementVisitor {
|
|||||||
default:
|
default:
|
||||||
// wenn die Typ des Literals = Number ist, wird integer-value
|
// wenn die Typ des Literals = Number ist, wird integer-value
|
||||||
// verwendet
|
// verwendet
|
||||||
// visitIntegerLiteral(((Double) value).intValue(), false);
|
// visitIntegerLiteral(((Double) value).intValue(), false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Boxing
|
// Boxing
|
||||||
|
@ -29,7 +29,7 @@ public class TypeToDescriptor implements TypeVisitor<String>{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String visit(ExtendsWildcardType extendsWildcardType) {
|
public String visit(ExtendsWildcardType extendsWildcardType) {
|
||||||
return extendsWildcardType.getInnerType().toString();
|
return extendsWildcardType.getInnerType().toString().replace(".", "/");
|
||||||
//throw new NotImplementedException();
|
//throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ public class FacTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
public void test() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
||||||
Method getFac = classToTest.getDeclaredMethod("getFac", Integer.class,Integer.class);
|
Method getFac = classToTest.getDeclaredMethod("getFac", Integer.class);
|
||||||
Integer result = (Integer) getFac.invoke(instanceOfClass,3);
|
Integer result = (Integer) getFac.invoke(instanceOfClass,3);
|
||||||
assertEquals(result, 6);
|
assertEquals(result, 6);
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ import java.lang.Integer;
|
|||||||
// wenn nur ein Import da steht,wird die Type von
|
// wenn nur ein Import da steht,wird die Type von
|
||||||
// dem Literal 2 Number berechnet => Deswegen kann
|
// dem Literal 2 Number berechnet => Deswegen kann
|
||||||
// nicht auf den Stack geladen.
|
// nicht auf den Stack geladen.
|
||||||
import java.lang.Long;
|
//import java.lang.Long;
|
||||||
|
|
||||||
public class While {
|
public class While {
|
||||||
m(x) {
|
m(x) {
|
||||||
|
Loading…
Reference in New Issue
Block a user