227 jio_fprintf(defaultStream::error_stream(), " %4d = %s\n", _interfaces->at(i), k->name()->as_klass_external_name()); |
227 jio_fprintf(defaultStream::error_stream(), " %4d = %s\n", _interfaces->at(i), k->name()->as_klass_external_name()); |
228 } |
228 } |
229 jio_fprintf(defaultStream::error_stream(), "}\n"); |
229 jio_fprintf(defaultStream::error_stream(), "}\n"); |
230 } |
230 } |
231 |
231 |
232 void ClassListParser::print_actual_interfaces(InstanceKlass *ik) { |
232 void ClassListParser::print_actual_interfaces(InstanceKlass* ik) { |
233 int n = ik->local_interfaces()->length(); |
233 int n = ik->local_interfaces()->length(); |
234 jio_fprintf(defaultStream::error_stream(), "Actual interfaces[%d] = {\n", n); |
234 jio_fprintf(defaultStream::error_stream(), "Actual interfaces[%d] = {\n", n); |
235 for (int i = 0; i < n; i++) { |
235 for (int i = 0; i < n; i++) { |
236 InstanceKlass* e = InstanceKlass::cast(ik->local_interfaces()->at(i)); |
236 InstanceKlass* e = ik->local_interfaces()->at(i); |
237 jio_fprintf(defaultStream::error_stream(), " %s\n", e->name()->as_klass_external_name()); |
237 jio_fprintf(defaultStream::error_stream(), " %s\n", e->name()->as_klass_external_name()); |
238 } |
238 } |
239 jio_fprintf(defaultStream::error_stream(), "}\n"); |
239 jio_fprintf(defaultStream::error_stream(), "}\n"); |
240 } |
240 } |
241 |
241 |
242 void ClassListParser::error(const char *msg, ...) { |
242 void ClassListParser::error(const char* msg, ...) { |
243 va_list ap; |
243 va_list ap; |
244 va_start(ap, msg); |
244 va_start(ap, msg); |
245 int error_index = _token - _line; |
245 int error_index = _token - _line; |
246 if (error_index >= _line_len) { |
246 if (error_index >= _line_len) { |
247 error_index = _line_len - 1; |
247 error_index = _line_len - 1; |
326 } |
326 } |
327 |
327 |
328 Klass* ClassListParser::load_current_class(TRAPS) { |
328 Klass* ClassListParser::load_current_class(TRAPS) { |
329 TempNewSymbol class_name_symbol = SymbolTable::new_symbol(_class_name); |
329 TempNewSymbol class_name_symbol = SymbolTable::new_symbol(_class_name); |
330 |
330 |
331 Klass *klass = NULL; |
331 Klass* klass = NULL; |
332 if (!is_loading_from_source()) { |
332 if (!is_loading_from_source()) { |
333 // Load classes for the boot/platform/app loaders only. |
333 // Load classes for the boot/platform/app loaders only. |
334 if (is_super_specified()) { |
334 if (is_super_specified()) { |
335 error("If source location is not specified, super class must not be specified"); |
335 error("If source location is not specified, super class must not be specified"); |
336 } |
336 } |