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());
|
String sig2 = r.acceptTV(new TypeToSignature());
|
||||||
if(!(r instanceof TypePlaceholder)) {
|
if(!(r instanceof TypePlaceholder)) {
|
||||||
if(sig2.contains("$$")) {
|
if(sig2.contains("$$")) {
|
||||||
|
System.out.println(" Signature FUN$$: "+r);
|
||||||
sv.visitInterface().visitClassType(sig2.substring(1, sig2.length()));
|
sv.visitInterface().visitClassType(sig2.substring(1, sig2.length()));
|
||||||
} else {
|
} else {
|
||||||
sv.visitClassType(sig2.substring(1, sig2.length()));
|
sv.visitClassType(sig2.substring(1, sig2.length()));
|
||||||
|
@ -34,6 +34,8 @@ public class TypeToSignature implements TypeVisitor<String> {
|
|||||||
// params += "L"+param.toString().replace(".", "/");
|
// params += "L"+param.toString().replace(".", "/");
|
||||||
// }
|
// }
|
||||||
params += param.acceptTV(new TypeToSignature());
|
params += param.acceptTV(new TypeToSignature());
|
||||||
|
if(param instanceof TypePlaceholder)
|
||||||
|
params += ";";
|
||||||
// if(it.hasNext())params += ";";
|
// if(it.hasNext())params += ";";
|
||||||
}
|
}
|
||||||
params += ">";
|
params += ">";
|
||||||
|
@ -3,8 +3,8 @@ import java.lang.Integer;
|
|||||||
public class Lambda {
|
public class Lambda {
|
||||||
|
|
||||||
m () {
|
m () {
|
||||||
var lam1 = (Integer x) -> {
|
var lam1 = (x) -> {
|
||||||
return x * x;
|
return x;
|
||||||
};
|
};
|
||||||
return lam1;
|
return lam1;
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
public class Tph {
|
public class Tph {
|
||||||
|
|
||||||
m(a,b){
|
m(a,b){
|
||||||
var c = m2(b);
|
// var c = m2(b);
|
||||||
return c;
|
// return c;
|
||||||
|
return m2(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
m2(b){
|
m2(b){
|
||||||
|
Loading…
Reference in New Issue
Block a user