Commit Graph

94634 Commits

Author SHA1 Message Date
Abduqodiri Qurbonzoda faedd76b32 Remove deprecation from ConcurrentModificationException constructors #KT-53927
The constructors were introduced in jdk7,
thus their usage was prohibited in Common code.
Now that jvmTarget is 1.8 and jdk8+ is used to compile stdlib,
these constructors are available on all platforms.
2022-09-08 14:01:09 +00:00
Dmitry Gridin 7102be7720 [lc] KotlinAsJavaSupportBase: introduce LightClassCachedValue
to extract common logic with cached values

^KT-50241
2022-09-08 13:47:41 +00:00
Dmitry Gridin 2611be0436 [lc] KotlinAsJavaSupportBase: make ifValid inline
^KT-50241
2022-09-08 13:47:40 +00:00
Dmitry Gridin aa31ca67e2 [lc] KotlinAsJavaSupportBase: make librariesTracker abstract
^KT-50241
2022-09-08 13:47:40 +00:00
Dmitry Gridin e6bb97d490 [lc] KotlinAsJavaSupportBase: suppress visibility warnings
methods can be used from the plugin for tests

^KT-50241
2022-09-08 13:47:40 +00:00
Dmitry Gridin b618855e2c [lc] KotlinAsJavaSupportBase: add more lightweight checks for facades
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin ec1b6f4f3e [lc] KotlinAsJavaSupportBase: reduce number of findModule calls
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin acc880fe25 [slc] SymbolKotlinAsJavaSupport: drop redundant checks
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin e58b98bb5c [lc] KotlinAsJavaSupportBase: implement getLightClassForScript
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin 46548e5443 [lc] KotlinAsJavaSupportBase: implement getLightClass
add more caching

^KT-50241
2022-09-08 13:47:38 +00:00
Abduqodiri Qurbonzoda 2d0e95cea0 Remove StringBuilder functions with nonnull parameter type in K/N and JS #KT-53864 2022-09-08 12:16:55 +00:00
Pavel Kunyavskiy 2a36c08e1f [K/N] Fix nan tests on mips 2022-09-08 12:13:43 +00:00
Abduqodiri Qurbonzoda 0208246094 Remove StringBuilder functions with renamed parameters in K/N #KT-53864 2022-09-08 12:02:37 +00:00
Abduqodiri Qurbonzoda 73a65c1bb1 Promote top-level kotlin.math.cbrt() to stable #KT-53277 2022-09-08 12:00:58 +00:00
Abduqodiri Qurbonzoda 0763ab7bc1 Promote DurationUnit.toTimeUnit() and TimeUnit.toDurationUnit() to stable #KT-53277 2022-09-08 11:59:24 +00:00
Mikhail Glukhikh 596ad7d7d3 FE: make EnumEntries unstable feature to poison binaries 2022-09-08 09:03:05 +00:00
Igor Chevdar d8fb9560d1 [K/N] Used compiler_interface.bc instead of runtime.bc 2022-09-08 07:56:15 +03:00
Toshiaki Kameyama 26d4e02b7c Allow KtPsiFactory#createModifierList to create fun modifier
#KTIJ-16332
2022-09-07 18:03:51 +00:00
Mikhail Glukhikh a742c126c2 FIR2IR: check for @JvmStatic also on property accessors 2022-09-07 17:05:13 +00:00
Pavel Mikhailovskii 0b453ee328 KT-41670 Check for default property accessors in SAM interfaces 2022-09-07 13:37:38 +00:00
Yahor Berdnikau 59a052a615 Add '@NormalizeLineEndings' annotation to task inputs
Excluding '@Classpath' inputs due to the bug in Gradle:
https://github.com/gradle/gradle/issues/20708.

Also MacOs only tasks are excluded.

^KT-50673 Fixed
2022-09-07 13:24:25 +00:00
Pavel Mikhailovskii 85ab8b4ce1 KT-53783 Prohibit "expect data object" syntax 2022-09-07 12:53:24 +00:00
Artem Kobzar a6d1f30e89 chore: generate extra files. 2022-09-07 12:46:45 +00:00
Nikolay Lunyak 45619ab390 [FIR] KT-53435: Fix false positive ANNOTATION_ARGUMENT_MUST_BE_CONST
Otherwise, `FirNamedArgumentExpression` are not considered
const expr despite the value.

