<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="http://www.sleberknight.com/blog/roller-ui/styles/rss.xsl" media="screen"?><rss version="2.0" 
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
  <title>Scott Leberknight&apos;s Weblog (Comments)</title>
  <link>http://www.sleberknight.com/blog/sleberkn/</link>
  <atom:link rel="self" type="application/rss+xml" href="http://www.sleberknight.com/blog/sleberkn/feed/comments/rss" />
  <description>Some Day I&apos;ll Have More Time...</description>
  <language>en-us</language>
  <copyright>Copyright 2025</copyright>
  <lastBuildDate>Sun, 6 Jul 2025 19:35:31 +0000</lastBuildDate>
  <generator>Apache Roller (incubating) 4.0 (20071120033321:dave)</generator>
          <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/distributed_coordination_with_zookeeper_part4#comment-1373590138000</guid>
        <title>Re: Distributed Coordination With ZooKeeper Part 5: Building a Distributed Lock</title>
        <dc:creator>Scott Leberknight</dc:creator>
        <pubDate>Fri, 12 Jul 2013 00:48:58 +0000</pubDate>
        <description>
<p>Hi Jordan, thanks for your comment and I totally agree. In the next blog (to be published next week) I mention that people should take a look at Curator and Exhibitor once they understand the basics of ZooKeeper. And if I get some time after that I plan to write a few blogs reworking some of the examples I've used but using Curator, and probably showing that Curator comes with a ton of good production-quality recipes out of the box.</p>


<p>- Scott</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/distributed_coordination_with_zookeeper_part4#comment-1373556711000</guid>
        <title>Re: Distributed Coordination With ZooKeeper Part 5: Building a Distributed Lock</title>
        <dc:creator>jordan@jordanzimmerman.com</dc:creator>
        <pubDate>Thu, 11 Jul 2013 15:31:51 +0000</pubDate>
        <description>
<p>Using the Session ID as the method for working around connection issues during node creation is not ideal. It prevents the same ZK connection from being used in multiple threads for the same lock. It's much better to use a GUID. This is what Curator uses.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/introducing_rjava#comment-1301907213000</guid>
        <title>Re: Introducing RJava</title>
        <dc:creator>Mwanji Ezana</dc:creator>
        <pubDate>Mon, 4 Apr 2011 08:53:33 +0000</pubDate>
        <description>
<p>This one is a few years old and real: https://github.com/jimweirich/rava</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/introducing_rjava#comment-1301668390000</guid>
        <title>Re: Introducing RJava</title>
        <dc:creator>Dennis Khuy</dc:creator>
        <pubDate>Fri, 1 Apr 2011 14:33:10 +0000</pubDate>
        <description>
<p>Excellent April 1st joke!</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/introducing_rjava#comment-1301662806000</guid>
        <title>Re: Introducing RJava</title>
        <dc:creator>Luca Bastos</dc:creator>
        <pubDate>Fri, 1 Apr 2011 13:00:06 +0000</pubDate>
        <description>
<p>http://www.rforge.net/rJava/</p>


<p>(former http://rosuda.org/rJava/ )</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/using_keynote_remote_when_there#comment-1265042745000</guid>
        <title>Re: Using Keynote Remote When There&apos;s No Wi-Fi Around</title>
        <dc:creator>Dave</dc:creator>
        <pubDate>Mon, 1 Feb 2010 16:45:45 +0000</pubDate>
        <description>
<p>Thanks! I read your post at the exact right time. I had to give a presentation, but didn't know if I would have wifi available. I almost went out and bought one of the physical remotes. Your post saved me $18. Thanks!</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1258163695000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>Chris Wash</dc:creator>
        <pubDate>Sat, 14 Nov 2009 01:54:55 +0000</pubDate>
        <description>
<p>I started typing out a response but it got too long to post here.  I looked around for a way to email it to you but couldn't find one so I posted it on my blog here.</p>


<p>Appreciate any thoughts/comments!</p>


<p>http://cwash.org/2009/11/14/a-response-to-can-java-be-saved/</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1258160297000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>Chris Wash</dc:creator>
        <pubDate>Sat, 14 Nov 2009 00:58:17 +0000</pubDate>
        <description>
<p>@Scott</p>


<p>A Newardian post deserves a Newardian reply.  :)</p>


