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

changeset 1579
0baaae675b19
parent 1555
762d0af062f5
child 1588
2620c953e9fe
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Check.java	Thu Feb 14 09:43:00 2013 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Check.java	Fri Feb 15 16:28:07 2013 +0000
     1.3 @@ -2232,10 +2232,13 @@
     1.4      void checkFunctionalInterface(JCTree tree, Type funcInterface) {
     1.5          ClassType c = new ClassType(Type.noType, List.<Type>nil(), null);
     1.6          ClassSymbol csym = new ClassSymbol(0, names.empty, c, syms.noSymbol);
     1.7 -        c.interfaces_field = List.of(funcInterface);
     1.8 +        c.interfaces_field = List.of(types.removeWildcards(funcInterface));
     1.9          c.supertype_field = syms.objectType;
    1.10          c.tsym = csym;
    1.11          csym.members_field = new Scope(csym);
    1.12 +        Symbol descSym = types.findDescriptorSymbol(funcInterface.tsym);
    1.13 +        Type descType = types.findDescriptorType(funcInterface);
    1.14 +        csym.members_field.enter(new MethodSymbol(PUBLIC, descSym.name, descType, csym));
    1.15          csym.completer = null;
    1.16          checkImplementations(tree, csym, csym);
    1.17      }

mercurial