karelpeeters
08/16/2018, 12:19 PMToby
08/16/2018, 1:40 PMFileNotFoundException (file name too long)
.
Example code:
class NameTooLongTestCase {
fun `this is a very long function name used to illustrate the problem I'm hitting - an issue involving anonymous class compilation and I'm wondering if anyone knows a workaround - the file path of the anonymous class kotlinc produces is too long and the FileOutputStream used to write the classes to disk throws an exception`() {
function_that_takes_a_lambda { }
}
fun function_that_takes_a_lambda(lambda: () -> Unit) {}
}
Toby
08/16/2018, 1:42 PM