Abduqodiri Qurbonzoda
47aa04d55d
Test fix: java6 doesn't throw on invalid AbstractMutableList.addAll index
...
If the collection of elements to be added is empty, java6 implementation
of AbstractMutableList.addAll doesn't throw on invalid index.
The failing test was introduced in 59031543e2
which fixed #KT-47211.
2021-06-28 13:58:41 +00:00
Zalim Bashorov
a908e5576d
[JS] Extract sourcemap generating related files to a separate module
...
It's required to reuse the same infrastructure in the new backend.
2021-06-28 16:04:09 +03:00
sebastian.sellmair
a63c179227
KotlinNativePlatformDependencies: Ensure 'commonizeNativeDistributionTask' is registered when 'isAllowCommonizer' is true
2021-06-28 13:00:19 +00:00
Svyatoslav Scherbina
b3980f9555
kotlin-native/samples: fix cocoapods after faulty cherry-pick 64129314
...
Move its source file to where it belongs.
2021-06-28 12:56:09 +00:00
Dmitry Petrov
560c269e05
PSI2IR KT-47450 prevent SOE when generating IR for deep expressions
2021-06-28 15:41:41 +03:00
Dmitriy Novozhilov
c4d9945782
Fix JPS build after removal of IDE plugin from repo
2021-06-28 14:32:24 +03:00
Ilya Goncharov
b76cbdaa41
[Gradle, JS] Remove redundant worksapces properties in yarn extensions
2021-06-28 13:38:04 +03:00
Ilya Goncharov
e3c291db27
[Gradle, JS] Not rewrite package.json if json was not changed
2021-06-28 13:38:03 +03:00
Ilya Goncharov
6219eb24c0
[Gradle, JS] Remove redundant test
2021-06-28 13:38:02 +03:00
Ilya Goncharov
1cc5a9493c
[Gradle, JS] RootPackageJson task with up-to-date status
2021-06-28 13:38:01 +03:00
Ilya Goncharov
f182a1c750
[Gradle, JS] Sort for tools npm dependencies
2021-06-28 13:37:58 +03:00
Ilya Goncharov
3fc2a77281
[Gradle, JS] Remove redundant caching infrastructure
2021-06-28 13:37:57 +03:00
Ilya Goncharov
4d2376ac4c
[Gradle, JS] Use package.json files instead of pre-package.json
2021-06-28 13:37:55 +03:00
Ilya Goncharov
f8bd440356
[Gradle, JS] Not force to write package.json in rootPackageJson
2021-06-28 13:37:53 +03:00
Ilya Goncharov
c4a1053aa7
[Gradle, JS] Add imported packages as workspace, not file dependencies
2021-06-28 13:37:52 +03:00
Alexander Udalov
f430d569d0
Fix warnings in js-ir/runtime/jsIntrinsics.kt
...
Suppress "UNUSED_PARAMETER" to fix compilation warnings. Also suppress
"unused" to make the file less yellow in the IDE.
Also enable `-Werror`, unless Gradle property
`kotlin.build.disable.werror` is set to true.
2021-06-28 12:19:35 +02:00
Svyatoslav Scherbina
eeffa49cd9
Native: don't generate .companion in ObjCExport if the companion is not exported
...
^KT-47462 Fixed
2021-06-28 08:19:12 +00:00
Svyatoslav Scherbina
786cb47450
Native: improve ObjCExport test for companion enum entry clash
2021-06-28 08:19:11 +00:00
Ivan Gavrilovic
929c4624cc
KT-47416: Pass Android annotationProcessorOptions to kapt
...
This commits makes sure that "static" DSL options from
`android.javaCompileOptions.annotationProcessorOptions`
are passed to KAPT when running w/o kotlinc.
A regression was introduced in 19708cfa87 .
Fixes #KT-47416
Test: Kapt3AndroidIT.testStaticDslOptionsPassedToKapt
2021-06-28 09:10:53 +02:00
Anton Bannykh
d303b783be
KLIB: serialization support for global signatures and lowered IR features
...
Including:
- returnable blocks
- raw function references
- standalone type and value parameters
- file symbols
2021-06-27 22:56:35 +03:00
Anton Bannykh
6f01789139
IR: public symbols for the new global signatures
2021-06-27 22:56:35 +03:00
Anton Bannykh
aa5e7c65be
KLIB: queue modules instead of ModuleDeserializationState
...
This approach is more general and expandable.
2021-06-27 22:56:35 +03:00
Anton Bannykh
e4707b236b
JS IC: new signatures
...
Lowered IR might have cross-file references for fields, type parameters
and other stuff. Thus there is a need to make file-local and scope-local
signatures unique at least within a module.
2021-06-27 22:56:34 +03:00
Anton Bannykh
eba0661016
JS IC: .proto update
2021-06-27 22:56:34 +03:00
Anton Bannykh
b77d481ac6
IR: hide assert behind a flag
...
In JS IC the symbol might be unbound at this moment
2021-06-27 22:56:34 +03:00
Anton Bannykh
dbeb09af89
IR: fix SecondaryCtorLowering.kt
2021-06-27 22:56:34 +03:00
Anton Bannykh
bd4e7ffef8
JS PIR: store signatures for lowered declarations inside PIR declarations
2021-06-27 22:56:33 +03:00
Anton Bannykh
e0bdabcf61
JS IR: fix js SAM lowering
2021-06-27 22:56:33 +03:00
Anton Bannykh
9462131014
JS IR: fix offsets in BlockDecompositionLowering
2021-06-27 22:56:33 +03:00
Anton Bannykh
600099585d
IR: refactor IdSignatureSerializer
...
Use a separate instance for each file.
2021-06-27 22:56:33 +03:00
Yahor Berdnikau
87dd357ec6
Add Gradle test task to run Gradle and Kotlin daemon tests.
...
These tests could not run in parallel, as they could not share
Gradle or Kotlin daemons with other running in parallel tests.
^KT-45745 In Progress
2021-06-27 21:35:54 +02:00
Andrey Zinovyev
c8fa8b0444
[lombok] Don't fail on fake overrides
...
#KT-47455 Fixes
2021-06-27 13:46:09 +03:00
Dmitriy Novozhilov
80b81934de
Advance bootstrap to 1.5.30-dev-2862
2021-06-26 18:18:43 +03:00
Dmitriy Novozhilov
a8501bcef5
[FE 1.0] Fix message of INTEGER_OPERATOR_RESOLVE_WILL_CHANGE warning
...
^KT-47446 Fixed
2021-06-26 13:46:27 +03:00
Mikhael Bogdanov
5f62b72c82
Properly process big types
2021-06-26 06:10:16 +02:00
Mikhael Bogdanov
0fd1f549a9
Properly process special symbols during indy-with-constants concatenation
...
#KT-47320 Fixed
2021-06-26 06:10:16 +02:00
Zalim Bashorov
e947556aaa
[IR] Use separate directories for each module for IR dumps
...
It allows avoiding overwriting content generated for other modules.
Also, added using additional ".kt" prefix to file extension for dumps generated with Kotlin like syntax.
2021-06-26 01:38:04 +03:00
Alexander Shabalin
28b6427d3e
Make FreezableAtomicReference atomic when unfrozen for the new MM.
2021-06-25 21:18:37 +00:00
Alexander Likhachev
518e8691b7
[Gradle, JS] Remove duplicate minimal Gradle version requirement
...
Minimal Gradle version for all Kotlin plugins is now 6.1 and minimal Gradle versions for all integration tests is set to 6.1.1
2021-06-25 22:40:06 +03:00
Alexander Likhachev
e8e95e6476
[Gradle, JS] Add test for KT-47154 regression
...
#KT-47154 Fixed
2021-06-25 22:40:04 +03:00
Alexander Likhachev
26510190cc
[Gradle, JS] Include compiler type into library filter cache key
...
Previous fix could lead to unresolved symbols from main implementation in test compilation when module is compiled with both JS (IR and legacy) compilers because of single cached filter for both compileTestKotlinJsLegacy and compileTestKotlinJsIr tasks
#KT-47154 In Progress
2021-06-25 22:40:03 +03:00
Ivan Kochurkin
568eb255f5
[FIR] Split UpperBoundViolated checkers on two files (expression and declaration), add FirUpperBoundViolatedHelpers
2021-06-25 20:57:48 +03:00
Ivan Kochurkin
a26ffde820
[FIR] Correct support of projections and type aliases for UPPER_BOUND_VIOLATED, extend tests
2021-06-25 20:57:47 +03:00
Ivan Kochurkin
66e2b44272
[FIR] Implement UPPER_BOUND_VIOLATED_IN_TYPEALIAS_EXPANSION diagnostics, fix handling of UPPER_BOUND_VIOLATED
2021-06-25 20:57:46 +03:00
Ivan Kochurkin
5741374883
[FIR] Report UPPER_BOUND_VIOLATED only on checkers stage, fix detection of missing cases and testData
2021-06-25 20:57:45 +03:00
Ivan Kochurkin
ada14413e0
[FIR] Fix location of UPPER_BOUND_VIOLATED, fix detecting of several diagnostics, simplify FirUpperBoundViolatedChecker.kt
2021-06-25 20:57:44 +03:00
Dmitry Petrov
1298ba431b
JVM_IR KT-47449 handle star projection arguments in default lambda types
2021-06-25 20:42:22 +03:00
Yahor Berdnikau
5486fec0f9
Validate Java and Kotlin target compatibility have same value.
...
This will ensure compiled java sources and kotlin sources class files
has the same bytecode version.
^KT-45611 Fixed
^KT-43095 Fixed
2021-06-25 16:28:57 +00:00
Yahor Berdnikau
6d929a8c3b
Ensure toolchain is properly configured.
...
User specified toolchain maybe configured after initial task
configuration action will happen.
^KT-43095 In Progress
2021-06-25 16:28:56 +00:00
Yahor Berdnikau
4e556af54d
Rename KotlinJavaToolchainProvider to DefaultKotlinJavaToolchain.
...
'Provider' suffix doesn't make sense.
^KT-45611 In Progress
^KT-43095 In Progress
2021-06-25 16:28:56 +00:00