I have been asked to help evaluate Foxtrot for a client of mine. Looking through the source code, I am a little concerned. Has anyone used this or have any experience with it? I am especially concerned about the following code:
try
{
AccessController.doPrivileged(new PrivilegedExceptionAction()
{
public Object run() throws ClassNotFoundException,
NoSuchMethodException
{
ClassLoader loader = ClassLoader.getSystemClassLoader();
conditionalClass = loader.loadClass("java.awt.Conditional");
sequencedEventClass =
loader.loadClass("java.awt.SequencedEvent");
Class dispatchThreadClass =
loader.loadClass("java.awt.EventDispatchThread");
pumpEventsMethod =
dispatchThreadClass.getDeclaredMethod("pumpEvents", new
Class[]{conditionalClass});
pumpEventsMethod.setAccessible(true); // See remarks for use of this property in
java.awt.EventDispatchThread
String property = "sun.awt.exception.handler";
String handler = System.getProperty(property);
if (handler == null)
{
handler = ThrowableHandler.class.getName();
System.setProperty(property, handler);
if (debug)
System.out.println("[SunJDK14ConditionalEventPump] Installing AWT
Throwable Handler " + handler);
}
else
{
if (debug)
System.out.println("[SunJDK14ConditionalEventPump] Using already
installed AWT Throwable Handler " + handler);
}
return null;
}
});
}
catch (Throwable x)It looks like this is getting access to some classes that it shouldn't have access to.
Thanks for any help or advice.
Irv
-- Before you attempt to beat the odds, be sure you could survive the odds beating you.
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
