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

(-)C:/Projects/NetBeans/JarClassLoader.orig.java (+15 lines)
Lines 312-317 Link Here
312
        } 
312
        } 
313
        return null;
313
        return null;
314
    }
314
    }
315
	
316
	// adik: used by Java 9 ClassLoader when calling loadClass(Module module, String name) for unnamed module
317
	// loading of package-info.class takes this path in Java 9
318
    @Override
319
    protected Class<?> findClass(String name) throws ClassNotFoundException {
320
        int last = name.lastIndexOf('.');
321
        if (last < 0) {
322
            throw new ClassNotFoundException("Will not load classes from default package (" + name + ")"); // NOI18N
323
        }
324
        
325
        String pkg = name.substring(0, last);
326
        
327
        return doLoadClass(pkg, name);
328
    }
329
	
315
    // look up the jars and return a resource based on a content of jars
330
    // look up the jars and return a resource based on a content of jars
316
    @Override
331
    @Override
317
    public URL findResource(String name) {
332
    public URL findResource(String name) {

Return to bug 271883