langtools/src/share/classes/com/sun/tools/javac/comp/Check.java
changeset 1260 a772ba9ba43d
parent 1257 873b053bf757
child 1358 a51c5f89f8af
equal deleted inserted replaced
1259:61142e0aeb3f 1260:a772ba9ba43d
    54  */
    54  */
    55 public class Check {
    55 public class Check {
    56     protected static final Context.Key<Check> checkKey =
    56     protected static final Context.Key<Check> checkKey =
    57         new Context.Key<Check>();
    57         new Context.Key<Check>();
    58 
    58 
    59     private final Name.Table names;
    59     private final Names names;
    60     private final Log log;
    60     private final Log log;
    61     private final Symtab syms;
    61     private final Symtab syms;
    62     private final Infer infer;
    62     private final Infer infer;
    63     private final Target target;
    63     private final Target target;
    64     private final Source source;
    64     private final Source source;
    80     }
    80     }
    81 
    81 
    82     protected Check(Context context) {
    82     protected Check(Context context) {
    83         context.put(checkKey, this);
    83         context.put(checkKey, this);
    84 
    84 
    85         names = Name.Table.instance(context);
    85         names = Names.instance(context);
    86         log = Log.instance(context);
    86         log = Log.instance(context);
    87         syms = Symtab.instance(context);
    87         syms = Symtab.instance(context);
    88         infer = Infer.instance(context);
    88         infer = Infer.instance(context);
    89         this.types = Types.instance(context);
    89         this.types = Types.instance(context);
    90         diags = JCDiagnostic.Factory.instance(context);
    90         diags = JCDiagnostic.Factory.instance(context);
   626               implicit |= sym.owner.flags_field & STRICTFP;
   626               implicit |= sym.owner.flags_field & STRICTFP;
   627             break;
   627             break;
   628         case TYP:
   628         case TYP:
   629             if (sym.isLocal()) {
   629             if (sym.isLocal()) {
   630                 mask = LocalClassFlags;
   630                 mask = LocalClassFlags;
   631                 if (sym.name.len == 0) { // Anonymous class
   631                 if (sym.name.isEmpty()) { // Anonymous class
   632                     // Anonymous classes in static methods are themselves static;
   632                     // Anonymous classes in static methods are themselves static;
   633                     // that's why we admit STATIC here.
   633                     // that's why we admit STATIC here.
   634                     mask |= STATIC;
   634                     mask |= STATIC;
   635                     // JLS: Anonymous classes are final.
   635                     // JLS: Anonymous classes are final.
   636                     implicit |= FINAL;
   636                     implicit |= FINAL;