<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.12-alpha" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: &#8220;This Method Has a Constructor Name&#8221; Warning in Eclipse for Unit Tests</title>
	<link>http://www.timhardy.net/wordpress/2006/04/05/this-method-has-a-constructor-name-warning-in-eclipse-for-unit-tests/</link>
	<description>Too Much to Learn, Too Little Time</description>
	<pubDate>Tue, 06 Jan 2009 21:27:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.12-alpha</generator>

	<item>
		<title>by: Alan</title>
		<link>http://www.timhardy.net/wordpress/2006/04/05/this-method-has-a-constructor-name-warning-in-eclipse-for-unit-tests/#comment-42484</link>
		<pubDate>Mon, 19 May 2008 03:25:53 +0000</pubDate>
		<guid>http://www.timhardy.net/wordpress/2006/04/05/this-method-has-a-constructor-name-warning-in-eclipse-for-unit-tests/#comment-42484</guid>
					<description>Hi my name is Alan and I´m from Argentina
I never post in a forum, this is my first time.
Trying to resolve this problem I find this forum and I thought I´ll be a good idea post my experience.

Tchal has reason. The problem with thw warning is about the standard of Oriented Object Programing. Eclipse alerts you, because you are using the same name of the class for a method wich is not a constructor. Eclipse knows that because the sign of the method is diferent from a constructors sign method. Then you must allways use the name of the class only for a constructor method without putting the return value on the sign.</description>
		<content:encoded><![CDATA[<p>Hi my name is Alan and I´m from Argentina<br />
I never post in a forum, this is my first time.<br />
Trying to resolve this problem I find this forum and I thought I´ll be a good idea post my experience.</p>
<p>Tchal has reason. The problem with thw warning is about the standard of Oriented Object Programing. Eclipse alerts you, because you are using the same name of the class for a method wich is not a constructor. Eclipse knows that because the sign of the method is diferent from a constructors sign method. Then you must allways use the name of the class only for a constructor method without putting the return value on the sign.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tchal</title>
		<link>http://www.timhardy.net/wordpress/2006/04/05/this-method-has-a-constructor-name-warning-in-eclipse-for-unit-tests/#comment-30276</link>
		<pubDate>Wed, 20 Feb 2008 22:13:14 +0000</pubDate>
		<guid>http://www.timhardy.net/wordpress/2006/04/05/this-method-has-a-constructor-name-warning-in-eclipse-for-unit-tests/#comment-30276</guid>
					<description>Ah, in my case it was because I was doin' something that was syntactically correct, wouldn't cause any errors, but wasn't necessary.  Which is to say, putting "void" before the return.</description>
		<content:encoded><![CDATA[<p>Ah, in my case it was because I was doin&#8217; something that was syntactically correct, wouldn&#8217;t cause any errors, but wasn&#8217;t necessary.  Which is to say, putting &#8220;void&#8221; before the return.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tchal</title>
		<link>http://www.timhardy.net/wordpress/2006/04/05/this-method-has-a-constructor-name-warning-in-eclipse-for-unit-tests/#comment-30275</link>
		<pubDate>Wed, 20 Feb 2008 22:09:38 +0000</pubDate>
		<guid>http://www.timhardy.net/wordpress/2006/04/05/this-method-has-a-constructor-name-warning-in-eclipse-for-unit-tests/#comment-30275</guid>
					<description>I'm interested in what is missing that it feels it has to make that comment for, ya know?  Usually Eclipse has a pretty good idea what's going on, so it makes me feel like I'm missin' something.</description>
		<content:encoded><![CDATA[<p>I&#8217;m interested in what is missing that it feels it has to make that comment for, ya know?  Usually Eclipse has a pretty good idea what&#8217;s going on, so it makes me feel like I&#8217;m missin&#8217; something.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tim Hardy</title>
		<link>http://www.timhardy.net/wordpress/2006/04/05/this-method-has-a-constructor-name-warning-in-eclipse-for-unit-tests/#comment-1655</link>
		<pubDate>Mon, 25 Sep 2006 12:08:44 +0000</pubDate>
		<guid>http://www.timhardy.net/wordpress/2006/04/05/this-method-has-a-constructor-name-warning-in-eclipse-for-unit-tests/#comment-1655</guid>
					<description>Thanks Sudhi. 

I'm annoyed with myself that I didn't make better notes when originally posting this - if you revisit would you mind posting a comment detailing the JUnit method that provoked this warning and the version of Eclipse you are using. I experienced this on Eclipse 3.1 and haven't had the same problem with 3.2 so I'm guessing the problem has been fixed (although I can't find a bug report describing it). Cheers.</description>
		<content:encoded><![CDATA[<p>Thanks Sudhi. </p>
<p>I&#8217;m annoyed with myself that I didn&#8217;t make better notes when originally posting this - if you revisit would you mind posting a comment detailing the JUnit method that provoked this warning and the version of Eclipse you are using. I experienced this on Eclipse 3.1 and haven&#8217;t had the same problem with 3.2 so I&#8217;m guessing the problem has been fixed (although I can&#8217;t find a bug report describing it). Cheers.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Sudhi Umarji</title>
		<link>http://www.timhardy.net/wordpress/2006/04/05/this-method-has-a-constructor-name-warning-in-eclipse-for-unit-tests/#comment-1641</link>
		<pubDate>Sat, 23 Sep 2006 12:47:07 +0000</pubDate>
		<guid>http://www.timhardy.net/wordpress/2006/04/05/this-method-has-a-constructor-name-warning-in-eclipse-for-unit-tests/#comment-1641</guid>
					<description>Great posting on "This method has a constructor name" warning in Eclipse...It was really annoying and now I know I am not breaking some secret Java rule...</description>
		<content:encoded><![CDATA[<p>Great posting on &#8220;This method has a constructor name&#8221; warning in Eclipse&#8230;It was really annoying and now I know I am not breaking some secret Java rule&#8230;
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
