src/share/classes/com/sun/tools/javac/main/JavaCompiler.java

changeset 1374
c002fdee76fd
parent 1358
fc123bdeddb8
child 1380
a65971893c50
     1.1 --- a/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java	Tue Oct 23 13:58:56 2012 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java	Thu Oct 25 11:09:36 2012 -0700
     1.3 @@ -63,6 +63,7 @@
     1.4  import com.sun.tools.javac.util.*;
     1.5  import com.sun.tools.javac.util.Log.WriterKind;
     1.6  
     1.7 +import static com.sun.tools.javac.code.TypeTag.CLASS;
     1.8  import static com.sun.tools.javac.main.Option.*;
     1.9  import static com.sun.tools.javac.util.JCDiagnostic.DiagnosticFlag.*;
    1.10  import static com.sun.tools.javac.util.ListBuffer.lb;
    1.11 @@ -1349,7 +1350,7 @@
    1.12              @Override
    1.13              public void visitClassDef(JCClassDecl node) {
    1.14                  Type st = types.supertype(node.sym.type);
    1.15 -                if (st.tag == TypeTags.CLASS) {
    1.16 +                if (st.hasTag(CLASS)) {
    1.17                      ClassSymbol c = st.tsym.outermostClass();
    1.18                      Env<AttrContext> stEnv = enter.getEnv(c);
    1.19                      if (stEnv != null && env != stEnv) {

mercurial