Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6730380
Votes 0
Synopsis java.util.Timer should use AtomicInteger
Category java:classes_util
Reported Against b30
Release Fixed 7(b34)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 28-JUL-2008
Description
The java.util.Timer implementation uses a static synchronized method to create serial numbers to be used in creation of the thread names created by the Timer. This serial number is simply an integer that is incremented every time the method is called. It is a  customer  candidate for replacement with a java.util.concurrent.atomic.AtomicInteger, as suggested by the following comment in the code:
    /**
     * This ID is used to generate thread names.  (It could be replaced
     * by an AtomicInteger as soon as they become available.)
     */
Posted Date : 2008-07-28 09:23:11.0
Work Around
N/A
Evaluation
Martin Buchholz has prepared a fix for delivery in to OpenJDK.
Posted Date : 2008-07-28 09:23:11.0

http://hg.openjdk.java.net/jdk7/tl/jdk/rev/3a1325be2806
Posted Date : 2008-08-01 10:15:26.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang