Skip to content

Commit

Permalink
Merge pull request #736 from zhelenskiy/fix-unstable-class-order
Browse files Browse the repository at this point in the history
Fix unstable class order
  • Loading branch information
nikpachoo committed May 16, 2024
2 parents 93bc274 + d4f38b6 commit 497c59c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class KotlinCompiler(
1 -> compiled.mainClasses.single()
else -> return@execute JvmExecutionResult(
exception = IllegalArgumentException(
"Multiple classes in project contain main methods found: ${compiled.mainClasses.joinToString()}"
"Multiple classes in project contain main methods found: ${compiled.mainClasses.sorted().joinToString()}"
).toExceptionDescriptor()
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/com/compiler/server/JvmRunnerTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class JvmRunnerTest : BaseExecutorTest() {
}
}""".trimIndent(),
contains = "IllegalArgumentException",
message = "Multiple classes in project contain main methods found: FileKt, A",
message = "Multiple classes in project contain main methods found: A, FileKt",
)
}

Expand Down

0 comments on commit 497c59c

Please sign in to comment.