Skip to content

Commit ffca555

Browse files
committed
Added getter for classloader
1 parent 85dd50d commit ffca555

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/org/mdkt/compiler/InMemoryJavaCompiler.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ public InMemoryJavaCompiler useParentClassLoader(ClassLoader parent) {
2929
return this;
3030
}
3131

32+
/**
33+
* @return the class loader used internally by the compiler
34+
*/
35+
public ClassLoader getClassloader()
36+
{
37+
return classLoader;
38+
}
39+
3240
/**
3341
* Options used by the compiler, e.g. '-Xlint:unchecked'.
3442
* @param options

0 commit comments

Comments
 (0)