United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7068328 BufferPoolMXBean and PlatformLoggingMXBean getObjectName may return null
JDK-7068328 : BufferPoolMXBean and PlatformLoggingMXBean getObjectName may return null

Details
Type:
Bug
Submit Date:
2011-07-19
Status:
Resolved
Updated Date:
2013-04-30
Project Name:
JDK
Resolved Date:
2011-09-07
Component:
core-svc
OS:
generic
Sub-Component:
java.lang.management
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7,8
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

Description
As point out here:
 http://mail.openjdk.java.net/pipermail/nio-dev/2011-July/001385.html

there is a race that allows BufferPoolMXBean's getObjectName method to return null. The same issue is possible with PlatformLogginMXBean.
The following SDK/JDK test was added for this bug:

    java/lang/management/ManagementFactory/GetObjectName.java

                                    

Comments
EVALUATION

Yes, there is a race condition here. Easily fixed.
                                     
2011-07-19
EVALUATION

URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4e53fc6bcac0
                                     
2011-08-23



Hardware and Software, Engineered to Work Together