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.
static <T> Enumeration<T> singleton(T t) {
return Collections.enumeration(Collections.singleton(t));
}
public void testBrokenServices() throws Exception {
ClassLoader l = new URLClassLoader(new URL[] {new URL("file:///tmp/metainftest/dist/metainftest.jar")});
Class<?> c = l.loadClass("metainftest.Test");
System.err.println(Lookups.metaInfServices(l).lookupAll(c));