Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 12 Apr 2012 02:36:40 -0500 Date: Thu, 12 Apr 2012 00:36:33 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: trigger static init References: <5605o7di8le7conanmf0g70p1ltipeqct4@4ax.com> <17423607.56.1333992983521.JavaMail.geo-discussion-forums@pbkr6> <2t9i59-p8b.ln1@s.simpson148.btinternet.com> In-Reply-To: <2t9i59-p8b.ln1@s.simpson148.btinternet.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 14 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.201.141 X-Trace: sv3-puYLpXKVtg5oCv1tqVdQJ1rH2cNP3XL7UaR7F9ruczLEh23574HGW6RZbIIU5Dkvo2GG1Y7zWTH3Hwa!O37ac4cW4/hhk70y37s5aTug6VLlsVCkJb7ZH/tRwFpCuQ/Ps5XDDUfARS2VyWeUYPWzNZOfGS1z!Xp2TewixQi0xzQDRBJeprf3Hg2XFs+FiFHV4qPXtw+KtBrA= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1831 Xref: csiph.com comp.lang.java.programmer:13492 On 4/11/2012 11:38 PM, Steven Simpson wrote: > 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? > > Good catch. I forgot about that rule. Patricia