Until we fix the language or something better comes along, Guice can work with Java to resolve some of the issues. Jesse Wilson, who you may know as the creator of Glazed Lists, has posted parts one and two of an N part series dedicated to using Guice to fix a vanilla, static-clung Java application. Jesse has a lot of experience refactoring legacy code. I'm glad he's sharing his wisdom.
Hello Bob, on page 20 of the Guice User Guide, there is a bug in the example code:
ReplyDelete/** Increments the count and returns the new value. */
public synchronized int increment() {
return count++;
}
this method returns the old value, not the new value as the comment indicates.
Just to show you I'm actually paying attention. :)
Ha ha. Thanks!
ReplyDelete