mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
QD-11871 Java version regex should support corretto-20
(cherry picked from commit 89ea8f6692d7a133e68ed57e32d80990f88931e2) IJ-MR-165263 GitOrigin-RevId: 85df03a3cff40c09745600af8e5bf0126ead2de0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
842c5a9808
commit
fd1802f553
@@ -124,7 +124,7 @@ object JdkRequirements {
|
||||
}
|
||||
|
||||
private val JAVA_VERSION_REGEX = Regex("^" +
|
||||
"(9|[1-9][1-9]|)(\\.0(\\.\\d+)?)?" +
|
||||
"(9|[1-9][0-9]|)(\\.0(\\.\\d+)?)?" +
|
||||
"|" +
|
||||
"1\\.\\d(\\.0(_\\d+)?)?" +
|
||||
"|" +
|
||||
|
||||
@@ -109,6 +109,9 @@ class JdkRequirementTest : LightPlatformTestCase() {
|
||||
@Test
|
||||
fun test_corretto_11() = doTest("corretto-11", fails = listOf("11"))
|
||||
|
||||
@Test
|
||||
fun test_corretto_20() = doTest("corretto-20", fails = listOf("20"))
|
||||
|
||||
@Test
|
||||
fun test_11() = doTest("11", matches = listOf("11", "11.0", "11.1", "11.0.4"), fails = listOf("12", "1.8", "6", "19", "8"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user