diff --git a/src/de/dhbwstuttgart/bytecode/signature/Signature.java b/src/de/dhbwstuttgart/bytecode/signature/Signature.java index ae91932a..5c5d8d48 100644 --- a/src/de/dhbwstuttgart/bytecode/signature/Signature.java +++ b/src/de/dhbwstuttgart/bytecode/signature/Signature.java @@ -119,7 +119,7 @@ public class Signature { if(!ret.equals("V")) { // TODO TypeToSignature nochmal kontrollieren und schauen ob man dort wirklich // T... braucht und L ... - if(ret.contains("$") && !ret.contains("$$")) { + if(ret.contains("$") && !ret.contains("$$") && !ret.contains("<")) { if(genericsAndBounds.containsKey(ret)) { genericsAndBoundsMethod.put(ret.substring(1), genericsAndBounds.get(ret.substring(1))); }else { @@ -233,6 +233,7 @@ public class Signature { if(p instanceof WildcardType) { if(((WildcardType) p).getInnerType() instanceof GenericRefType) { String name = new TypeToSignature().visit((GenericRefType)((WildcardType) p).getInnerType()); + System.out.println("NAME WC = " + name); if(!genericsAndBoundsMethod.containsKey(name) && !genericsAndBounds.containsKey(name)) { sw.visitFormalTypeParameter(name); sw.visitClassBound().visitClassType(Type.getInternalName(Object.class)); diff --git a/src/de/dhbwstuttgart/bytecode/signature/TypeToSignature.java b/src/de/dhbwstuttgart/bytecode/signature/TypeToSignature.java index 3bad4066..2d484ece 100644 --- a/src/de/dhbwstuttgart/bytecode/signature/TypeToSignature.java +++ b/src/de/dhbwstuttgart/bytecode/signature/TypeToSignature.java @@ -34,7 +34,7 @@ public class TypeToSignature implements TypeVisitor { // params += "L"+param.toString().replace(".", "/"); // } params += param.acceptTV(new TypeToSignature()); - if(param instanceof TypePlaceholder) + if(!(param instanceof RefType)) params += ";"; // if(it.hasNext())params += ";"; } diff --git a/src/de/dhbwstuttgart/typeinference/typeAlgo/GenericsResolverSameName.java b/src/de/dhbwstuttgart/typeinference/typeAlgo/GenericsResolverSameName.java index f8754e63..2bb131f1 100644 --- a/src/de/dhbwstuttgart/typeinference/typeAlgo/GenericsResolverSameName.java +++ b/src/de/dhbwstuttgart/typeinference/typeAlgo/GenericsResolverSameName.java @@ -42,7 +42,7 @@ public class GenericsResolverSameName implements GenericsResolver, TypeVisitor>>>>>> 3fedbcc4a0e015ec8f5f6ccb77081f888135c850 } -<<<<<<< HEAD -public class OLMain { -======= -class OLMain { ->>>>>>> 3fedbcc4a0e015ec8f5f6ccb77081f888135c850 - main(java.lang.Integer x) { +public class OLMain { + + main(x) { var ol; ol = new OL(); return ol.m(x);