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

(-)core/bootstrap/src/org/netbeans/Module.java (-7 / +19 lines)
Lines 1050-1055 Link Here
1050
        if (classloader instanceof ProxyClassLoader) {
1050
        if (classloader instanceof ProxyClassLoader) {
1051
            ((ProxyClassLoader)classloader).destroy();
1051
            ((ProxyClassLoader)classloader).destroy();
1052
        }
1052
        }
1053
        // #21114: try to release all JAR locks
1054
        Iterator it = oldClassLoaders.iterator();
1055
        while (it.hasNext()) {
1056
            OneModuleClassLoader l = (OneModuleClassLoader)it.next();
1057
            try {
1058
                l.releaseLocks();
1059
            } catch (IllegalStateException ise) {
1060
                // XXX: released locks multiple on same module
1061
            }
1062
        }
1063
        moduleJARs.remove(jar);
1053
        classloader = null;
1064
        classloader = null;
1054
        Util.err.log("classLoaderDown on " + this + ": releaseCount=" + releaseCount + " released=" + released);
1065
        Util.err.log("classLoaderDown on " + this + ": releaseCount=" + releaseCount + " released=" + released);
1055
        released = false;
1066
        released = false;
Lines 1071-1083 Link Here
1071
    
1082
    
1072
    /** Notify the module that it is being deleted. */
1083
    /** Notify the module that it is being deleted. */
1073
    void destroy() {
1084
    void destroy() {
1074
        // #21114: try to release all JAR locks
1085
        assert ! isEnabled () : "Cannot destroy enaled module " + this;
1075
        Iterator it = oldClassLoaders.iterator();
1086
//        // #21114: try to release all JAR locks
1076
        while (it.hasNext()) {
1087
//        Iterator it = oldClassLoaders.iterator();
1077
            OneModuleClassLoader l = (OneModuleClassLoader)it.next();
1088
//        while (it.hasNext()) {
1078
            l.releaseLocks();
1089
//            OneModuleClassLoader l = (OneModuleClassLoader)it.next();
1079
        }
1090
//            l.releaseLocks();
1080
        moduleJARs.remove(jar);
1091
//        }
1092
//        moduleJARs.remove(jar);
1081
    }
1093
    }
1082
    
1094
    
1083
    /** Get the JAR manifest.
1095
    /** Get the JAR manifest.

Return to bug 61028