public Class<?> loadClass(ScannedItem item) throws IOException, ClassFormatError { String name = item.getClassName(); Class<?> clazz = findLoadedClass(name); if (clazz == null) { SecurityManager securityManager = System.getSecurityManager(); if (securityManager != null) { int iLastDot = name.lastIndexOf('.'); if (iLastDot != -1) securityManager.checkPackageAccess(name.substring(0, iLastDot)); } byte[] data = item.getContent(); clazz = defineClass(name, data, 0, data.length); } return clazz; } }
public Class<?> loadClass(ScannedItem item) throws IOException, ClassFormatError { String name = item.getClassName(); Class<?> clazz = findLoadedClass(name); if (clazz == null) { SecurityManager securityManager = System.getSecurityManager(); if (securityManager != null) { int iLastDot = name.lastIndexOf('.'); if (iLastDot != -1) securityManager.checkPackageAccess(name.substring(0, iLastDot)); } byte[] data = item.getContent(); clazz = defineClass(name, data, 0, data.length); } return clazz; } }
public Class<?> loadClass(ScannedItem item) throws IOException, ClassFormatError { String name = item.getClassName(); Class<?> clazz = findLoadedClass(name); if (clazz == null) { SecurityManager securityManager = System.getSecurityManager(); if (securityManager != null) { int iLastDot = name.lastIndexOf('.'); if (iLastDot != -1) securityManager.checkPackageAccess(name.substring(0, iLastDot)); } byte[] data = item.getContent(); clazz = defineClass(name, data, 0, data.length); } return clazz; } }
public Class<?> loadClass(ScannedItem item) throws IOException, ClassFormatError { String name = item.getClassName(); Class<?> clazz = findLoadedClass(name); if (clazz == null) { SecurityManager securityManager = System.getSecurityManager(); if (securityManager != null) { int iLastDot = name.lastIndexOf('.'); if (iLastDot != -1) securityManager.checkPackageAccess(name.substring(0, iLastDot)); } byte[] data = item.getContent(); clazz = defineClass(name, data, 0, data.length); } return clazz; } }