JDK-6477693 : ommited synchronized modifier in Random.nextGaussian()
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2006-10-03
  • Updated: 2011-01-19
  • Resolved: 2006-10-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6Resolved
Related Reports
Relates :  
Relates :  
Description
The CCC 6221118(http://ccc.sfbay/6221118) introduced the change for the code example in Randem.nextGaussian(). 
The code example in the CCC contains "synchronized" modifier for the method "public double nextGaussian()", but the examplpe from the spec for Random.nextGaussian() in JDK 6.0b100 is not.

Comments
EVALUATION Bug 4924316 updating the specification of the several methods in java.util.Random to describe the semantics of the class, calling its methods is threadsafe, rather than how that is accomplished, synchronization, atomic variables, etc. Closing as not a bug.
03-10-2006