diff --git a/libraries/tools/kotlin-annotation-processing/src/main/kotlin/org/jetbrains/kotlin/annotation/AnnotationProcessorWrapper.kt b/libraries/tools/kotlin-annotation-processing/src/main/kotlin/org/jetbrains/kotlin/annotation/AnnotationProcessorWrapper.kt index a1b70d5d0fd..a0ed37783e7 100644 --- a/libraries/tools/kotlin-annotation-processing/src/main/kotlin/org/jetbrains/kotlin/annotation/AnnotationProcessorWrapper.kt +++ b/libraries/tools/kotlin-annotation-processing/src/main/kotlin/org/jetbrains/kotlin/annotation/AnnotationProcessorWrapper.kt @@ -41,7 +41,7 @@ public abstract class AnnotationProcessorWrapper(private val processorFqName: St private val processor: Processor by Delegates.lazy { try { val instance = Class.forName(processorFqName).newInstance() as? Processor - instance ?: throw IllegalArgumentException("Instance has a wrong type") + instance ?: throw IllegalArgumentException("Instance has a wrong type: $processorFqName") } catch (e: Exception) { AnnotationProcessorStub() @@ -88,7 +88,7 @@ public abstract class AnnotationProcessorWrapper(private val processorFqName: St } override fun process(annotations: MutableSet?, roundEnv: RoundEnvironment): Boolean { - roundCounter = roundCounter + 1 + roundCounter += 1 val annotatedKotlinElements = kotlinAnnotationsProvider.annotatedKotlinElements val roundEnvironmentWrapper = RoundEnvironmentWrapper(processingEnv, roundEnv, roundCounter, annotatedKotlinElements)