diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-30 17:15:36 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-30 17:15:36 +0000 |
| commit | 9551354aec00edad3f398933590f24c52e7d21bc (patch) | |
| tree | 1840a719f7687932985e166bac260846e3623679 | |
| parent | 553b5aa0472bbf1f13e891e96ef9672068b3140d (diff) | |
| download | ppe42-gcc-9551354aec00edad3f398933590f24c52e7d21bc.tar.gz ppe42-gcc-9551354aec00edad3f398933590f24c52e7d21bc.zip | |
* jcf-parse.c (read_class): Update identifier's class value if it
changed during parsing.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62149 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/java/jcf-parse.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 3b56a3a30ed..4afcc943432 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2003-01-30 Tom Tromey <tromey@redhat.com> + + * jcf-parse.c (read_class): Update identifier's class value if it + changed during parsing. + 2003-01-30 Loren James Rittle <ljrittle@acm.org> * Make-lang.in (po-generated): Find the targets in $(parsedir). diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 2f03202d5dd..20dc3ff9208 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -516,6 +516,10 @@ read_class (tree name) read_zip_member(current_jcf, current_jcf->zipd, current_jcf->zipd->zipf); jcf_parse (current_jcf); + /* Parsing might change the class, in which case we have to + put it back where we found it. */ + if (current_class != class && icv != NULL_TREE) + TREE_TYPE (icv) = current_class; class = current_class; java_pop_parser_context (0); java_parser_context_restore_global (); |

