This discussion is archived
0 Replies Latest reply: Nov 16, 2009 7:36 AM by 843810 RSS

jdb : inspect private static variables

843810 Newbie
Currently Being Moderated
I am trying to see the contents of a private static variable in a jdb remote session. The answer is :

RMI TCP Connection(5)-127.0.0.1[1] dump JMSProviderFactory.clientFactories
com.sun.tools.example.debug.expr.ParseException: Name unknown: JMSProviderFactory.clientFactories
JMSProviderFactory.clientFactories = null

the source code is :

public class JMSProviderFactory {

private static Hashtable<Object,Object> clientFactories = new Hashtable<Object,Object>();
     
private Object clientID = null;
     
private HashMap<Object,Object> providers = new HashMap<Object,Object>();

< ... methods ,,. >

public static JMSProviderFactory getFactory(Object clientID) {
     return (JMSProviderFactory)clientFactories.get(clientID);
}

< ... methods ,,. >

}

When stopped at the above static method.

Help