From a40d2b991fc9ab20b60b6f7a286ab91802c27213 Mon Sep 17 00:00:00 2001 From: Fayez Abu Alia Date: Thu, 24 May 2018 16:44:05 +0200 Subject: [PATCH] =?UTF-8?q?kleine=20=C3=84nderung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dhbwstuttgart/bytecode/descriptor/TypeToDescriptor.java | 2 +- test/bytecode/FacTest.java | 4 ++-- test/bytecode/javFiles/Plus.jav | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 {