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.

View | Details | Raw Unified | Return to bug 184192
Collapse All | Expand All

(-)a/openide.util.lookup/src/org/openide/util/lookup/AbstractLookup.java (-1 / +9 lines)
Lines 759-765 Link Here
759
    }
759
    }
760
760
761
    private static ReferenceQueue<Object> activeQueue() {
761
    private static ReferenceQueue<Object> activeQueue() {
762
        return ActiveQueue.queue();
762
        try {
763
            Class activeQueueClass = ClassLoader.getSystemClassLoader().loadClass("org.openide.util.lookup.implspi.ActiveQueue");
764
            java.lang.reflect.Method activeMethod = activeQueueClass.getDeclaredMethod("queue", (Class[]) null);
765
            return (ReferenceQueue<Object>) activeMethod.invoke(null, (Object[]) null);
766
            } catch (Exception ex) {
767
                System.err.println("ARQ failed");
768
                Thread.dumpStack();
769
                return ActiveQueue.queue();
770
            }
763
    }
771
    }
764
772
765
    /** Storage to keep the internal structure of Pairs and to answer
773
    /** Storage to keep the internal structure of Pairs and to answer
(-)a/openide.util/src/org/openide/util/BaseUtilities.java (-1 / +10 lines)
Lines 47-52 Link Here
47
import java.io.IOException;
47
import java.io.IOException;
48
import java.io.InputStreamReader;
48
import java.io.InputStreamReader;
49
import java.lang.ref.ReferenceQueue;
49
import java.lang.ref.ReferenceQueue;
50
import java.lang.reflect.Method;
50
import java.net.URI;
51
import java.net.URI;
51
import java.net.URISyntaxException;
52
import java.net.URISyntaxException;
52
import java.net.URL;
53
import java.net.URL;
Lines 226-232 Link Here
226
     * @since 3.11
227
     * @since 3.11
227
     */
228
     */
228
    public static ReferenceQueue<Object> activeReferenceQueue() {
229
    public static ReferenceQueue<Object> activeReferenceQueue() {
229
        return ActiveQueue.queue();
230
        try {
231
            Class activeQueueClass = ClassLoader.getSystemClassLoader().loadClass("org.openide.util.lookup.implspi.ActiveQueue");
232
            Method activeMethod = activeQueueClass.getDeclaredMethod("queue", (Class[]) null);
233
            return (ReferenceQueue<Object>) activeMethod.invoke(null, (Object[]) null);
234
        } catch (Exception ex) {
235
            System.err.println("ARQ failed");
236
            Thread.dumpStack();
237
            return ActiveQueue.queue();
238
        }
230
    }
239
    }
231
240
232
    /** Get the operating system on which NetBeans is running.
241
    /** Get the operating system on which NetBeans is running.

Return to bug 184192