src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java

changeset 1969
7de231613e4a
parent 1940
b8610a65fbf9
child 2027
4932bb04c4b8
equal deleted inserted replaced
1965:720992953d43 1969:7de231613e4a
247 LambdaTranslationContext localContext = (LambdaTranslationContext)context; 247 LambdaTranslationContext localContext = (LambdaTranslationContext)context;
248 MethodSymbol sym = (MethodSymbol)localContext.translatedSym; 248 MethodSymbol sym = (MethodSymbol)localContext.translatedSym;
249 MethodType lambdaType = (MethodType) sym.type; 249 MethodType lambdaType = (MethodType) sym.type;
250 250
251 { 251 {
252 MethodSymbol owner = (MethodSymbol) localContext.owner; 252 Symbol owner = localContext.owner;
253 ListBuffer<Attribute.TypeCompound> ownerTypeAnnos = new ListBuffer<Attribute.TypeCompound>(); 253 ListBuffer<Attribute.TypeCompound> ownerTypeAnnos = new ListBuffer<Attribute.TypeCompound>();
254 ListBuffer<Attribute.TypeCompound> lambdaTypeAnnos = new ListBuffer<Attribute.TypeCompound>(); 254 ListBuffer<Attribute.TypeCompound> lambdaTypeAnnos = new ListBuffer<Attribute.TypeCompound>();
255 255
256 for (Attribute.TypeCompound tc : owner.getRawTypeAttributes()) { 256 for (Attribute.TypeCompound tc : owner.getRawTypeAttributes()) {
257 if (tc.position.onLambda == tree) { 257 if (tc.position.onLambda == tree) {

mercurial