<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>web development helpdesk &#187; static</title>
	<atom:link href="http://helpdesk.objects.com.au/tag/static/feed" rel="self" type="application/rss+xml" />
	<link>http://helpdesk.objects.com.au</link>
	<description>objects quality - the visible difference</description>
	<lastBuildDate>Sun, 17 Jul 2011 12:27:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>How to fix &#8220;Cannot make a static reference to the non-static method&#8221;</title>
		<link>http://helpdesk.objects.com.au/java/how-to-fix-cannot-make-a-static-reference-to-the-non-static-method?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-fix-cannot-make-a-static-reference-to-the-non-static-method</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-fix-cannot-make-a-static-reference-to-the-non-static-method#comments</comments>
		<pubDate>Wed, 24 Dec 2008 00:28:00 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=691</guid>
		<description><![CDATA[Static methods cannot call non-static methods. An instance of the class is required to call its methods and static methods are not accociated with an instance (they are class methods). To fix it you have a few choices depending on your exact needs. /** * Will not compile */ public class StaticReferenceToNonStatic { public static [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-fix-cannot-make-a-static-reference-to-the-non-static-method/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to specify a static constant in my Spring configuration?</title>
		<link>http://helpdesk.objects.com.au/java/how-to-specify-a-static-constant-in-my-spring-configuration?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-specify-a-static-constant-in-my-spring-configuration</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-specify-a-static-constant-in-my-spring-configuration#comments</comments>
		<pubDate>Wed, 10 Dec 2008 09:25:00 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[constant]]></category>
		<category><![CDATA[FieldRetrievingFactoryBean]]></category>
		<category><![CDATA[static]]></category>
		<category><![CDATA[util schema]]></category>
		<category><![CDATA[wiring]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=639</guid>
		<description><![CDATA[Static constants can be used in your Spring wiring using either FieldRetrievingFactoryBean, or the newer util schema. (2.0+) util schema &#60;bean id=&#34;myBean&#34; class=&#34;au.com.objects.MyBean&#34;&#62; &#60;property name=&#34;dayOfWeek&#34;&#62; &#60;util:constant static-field=&#34;java.util.Calendar.MONDAY&#34;/&#62; &#60;/property&#62; &#60;/bean&#62; (Pre-2.0) FieldRetrievingFactoryBean &#60;bean id=&#34;myBean&#34; class=&#34;au.com.objects.MyBean&#34;&#62; &#60;property name=&#34;dayOfWeek&#34;&#62; &#60;bean id=&#34;java.util.Calendar.MONDAY&#34; class=&#34;org.springframework.beans.factory.config.FieldRetrievingFactoryBean&#34;/&#62; &#60;/property&#62; &#60;/bean&#62; Related posts: How to specify log4j configuration in spring application? If you do not [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-specify-a-static-constant-in-my-spring-configuration/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m getting the error &#8220;Cannot make a static reference to the non-static field ..&#8221; when compiling my class. How do I fix it?</title>
		<link>http://helpdesk.objects.com.au/java/im-getting-the-error-cannot-make-a-static-reference-to-the-non-static-field-when-compiling-my-class-how-do-i-fix-it?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=im-getting-the-error-cannot-make-a-static-reference-to-the-non-static-field-when-compiling-my-class-how-do-i-fix-it</link>
		<comments>http://helpdesk.objects.com.au/java/im-getting-the-error-cannot-make-a-static-reference-to-the-non-static-field-when-compiling-my-class-how-do-i-fix-it#comments</comments>
		<pubDate>Thu, 25 Sep 2008 02:09:25 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=242</guid>
		<description><![CDATA[Static methods cannot access non-static member variables. An instance of the class is required to access its member variable and static methods are not associated with an instance (they are class methods). To fix it you have a few choices depending on your exact needs. /** * Will not compile */ public class StaticReferenceToNonStatic { [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/im-getting-the-error-cannot-make-a-static-reference-to-the-non-static-field-when-compiling-my-class-how-do-i-fix-it/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can I ensure some code is run when a Java class is first loaded and before any instances have been created?</title>
		<link>http://helpdesk.objects.com.au/java/can-i-ensure-some-code-is-run-when-a-java-class-is-first-loaded-and-before-any-instances-have-been-created?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=can-i-ensure-some-code-is-run-when-a-java-class-is-first-loaded-and-before-any-instances-have-been-created</link>
		<comments>http://helpdesk.objects.com.au/java/can-i-ensure-some-code-is-run-when-a-java-class-is-first-loaded-and-before-any-instances-have-been-created#comments</comments>
		<pubDate>Tue, 23 Sep 2008 01:13:53 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[initialization]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=141</guid>
		<description><![CDATA[You can achieve that by using a static block public class StaticBlockTest { static { // this block will get run once // when the class first loads } } Related posts: I&#8217;m getting the error &#8216;java.lang.NoSuchMethodError: main. Exception in thread &#8220;main&#8221;&#8216; when I try and run my Java class. Whats wrong? To run a [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/can-i-ensure-some-code-is-run-when-a-java-class-is-first-loaded-and-before-any-instances-have-been-created/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

