public final class ClassLoaderBootstrapper extends Object
Under JSR-199, when the Java compiler is run in-process it uses a ClassLoader that is a child of the system ClassLoader. In order for annotation processors to access the Compiler Tree API (which lives in tools.jar with the compiler itself), they must be loaded with a ClassLoader descended from the compiler's. If Buck used the system ClassLoader as a normal Java application would, this would result in annotation processors getting Buck's versions of Guava, Jackson, etc. instead of their own.
Modifier and Type | Method and Description |
---|---|
static Class<?> |
loadClass(String name) |
static void |
main(String[] args) |