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: 6661448
Votes 0
Synopsis Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
Category java:snmp
Reported Against
Release Fixed 6-open(b06), 7(b53) (Bug ID:2169708)
State 10-Fix Delivered, request for enhancement
Priority: 2-High
Related Bugs 6672710 , 6819847
Submit Date 11-FEB-2008
Description
Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
in order to avoid build breaks if the closed SNMP files are not availaible.

At runtime, the SNMP agent is activated only if -Dcom. xxxxx .management.snmp.port=<port> is
present. The goal of this change is to allow to build a JDK that doesn't contain the
SNMP agent, and throws an UnsupportedOperationException if the 
-Dcom. xxxxx .management.snmp.port=<port> is present.
Posted Date : 2008-02-11 10:14:11.0
Work Around
N/A
Evaluation
see:
http://amos.france/jmgt/master/webrev/6open/webrev_6661448

The jdk/src/share/classes/sun/management/snmp packages depend on
jdk/src/share/classes/com/sun/jmx/snmp 
and jdk/src/closed/share/classes/com/sun/jmx/snmp.

However these packages are only referenced through the sun/management/Agent.java
class which calls sun.management.snmp.AdaptorBootstrap.initialize(). The idea here
is to:

1) use reflection to call sun.management.snmp.AdaptorBootstrap.initialize()
2) skip compilation of sun.management.snmp and com.sun.jmx.snmp when 
   OPENJDK=true and IMPORT_BINARY_PLUGS=false

This should produce a JDK with an rt.jar that doesn't contain the SNMP classes.
Posted Date : 2008-02-11 10:59:06.0

http://hg.openjdk.java.net/jdk7/tl/jdk/rev/fa87de6b1ac3
Posted Date : 2009-03-18 21:01:06.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang