Kapt: -Xmaxerrs javac option is not propagated properly (KT-21264)

This commit is contained in:
Yan Zhulanow
2017-11-15 18:41:15 +09:00
parent 2819fc718a
commit 6ccf361942
6 changed files with 106 additions and 26 deletions
@@ -0,0 +1,13 @@
// CORRECT_ERROR_TYPES
// EXPECTED_ERROR(10;5) cannot find symbol (Kotlin location: /maxErrorCount.kt: (9, 5))
// JAVAC_OPTION -Xmaxerrs=1
@file:Suppress("UNRESOLVED_REFERENCE")
import kotlin.reflect.KClass
class Test {
fun a(a: ABC, b: BCD) {}
}
// There are two errors (unresolved identifier ABC, BCD) actually.
// But we specified the max error count, so the error output is limited.
@@ -0,0 +1,35 @@
import kotlin.reflect.KClass;
@kotlin.Metadata()
@kapt.internal.KaptMetadata()
public final class Test {
@kapt.internal.KaptSignature(value = "a(Lerror/NonExistentClass;Lerror/NonExistentClass;)V")
public final void a(@org.jetbrains.annotations.NotNull()
ABC a, @org.jetbrains.annotations.NotNull()
BCD b) {
}
@kapt.internal.KaptSignature(value = "<init>()V")
public Test() {
super();
}
}
////////////////////
package kapt.internal;
public @interface KaptMetadata {
public java.lang.String value();
}
////////////////////
package kapt.internal;
public @interface KaptSignature {
public java.lang.String value();
}