Skip to content

Commit

Permalink
Fix sbt/sbt#3515. Recurse into classloader of the class not the root
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafal Wojdyla committed Dec 20, 2017
1 parent 2cd64e1 commit d8deb1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ final class ClasspathFilter(parent: ClassLoader, root: ClassLoader, classpath: S

@tailrec private[this] def includeLoader(c: ClassLoader, base: ClassLoader): Boolean =
(base ne null) && (
(c eq base) || includeLoader(c, base.getParent)
(c eq base) || includeLoader(c.getParent, base)
)
}

Expand Down

0 comments on commit d8deb1d

Please sign in to comment.