parse.y (<type_declaration>): Do maybe_generate_clinit last.
authorAlexandre Petit-Bianco <apbianco@sendai.cygnus.com>
Sat, 12 Dec 1998 20:04:37 +0000 (12:04 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Sat, 12 Dec 1998 20:04:37 +0000 (12:04 -0800)
commit1287b91aeb66432811939ffc2d22ec5b253a3c60
tree522cf4b4784ab931d600c227b8e489a5b676bc90
parent7525cc04a83c94483e196df4d658a2daa7d8b55e
parse.y (<type_declaration>): Do maybe_generate_clinit last.

* parse.y (<type_declaration>):  Do maybe_generate_clinit last.
(register_fields):  If a static fields has an initializer, just
chain it on ctxp->static_initialized, and handle later.
(java_complete_expand_methods):  Force <clinit> first.
(resolve_expression_name, resolve_field_access):  Just get DECL_INITIAL
- it's already been completed.
(patch_initialized_static_field):  New function.
(java_complete_field):  Call it.

From-SVN: r24275
gcc/java/ChangeLog