Add classes we expect to exist (i.e.
Add classes we expect to exist (i.e. we will wait for them to become available)
Have any of the classes that we've loaded been modified?
Any classes that we've loaded that have been modified
Any classes that we've loaded that have been modified
Note: Needs to be synchronized so that it's not run while we are in the middle of loading a class.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
WARNING: This CANNOT be a case class because we need the equals method to check for reference equality in case instances of this class are stored in HashMaps (e.g. in scala.reflect.runtime.JavaMirrors). Otherwise 2 ReloadingClassLoader with the same argument will look equal to each other even though they have loaded different versions of classes. This will cause stuff like:
java.lang.ClassCastException: fm.catalog.website.CatalogSite cannot be cast to fm.catalog.website.CatalogSite