[7u4] Request for phase 2 approval CR 7074616: java.lang.management.ManagementFactory.getPlatformManagementInterfaces fails

David Holmes david.holmes at oracle.com
Sun Mar 18 18:47:43 PDT 2012


On 17/03/2012 4:11 AM, Andrew Hughes wrote:
> ----- Original Message -----
>> The first implementation of this method was working
>> as expected, but a later modification has introduced
>> this bug. The issue has not been detected before the
>> push because there wasn't any unit test or TCK test
>> associated with this method at this time. A CR
>> requesting the addition of tests for this method to
>> the TCK exists, but the fix has not been implemented
>> yet.
>>
>
> Ah, so it did work in u2 and earlier?

No. It was a new method in 7 and has never worked. It was derived from 
an earlier proposed method (getAllPlatformMXBeanInterfaces) that 
returned a List rather than a Set.

David
------


>> I've contacted the TCK team about this issue, but I
>> don't know when the TCK will be fixed.
>>
>> This changeset contains a unit test to prevent this
>> issue to happen again.
>>
>
> Yes, I saw that.  Good to see we'll catch such an issue in future.
>
>> Fred
>>
>> On 3/16/12 6:00 PM, Andrew Hughes wrote:
>>> ----- Original Message -----
>>>> CR: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7074616
>>>> Webrev: http://cr.openjdk.java.net/~fparain/7074616/webrev.01/
>>>> Technical Review:
>>>> http://mail.openjdk.java.net/pipermail/serviceability-dev/2012-March/005455.html
>>>>
>>>> Reviewers: David Holmes, Staffan Larsen
>>>>
>>>> Testing: The fix is the same for JDK8 and JDK7u4. It has been
>>>> already
>>>> pushed to JDK8 and tested on all platforms with JPRT yesterday
>>>> using
>>>> latest 7u4 sources.
>>>>
>>>> Rationale for inclusion in 7u4: This method is part of the JDK7
>>>> specification and fails unconditionally.
>>>>
>>>
>>> Any idea how this bug got through in the first place?  Unless I'm
>>> misunderstanding
>>> something, it sounds like the method was never run.
>>>
>>>> Thanks,
>>>>
>>>> Fred
>>>>
>>>> --
>>>> Frederic Parain - Oracle
>>>> Grenoble Engineering Center - France
>>>> Phone: +33 4 76 18 81 17
>>>> Email: Frederic.Parain at Oracle.com
>>>>
>>>>
>>>
>>
>> --
>> Frederic Parain - Oracle
>> Grenoble Engineering Center - France
>> Phone: +33 4 76 18 81 17
>> Email: Frederic.Parain at oracle.com
>>
>>
>



More information about the jdk7u-dev mailing list