comparison src/main/gov/nasa/jpf/vm/BootstrapMethodInfo.java @ 28:7be90179bb3b

Provided support for double colon operator used for lamabda expressions. Fixed a bug related to generating names for funcation object classes (by supporting double colon operator, a new stragety needed to generate unique names for function objects. To achive that the bootstrap ids are incorporated into names). Finally modified the method that retrieves the SAM from functional interfaces.
author nastaran <nastaran.shafiei@gmail.com>
date Thu, 25 Jun 2015 13:20:50 -0700
parents 61d41facf527
children
comparison
equal deleted inserted replaced
27:8aded593a50f 28:7be90179bb3b
45 this.samDescriptor = samDescriptor; 45 this.samDescriptor = samDescriptor;
46 } 46 }
47 47
48 @Override 48 @Override
49 public String toString() { 49 public String toString() {
50 return "BootstrapMethodInfo[" + enclosingClass.getName() + "." + lambdaBody.getName() + 50 return "BootstrapMethodInfo[" + enclosingClass.getName() + "." + lambdaBody.getBaseName() +
51 "[SAM descriptor:" + samDescriptor + "]]"; 51 "[SAM descriptor:" + samDescriptor + "]]";
52 } 52 }
53 53
54 public MethodInfo getLambdaBody() { 54 public MethodInfo getLambdaBody() {
55 return lambdaBody; 55 return lambdaBody;