This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
}
private static ReferenceQueue<Object> activeQueue() {
return ActiveQueue.queue();
try {
Class activeQueueClass = ClassLoader.getSystemClassLoader().loadClass("org.openide.util.lookup.implspi.ActiveQueue");
java.lang.reflect.Method activeMethod = activeQueueClass.getDeclaredMethod("queue", (Class[]) null);
return (ReferenceQueue<Object>) activeMethod.invoke(null, (Object[]) null);
} catch (Exception ex) {
System.err.println("ARQ failed");
Thread.dumpStack();
/** Storage to keep the internal structure of Pairs and to answer
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.ref.ReferenceQueue;
import java.lang.reflect.Method;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
* @since 3.11
*/
public static ReferenceQueue<Object> activeReferenceQueue() {
Method activeMethod = activeQueueClass.getDeclaredMethod("queue", (Class[]) null);
/** Get the operating system on which NetBeans is running.