Skip to content

Commit

Permalink
Update jmh support to be compatible with Scala 3
Browse files Browse the repository at this point in the history
Rebase to rerun CI
  • Loading branch information
liucijus committed Feb 11, 2022
1 parent d8b0336 commit e20ff6c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,17 @@ object BenchmarkGenerator {
.stripSuffix(".class")
.replace(separator, ".")

var index = -1
do {
s = s.substring(index + 1)
var index = 0
while (index != -1) {
s = s.substring(index)
try {
return Some(Class.forName(s, false, cl))
} catch {
case _: ClassNotFoundException =>
// ignore and try next one
index = s.indexOf('.')
}
} while (index != -1)
}

log(s"Failed to find class for path $path")
None
Expand Down

0 comments on commit e20ff6c

Please sign in to comment.