Merge branch 'bytecode2' into plugin

This commit is contained in:
Martin Plümicke 2018-05-25 14:41:22 +02:00
commit 581e5e574e
4 changed files with 4 additions and 4 deletions

View File

@ -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();
}

View File

@ -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);
}

View File

@ -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) {