Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Steven Simpson Newsgroups: comp.lang.java.programmer Subject: Re: trigger static init Date: Thu, 12 Apr 2012 07:38:58 +0100 Organization: Aioe.org NNTP Server Lines: 12 Message-ID: <2t9i59-p8b.ln1@s.simpson148.btinternet.com> References: <5605o7di8le7conanmf0g70p1ltipeqct4@4ax.com> <17423607.56.1333992983521.JavaMail.geo-discussion-forums@pbkr6> NNTP-Posting-Host: 0qdAXuojAaWA+S+fgrGpqA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:13491 On 11/04/12 15:04, Patricia Shanahan wrote: > Suppose S is a static class defined in T. I interpreted that as meaning > that executing an assert in S would trigger initialization of T. > > Or suppose S is non-static, but the assert is in its static code. Can non-static S contain static code? -- ss at comp dot lancs dot ac dot uk