diff --git a/src/de/dhbwstuttgart/bytecode/signature/Signature.java b/src/de/dhbwstuttgart/bytecode/signature/Signature.java index c06f7b38..c32cbf86 100644 --- a/src/de/dhbwstuttgart/bytecode/signature/Signature.java +++ b/src/de/dhbwstuttgart/bytecode/signature/Signature.java @@ -392,6 +392,7 @@ public class Signature { String sig2 = r.acceptTV(new TypeToSignature()); if(!(r instanceof TypePlaceholder)) { if(sig2.contains("$$")) { + System.out.println(" Signature FUN$$: "+r); sv.visitInterface().visitClassType(sig2.substring(1, sig2.length())); } else { sv.visitClassType(sig2.substring(1, sig2.length())); diff --git a/src/de/dhbwstuttgart/bytecode/signature/TypeToSignature.java b/src/de/dhbwstuttgart/bytecode/signature/TypeToSignature.java index 785bfabe..31d288f7 100644 --- a/src/de/dhbwstuttgart/bytecode/signature/TypeToSignature.java +++ b/src/de/dhbwstuttgart/bytecode/signature/TypeToSignature.java @@ -34,6 +34,8 @@ public class TypeToSignature implements TypeVisitor { // params += "L"+param.toString().replace(".", "/"); // } params += param.acceptTV(new TypeToSignature()); + if(param instanceof TypePlaceholder) + params += ";"; // if(it.hasNext())params += ";"; } params += ">"; diff --git a/test/bytecode/javFiles/Lambda.jav b/test/bytecode/javFiles/Lambda.jav index d7809e7e..ba466b18 100644 --- a/test/bytecode/javFiles/Lambda.jav +++ b/test/bytecode/javFiles/Lambda.jav @@ -3,8 +3,8 @@ import java.lang.Integer; public class Lambda { m () { - var lam1 = (Integer x) -> { - return x * x; + var lam1 = (x) -> { + return x; }; return lam1; } diff --git a/test/bytecode/javFiles/Tph.jav b/test/bytecode/javFiles/Tph.jav index 8dbb1507..93233a3a 100644 --- a/test/bytecode/javFiles/Tph.jav +++ b/test/bytecode/javFiles/Tph.jav @@ -1,8 +1,9 @@ public class Tph { m(a,b){ - var c = m2(b); - return c; +// var c = m2(b); +// return c; + return m2(b); } m2(b){