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

(-)../netbeans/src/netbinox/src/org/netbeans/modules/netbinox/NetbinoxLoader.java (-17 lines)
Lines 43-54 Link Here
43
43
44
import java.io.File;
44
import java.io.File;
45
import java.io.IOException;
45
import java.io.IOException;
46
47
import java.lang.reflect.Method;
48
49
import java.net.URI;
46
import java.net.URI;
50
import java.net.URISyntaxException;
47
import java.net.URISyntaxException;
51
52
import java.security.ProtectionDomain;
48
import java.security.ProtectionDomain;
53
import java.util.logging.Level;
49
import java.util.logging.Level;
54
import org.eclipse.osgi.baseadaptor.BaseData;
50
import org.eclipse.osgi.baseadaptor.BaseData;
Lines 66-84 Link Here
66
 * @author Jaroslav Tulach <jtulach@netbeans.org>
62
 * @author Jaroslav Tulach <jtulach@netbeans.org>
67
 */
63
 */
68
final class NetbinoxLoader extends DefaultClassLoader {
64
final class NetbinoxLoader extends DefaultClassLoader {
69
    static {
70
        boolean typeParallel = "parallel".equals(System.getProperty("osgi.classloader.type", "parallel")); //$NON-NLS-1$
71
        try {
72
            if (typeParallel) {
73
                Method parallelCapableMetod = ClassLoader.class.getDeclaredMethod("registerAsParallelCapable", (Class[]) null); //$NON-NLS-1$
74
                parallelCapableMetod.setAccessible(true);
75
                parallelCapableMetod.invoke(null, (Object[]) null);
76
            }
77
        } catch (Throwable e) {
78
            // recover. this is a bad place to fail. 
79
            ;
80
        }
81
    }
82
    public NetbinoxLoader(ClassLoader parent, ClassLoaderDelegate delegate, ProtectionDomain domain, BaseData bd, String[] classpath) {
65
    public NetbinoxLoader(ClassLoader parent, ClassLoaderDelegate delegate, ProtectionDomain domain, BaseData bd, String[] classpath) {
83
        super(parent, delegate, domain, bd, classpath);
66
        super(parent, delegate, domain, bd, classpath);
84
        this.manager = new NoTouchCPM(bd, classpath, this);
67
        this.manager = new NoTouchCPM(bd, classpath, this);

Return to bug 226084