We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 772528c commit 08bdd3fCopy full SHA for 08bdd3f
compiler-d8/src/main/java/com/xiaoyv/java/compiler/tools/exec/JavaProgramConsole.kt
@@ -126,7 +126,7 @@ class JavaProgramConsole : CoroutineScope by MainScope() {
126
// 向输入流写入
127
inputBuffer.write(bytes, 0, bytes.size)
128
// 提交
129
- val submitBytes = byteArrayOf('\n'.toByte(), (-1).toByte())
+ val submitBytes = byteArrayOf('\n'.code.toByte(), (-1).toByte())
130
inputBuffer.write(submitBytes, 0, submitBytes.size)
131
return true
132
}.onFailure {
0 commit comments