Skip to content

Commit 538595c

Browse files
yigittschuchortdev
authored andcommitted
fix jdk8 compilation
1 parent 91b43f6 commit 538595c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/test/kotlin/com/tschuchort/compiletesting/KotlinCompilationTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ class KotlinCompilationTests {
850850
}
851851
// it should fail since we are passing a fake jdk
852852
assertThat(compilation.isFailure).isTrue()
853-
val logs = logsStream.toString(Charsets.UTF_8)
853+
val logs = logsStream.toString("utf-8")// use string charset for jdk 8 compatibility
854854
assertThat(logs).contains(
855855
"compiling java in a sub-process because a jdkHome is specified"
856856
)

0 commit comments

Comments
 (0)