Have IsolatedClassLoader get preserved by proguard (1.0.0-M10 regression)
This commit is contained in:
Alexandre Archambault 2016-04-17 20:43:52 +02:00
parent 15d2afb264
commit b5b7f7714f
No known key found for this signature in database
GPG Key ID: 14640A6839C263A9
1 changed files with 14 additions and 14 deletions

View File

@ -33,21 +33,21 @@ object Launch {
mainClassLoader(cl.getParent)
}
class IsolatedClassLoader(
urls: Array[URL],
parent: ClassLoader,
isolationTargets: Array[String]
) extends URLClassLoader(urls, parent) {
}
/**
* Applications wanting to access an isolated `ClassLoader` should inspect the hierarchy of
* loaders, and look into each of them for this method, by reflection. Then they should
* call it (still by reflection), and look for an agreed in advance target in it. If it is found,
* then the corresponding `ClassLoader` is the one with isolated dependencies.
*/
def getIsolationTargets: Array[String] = isolationTargets
class IsolatedClassLoader(
urls: Array[URL],
parent: ClassLoader,
isolationTargets: Array[String]
) extends URLClassLoader(urls, parent) {
}
/**
* Applications wanting to access an isolated `ClassLoader` should inspect the hierarchy of
* loaders, and look into each of them for this method, by reflection. Then they should
* call it (still by reflection), and look for an agreed in advance target in it. If it is found,
* then the corresponding `ClassLoader` is the one with isolated dependencies.
*/
def getIsolationTargets: Array[String] = isolationTargets
}
@ -113,7 +113,7 @@ case class Launch(
Console.err.println(s" $f")
}
val isolatedLoader = new Launch.IsolatedClassLoader(
val isolatedLoader = new IsolatedClassLoader(
isolatedFiles.map(_.toURI.toURL).toArray,
parent,
Array(target)