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

(-)ModuleInstallerSupport.java (+12 lines)
Lines 415-420 Link Here
415
                        if (! mi.isUpdated ()) ModuleInstaller.err.log (ErrorManager.WARNING, "WARNING - module will not really be updated");
415
                        if (! mi.isUpdated ()) ModuleInstaller.err.log (ErrorManager.WARNING, "WARNING - module will not really be updated");
416
                        int kind = getKind (existing);
416
                        int kind = getKind (existing);
417
                        remove (existing, kind);
417
                        remove (existing, kind);
418
                        Collection dependents = getDependentModules(mi.getDescription(), ENABLED_MODULE);
419
                        if (! dependents.isEmpty()) {
420
                            // #15599: there may have been other modules dependent on this, and it may
421
                            // happen that they kept the old bogus classloader as a parent. Clear them,
422
                            // else they could poison the system classloader with the old loader.
423
                            ModuleInstaller.err.log("Fixing #15599 for " + mi.getDescription().getCodeNameBase() + " with dependents " + dependents);
424
                            Iterator it = dependents.iterator();
425
                            while (it.hasNext()) {
426
                                ModuleItem dep = (ModuleItem)it.next();
427
                                dep.getDescription().setClassLoader(null);
428
                            }
429
                        }
418
                        add (mi, kind);
430
                        add (mi, kind);
419
                    }
431
                    }
420
                } else if (ghost != null) { // #9806
432
                } else if (ghost != null) { // #9806

Return to bug 15599