Ilya Goncharov
93be8317fa
[JS, IR] Fix wasm tests and presets
2022-10-12 17:59:08 +00:00
Ilya Goncharov
a3be2c893b
[JS, IR] Make IR default for both mode
2022-10-12 17:59:08 +00:00
Anton Bannykh
9342356c38
JS IR: fix type checks for suspend function descendants (^KT-54382 fixed)
...
Consider `class A : suspend () -> Unit {}`. Type checks such as `is A`
are now performed via a regular `instanceof` check instead of the special
checks for suspend lambdas.
2022-10-12 17:38:23 +00:00
Johan Bay
bc13173ea9
[K/N] cinterop: Do not expand non-constant macros
...
Expanding macros such as __FILE__ or __TIME__ exposes
arbitrary generated filenames and timestamps from the compiler
pipeline which are not useful for interop and makes the klib
generation non-deterministic. This patch instead redefines
the macros to just map to their name in the properties
available from Kotlin.
Co-authored-by: Johan Bay <jobay@google.com >
2022-10-12 16:54:00 +00:00
Anastasiia Spaseeva
49e343e08e
Fix condition for execution of prepareSonatypeStaging script.
...
This fixes a publication to maven central problem after commit cf2d03b9
2022-10-12 18:05:42 +02:00
Yahor Berdnikau
ff271a7908
Set maximum supported AGP version in tests to 7.2.1
...
^KT-53013 Fixed
2022-10-12 15:27:46 +00:00
Yahor Berdnikau
faf3638c58
Bump minimal supported AGP to 4.1.3
...
^KT-53013 In Progress
2022-10-12 15:27:45 +00:00
Ilya Goncharov
b01411544a
[Gradle, JS] Improvements of kotlin test adapters
...
- divide adapter.js into different files, which frameworks could load separately
- possibility to inject something to kotlin-test adapter by user
^KT-54418 fixed
2022-10-12 14:14:50 +00:00
Dmitriy Novozhilov
d423782fac
[FE 1.0] Remove usages of safeAs and cast from most of FE 1.0 modules:
...
- :core:descriptors
- :core:descriptors.jvm
- :core:deserialization
- :compiler:cli
- :compiler:frontend
- :compiler:frontend:cfg
- :compiler:frontend.java
- :compiler:frontend.common.jvm
- :compiler:psi
- :compiler:resolution
- :compiler:resolution.common
- :compiler:resolution.common.jvm
- :kotlin-reflect-api
2022-10-12 13:58:56 +00:00
Nikolay Krasko
6afceb1e84
Remove more usages for embedded with isTransitive = true
...
It's a refactoring because the list of dependencies shouldn't change
Follow up for KTI-942
2022-10-12 13:44:30 +00:00
Nikolay Krasko
f43ad1cb7a
Remove packed stdlib from Kotlin compiler plugin artefacts
...
Remove annotations, kotlin-stdlib-common, kotlin-stdlib.
Packing those libraries is wrong and probably unexpected. It leads to
artifacts size increase. Can be dangerous because of bad classpath.
And also have a reproducibility issue because of caching tricks around
KotlinVersionCurrentValue class.
KTI-942
2022-10-12 13:44:30 +00:00
pyos
2ec264cfa2
FIR CFG: filter out variables declared inside lambdas more eagerly
2022-10-12 11:56:02 +00:00
Leonid Startsev
090aec6b3b
Prohibit Array<T> in @Serializable classes
...
because it's impossible to correctly create array reflectively without
knowing correct KClass.
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/1243
2022-10-12 11:48:21 +00:00
Leonid Startsev
596949a501
Correctly handle star projections according to logic of the old FE.
...
#KT-54297 Fixed
Properly substitute surrogate UnitSerializer in the Companion.serializer()
function generated on classes that use polymorphic or sealed serializer
by default. (Fixes https://github.com/Kotlin/kotlinx.serialization/issues/1692 )
2022-10-12 10:36:26 +00:00
Leonid Startsev
2a626b27d3
Correctly determine the type of serializable property
...
when supertype of serializable class is generic and also serializable,
and contains the property with type with its generic parameter.
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/1264
#KT-43910 Fixed
#KT-49660 Fixed
2022-10-12 10:34:53 +00:00
Nikolay Krasko
2ea0cdf46d
Rules for commit messages
...
Part of KTI-944 about adding automatic checks to commit messages.
2022-10-12 09:39:51 +00:00
Mikhail Glukhikh
0080f16cc2
K1: report TYPE_MISMATCH for incorrect assignments in builder
...
#KT-54004 Fixed
2022-10-12 08:21:13 +00:00
Mikhail Glukhikh
0940707fd4
FE: add reproducer for KT-54004
2022-10-12 08:21:12 +00:00
Nikolay Krasko
80c0c33670
Drop support for old idea versions in verification-metadata.xml
2022-10-12 08:20:27 +00:00
Nikolay Krasko
7484fe8333
Add an explicit requirement for JDK_11_0 in tests-common-new
2022-10-12 08:20:26 +00:00
Nikolay Krasko
e1a498e757
Exclude intellij dir when working with compound build
2022-10-12 08:20:26 +00:00
Nikolay Krasko
0e44ad6c60
Minor: explicitly use ext.repoUrl
2022-10-12 08:20:25 +00:00
Nikolay Krasko
cfd79c87a6
Minor: fix spelling in the comment
2022-10-12 08:20:25 +00:00
Nikolay Krasko
3853f228af
Add a comment about implicit dependency between compiler and plugin
...
^KTI-746 Fixed
2022-10-12 08:20:24 +00:00
Daniel Santiago
189be2b117
[KAPT] Setup KaptJavaLog writers during initialization.
...
Migrate KaptJavaLog to not used deprecated constructor in newer JDKs and instead set up the writers during initialization. This enables us to get rid of KaptJavaLog17.
Fixes KT-54030
2022-10-11 23:48:18 +02:00
Sergey.Shanshin
f4845b8dd9
Marked write$Self and $serializer from serialization as synthetic
2022-10-11 17:05:03 +00:00
Artem Kobzar
34c32e91e8
[K/JS] Don't remvove @JsExport.Ignore while test generating running
2022-10-11 17:02:23 +00:00
Nikolay Krasko
fefc3bdbbc
Add review links
2022-10-11 16:20:46 +00:00
Svyatoslav Scherbina
dc36272354
Get rid of unsafe cast function usages in :native:frontend.native
2022-10-11 15:12:03 +00:00
Svyatoslav Scherbina
2987340edd
Get rid of unsafe cast function usages in :kotlin-native:backend.native
2022-10-11 15:11:36 +00:00
Svyatoslav Scherbina
3e1eddcf54
Get rid of unsafe cast function usages in :native:native.tests
2022-10-11 15:11:03 +00:00
Pavel Punegov
51e337a148
[K/N] Fix watchOS-simulator device name changed in XCode 14
2022-10-11 15:11:01 +02:00
Pavel Punegov
b0b3698698
[K/N][build] Make kotlin-native.jar archive version empty
...
Gradle base plugin sets convention to project's version that can be
SNAPSHOT that brakes name of the archive
2022-10-11 12:50:13 +00:00
sebastian.sellmair
fd9f542895
[Gradle][MPP] Remove Kotlin Multiplatform stability warning
...
^KT-54387 Verification Pending
2022-10-11 12:10:44 +00:00
Anton Lakotka
71fe1dae22
[Gradle] Support Configuration Cache for XCFramework task
...
^KT-54362
^KT-54339 Verification Pending
2022-10-11 11:20:59 +00:00
Anton Lakotka
13dcb9388c
[Gradle] Support Configuration Cache for FatFramework task
...
^KT-54362
^KT-54339 Verification Pending
2022-10-11 11:20:59 +00:00
Anton Lakotka
a7f33819fa
[Gradle] Add workaround for Configuration Cache deserialization
...
Gradle Configuration Cache deserializer doesn't support Kotlin's
Objects of a Sealed Class. It creates new instance upon deserialization
and thus breaking equals contract in kotlin when's constructions.
See more info: https://github.com/gradle/gradle/issues/22347
^KT-54362
^KT-54339 Verification Pending
2022-10-11 11:20:58 +00:00
Anton Lakotka
4cda8f35bc
[Gradle] Support Configuration Cache for Link task
...
^KT-54339 Verification Pending
2022-10-11 11:20:58 +00:00
Anton Lakotka
50b892f2f1
[Gradle] Update Configuration Cache test for Native tasks
...
Exclude Metadata Processing tasks that are not compatible yet
^KT-54339 Verification Pending
2022-10-11 11:20:58 +00:00
nataliya.valtman
512f7b3231
Add property validation for single file report
...
#KT-54335 Fixed
#KT-54356 Fixed
2022-10-11 09:57:12 +00:00
konstantin.tskhovrebov
5e96bf0795
[KT-54314] Cocoapods: disable signing for all pod dependencies in synthetic project
2022-10-11 09:19:39 +00:00
Pavel Mikhailovskii
f4bdf54601
KT-8575 Fix warnings for Java synthetic properties
2022-10-10 22:03:58 +00:00
vladislav.grechko
26dc010d30
Formatting FirInlineClassDeclarationChecker
2022-10-10 16:52:35 +00:00
vladislav.grechko
e0c8142106
Support of custom 'equals' and 'hashCode' in inline classes
...
'equals' from any made available for overriding in inline classes
'typed' equals made available for definition in inline classes
'typed' equals definition made compulsory if 'untyped' is overridden
'operator' keyword is allowed in 'typed' equals definition
^KT-24874: Fixed
2022-10-10 16:52:34 +00:00
Svyatoslav Scherbina
527e8dde27
docs: add more links for contributing to Kotlin/Native
2022-10-10 14:55:36 +00:00
Pavel Kunyavskiy
b01808ddf5
[K/N] Fix deprecations and warnings in performance infra
2022-10-10 13:14:35 +00:00
Pavel Mikhailovskii
0947834f0d
Add a test for KT-54318
2022-10-10 13:47:34 +02:00
Pavel Mikhailovskii
5fdfd4a421
Revert "KT-53146 Don't coerce Nothing? returned from "catch" clauses"
...
This reverts commit 903a5d69a4 .
2022-10-10 13:36:44 +02:00
Ilya Kirillov
8eb0ca705d
[FIR] fix memory leak via static ConeClassLikeTypeImpl
...
ConeClassLikeLookupTagImpl.boundSymbol contains weak reference to FirSession
2022-10-10 09:50:43 +02:00
Mikhail Glukhikh
62ba1277bb
K2: don't duplicate custom annotations in types #KT-54275 Fixed
2022-10-10 06:20:39 +00:00