<p>I like your language additions.  But those kind of additions are going to be happening in the context of the JCP, and many don't have the patience for that.  I think some of Spring, Guice, and CDI's enhancements to the programming model are novel ways of evolving given the restrictive &quot;all things to everyone&quot;, bureaucratic nature of Java at this stage of the game.  I think you can directly attribute people's despise for Java, or maybe more aptly, their enthusiasm for new languages, to the difficulty involved in making language changes to Java.  Regardless, there is still a freshness to the innovation in the Java world, but people are looking for it in the wrong place: it's in the programming model, not the language.</p>


<p>Your description of a native property syntax reminded me of another blog I read recently:</p>


<p>http://in.relation.to/Bloggers/WritingAPropertiesFileInJava</p>


<p>Sure, it lacks the punch of a native language feature - but is it that much different than what you're proposing?  Do I really need type inference?  I see it as easier to read and more powerful to remove the duplication of repeating a variable declaration and constructor call by removing the call to the constructor, as you point out, by not using the new keyword.  I can annotate a method as a producer and have the exact instance injected.  Again, this is a programming model enhancement that's independently evolved and proven itself.</p>


<p>I think there is still a lot of room for evolution, and a lot of work being done.  As you point out, the 800 lb gorilla seems to be continued by-in and enthusiasm from vendors - but most if not all of the real innovation that is occurring in the community is through open source software.  It's interesting how you have a rift in the open source space, in how, e.g. the Spring and the Seam teams have approached developing open source.  Do you work around the standards, which have tended to be over engineered themselves and riddled with problems? Or is the best plan to evolve a more realistic specification from frameworks that have been tested in the wild?  This is a fundamental issue plucking at the heart-strings of Java's future.  I believe you alluded to it in a talk on Real World Hibernate Tips I listened to you give not too long ago.  There are some big philosophical differences as to how we evolve and innovate in Java.  But I'm not sure we need to reconcile the two models - they both have merit in their own right.  The fact that there are competing models says to me that there is some competition, and the fate of Java is not yet sealed.  The programming model can evolve outside of language features, as we've seen with Spring, Guice, CDI and to a certain extent new JVM languages.  And vendors seem to be more open to evolving the programming model than the language at this point.</p>


<p>I certainly welcome any of your thoughts on this.  Thanks for the interesting article.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1258002230000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>bojan babic</dc:creator>
        <pubDate>Thu, 12 Nov 2009 05:03:50 +0000</pubDate>
        <description>
<p>I've been using Java as primary choice language for years in order to satisfy everyday corporate requirements/sh** and starting to have less and less fun. On the other hand all my private projects are done in Python and I enjoy it a lot. </p>


<p>I never questioned Java, nor tried to reinvent some of its over-complexed aspects. But, after reading your post it all came together and its so obvious. <br/>
Thanks for awesome post. Cheers!</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257898027000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>Scott Leberknight</dc:creator>
        <pubDate>Wed, 11 Nov 2009 00:07:07 +0000</pubDate>
        <description>
<p>@andrew Thanks for the info on Python. I've only done very minimal scripting in Python and have only read one beginner book on Python several years ago.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257897020000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>Scott Leberknight</dc:creator>
        <pubDate>Tue, 10 Nov 2009 23:50:20 +0000</pubDate>
        <description>
<p>@Scot Yes, you're probably right. During the architecture BOF at the Reston No Fluff Just Stuff conference this past weekend, there were still several people on Java 1.4! And the majority were on Java 5, with only a few on Java 6. That was only a sampling of about 15 people, though. But I never understand why organizations continue to restrict new applications to the same 5+ year old platform that apps developed over 5 years ago were built on. At the least I would think it easier to allow newer apps to run on new versions. And if an organization does any maintenance at all on apps, then perhaps more emphasis should be placed on keeping relatively current with versions. But then again, what do I know? I'm no CIO, CTO, nor do I have control over a multi-million dollar infrastructure.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257887407000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>Scot McSweeney-Roberts</dc:creator>
        <pubDate>Tue, 10 Nov 2009 21:10:07 +0000</pubDate>
        <description>
<p>Wouldn't an organization that will only use Java also be an organization that would be slow to adopt Java 7/8/X? In such an organization, you might be lucky if you can use Java 5 features, let alone something like closures.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257880128000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>andrew</dc:creator>
        <pubDate>Tue, 10 Nov 2009 19:08:48 +0000</pubDate>
        <description>
