test/tools/javac/scope/7017664/CompoundScopeTest.java

changeset 1689
137994c189e5
parent 982
671bb63f3ed5
child 2047
5f915a0c9615
     1.1 --- a/test/tools/javac/scope/7017664/CompoundScopeTest.java	Thu Apr 11 19:15:56 2013 -0700
     1.2 +++ b/test/tools/javac/scope/7017664/CompoundScopeTest.java	Fri Apr 12 12:05:04 2013 +0200
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2011, 2013, 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 @@ -147,7 +147,7 @@
    1.11          Scope createScope(int nelems) {
    1.12              Scope s = new Scope(symtab.noSymbol);
    1.13              for (int i = 0 ; i < nelems ; i++) {
    1.14 -                Symbol sym = new TypeSymbol(0, names.fromString("s" + i), null, null);
    1.15 +                Symbol sym = new TypeVariableSymbol(0, names.fromString("s" + i), null, null);
    1.16                  s.enter(sym);
    1.17                  elems = elems.prepend(sym);
    1.18                  List<Symbol> shadowed = shadowedMap.get(sym.name);

mercurial