United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6344759 JMX spec should mandate more clearly the 12 javax.management.*Exp private classes
JDK-6344759 : JMX spec should mandate more clearly the 12 javax.management.*Exp private classes

Details
Type:
Bug
Submit Date:
2005-11-02
Status:
Closed
Updated Date:
2010-07-29
Project Name:
JDK
Resolved Date:
2005-12-21
Component:
core-svc
OS:
generic
Sub-Component:
javax.management
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description
The relevant classes are:

javax.management.AndQueryExp
javax.management.BetweenQueryExp
javax.management.BinaryOpValueExp
javax.management.BinaryRelQueryExp
javax.management.BooleanValueExp
javax.management.ClassAttributeValueExp
javax.management.InQueryExp
javax.management.MatchQueryExp
javax.management.NotQueryExp
javax.management.NumericValueExp
javax.management.OrQueryExp
javax.management.QualifiedAttributeValueExp

A JavaSE licensee must have them on board to provide interoperability but the current javadoc only lists them by their serial form; it is not enough to get them in the radar screen of licensees.

                                    

Comments
EVALUATION

Spec for the various static Query.* methods should say for each one that it returns an object that is serialized as the appropriate class.  For example something like this:

     /**
      * ...
      * @return  The conjunction of the two arguments.  The returned object
      * will be serialized as an instance of the non-public class {@link
      * <a href="../../serialized-form.html#javax.management.AndQueryExp">
      * javax.management.AndQueryExp</a>}.
      */
     public static QueryExp and(QueryExp q1, QueryExp q2) {...}

An implementation is free to return any QueryExp it likes provided that it serializes as an AndQueryExp.
                                     
2005-11-02



Hardware and Software, Engineered to Work Together