<p>Just a note about pythons class constructors; no magic is going on their either. The following is an approximation that simplifies what happens from the outside: </p>


<p>A class statement creates an object that is a descendant of Type. Type implements __call__ to a) call its own __new__ method to create a construct a new instance and then call that instance's __init__ method to initialize that instance.  The class object is bound to a name and thus becomes a firstclass callable just like any other.</p>


<p>It only appears to be magic if you've never looked inside.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257863057000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>Scott Leberknight</dc:creator>
        <pubDate>Tue, 10 Nov 2009 14:24:17 +0000</pubDate>
        <description>
<p>Tamas and mgr: I actually do use Groovy quite a bit, and I have played with both Scala and Clojure a little bit, mostly by being a reviewer on Venkat Subramaniam's Programming Scala book and Stu Halloway's Programming Clojure book. On a recent project which has been in production since October 2007 we've converted all unit tests to Groovy and about 40% of the production code to Groovy. We've been pleased with the reduction in number of lines of code and boilerplate, and the flexibility we get from Groovy. Note this is not an extremely high-performance high-volume app, rather it is a webapp that talks to an RDBMS mostly, so we haven't seen really any performance issues with Groovy. Plus it is still a Spring/Hibernate webapp with all the goodness (or badness depending on your view) which those entail. The only difference is the language is Groovy not Java.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257858924000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>Tamas Rev</dc:creator>
        <pubDate>Tue, 10 Nov 2009 13:15:24 +0000</pubDate>
        <description>
<p>I agree with mgr: you can use groovy (or Scala, JRuby, Clojure) over JVM, so you'll have all the desired benefits, and still, you can use the Java APIs, framework, etc. On the other hand, Java remains backward compatible.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257846198000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>Nja</dc:creator>
        <pubDate>Tue, 10 Nov 2009 09:43:18 +0000</pubDate>
        <description>
<p>The two code examples in &quot;Property/Method Handles&quot; are identical :-)</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257845605000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>Carlos Ferreyra</dc:creator>
        <pubDate>Tue, 10 Nov 2009 09:33:25 +0000</pubDate>
        <description>
<p>I must say I agree with all your points.<br/>
Hope at least properties become a reality.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257845412000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>mgr</dc:creator>
        <pubDate>Tue, 10 Nov 2009 09:30:12 +0000</pubDate>
        <description>
<p>Have you tried groovy yet? You really should. This is the way to code java the way you want it. <br/>
http://groovy.codehaus.org</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257843892000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>grant</dc:creator>
        <pubDate>Tue, 10 Nov 2009 09:04:52 +0000</pubDate>
        <description>
<p>David Adams: This is a blog post, not an AP news item. Dialectic variation is perfectly acceptable. Especially when the variant in question is dominant in use.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257823404000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>David Adams</dc:creator>
        <pubDate>Tue, 10 Nov 2009 03:23:24 +0000</pubDate>
        <description>
<p>&quot;chomping at the bit&quot;</p>


<p>Champing at the bit. Not &quot;chomping&quot; at the bit.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257790237000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>Scott Leberknight</dc:creator>
        <pubDate>Mon, 9 Nov 2009 18:10:37 +0000</pubDate>
        <description>
<p>I think they would probably kill me first. :-)</p>


<p>And let's be honest. There are way, way smarter people than me who probably have campaigned for changes like this and lost. That, or they just went and wrote their own language, which I am not smart enough to do.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/can_java_be_saved#comment-1257786732000</guid>
        <title>Re: Can Java Be Saved?</title>
        <dc:creator>Carl Fyffe</dc:creator>
        <pubDate>Mon, 9 Nov 2009 17:12:12 +0000</pubDate>
        <description>
<p>You should become a member of the JCP and push for these changes. If anyone could do it, it would be you.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/thinking_matters#comment-1241109101000</guid>
        <title>Re: Thinking Matters</title>
        <dc:creator>matt mcknight</dc:creator>
        <pubDate>Thu, 30 Apr 2009 16:31:41 +0000</pubDate>
        <description>
<p>Good points all around. </p>


