Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29948
| From | "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| References | <mgt41aluh04qirbq20lrin09lbanr01shs@4ax.com> |
| Subject | Re: What counts as a reference? |
| Date | 2014-09-12 11:19 +0100 |
| Message-ID | <IKednXFCcoPKV4_JnZ2dnUVZ7q6dnZ2d@bt.com> (permalink) |
Roedy Green wrote:
> I suspect that private static X x; counts as a reference even if there
> is no mention of X or x elsewhere.
From memory of the JVM spec (not the Java spec), the reference "private static
X x;" must cause the containing class to fail to load (I forget at what stage)
if there is no class X.
It's a long time since the JVM spec was part of my daily reading, though.
-- chris
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What counts as a reference? Roedy Green <see_website@mindprod.com.invalid> - 2014-09-11 21:30 -0700 Re: What counts as a reference? "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-09-12 11:19 +0100 Re: What counts as a reference? Steven Simpson <ss@domain.invalid> - 2014-09-12 15:47 +0100 Re: What counts as a reference? Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2014-09-12 21:53 -0700
csiph-web