Hello,
I created a custom class in the java.lang package. This class helps me to make the Object clone() method public instead of protected :
package java.lang;
/**
* Clone util class
*/
public class CloneUtil {
/**
* Clone an object
* @param source - the provided source object
* @return cloned object
* @throws CloneNotSupportedException
*/
public static Object clone(Object source) throws CloneNotSupportedException {
return source == null ? source : source.clone();
}
}
No class loader will load a class from a java.* package unless it has been specifically patched into the vm using a mechanism like the bootclasspath. This has nothing to do with jboss.