<p>I do wonder about the language complexity question though, at least from a relative perspective. The author did seem to be making a point of comparison between Java and the languages that preceded it, namely C++, and that it wasn't a significant reduction in complexity. My recurring malloc() nightmares disagree, but it just seemed to move the problems from memory allocation to garbage collection.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/missing_aop_target_packages_in#comment-1232206404000</guid>
        <title>Re: Missing aop &apos;target&apos; packages in Spring 3.0.0.M1 zip file</title>
        <dc:creator>Twice</dc:creator>
        <pubDate>Sat, 17 Jan 2009 15:33:24 +0000</pubDate>
        <description>
<p>Thanks for the JDK link.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/cloud_oriented_architecture_coa#comment-1219318210000</guid>
        <title>Re: Cloud-Oriented Architecture (COA)</title>
        <dc:creator>Scott Leberknight</dc:creator>
        <pubDate>Thu, 21 Aug 2008 11:30:10 +0000</pubDate>
        <description>
<p>Jesse, CloudStatus looks really cool. Thanks for the link.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/cloud_oriented_architecture_coa#comment-1219318124000</guid>
        <title>Re: Cloud-Oriented Architecture (COA)</title>
        <dc:creator>ScottLeberknight</dc:creator>
        <pubDate>Thu, 21 Aug 2008 11:28:44 +0000</pubDate>
        <description>
<p>Kristen, thanks for the info. There's definitely a lot of cool things companies are doing to enable really high availability and scalability. And Joyent looks pretty cool.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/cloud_oriented_architecture_coa#comment-1219253501000</guid>
        <title>Re: Cloud-Oriented Architecture (COA)</title>
        <dc:creator>Jesse</dc:creator>
        <pubDate>Wed, 20 Aug 2008 17:31:41 +0000</pubDate>
        <description>
<p>Scott,</p>


<p>salesforce.com pioneered transparency for SaaS/PaaS providers with their trust.salesforce.com site.</p>


<p>Also, you may have seen this post from Google's App Engine blog today: http://googleappengine.blogspot.com/2008/08/new-third-party-party-tool-for.html</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/cloud_oriented_architecture_coa#comment-1219242948000</guid>
        <title>Re: Cloud-Oriented Architecture (COA)</title>
        <dc:creator>Kristen</dc:creator>
        <pubDate>Wed, 20 Aug 2008 14:35:48 +0000</pubDate>
        <description>
<p>Scott, You are so right, out tool boxes have become a lot bigger and Joyent's cloud computing is leading the way. I'm not sure if you are aware of this, but Joyent is the official host for Ruby on Rails and their ability to scale over 1 billion page views per month is proving them to be a developers' number one choice for web applications. </p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/20080220#comment-1203584809000</guid>
        <title>Re: SecurityException Running Groovy Scripts with JetGroovy IntelliJ Plugin</title>
        <dc:creator>Eugene Vigdorchik</dc:creator>
        <pubDate>Thu, 21 Feb 2008 09:06:49 +0000</pubDate>
        <description>
<p>Scott, this seems a Mac-specific issue, we are sorry for this creeping into plugin manager - we'll try to work it out ASAP. </p>


<p>Eugene.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/20080220#comment-1203535461000</guid>
        <title>Re: SecurityException Running Groovy Scripts with JetGroovy IntelliJ Plugin</title>
        <dc:creator>Tony</dc:creator>
        <pubDate>Wed, 20 Feb 2008 19:24:21 +0000</pubDate>
        <description>
<p>Thanks for the warning on this, I'll wait to upgrade for a little longer.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/200705311#comment-1180994751000</guid>
        <title>Re: Do You Unit Test Getters and Setters?</title>
        <dc:creator>Scott Leberknight</dc:creator>
        <pubDate>Mon, 4 Jun 2007 22:05:51 +0000</pubDate>
        <description>
<p>Totally agree that testing getters and setters is sort of silly unless they have side effects. But since it is possible, however unlikely, someone could screw up a setter by writing or modifying and IDE-generated one like so:</p>


<p>public void setIt(String it) { it = it; } // forgot &quot;this&quot;</p>


<p>or whatever, then if I can have an automated way of testing all the silly getters and setters by writing essentially one line of code in my tests, why not do it?</p>


<p>Again, this is such a silly thing but I want good code coverage to make sure my code is tested and that everything works as expected; unfortunately getters and setters are actual code in Java, even though mainly boilerplate, but they still need to work and at least this way you can verify that behavior.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/20070531#comment-1180994422000</guid>
        <title>Re: Dirt Simple Mock Objects In Groovy</title>
        <dc:creator>Scott Leberknight</dc:creator>
        <pubDate>Mon, 4 Jun 2007 22:00:22 +0000</pubDate>
        <description>
