ClassLoader (ClassLoader parent) { String loader = <error descr="Cannot resolve symbol 'SystemProperties'">SystemProperties</error>.getProperty("java.system.class.loader", null); if (loader == null) { return parent; } try { <error descr="Cannot resolve symbol 'Constructor'">Constructor</error> c = Class.forName(loader, false, parent) .getConstructor(new Class[] { ClassLoader.class }); return (ClassLoader)c.<error descr="Cannot resolve method 'newInstance(java.lang.Object[])'">newInstance</error>(new Object[] { parent }); } catch (Exception e) { System.err.println("Requested system classloader " + loader + " failed."); throw (Error) new Error("Requested system classloader " + loader + " failed.") .initCause(e); } }