equal
deleted
inserted
replaced
85 Symtab syms; |
85 Symtab syms; |
86 Attr attr; |
86 Attr attr; |
87 DeferredAttr deferredAttr; |
87 DeferredAttr deferredAttr; |
88 Check chk; |
88 Check chk; |
89 Infer infer; |
89 Infer infer; |
90 ClassReader reader; |
90 ClassFinder finder; |
91 TreeInfo treeinfo; |
91 TreeInfo treeinfo; |
92 Types types; |
92 Types types; |
93 JCDiagnostic.Factory diags; |
93 JCDiagnostic.Factory diags; |
94 public final boolean boxingEnabled; |
94 public final boolean boxingEnabled; |
95 public final boolean varargsEnabled; |
95 public final boolean varargsEnabled; |
119 log = Log.instance(context); |
119 log = Log.instance(context); |
120 attr = Attr.instance(context); |
120 attr = Attr.instance(context); |
121 deferredAttr = DeferredAttr.instance(context); |
121 deferredAttr = DeferredAttr.instance(context); |
122 chk = Check.instance(context); |
122 chk = Check.instance(context); |
123 infer = Infer.instance(context); |
123 infer = Infer.instance(context); |
124 reader = ClassReader.instance(context); |
124 finder = ClassFinder.instance(context); |
125 treeinfo = TreeInfo.instance(context); |
125 treeinfo = TreeInfo.instance(context); |
126 types = Types.instance(context); |
126 types = Types.instance(context); |
127 diags = JCDiagnostic.Factory.instance(context); |
127 diags = JCDiagnostic.Factory.instance(context); |
128 Source source = Source.instance(context); |
128 Source source = Source.instance(context); |
129 boxingEnabled = source.allowBoxing(); |
129 boxingEnabled = source.allowBoxing(); |
1884 * @param env The current environment. |
1884 * @param env The current environment. |
1885 * @param name The fully qualified name of the class to be loaded. |
1885 * @param name The fully qualified name of the class to be loaded. |
1886 */ |
1886 */ |
1887 Symbol loadClass(Env<AttrContext> env, Name name) { |
1887 Symbol loadClass(Env<AttrContext> env, Name name) { |
1888 try { |
1888 try { |
1889 ClassSymbol c = reader.loadClass(name); |
1889 ClassSymbol c = finder.loadClass(name); |
1890 return isAccessible(env, c) ? c : new AccessError(c); |
1890 return isAccessible(env, c) ? c : new AccessError(c); |
1891 } catch (ClassReader.BadClassFile err) { |
1891 } catch (ClassFinder.BadClassFile err) { |
1892 throw err; |
1892 throw err; |
1893 } catch (CompletionFailure ex) { |
1893 } catch (CompletionFailure ex) { |
1894 return typeNotFound; |
1894 return typeNotFound; |
1895 } |
1895 } |
1896 } |
1896 } |