Skip to content

Commit

Permalink
Convert Windows-style path when calculating class internal name
Browse files Browse the repository at this point in the history
  • Loading branch information
gavra0 authored and ilmirus committed Apr 23, 2019
1 parent 47b38db commit 292d2d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private fun visitDirectory(directory: File): ClasspathEntryData {
directory.walk().filter {
it.extension == "class" && !it.relativeTo(directory).toString().toLowerCase().startsWith("meta-inf")
}.forEach {
val internalName = it.relativeTo(directory).toString().dropLast(".class".length)
val internalName = it.relativeTo(directory).invariantSeparatorsPath.dropLast(".class".length)
analyzeInputStream(it.inputStream(), internalName, entryData)
}

Expand Down

0 comments on commit 292d2d9

Please sign in to comment.