Details
Description
com.thoughtworks.xstream.core.util.ClassLoaderReference is referring another ClassLoader and does not add any restriction itself.
As such, it should call java.lang.ClassLoader.registerAsParallelCapable() in its static initializer to mark itself as parallel capable, which allows the VM to use it concurrently.
This is new with Java7 and not calling the method introduces an unneeded performance loss.
See ClassLoader's Javadoc for more background info.
For trunk, ClassLoaderReference does not extend ClassLoader anymore, so this is OK.
But the issue is true for com.thoughtworks.xstream.core.util.CompositeClassLoader