Merge-request: KT-MR-7052
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru>
2022-09-07 12:34:26 +00:00
Rick Clephas ff1adf596d [FIR] Implement ObjCName checkers 2022-09-07 11:00:51 +00:00
Rick Clephas 115db22c12 [FE 1.0] Extract NativeObjCNameOverridesChecker from NativeObjCNameChecker 2022-09-07 11:00:51 +00:00
Dmitriy Novozhilov 77bfe542c3 Advance bootstrap to 1.8.0-dev-2843 2022-09-07 10:27:25 +00:00
Artem Kobzar 24d73e5cb8 fix: test case for js name. 2022-09-07 09:04:07 +00:00
Mikhail Glukhikh e52c50bfaa K2: postpone "Enable DFA warnings" to version 1.9
#KT-50965 Fixed
2022-09-07 08:05:20 +00:00
Dmitriy Novozhilov cb03ef89c5 [Test] Unmute passing test 2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov 671083c701 [Serialization] Implement serialization checker for K2 version of plugin
^KT-53178 Fixed
2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov e048ffcf6d [FIR] Update tests due to KT-53873 2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov 40b13898bd [FIR] Don't set source of inferred type from expected type 2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov e1fd184d14 [FIR] Fix missing initialization of backingField for properties from primary constructor 2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov 194741b96b [FIR] Remove incorrect FirClassSymbol<*>.superConeTypes utility
Replace all usages with member `FirClassSymbol.resolvedSuperTypes`
2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov 6ef3d1e573 [FE] Add helper methods for reporting diagnostics with DiagnosticContext context receiver 2022-09-07 07:57:36 +00:00
Anton Lakotka b5ff063164 [Gradle] Make jvmMainClasses depend on javaCompile task
^KT-31459 Verification Pending
2022-09-07 05:04:00 +00:00
Anton Lakotka 164d66595c Revert "[Gradle] Make target lifecycle task depend on classes compilation outputs"
This reverts commit 564e3b064a.
2022-09-07 05:03:59 +00:00
Anton Lakotka a4cfb99de4 [Gradle] Add circular dependency check for KT-31459
^KT-31459
2022-09-07 05:03:59 +00:00
Yahor Berdnikau 4861aa3381 Fix typo in file name 2022-09-06 20:07:54 +00:00
Yahor Berdnikau 885cb5f1c8 Update Gradle with android tests setup based on feedback
- Change back 'TestVersions.AGP' to be 'object class' with constants
inside, so they could be referenced inside version annotation
- Fix issue when AGP minimal version could be higher than AGP max
version

^KT-45747 Fixed
2022-09-06 20:07:53 +00:00
Pavel Mikhailovskii a75d5ba4cf KT-53465, KT-53677 Get rid of unnecessary checkcasts to array of reified type 2022-09-06 18:33:38 +00:00
Mikhail Glukhikh d8522a8967 FE: Add test for KT-53656 2022-09-06 17:57:02 +00:00
Mikhail Glukhikh c1b0405c4e [FE 1.0] Use the old type intersection for type parameter bounds
This is a partial revert of commit bc1c2ada
We have to use old type intersector for emptiness check because
KT-53656 were found. We return to old type intersector usage also
for type parameter bounds to prevent other possible problems.
2022-09-06 17:57:02 +00:00
Mikhail Glukhikh 3bdd52b64a [FE 1.0] Return to the old type intersection emptiness check
This reverts commit 8227c4b603.
#KT-53656 Fixed
2022-09-06 17:57:01 +00:00
Igor Chevdar 5c09d7838d [K/N] Added compiler interface to distribution 2022-09-06 14:03:41 +00:00
Igor Chevdar 44010a04b1 [K/N][runtime] Extracted compiler interface from native runtime 2022-09-06 14:03:41 +00:00
Igor Chevdar b8bf82114b [K/N][codegen] Refactored getting types from runtime 2022-09-06 14:03:41 +00:00
Vladimir Dolzhenko 79d1ca0504 Align externalId
externalId for any field in stubElementTypeHolder has to be prefix (`kotlin`) + dot (`.`) + field name

#KT-53781
2022-09-06 10:52:33 +00:00
Nikolay Lunyak 24dfb14654 [FIR] KT-53493: Turn VAL_OR_VAR_ON_*_PARAMETER warnings into errors
Merge-request: KT-MR-7032
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru>
2022-09-06 08:40:48 +00:00