public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: bryce@waitaki.otago.ac.nz To: gcc-gnats@gcc.gnu.org Subject: java/5179: Qualifed static field access doesn't initialize its class Date: Sat, 22 Dec 2001 16:06:00 -0000 [thread overview] Message-ID: <20011223000506.9213.qmail@sources.redhat.com> (raw) >Number: 5179 >Category: java >Synopsis: Qualifed static field access doesn't initialize its class >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat Dec 22 16:06:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Bryce McKinlay >Release: gcc version 3.1 20011221 (experimental) >Organization: >Environment: >Description: The following test case crashes because no class initialization for "Bar" is generated. >How-To-Repeat: class Bar { static Bar B = new Bar(); int i = 1; } public class Qual2 { public static void main(String[] args) { System.out.println (Bar.B.i); // crash System.out.println ((Bar.B).i); // crash } } >Fix: >Release-Note: >Audit-Trail: >Unformatted:
reply other threads:[~2001-12-23 0:06 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20011223000506.9213.qmail@sources.redhat.com \ --to=bryce@waitaki.otago.ac.nz \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).