forked from JavaTX/JavaCompilerCore
Merge branch 'bytecode2' into plugin
This commit is contained in:
commit
581e5e574e
@ -29,7 +29,7 @@ public class TypeToDescriptor implements TypeVisitor<String>{
|
||||
|
||||
@Override
|
||||
public String visit(ExtendsWildcardType extendsWildcardType) {
|
||||
return extendsWildcardType.getInnerType().toString();
|
||||
return extendsWildcardType.getInnerType().toString().replace(".", "/");
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ public class FacTest {
|
||||
|
||||
@Test
|
||||
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);
|
||||
assertEquals(result, 6);
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ import java.lang.Integer;
|
||||
// wenn nur ein Import da steht,wird die Type von
|
||||
// dem Literal 2 Number berechnet => Deswegen kann
|
||||
// nicht auf den Stack geladen.
|
||||
import java.lang.Long;
|
||||
//import java.lang.Long;
|
||||
|
||||
public class While {
|
||||
m(x) {
|
||||
|
Loading…
Reference in New Issue
Block a user