Nicklas Ansman

Results 62 issues of Nicklas Ansman

Here is an example that I use: ```kotlin val source = kotlin("source.kt", """ @se.ansman.kotshi.KotshiJsonAdapterFactory object Factory : com.squareup.moshi.JsonAdapter.Factory by KotshiFactory """.trimIndent() ) val compilation = KotlinCompilation().apply { workingDir = temporaryFolder.root...

When using correct error types and there is a property setter or receiver for an unknown type then the parameter type would be `Object` instead of the error type. This...

KAPT

Previously the annotations were included in reverse order. With this change they are kept in the same order as in the source file. This changes the test case for KT-23427...

KAPT

Error types that are generic could sometimes throw an ISE when generating the stub. This fixes [KT-43786](https://youtrack.jetbrains.com/issue/KT-43786/KAPT-IllegalStateException-SimpleTypeImpl-should-not-be-created-for-error-type-ErrorScope).

KAPT

This fixes [KT-43117](https://youtrack.jetbrains.com/issue/KT-43117/Kapt-System-is-already-defined-in-this-compilation-unit)

KAPT

Previously measureTimeMillis used System.currentTimeMillis which is not ideal for several reasons. Firstly it often has a resolution of 10s of milliseconds and secondly because it can be adjusted by something...

Standard Library

The values might be read as compile time constants when they are in fact not. This fixes [KT-52410](https://youtrack.jetbrains.com/issue/KT-52410).

KAPT

Interface methods that were private got both the `default` and `private` modifiers when using `jvm-default=all` which is not valid. The stub will now just contain `private` in this case. This...

KAPT

This fixes [KT-41129](https://youtrack.jetbrains.com/issue/KT-41129/kotlin-maven-plugin-kapt-allow-aptMode-to-be-set-according-to-docs).

KAPT

Make sure to pass .class files generated by annotation processors to KotlinCompile task. This way, Kotlin files can refer to symbols generated in these .class files during annotation processing. This...

Gradle Plugin