SUGGESTED FIX
src/share/classes/com/sun/tools/apt/mirror/declaration>sccs sccsdiff -r1.7 -r1.8 DeclarationMaker.java
------- DeclarationMaker.java -------
4c4
< * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
---
> * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
30c30
<
---
> private JavaCompiler javacompiler;
45a46
> this.javacompiler = JavaCompiler.instance(context);
78c79
< Symbol s = nameToSymbol(name);
---
> Symbol s = nameToSymbol(name, false);
125c126
< Symbol s = nameToSymbol(name);
---
> Symbol s = nameToSymbol(name, true);
137,138c138
< private Symbol nameToSymbol(String name) {
< JavaCompiler jc = JavaCompiler.instance(context);
---
> private Symbol nameToSymbol(String name, boolean classCache) {
140c140,149
< s = jc.resolveIdent(name);
---
> Name nameName = env.names.fromString(name);
> if (classCache)
> s = env.symtab.classes.get(nameName);
> else
> s = env.symtab.packages.get(nameName);
>
> if (s != null && s.exists())
> return s;
>
> s = javacompiler.resolveIdent(name);
###@###.### 2005-04-07 22:44:00 GMT
|