bug in Signature gefixt
This commit is contained in:
parent
dcbcf873e4
commit
34969e66ba
@ -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()));
|
||||
|
@ -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 += ">";
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user