United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6387340 Remove javax.management.timer.TimerAlarmClockNotification from the public API
JDK-6387340 : Remove javax.management.timer.TimerAlarmClockNotification from the public API

Details
Type:
Bug
Submit Date:
2006-02-17
Status:
Resolved
Updated Date:
2012-03-23
Project Name:
JDK
Resolved Date:
2006-04-14
Component:
core-svc
OS:
generic
Sub-Component:
javax.management
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

Description
The javax.management.timer.TimerAlarmClock package-private class is referenced to from the constructor of public javax.management.timer.TimerAlarmClockNotification class:

Constructor Summary
TimerAlarmClockNotification(javax.management.timer.TimerAlarmClock source)
          Deprecated. Constructor.

                                    

Comments
EVALUATION

We're aware of this problem.  We considered fixing it in the JMX 1.2 timeframe (back in late 2002) but the consensus at that time was that this was strictly speaking a signature change.  However it wasn't a very strong consensus and I think we could revisit the decision.  The fact that this constructor has a parameter of a private class, and that a null value produces an exception, means that the constructor can never usefully be called so removing it would not break any existing code.
                                     
2006-02-17
EVALUATION

This class is unusable by code outside the package it is defined in, because its only visible constructor has a parameter whose type is a non-public class.  If you call that constructor with a null parameter, you get an immediate exception.  Therefore, exceptionally, this public class can safely be deleted from the Java SE API.
                                     
2006-06-28



Hardware and Software, Engineered to Work Together