From mboxrd@z Thu Jan 1 00:00:00 1970 From: bryce@albatross.co.nz To: java-gnats@sourceware.cygnus.com Subject: java/1330: Forward initializer references not checked Date: Wed, 20 Dec 2000 12:25:00 -0000 Message-id: <20000809100646.11401.qmail@sourceware.cygnus.com> X-SW-Source: 2000-q4/msg01137.html List-Id: >Number: 1330 >Category: java >Synopsis: Forward initializer references not checked >Confidential: no >Severity: serious >Priority: medium >Responsible: apbianco >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Dec 20 12:19:05 PST 2000 >Closed-Date: >Last-Modified: >Originator: Bryce McKinlay >Release: unknown-1.0 >Organization: >Environment: any >Description: The following code is illegal because initializers are are supposed to run in declared order and arn't allowed to forward reference each other. gcj does not detect this error. class InitOrder { static int foo = bar; static int bar = 5; } >How-To-Repeat: Compile the test case. >Fix: >Release-Note: >Audit-Trail: Formerly PR gcj/306 >Unformatted: