mvicsokolova
75b4469757
[K/N] Stabilization of Atomics API
...
`AtomicInt`, `AtomicLong`, `AtomicReference` and `AtomicNativePtr` classes were moved to `kotlin.concurrent` package. The corresponding classes from `kotlin.native.concurrent` were deprecated with warning since Kotlin 1.9.
In order to prepare for further commonization of Atomics API the following changes were made:
* `kotlin.concurrent.AtomicInt`:
* `increment(): Unit` and `decrement(): Unit` methods were deprecated with error
* New methods were added: `incrementAndGet(): Int` , `decrementAndGet(): Int`, `getAndIncrement(): Int`, `getAndDecrement(): Int`, `getAndSet(newValue: Int): Int`
* `kotlin.concurrent.AtomicLong`:
* `increment(): Unit` and `decrement(): Unit` methods were deprecated with error
* New methods were added: `incrementAndGet(): Long`, `decrementAndGet(): Long`, `getAndIncrement(): Long`, `getAndDecrement(): Long`, `getAndSet(newValue: Long): Long`
* Deprecated `AtomicLong()` constructor with default parameter value
* For all atomic classes `compareAndSwap` method was renamed to `compareAndExchange`
See KT-58074 for more details.
Merge-request: KT-MR-9272
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com >
2023-04-25 16:55:42 +00:00
Mikhail Glukhikh
1c56a71b14
FirClassSubstitutionScope: don't recreate constructor type parameters w/out need
...
#KT-58008 Fixed
2023-04-25 16:42:59 +00:00
Mikhail Glukhikh
5daafd5ed5
FirNestedClassifierScope: don't give empty map substitutor to a processor
...
Optimization related to KT-58008 (hides the issue in some cases)
2023-04-25 16:42:59 +00:00
Mikhail Glukhikh
4172ce1018
K2: reproduce KT-58008
2023-04-25 16:42:59 +00:00
Artem Kobzar
27b103e2ca
[K/JS] Eliminate duplication of init block inside exported ES-classes ^KT-58246 Fixed
2023-04-25 16:21:08 +00:00
Anton Lakotka
9afddb1a7a
[Gradle] Fix configuration cache for cleanNativeDistributionCommonization
...
^KT-57482 Verification Pending
2023-04-25 16:16:52 +00:00
Yahor Berdnikau
c64a7068d9
Generate Kapt task name for random KotlinCompile task name
...
We had false assumption that KotlinCompile tasks name will always start
with "compile" prefix, but our exposed api allows to create tasks with
random names. I've adjusted method to calculate kapt task names for any
KotlinCompile task name.
^KT-54468
2023-04-25 16:03:38 +00:00
Roman Golyshev
552e640517
[Analysis API] KT-58249 Avoid calling LOG.error in KtFe10CallResolver
...
Some `KtCallElement`s might never be resolved, and they won't even have
any kind of diagnostic from FE10 compiler. We don't want to log such
cases because it's not clear whether we can or should fix them in K1
plugin
LOG.error is still enabled for K2 plugin, since for it we want to catch
and fix all such problems
^KT-58249 Fixed
2023-04-25 15:35:06 +00:00
Alexander Korepanov
81b591ed21
[JS IR IC] Interface default implementations affect IC hash
...
Adding or removing a method or property with
a default implementation to an interface should
invalidate all children: we must regenerate JS code for them
^KT-56237 Fixed
2023-04-25 15:34:22 +00:00
Sebastian Sellmair
bad5c58952
[Gradle] Add documentation to KotlinTargetHierarchyBuilder.Root functions
...
^KT-58209 Verification Pending
2023-04-25 15:08:30 +00:00
Sebastian Sellmair
6029cb46ce
[Gradle] Add documentation to KotlinTargetHierarchyDsl.android
...
^KT-58209 Verification Pending
2023-04-25 15:08:30 +00:00
Sebastian Sellmair
71189e2049
[Gradle] Add documentation to KotlinTargetHierarchyDsl.custom
...
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair
bd0f54564d
[Gradle] Move KotlinTargetHierarchy/Android configuration from KotlinAndroidTarget to KotlniTargetHierarchyDsl
...
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair
bc1abb2e6a
[Gradle] LifecycleAwareProperty: Allow lazy creation even in 'finaliseIn' or later
...
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair
16369bc008
[Gradle] Rename KotlinTargetHierarchy.ModuleName to .SourceSetTree
...
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair
1d23d7de17
[Gradle] KotlinTargetHierarchyBuilder: Add documentation to 'common' function
...
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Abduqodiri Qurbonzoda
52cbad2da2
[K/N] Hide Primitive.equals(Primitive) functions #KT-57344
...
As a part of efforts to stabilize Native stdlib.
Merge-request: KT-MR-9692
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-04-25 14:56:29 +00:00
Anton Lakotka
545a7724c1
[Gradle] Fix apple gradle plugin smoke test
2023-04-25 14:38:22 +00:00
Anton Lakotka
ff0a57bafd
[Gradle] Propagate user attributes to binary framework configurations
...
^KT-57668
2023-04-25 14:38:22 +00:00
Anton Lakotka
8d5f2b37a3
[Gradle] Test that user attributes is propagated to binary frameworks
...
^KT-57668
2023-04-25 14:38:22 +00:00
Alexander Udalov
bab88c05c3
JvmDefault: deprecate JvmDefault annotation class with ERROR
...
#KT-54746 Fixed
2023-04-25 14:33:00 +00:00
Alexander Udalov
a0790047f7
JvmDefault: remove -Xjvm-default modes "enable" and "compatibility"
...
#KT-54746
2023-04-25 14:33:00 +00:00
Alexander Udalov
e0b5ae7781
JvmDefault: remove diagnostics related to @JvmDefault
...
#KT-54746
2023-04-25 14:33:00 +00:00
Alexander Udalov
3120a35a88
JvmDefault: remove most tests on @JvmDefault
...
The tests are removed because JvmDefault is going to be deprecated with
error in KT-54746 and removed later in KT-57696.
Many of the removed tests already had existing counterparts with the new
modes `all` and `all-compatibility`. In this change, I've added such
tests where they were missing, and removed tests which were testing
behavior specific to the JvmDefault annotation, such as some
diagnostics.
#KT-54746
2023-04-25 14:33:00 +00:00
Ilya Gorbunov
ace2279631
Refactor helper function to run/not run block of common code on specific platform
...
Use it in StringBuilder tests
2023-04-25 13:55:04 +00:00
Ilya Gorbunov
454e963aa7
StringBuilder capacity test: fixup deprecation suppression
2023-04-25 13:55:04 +00:00
Ilya Gorbunov
6dc2960b77
Relax back an assertion in testLongAdjustmentElapsedPrecision
...
Reverts the assertion strictening happened in commit 1014434475
2023-04-25 13:54:39 +00:00
Sebastian Sellmair
379c1b72a6
[Gradle] ExternalTargetApi: mark .extras extensions as 'scheduled for removal'
...
... as those extensions are now shadowed by members
KT-55524
2023-04-25 12:49:52 +00:00
Sebastian Sellmair
caa6b6f9f3
[Gradle] ExternalTargetApi: Check-in/Document ExternalKotlinCompilationDescriptor
...
KT-55524
2023-04-25 12:49:52 +00:00
Sebastian Sellmair
5e13e118fa
[Gradle] ExternalTargetApi: Rename 'DecoratedKotlinCompilationFactory' to 'CompilationFactory'
...
To be consistent with 'TargetFactory' in ExternalKotlinTargetDescriptor
KT-55524
2023-04-25 12:49:52 +00:00
Sebastian Sellmair
898e2beecb
[Gradle] ExternalTargetApi: Rename 'ExternalDecoratedKotlinCompilation' to 'DecoratedExternalKotlinCompilation'
...
To be consistent with 'DecoratedExternalKotlinTarget'
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
bc85fe323b
[Gradle] ExternalTargetApi: Check-in/Document createExternalKotlinTarget
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
2ec76110b0
[Gradle] ExternalTargetApi: Check-in/Document createCompilation
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
6e6e2977f9
[Gradle] ExternalTargetApi: Check-in/Document IdeDependencyTransformer
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
6a38162b45
[Gradle] ExternalTargetApi: Check-in/Document IdeAdditionalArtifactResolver
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
6cfcea0401
[Gradle] Demote IdeaKotlinBinaryCoordinates to 'internal'
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
9978906f6f
[Gradle] ExternalTargetApi: Check-in/Document IdeDependencyEffect
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
55cc2e5e42
[Gradle] ExternalTargetApi: Check-in/Document ExternalKotlinTargetDescriptor
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
0191368f1f
[Gradle] IdeMultiplatformImportImpl: Remove unnecessary ExternalTargetApi annotations
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
403a4b48fa
[Gradle] ExternalTargetApi: Check-in/Document IdeMultiplatformImport
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
127f3e55e8
[Gradle] ExternalTargetApi: Check-in/Document IdeDependencyResolver
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
63f8cf2237
[Gradle] ExternalTargetApi: Check-in/Document IdeBinaryDependencyResolver
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
b32cae293b
[Gradle] Add documentation to ExternalKotlinTargetApi
...
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair
9f003328cf
[Gradle] Setup initial api validation for ExternalTargetApi
...
KT-55524
2023-04-25 12:49:50 +00:00
Sebastian Sellmair
628fa919dd
[kotlin-tooling-core] Document IdeaKotlinExtrasSerializationExtension
...
KT-55524
2023-04-25 12:49:50 +00:00
Sebastian Sellmair
425c7c738e
Update kotlin binary compatibility validator to v0.13.1
...
KT-55524
2023-04-25 12:49:50 +00:00
Jinseong Jeon
5298abf2d6
AA/LC: introduce an API to find script files
2023-04-25 14:49:03 +02:00
Jinseong Jeon
f9086daf4d
SLC: add support for .kts
...
^KTIJ-21108
^KT-50241
^KT-55626 Fixed
2023-04-25 14:49:03 +02:00
Artem Kobzar
4327c6645a
[K/JS] Save order for modulesWithReachableTopLevels and deserializersForModules to make partial linkage work again
2023-04-25 12:20:14 +00:00
Mikhail Glukhikh
4589463e92
FirBasedSymbol: call lazyResolveToPhase directly on a backing field
2023-04-25 12:18:27 +00:00