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 179859
Collapse All | Expand All

(-)a/openide.util.lookup/test/unit/src/org/openide/util/lookup/MetaInfServicesLookupTest.java (+6 lines)
Lines 549-552 Link Here
549
    static <T> Enumeration<T> singleton(T t) {
549
    static <T> Enumeration<T> singleton(T t) {
550
        return Collections.enumeration(Collections.singleton(t));
550
        return Collections.enumeration(Collections.singleton(t));
551
    }
551
    }
552
    
553
    public void testBrokenServices() throws Exception {
554
        ClassLoader l = new URLClassLoader(new URL[] {new URL("file:///tmp/metainftest/dist/metainftest.jar")});
555
        Class<?> c = l.loadClass("metainftest.Test");
556
        System.err.println(Lookups.metaInfServices(l).lookupAll(c));
557
    }
552
}
558
}

Return to bug 179859