--- a/langtools/test/tools/javac/scope/HashCollisionTest.java Mon Feb 07 18:09:46 2011 +0000
+++ b/langtools/test/tools/javac/scope/HashCollisionTest.java Mon Feb 07 18:10:13 2011 +0000
@@ -47,7 +47,6 @@
JavacFileManager.preRegister(context); // required by ClassReader which is required by Symtab
names = Names.instance(context); // Name.Table impls tied to an instance of Names
symtab = Symtab.instance(context);
- scopeCounter = ScopeCounter.instance(context);
// determine hashMask for an empty scope
Scope emptyScope = new Scope(symtab.unnamedPackage); // any owner will do
@@ -171,7 +170,7 @@
*/
ClassSymbol createClass(Name name, Symbol owner) {
ClassSymbol sym = new ClassSymbol(0, name, owner);
- sym.members_field = new ClassScope(sym, scopeCounter);
+ sym.members_field = new Scope(sym);
if (owner != symtab.unnamedPackage)
owner.members().enter(sym);
return sym;
@@ -247,5 +246,4 @@
Names names;
Symtab symtab;
- ScopeCounter scopeCounter;
}