diff --git a/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java b/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java index 56d13232f..c29b421ce 100644 --- a/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java +++ b/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java @@ -70,10 +70,10 @@ class ProcessDestroyer implements Runnable { * removing a process results in an empty list, the * ProcessDestroyer is removed as a shutdown hook. */ - public ProcessDestroyer() { + ProcessDestroyer() { try { // check to see if the shutdown hook methods exists - // (support pre-JDK 1.3 VMs) + // (support pre-JDK 1.3 and Non-Sun VMs) Class[] paramTypes = {Thread.class}; addShutdownHookMethod = Runtime.class.getMethod("addShutdownHook", paramTypes);