<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Paul Butcher</title>
	<atom:link href="http://www.paulbutcher.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulbutcher.com</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 16:38:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>Comment on ScalaMock 2.2 by paul</title>
		<link>http://www.paulbutcher.com/2012/01/scalamock-2-2/comment-page-1/#comment-32758</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Fri, 03 Feb 2012 16:38:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutcher.com/?p=1199#comment-32758</guid>
		<description>Ryan,

The best forum is probably the scalatest mailing list: http://groups.google.com/group/scalatest-users

There&#039;s an open ticket about the problem with vals here:
https://github.com/paulbutcher/ScalaMock/issues/3

As you can see from that bug, it turns out to be a more fundamental problem than it first appeared to be. I believe that I have worked out the structure of a solution, but I don&#039;t have an implementation of it yet.</description>
		<content:encoded><![CDATA[<p>Ryan,</p>
<p>The best forum is probably the scalatest mailing list: <a href="http://groups.google.com/group/scalatest-users" rel="nofollow">http://groups.google.com/group/scalatest-users</a></p>
<p>There&#8217;s an open ticket about the problem with vals here:<br />
<a href="https://github.com/paulbutcher/ScalaMock/issues/3" rel="nofollow">https://github.com/paulbutcher/ScalaMock/issues/3</a></p>
<p>As you can see from that bug, it turns out to be a more fundamental problem than it first appeared to be. I believe that I have worked out the structure of a solution, but I don&#8217;t have an implementation of it yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ScalaMock 2.2 by Ryan</title>
		<link>http://www.paulbutcher.com/2012/01/scalamock-2-2/comment-page-1/#comment-32725</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 03 Feb 2012 04:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutcher.com/?p=1199#comment-32725</guid>
		<description>Hey Paul,

Just a little extra information regarding the post above.  I noticed the original comment about the immutable method error was associated with lazy vals.  I seem to be getting this when using a trait that has vals (not necessarily declared as lazy either).  The mock object tries to override the val as a def.

Also, if you&#039;d prefer me to post questions / issues in another forum, please let me know.

Thanks,
Ryan</description>
		<content:encoded><![CDATA[<p>Hey Paul,</p>
<p>Just a little extra information regarding the post above.  I noticed the original comment about the immutable method error was associated with lazy vals.  I seem to be getting this when using a trait that has vals (not necessarily declared as lazy either).  The mock object tries to override the val as a def.</p>
<p>Also, if you&#8217;d prefer me to post questions / issues in another forum, please let me know.</p>
<p>Thanks,<br />
Ryan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ScalaMock 2.2 by Ryan</title>
		<link>http://www.paulbutcher.com/2012/01/scalamock-2-2/comment-page-1/#comment-32721</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 03 Feb 2012 03:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutcher.com/?p=1199#comment-32721</guid>
		<description>Hey Paul,

Any chance the &quot;method needs to be a stable, immutable value&quot; is resolved?  I&#039;m still getting the error.  I&#039;ve used the following in my SBT however:

libraryDependencies += &quot;org.scalamock&quot; %% &quot;scalamock-scalatest-support&quot; % &quot;latest.integration&quot;,

Thanks in advance,
Ryan</description>
		<content:encoded><![CDATA[<p>Hey Paul,</p>
<p>Any chance the &#8220;method needs to be a stable, immutable value&#8221; is resolved?  I&#8217;m still getting the error.  I&#8217;ve used the following in my SBT however:</p>
<p>libraryDependencies += &#8220;org.scalamock&#8221; %% &#8220;scalamock-scalatest-support&#8221; % &#8220;latest.integration&#8221;,</p>
<p>Thanks in advance,<br />
Ryan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ScalaMock 2.2 by paul</title>
		<link>http://www.paulbutcher.com/2012/01/scalamock-2-2/comment-page-1/#comment-32686</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Thu, 02 Feb 2012 17:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutcher.com/?p=1199#comment-32686</guid>
		<description>Oops - thanks for letting me know. Shame on me for letting that slip through my testing!

Yes, please do create a bug and I&#039;ll get to it as soon as I can.</description>
		<content:encoded><![CDATA[<p>Oops &#8211; thanks for letting me know. Shame on me for letting that slip through my testing!</p>
<p>Yes, please do create a bug and I&#8217;ll get to it as soon as I can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ScalaMock 2.2 by Emil</title>
		<link>http://www.paulbutcher.com/2012/01/scalamock-2-2/comment-page-1/#comment-32677</link>
		<dc:creator>Emil</dc:creator>
		<pubDate>Thu, 02 Feb 2012 13:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutcher.com/?p=1199#comment-32677</guid>
		<description>Hi Paul!

Like Paul I just started looking at ScalaMock and it looks nifty! I have however discovered an issue I think.

When mocking an object like:
object Foo {
  def foo(s:String)(t:String):List[String] = List(s,t)
}

The generated mock does not compile:
object Foo extends Mock$$Foo {

    def foo(s: String): (t: String)List[String] = if (forwardTo$Mocks != null) forwarder$0(s) else mock$0(s)
  // other generated methods here
}

As you can see the generated mock does not implement the correct method signature. After the first parameter list it inserts &quot;:&quot; expecting a return type.

Should I create an issue on GitHub for this?</description>
		<content:encoded><![CDATA[<p>Hi Paul!</p>
<p>Like Paul I just started looking at ScalaMock and it looks nifty! I have however discovered an issue I think.</p>
<p>When mocking an object like:<br />
object Foo {<br />
  def foo(s:String)(t:String):List[String] = List(s,t)<br />
}</p>
<p>The generated mock does not compile:<br />
object Foo extends Mock$$Foo {</p>
<p>    def foo(s: String): (t: String)List[String] = if (forwardTo$Mocks != null) forwarder$0(s) else mock$0(s)<br />
  // other generated methods here<br />
}</p>
<p>As you can see the generated mock does not implement the correct method signature. After the first parameter list it inserts &#8220;:&#8221; expecting a return type.</p>
<p>Should I create an issue on GitHub for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Race conditions in Rails sessions and how to fix them by paul</title>
		<link>http://www.paulbutcher.com/2007/05/race-conditions-in-rails-sessions-and-how-to-fix-them/comment-page-1/#comment-31473</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Thu, 12 Jan 2012 18:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.texperts.com/2007/05/01/race-conditions-in-rails-sessions-and-how-to-fix-them/#comment-31473</guid>
		<description>I&#039;m afraid I can&#039;t be much help, Ben - I&#039;m not aware of this issue being resolved in Rails, but I&#039;ve not been seriously involved in Rails development for a couple of years now, so my knowledge is not as up to date as it might be. I don&#039;t know if there&#039;s a more up to date ticket.</description>
		<content:encoded><![CDATA[<p>I&#8217;m afraid I can&#8217;t be much help, Ben &#8211; I&#8217;m not aware of this issue being resolved in Rails, but I&#8217;ve not been seriously involved in Rails development for a couple of years now, so my knowledge is not as up to date as it might be. I don&#8217;t know if there&#8217;s a more up to date ticket.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Race conditions in Rails sessions and how to fix them by Ben</title>
		<link>http://www.paulbutcher.com/2007/05/race-conditions-in-rails-sessions-and-how-to-fix-them/comment-page-1/#comment-31415</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 12 Jan 2012 03:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.texperts.com/2007/05/01/race-conditions-in-rails-sessions-and-how-to-fix-them/#comment-31415</guid>
		<description>I know this is an old post, but hoping for some updates as it&#039;s still referenced around the web:
1. Has this issue been resolved in any way in rails core? (I believe it hasn&#039;t)
2. If not, is there a current ticket number available?</description>
		<content:encoded><![CDATA[<p>I know this is an old post, but hoping for some updates as it&#8217;s still referenced around the web:<br />
1. Has this issue been resolved in any way in rails core? (I believe it hasn&#8217;t)<br />
2. If not, is there a current ticket number available?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ScalaMock 2.2 by paul</title>
		<link>http://www.paulbutcher.com/2012/01/scalamock-2-2/comment-page-1/#comment-31167</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Sun, 08 Jan 2012 21:31:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutcher.com/?p=1199#comment-31167</guid>
		<description>Thanks for the feedback, Paul.

The issue with question-marks should be easy for me to fix.

Embarrassingly, I haven&#039;t tested lazy vals - I&#039;ll investigate and see if I can work out what&#039;s up.

Can you do me a favour and create issues in GitHub for both of these? Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for the feedback, Paul.</p>
<p>The issue with question-marks should be easy for me to fix.</p>
<p>Embarrassingly, I haven&#8217;t tested lazy vals &#8211; I&#8217;ll investigate and see if I can work out what&#8217;s up.</p>
<p>Can you do me a favour and create issues in GitHub for both of these? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ScalaMock 2.2 by Paul</title>
		<link>http://www.paulbutcher.com/2012/01/scalamock-2-2/comment-page-1/#comment-31166</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 08 Jan 2012 20:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutcher.com/?p=1199#comment-31166</guid>
		<description>Hi Paul,
I am just trying your mocking library for the first time. I hit a couple of compile errors

The generated mock methods for methods ending in ? and + don&#039;t compile. The generated method name needs a space before the :

For example the following is generated (and does not compile)

def post_?: Boolean = ...

but this would work

def post_? : Boolean = ...

The other problem is where the class extends a trait with a lazy val, which gives &quot;method X needs to be a stable, immutable value&quot;.

Not sure what you can do about that one. Keep up the good work!</description>
		<content:encoded><![CDATA[<p>Hi Paul,<br />
I am just trying your mocking library for the first time. I hit a couple of compile errors</p>
<p>The generated mock methods for methods ending in ? and + don&#8217;t compile. The generated method name needs a space before the :</p>
<p>For example the following is generated (and does not compile)</p>
<p>def post_?: Boolean = &#8230;</p>
<p>but this would work</p>
<p>def post_? : Boolean = &#8230;</p>
<p>The other problem is where the class extends a trait with a lazy val, which gives &#8220;method X needs to be a stable, immutable value&#8221;.</p>
<p>Not sure what you can do about that one. Keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ScalaMock step-by-step by paul</title>
		<link>http://www.paulbutcher.com/2011/11/scalamock-step-by-step/comment-page-1/#comment-29885</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Thu, 22 Dec 2011 12:53:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulbutcher.com/?p=1110#comment-29885</guid>
		<description>Hey Kostas,

Maven support is on my list of things to do, but I know next-to-nothing about Maven, unfortunately, so it&#039;s unlikely to happen soon I&#039;m afraid. If you or anyone else fancies having a go, I&#039;d be delighted to accept a contribution :-)

Regarding cglib, I&#039;m well aware of it. I deliberately chose not to use it because part of my motivation for ScalaMock was to support Android, and Android&#039;s Dalvik VM doesn&#039;t support cglib, unfortunately.

I&#039;m not opposed to a cglib backend for ScalaMock, and may look at it myself at some point, but it&#039;s not something I&#039;m likely to have time to investigate any time soon, I&#039;m afraid. Again, I&#039;d be very happy to accept contributions if anyone felt like giving it a go :-)</description>
		<content:encoded><![CDATA[<p>Hey Kostas,</p>
<p>Maven support is on my list of things to do, but I know next-to-nothing about Maven, unfortunately, so it&#8217;s unlikely to happen soon I&#8217;m afraid. If you or anyone else fancies having a go, I&#8217;d be delighted to accept a contribution <img src='http://www.paulbutcher.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Regarding cglib, I&#8217;m well aware of it. I deliberately chose not to use it because part of my motivation for ScalaMock was to support Android, and Android&#8217;s Dalvik VM doesn&#8217;t support cglib, unfortunately.</p>
<p>I&#8217;m not opposed to a cglib backend for ScalaMock, and may look at it myself at some point, but it&#8217;s not something I&#8217;m likely to have time to investigate any time soon, I&#8217;m afraid. Again, I&#8217;d be very happy to accept contributions if anyone felt like giving it a go <img src='http://www.paulbutcher.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

