When compiling following code snippet:
class MyTest {
@org.junit.Test
def `test test`() {
}
}
Method test test
is being put to bytecode as test$u0020test
.
Why it happens and how can this be disabled?
Space is valid identifier for method name according to JVM spec. Also, there is no mention of such encoding in Scala language specification. Moreover, other JVM languages like Groovy and Groovy-based Spock Framework do not encode spaces.
Why do i need this: Human-friendly JUnit test names and test reports.
Java 1.8.0_45, Scala 2.11.6