test/tools/javac/6889255/T6889255.java

changeset 1374
c002fdee76fd
parent 554
9d9f26857129
child 1792
ec871c3e8337
     1.1 --- a/test/tools/javac/6889255/T6889255.java	Tue Oct 23 13:58:56 2012 -0700
     1.2 +++ b/test/tools/javac/6889255/T6889255.java	Thu Oct 25 11:09:36 2012 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -36,7 +36,7 @@
    1.11  import com.sun.tools.javac.code.Symbol.*;
    1.12  import com.sun.tools.javac.code.Type;
    1.13  import com.sun.tools.javac.code.Type.ClassType;
    1.14 -import com.sun.tools.javac.code.TypeTags;
    1.15 +import com.sun.tools.javac.code.TypeTag;
    1.16  import com.sun.tools.javac.file.JavacFileManager;
    1.17  import com.sun.tools.javac.jvm.ClassReader;
    1.18  import com.sun.tools.javac.util.Context;
    1.19 @@ -436,7 +436,7 @@
    1.20          // The rest of this method assumes the local conventions in the test program
    1.21          Type t = v.type;
    1.22          String s;
    1.23 -        if (t.tag == TypeTags.CLASS)
    1.24 +        if (t.hasTag(TypeTag.CLASS))
    1.25              s = ((ClassType) t).tsym.name.toString();
    1.26          else
    1.27              s = t.toString();

mercurial