src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TransTypes.java
changeset 48054 702043a4cdeb
parent 47870 924591048898
child 48661 19173eb3358b
equal deleted inserted replaced
48053:6dcbdc9f99fc 48054:702043a4cdeb
    27 
    27 
    28 import java.util.*;
    28 import java.util.*;
    29 
    29 
    30 import com.sun.tools.javac.code.*;
    30 import com.sun.tools.javac.code.*;
    31 import com.sun.tools.javac.code.Attribute.TypeCompound;
    31 import com.sun.tools.javac.code.Attribute.TypeCompound;
       
    32 import com.sun.tools.javac.code.Source.Feature;
    32 import com.sun.tools.javac.code.Symbol.*;
    33 import com.sun.tools.javac.code.Symbol.*;
    33 import com.sun.tools.javac.resources.CompilerProperties.Errors;
    34 import com.sun.tools.javac.resources.CompilerProperties.Errors;
    34 import com.sun.tools.javac.tree.*;
    35 import com.sun.tools.javac.tree.*;
    35 import com.sun.tools.javac.tree.JCTree.*;
    36 import com.sun.tools.javac.tree.JCTree.*;
    36 import com.sun.tools.javac.tree.JCTree.JCMemberReference.ReferenceKind;
    37 import com.sun.tools.javac.tree.JCTree.JCMemberReference.ReferenceKind;
    92         bridgeSpans = new HashMap<>();
    93         bridgeSpans = new HashMap<>();
    93         types = Types.instance(context);
    94         types = Types.instance(context);
    94         make = TreeMaker.instance(context);
    95         make = TreeMaker.instance(context);
    95         resolve = Resolve.instance(context);
    96         resolve = Resolve.instance(context);
    96         Source source = Source.instance(context);
    97         Source source = Source.instance(context);
    97         allowInterfaceBridges = source.allowDefaultMethods();
    98         allowInterfaceBridges = Feature.DEFAULT_METHODS.allowedInSource(source);
    98         allowGraphInference = source.allowGraphInference();
    99         allowGraphInference = Feature.GRAPH_INFERENCE.allowedInSource(source);
    99         annotate = Annotate.instance(context);
   100         annotate = Annotate.instance(context);
   100         attr = Attr.instance(context);
   101         attr = Attr.instance(context);
   101     }
   102     }
   102 
   103 
   103     /** A hashtable mapping bridge methods to the pair of methods they bridge.
   104     /** A hashtable mapping bridge methods to the pair of methods they bridge.