Update D8 used for dexing tests to version 2.1.96.
This commit is contained in:
committed by
Alexander Udalov
parent
48599e3768
commit
41f5ac393a
+1
-1
@@ -183,7 +183,7 @@ extra["versions.jflex"] = "1.7.0"
|
|||||||
extra["versions.markdown"] = "0.1.25"
|
extra["versions.markdown"] = "0.1.25"
|
||||||
extra["versions.trove4j"] = "1.0.20181211"
|
extra["versions.trove4j"] = "1.0.20181211"
|
||||||
extra["versions.completion-ranking-kotlin"] = "0.1.3"
|
extra["versions.completion-ranking-kotlin"] = "0.1.3"
|
||||||
extra["versions.r8"] = "2.1.75"
|
extra["versions.r8"] = "2.1.96"
|
||||||
val immutablesVersion = "0.3.1"
|
val immutablesVersion = "0.3.1"
|
||||||
extra["versions.kotlinx-collections-immutable"] = immutablesVersion
|
extra["versions.kotlinx-collections-immutable"] = immutablesVersion
|
||||||
extra["versions.kotlinx-collections-immutable-jvm"] = immutablesVersion
|
extra["versions.kotlinx-collections-immutable-jvm"] = immutablesVersion
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
// IGNORE_BACKEND: JS
|
// IGNORE_BACKEND: JS
|
||||||
|
|
||||||
// Exclamation marks are not valid in names in the dex file format.
|
// Exclamation marks are not valid in names in the dex file format.
|
||||||
// Therefore, do not attemp to dex this file as it will fail.
|
// Therefore, do not attempt to dex this file as it will fail.
|
||||||
// See: https://source.android.com/devices/tech/dalvik/dex-format#simplename
|
// See: https://source.android.com/devices/tech/dalvik/dex-format#simplename
|
||||||
// IGNORE_DEXING
|
// IGNORE_DEXING
|
||||||
// IGNORE_BACKEND: ANDROID
|
// IGNORE_BACKEND: ANDROID
|
||||||
|
|||||||
@@ -6,11 +6,9 @@
|
|||||||
|
|
||||||
// Names with spaces are not valid according to the dex specification
|
// Names with spaces are not valid according to the dex specification
|
||||||
// before DEX version 040. Therefore, do not attempt to dex the resulting
|
// before DEX version 040. Therefore, do not attempt to dex the resulting
|
||||||
// class file. When D8 is updated to the most recent version, we can increase
|
// class file with a min api below 30.
|
||||||
// the min android api level during dexing to allow these spaces.
|
|
||||||
//
|
//
|
||||||
// See: https://source.android.com/devices/tech/dalvik/dex-format#simplename
|
// See: https://source.android.com/devices/tech/dalvik/dex-format#simplename
|
||||||
// IGNORE_DEXING
|
|
||||||
// IGNORE_BACKEND: ANDROID
|
// IGNORE_BACKEND: ANDROID
|
||||||
|
|
||||||
fun `method with spaces`(): String {
|
fun `method with spaces`(): String {
|
||||||
|
|||||||
-2
@@ -2,8 +2,6 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// FULL_JDK
|
// FULL_JDK
|
||||||
// IGNORE_DEXING
|
|
||||||
// ^ https://issuetracker.google.com/issues/182339153
|
|
||||||
|
|
||||||
// FILE: Java.java
|
// FILE: Java.java
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// KJS_WITH_FULL_RUNTIME
|
// KJS_WITH_FULL_RUNTIME
|
||||||
// IGNORE_DEXING
|
|
||||||
// IGNORE_BACKEND: WASM
|
// IGNORE_BACKEND: WASM
|
||||||
// IGNORE_BACKEND_FIR: JVM_IR
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
// IGNORE_BACKEND: ANDROID
|
// IGNORE_BACKEND: ANDROID
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
// FULL_JDK
|
// FULL_JDK
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_DEXING
|
|
||||||
// ^ 2.1.75 fails with AssertionError (2.0.88 doesn't). TODO: investigate in more detail.
|
|
||||||
// FILE: 1.kt
|
// FILE: 1.kt
|
||||||
|
|
||||||
package test
|
package test
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
// ENABLE_JVM_PREVIEW
|
// ENABLE_JVM_PREVIEW
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// JDK_15
|
// JDK_15
|
||||||
|
|
||||||
|
// D8 does not yet desugar java records.
|
||||||
// IGNORE_DEXING
|
// IGNORE_DEXING
|
||||||
|
|
||||||
interface KI<T> {
|
interface KI<T> {
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// Parenthesis are not valid in names in the dex file format.
|
||||||
|
// Therefore, do not attempt to dex this file as it will fail.
|
||||||
|
// See: https://source.android.com/devices/tech/dalvik/dex-format#simplename
|
||||||
// IGNORE_DEXING
|
// IGNORE_DEXING
|
||||||
class `(X)` {
|
class `(X)` {
|
||||||
fun `(Y)`() {}
|
fun `(Y)`() {}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ public class D8Checker {
|
|||||||
private static void runD8(Consumer<D8Command.Builder> addInput) {
|
private static void runD8(Consumer<D8Command.Builder> addInput) {
|
||||||
ProgramConsumer ignoreOutputConsumer = new DexIndexedConsumer.ForwardingConsumer(null);
|
ProgramConsumer ignoreOutputConsumer = new DexIndexedConsumer.ForwardingConsumer(null);
|
||||||
D8Command.Builder builder = D8Command.builder(new TestDiagnosticsHandler())
|
D8Command.Builder builder = D8Command.builder(new TestDiagnosticsHandler())
|
||||||
.setMinApiLevel(28)
|
.setMinApiLevel(30)
|
||||||
.setMode(CompilationMode.DEBUG)
|
.setMode(CompilationMode.DEBUG)
|
||||||
.setProgramConsumer(ignoreOutputConsumer);
|
.setProgramConsumer(ignoreOutputConsumer);
|
||||||
addInput.accept(builder);
|
addInput.accept(builder);
|
||||||
|
|||||||
Reference in New Issue
Block a user