Can you comment on the reason why this exists?

Also, since you don't need the result, just do Try { Class.forName(s+"$") }