<p>I've just started doing this myself, so I don't know too much yet, other than how quickly I was able to whip up those mocks without really knowing Groovy very well. On my current project we are looking at starting to write tests in Groovy but first have to make sure it all works with Maven2, which we're using as the build tool.</p>


<p>I know, based on talking to other people who are doing it like Neal Ford of ThoughtWorks, that you definitely can unit test your Java code using Groovy, even though I've not yet done that. I am fairly sure the coverage tools will work fine since they are instrumenting your actual Java code, not the tests themselves, so as long as a LOC is executed, Clover, Cobertura, etc. will pick that fact up. And, I know that Neal is huge into delivering systems with close to 100% coverage, so I doubt he'd use Groovy for tests if he couldn't get test coverage. (I am hoping to sneak my laptop to the beach next week and play around with Groovy some more, which pretty much makes me a total geek.)</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/20070531#comment-1180687342000</guid>
        <title>Re: Dirt Simple Mock Objects In Groovy</title>
        <dc:creator>Robert Fischer</dc:creator>
        <pubDate>Fri, 1 Jun 2007 08:42:22 +0000</pubDate>
        <description>
<p>On my To Do list is to take a careful look at unit testing in Groovy: specifically, can I unit test my Java code using Groovy's unit testing capabilities, and would I want to?  Unit tests are a great place for dynamic scripting languages: you're going to be running all of them often, so you're not actually losing anything when you lose static typing, and anything that can make data mocking and set-up easier becomes a huge win.</p>


<p>My biggest concern would be whether code coverage tools would work with Groovy.  Any experience on that?</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/200705311#comment-1180687032000</guid>
        <title>Re: Do You Unit Test Getters and Setters?</title>
        <dc:creator>Robert Fischer</dc:creator>
        <pubDate>Fri, 1 Jun 2007 08:37:12 +0000</pubDate>
        <description>
<p>In general, I don't explicit test my getters and setters: I tend to test then en passant while validating more interesting code behavior.  My general feeling is that if there is no unit test that I write that makes use of a given getter or setter, I should reconsider whether it is valuable.</p>


<p>The most common exception to this guideline is validating when the setter explodes when null is passed in.  I test that pretty religiously, because that variable being null is usually an implicit assumption elsewhere in my code.</p>


<p>A less common exception to this guideline is when I have constructed an intentionally immutable object, and I want to validate that changing the returned object doesn't change the state of my object.</p>

</description>
    </item>
        <item>
        <guid isPermaLink="true">http://www.sleberknight.com/blog/sleberkn/entry/20070425#comment-1177738094000</guid>
        <title>Re: Using jps to Find JVM Process Information</title>
        <dc:creator>david.tao</dc:creator>
        <pubDate>Sat, 28 Apr 2007 05:28:14 +0000</pubDate>
        <description>
<p>Hi,i have some question ask for you,i want to list the java processes on a remote linux host,but when i use the command &quot; jstatd -J-Djava.security.policy=jstatd.all.policy&quot; to start jstatd processe i got this exception message:<br/>
-----------------------<br/>
Could not bind /JStatRemoteHost to RMI Registry<br/>
java.rmi.ConnectIOException: non-JRMP server at remote endpoint<br/>
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:217)<br/>
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)<br/>
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)<br/>
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)<br/>
        at java.rmi.Naming.rebind(Naming.java:160)<br/>
        at sun.tools.jstatd.Jstatd.bind(Jstatd.java:40)<br/>
        at sun.tools.jstatd.Jstatd.main(Jstatd.java:126)<br/>
-------------------------<br/>
So I changed to port 1982 because I read somewhere that JBoss binds the naming to 1099,code like this:<br/>
#rmiregistry 1982&amp;<br/>
#jstatd -J-Djava.security.policy=jstatd.all.policy -p 1982<br/>
this time jstatd processe can be started,but use &quot;jps -m 192.168.0.102:1982&quot; cannot find JVM process information but got this message &quot;Malformed Host Identifier: 192.168.0.102:1982&quot;.I've tried to run jstatd on my windows xp machine, but i didn't find any problems.<br/>
How could i solve this problem? Thank you!</p>

</description>
    </item>
    </channel>
</rss>