Commit Graph

95065 Commits

Author SHA1 Message Date
Dmitriy Novozhilov 519f6aeff1 [FIR] Make source in qualifier parts nullable
This is needed to be able to create no-source user type refs from plugins
2022-09-26 10:09:08 +00:00
Sebastian Sellmair 2845929bc0 [Gradle][MPP] Add documentation to CompositeMetadataArtifactContent
^KT-54135 Verification Pending
2022-09-26 08:18:19 +00:00
pyos 2dd49e5fb4 JVM_IR: unwrap suspend views when generating SAM wrappers
If the super class is in a file that has already been lowered, the base
method has an extra continuation parameter which breaks things.

Also, SAM wrappers around functional objects are tail-call and do not
need continuations ever, so don't even try.

^KT-50950 Fixed
2022-09-23 21:55:00 +02:00
Yahor Berdnikau 309c57f860 Update Gradle plugins common Gradle API version to 7.5
^KT-54142 Fixed
2022-09-23 15:36:53 +00:00
Alexander Shabalin f009d9b633 [K/N] Manually compact mimalloc heap ^KT-53182
Merge-request: KT-MR-7111
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-09-23 15:07:16 +00:00
Sergey.Shanshin 9210108d5a Added test on Serializable(with=...) in K2 2022-09-23 11:56:19 +00:00
Pavel Kargashinsky 221043a74d kargashinsky/mute-unresolved-target-tests-mac
[Gradle][Tests] Fix CommonNativeIT testData

[Gradle][Tests] Mute 2 native tests on Mac host

- Since 1.7.20 kotlinVersion Mac host can compile all native targets,
so tests with "unsupported targets" on Mac are obsolete.

Merge-request: KT-MR-7133
Merged-by: Pavel Kargashinsky <Pavel.Kargashinsky@jetbrains.com>
2022-09-23 09:59:18 +00:00
konstantin.tskhovrebov dfbdafeb3c [KT-51517] Mute ConfigurationCacheIT.testCommonizer due configuration cache issue. 2022-09-23 08:06:53 +00:00
konstantin.tskhovrebov c9184c6781 [KT-51517] Pass external cinterop dependencies to Commonizer. 2022-09-23 08:06:53 +00:00
Pavel Mikhailovskii a209098a6c KT-8575 Enable ReferencesToSyntheticJavaProperties in 1.9 2022-09-22 20:20:55 +00:00
Alexander Udalov ba150ca370 Add JVM target bytecode version 19
Test data in `box/annotations/typeAnnotations` is changed because nested
classes in type annotations are rendered differently in JDK 19
(`Outer.Nested` instead of `Outer$Nested`).

 #KT-54116 Fixed
