Issue 273: polish error in example doc
http://code.google.com/p/google-guice/issues/detail?id=273

New issue report by nraynaud:
http://docs.google.com/View?docid=dd2fhx4z_5df5hw8
in this page in the counting example, the count instance var should be
volatile for the example to work.


@SessionScoped
public class Counter {

   volatile int count = 0;

   /** Increments the count and returns the new value. */
   public synchronized int increment() {
     return count++;
   }
}


Issue attributes:
        Status: New
        Owner: ----

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to