Skip to content

Commit d2145e5

Browse files
Dao NgocDao Ngoc
authored andcommitted
Use classpathFilterClass instead of ClasspathFilterClass for instance name
1 parent c8f641e commit d2145e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/src/main/java/scalive/Server.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ private static String getURLClasspath(URLClassLoader cl) {
137137
// http://www.scala-sbt.org/release/api/index.html#sbt.classpath.ClasspathFilter
138138
private static String sbtGetClasspathFromClasspathFilter(URLClassLoader withReplJars, ClassLoader parentCl) throws Exception {
139139
ClassLoader mainClassLoader = sbtFindMainClassLoader();
140-
Class<?> ClasspathFilterClass = Class.forName("sbt.classpath.ClasspathFilter", true, mainClassLoader);
141-
Field classpathField = ClasspathFilterClass.getDeclaredField("classpath");
140+
Class<?> classpathFilterClass = Class.forName("sbt.classpath.ClasspathFilter", true, mainClassLoader);
141+
Field classpathField = classpathFilterClass.getDeclaredField("classpath");
142142
classpathField.setAccessible(true);
143143

144144
Object set = classpathField.get(parentCl);

0 commit comments

Comments
 (0)