aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-io.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2001-08-30 14:28:20 -0700
committerPer Bothner <bothner@gcc.gnu.org>2001-08-30 14:28:20 -0700
commitbc8a5e56c097ded69d54b3061bd5802e8e94a5a7 (patch)
tree54d6fc81c0ab3238037f261dd5e4f088a33ff456 /gcc/java/jcf-io.c
parent1b9ee7233caa4e6ff8f964318f0762bf2df6639b (diff)
downloadgcc-bc8a5e56c097ded69d54b3061bd5802e8e94a5a7.zip
gcc-bc8a5e56c097ded69d54b3061bd5802e8e94a5a7.tar.gz
gcc-bc8a5e56c097ded69d54b3061bd5802e8e94a5a7.tar.bz2
jcf-io.c (open_class): Set filename field.
* jcf-io.c (open_class): Set filename field. * jcf-parse,c (parse_class_file): Set current_function_decl for better error message when Code attribute is missing. * lang.c (put_decl_node, lang_print_error): Re-arrange for better diagnostics, especially for constructors. From-SVN: r45299
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r--gcc/java/jcf-io.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c
index f8a0f59..a280976 100644
--- a/gcc/java/jcf-io.c
+++ b/gcc/java/jcf-io.c
@@ -242,6 +242,7 @@ DEFUN(open_class, (filename, jcf, stream, dep_name),
jcf->read_ptr = NULL;
jcf->read_end = NULL;
jcf->read_state = stream;
+ jcf->filename = filename;
jcf->filbuf = jcf_filbuf_from_stdio;
}
else
@@ -556,7 +557,9 @@ DEFUN(jcf_print_utf8_replace, (stream, str, length, in_char, out_char),
/* Check that all the cross-references in the constant pool are
valid. Returns 0 on success.
- Otherwise, returns the index of the (first) invalid entry. */
+ Otherwise, returns the index of the (first) invalid entry.
+ Only checks internal consistency, but does not check that
+ any classes, fields, or methods are valid.*/
int
DEFUN(verify_constant_pool, (jcf),