bug in Signature gefixt

This commit is contained in:
Fayez Abu Alia 2018-08-03 13:48:45 +02:00
parent dcbcf873e4
commit 34969e66ba
4 changed files with 8 additions and 4 deletions

View File

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

View File

@ -34,6 +34,8 @@ public class TypeToSignature implements TypeVisitor<String> {
// params += "L"+param.toString().replace(".", "/");
// }
params += param.acceptTV(new TypeToSignature());
if(param instanceof TypePlaceholder)
params += ";";
// if(it.hasNext())params += ";";
}
params += ">";

View File

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

View File

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