Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: trigger static init Date: Sun, 08 Apr 2012 23:28:51 -0700 Organization: Canadian Mind Products Lines: 13 Message-ID: <5605o7di8le7conanmf0g70p1ltipeqct4@4ax.com> Reply-To: Roedy Green NNTP-Posting-Host: Z2l1DcCELS0rATq8NqV4Sw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: csiph.com comp.lang.java.programmer:13453 What is the canonical way to explicitly trigger a static class to load and run thestatic init without actually invoking a real method? you can't necessarily use newInstance since the class may not have constructors. Do you have to invent some dummy static method? -- Roedy Green Canadian Mind Products http://mindprod.com When you were a child, if you did your own experiment to see if it was better to put to cocoa into your cup first or the hot milk first, then you likely have the programmer gene..