Skip to content

Commit

Permalink
fix for jdk 11
Browse files Browse the repository at this point in the history
  • Loading branch information
dos65 committed Mar 19, 2020
1 parent 6696221 commit 29864f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ out/
.bloop/
.metals/
.vscode/
project/metals.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ object ClasspathOps {
}

def thisClassLoader: URLClassLoader =
this.getClass.getClassLoader.asInstanceOf[URLClassLoader]
new URLClassLoader(Array.empty, this.getClass().getClassLoader)

def thisClasspath: Classpath = {
Classpath(
thisClassLoader.getURLs.iterator
.map(url => AbsolutePath(Paths.get(url.toURI)))
.toList
)
}
this.getClass.getClassLoader.asInstanceOf[URLClassLoader]

def getCurrentClasspath: String = {
this.getClass.getClassLoader
.asInstanceOf[URLClassLoader]
Expand Down

0 comments on commit 29864f4

Please sign in to comment.