diff --git a/src/de/dhbwstuttgart/bytecode/descriptor/TypeToDescriptor.java b/src/de/dhbwstuttgart/bytecode/descriptor/TypeToDescriptor.java index e5c853b3..69ac6d13 100644 --- a/src/de/dhbwstuttgart/bytecode/descriptor/TypeToDescriptor.java +++ b/src/de/dhbwstuttgart/bytecode/descriptor/TypeToDescriptor.java @@ -29,7 +29,7 @@ public class TypeToDescriptor implements TypeVisitor{ @Override public String visit(ExtendsWildcardType extendsWildcardType) { - return extendsWildcardType.getInnerType().toString(); + return extendsWildcardType.getInnerType().toString().replace(".", "/"); //throw new NotImplementedException(); } diff --git a/test/bytecode/FacTest.java b/test/bytecode/FacTest.java index b2840026..c5eb281e 100644 --- a/test/bytecode/FacTest.java +++ b/test/bytecode/FacTest.java @@ -36,9 +36,9 @@ 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); + assertEquals(result, 4); } } diff --git a/test/bytecode/javFiles/Plus.jav b/test/bytecode/javFiles/Plus.jav index 86b4eb36..4d425bf0 100644 --- a/test/bytecode/javFiles/Plus.jav +++ b/test/bytecode/javFiles/Plus.jav @@ -1,4 +1,4 @@ -//import java.lang.Integer; +import java.lang.Integer; public class Plus {