2022-09-22 21:56:10 +02:00
Alexander Udalov 8757988037 Minor, generate trailing comma in enums in Gradle compiler types
This both simplifies the generator code and makes the generated code
conform to the style guide (see
https://kotlinlang.org/docs/coding-conventions.html#trailing-commas), in
particular it improves version control diffs for generated enums.
2022-09-22 21:56:10 +02:00
Ilmir Usmanov 3ee09f05ef JVM: Check for multiple {POP, Unit} sequences in suspend function TCO
We already check for {POP, Unit} sequence before ARETURN, but if the
there are multiple sequence before ARETURN, the compiler assumes, that
TCO misses.

The fix is to check, that the instruction after the sequence is either
ARETURN or another {POP, Unit} sequence.

 #KT-50835
 #KT-54152 Fixed
2022-09-22 19:46:52 +02:00
Alexander Likhachev 45b608e195 [Gradle] Move default variant implementations registration upwards
Now default variant implementations are being registered in DefaultKotlinBasePlugin, allowing to test KGP api without dealing with variant factories
2022-09-22 17:04:23 +00:00
Alexander Likhachev 749d9f51d1 [Gradle] Remove direct Provider.forUseAtConfigurationTime calls
#KT-53823 Fixed
2022-09-22 17:04:23 +00:00
Alexander Likhachev 9d8df8eb5e [Gradle] Introduce ConfigurationTimePropertiesAccessor
#KT-53823 In Progress
2022-09-22 17:04:23 +00:00
Yahor Berdnikau ad44ee8904 Fix syncing languageSettings for KotlinNativeLink task
Task registration may happen within another configuration call leading
to prohibited 'afterEvaluate {}' block error. Fixed it by moving out
sync to separate configuration call.

^KT-54113 Fixed
2022-09-22 17:03:38 +00:00
Artem Kobzar d7ef5efa6a [K/JS] Remove ligature that breaks map files comparison pipeline (hack for KT-50589 issue) 2022-09-22 16:03:14 +00:00
Artem Kobzar 2081dc327c [K/JS] Trick-out the D8 bug related to a long path on Windows 2022-09-22 15:22:00 +00:00
Vsevolod Tolstopyatov 137e5d67d0 Scrupulously document OptIn-related annotations
#KT-49425

Merge-request: KT-MR-7094
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com>
2022-09-22 13:57:45 +00:00
Artem Kobzar 39a44d4ccb [K/JS] Add lateinit as exception for simple properties ^KT-53968 Fixed 2022-09-22 13:50:51 +00:00
Vyacheslav Gerasimov ec09d3c1e4 Build: Prioritize gradle.integration.tests.split.tasks property
To allow disabling task splitting on TeamCity
2022-09-22 15:49:24 +02:00
Pavel Mikhailovskii f8fd23e373 KT-8575 Add tests and disable reflection for Java synthetic property references 2022-09-22 13:33:28 +00:00
Igor Yakovlev 5116bbc440 [WASM] Fix invalid element visiting for external declarations 2022-09-22 11:54:04 +02:00
Igor Yakovlev b4ebc1dca4 [WASM] Add missing implicit casts 2022-09-22 11:54:04 +02:00
Igor Yakovlev 081cd4a4a8 [WASM] Support nullable types for external functions 2022-09-22 11:54:04 +02:00
Aleksei.Cherepanov dc57ccdf76 Clean up default additional compiler argument
Remove `-version` from additional compiler arguments of newly created facets

#KTIJ-22490 Fixed
2022-09-22 09:14:08 +00:00
Svyatoslav Scherbina 38f2b20e1a Native: add more tests for Swift Set and Dictionary used in Kotlin 2022-09-22 07:37:44 +00:00
Svyatoslav Scherbina 39c73e25a4 Native: improve thread state switches for NSSet/NSDictionary adapters
^KT-54119
2022-09-22 07:37:44 +00:00
Nikolay Krasko 1630386712 Move to JDK_X_Y variables 2022-09-21 22:53:19 +00:00
Nikolay Krasko 2df9203336 Add ability to configure jdk with two backup properties 2022-09-21 22:53:18 +00:00
Nikolay Krasko 87c2e5145c Move to JDK_9_0 in maven project 2022-09-21 22:53:18 +00:00
Nikolay Krasko 7c11ddf7ac Move to JDK_1_7 in maven project 2022-09-21 22:53:18 +00:00
Nikolay Krasko 930c63c324 Move to JDK_1_6 in maven project 2022-09-21 22:53:18 +00:00
Nikolay Krasko e92c7983d0 Move to JDK_1_8 in maven project 2022-09-21 22:53:17 +00:00
Ilmir Usmanov 569e72c34e Minor. Do not check for specific bytecode in test 2022-09-21 16:42:15 +00:00
Xin Wang 0eadf35132 Inline: Fix operand stack type verify error
This is a proposal to fix KT-49364.
Operand stack type verification happens before `checkcast`
is executed. When we implicitly cast an inline class
to a non-inline type, if type of stack value is not subtype
of the target, then coercing is necessary.
2022-09-21 16:42:14 +00:00
Yahor Berdnikau cc5f65be1e Update KGP-api binary compatibility with removed JvmTarget.JVM_1_6 2022-09-21 17:01:35 +02:00
Sebastian Sellmair c641ba5397 [Gradle][MPP] Rename isSharedNative function to isNativeSourceSet
^KT-48135 Verification Pending
2022-09-21 14:33:11 +00:00
Sebastian Sellmair 4ddd23b09f [Gradle][MPP] Add very small doc on KotlinProjectStructureMetadata
^KT-48135 Verification Pending
2022-09-21 14:33:11 +00:00
Sebastian Sellmair 929750011a [Gradle][MPP] Extract CompositeMetadataArtifact.ArtifactContent
... into its own top level entity called CompositeMetadataArtifactContent.

This commit also refines naming os the APIs and provides
additional documentation.

^KT-48135 Verification Pending
2022-09-21 14:33:11 +00:00
Sebastian Sellmair 4935026b2c [Gradle][MPP] transformMetadataLibraries.kt Fix comment
^KT-48135 Verification Pending
2022-09-21 14:33:10 +00:00
Sebastian Sellmair 59f4d76bcf [Gradle][MPP] CompositeMetadataArtifact: Remove Int checksum (keep String)
^KT-48135 Verification Pending
2022-09-21 14:33:10 +00:00
Sebastian Sellmair 9f01217050 [Gradle][MPP] Add comment for CInteropMetadataDependencyTransformationTask.OutputLibraryFilesDiscovery.Precise
^KT-48135 Verification Pending
2022-09-21 14:33:10 +00:00
Sebastian Sellmair 386c2f8015 [Gradle][MPP] Fix KotlinProjectStructureMetadataSerializationTest.sampleMetadata
This object did not list 'commonMain' and put non-idiomatic
data into 'sourceSetNamesByVariantName'

^KT-48135 Verification Pending
2022-09-21 14:33:09 +00:00
Sebastian Sellmair 59d0bd5e39 [Gradle][MPP] Rename CompositeMetadataArtifact.ArtifactHandle to ArtifactContent
^KT-48135 Verification Pending
2022-09-21 14:33:09 +00:00
Sebastian Sellmair 75cc378cac [Gradle][MPP] Include artifact checksum string in transformed metadata klib file names
This can be used for locally published snapshot libraries.
Without it, the import will see that there is already
a library with same coordinates in .gradle/kotlin/... and
therefore skip extracting it.

Including the 32 checksum at the end of the file will ensure,
that if a different artifact is the source of the metadata,
then a new file will be created.

This approach is generally more desirable than cleaning the
.gradle/kotlin directory to avoid the IDE of re-indexing
after import.

^KT-48135 Verification Pending
2022-09-21 14:33:09 +00:00
Sebastian Sellmair f1aad4aa4e [Gradle][MPP] Rename TransformKotlinGranularMetadataForFragment to GradleKpmMetadataDependencyTransformationTask
This, hopefully, finally makes my life easier.

^KT-48135 Verification Pending
2022-09-21 14:33:08 +00:00
Sebastian Sellmair 27f7150d48 [Gradle][MPP] Rename TransformKotlinGranularMetadata to MetadataDependencyTransformationTask
This, hopefully, finally makes my life easier.

^KT-48135 Verification Pending
2022-09-21 14:33:08 +00:00
Sebastian Sellmair a2229758d7 [Gradle][MPP] Rename JarMetadataProvider to ArtifactMetadataProvider
^KT-48135 Verification Pending
2022-09-21 14:33:07 +00:00