Commit Graph

64055 Commits

Author SHA1 Message Date
Ilya Gorbunov 15319eb88e Implement in-place shuffle for arrays
Minor: reorder shuffle/shuffled extensions more consistently

#KT-25651 Fixed
2020-04-10 11:04:51 +03:00
Ilya Gorbunov e58f1c8932 Introduce Sequence.shuffled
#KT-37751
2020-04-10 10:59:40 +03:00
Dmitry Petrov f42d9eefa1 KT-30330 Support KotlinNothingValueException in JVM 2020-04-10 08:47:03 +03:00
Dmitry Petrov 9941c255b9 KT-30330 KotlinNothingValueException 2020-04-10 08:47:02 +03:00
Alexey Tsvetkov 6acf9385bd Add tests for lookup tracker with JS KLIB compiler 2020-04-10 05:35:45 +03:00
Alexey Tsvetkov 1c38466a22 Pass LookupTracker to deserialized scopes in JS KLIB compiler
Before this change, deserialized scopes were not tracking lookups properly,
because lookup tracker was not passed from compiler configuration correctly.
Because of that, lookups from dependencies were not tracked,
so multi-module IC was not working (chages were passed between modules,
but affected source files were not invalidated).
2020-04-10 05:35:45 +03:00
Alexey Tsvetkov 98f561bbed Add separate flag to control JS KLIB IC in Gradle 2020-04-10 05:35:45 +03:00
Ilya Gorbunov fc9ac67980 Tune parameters of time-sensitive tests
Lessen CPU load on the main thread.
Remove fragile checks.
2020-04-10 01:38:46 +03:00
Ilya Kirillov b049a55cca Wizard: remove redundant text from removing module dialog 2020-04-10 01:04:18 +03:00
Yaroslav Chernyshev ebb225fa4e [Gradle, Native] Fix CocoaPods plugin regression related with Xcode build 2020-04-10 00:41:29 +03:00
Vladimir Dolzhenko b51ae78b84 Do not resolve alias imported references on rename
#KT-38096 Fixed
2020-04-09 20:38:01 +00:00
Ilya Kirillov ac0d34089a Wizard: add run configuration for Ktor server template 2020-04-09 23:11:40 +03:00
Ilya Kirillov 67f95c21da Wizard: fix missed setting in Ktor template
#KT-38120 fixed
2020-04-09 23:11:40 +03:00
Ilya Kirillov 4cfa2f95a7 Wizard: add m2 Gradle plugin repository for non-stable Kotlin versions
#KT-36136 fixed
2020-04-09 23:11:40 +03:00
Ilya Kirillov 367699a853 Wizard: fix js Gradle dsl
#KT-38121 fixed
2020-04-09 23:11:39 +03:00
Ilya Kirillov 4e91f1c607 Wizard: update Kotlin version for tests to dev one
Needed for support latest syntax of Gradle dsl for js
2020-04-09 23:11:39 +03:00
Ilya Kirillov 9badcae692 Wizard: move some hardcoded versions to constants 2020-04-09 23:11:39 +03:00
Vladimir Dolzhenko 3de9838a7d Specify search scope for nj2k ConvertGettersAndSettersToPropertyProcessing
Relates to #KT-37801
2020-04-09 18:00:04 +02:00
Mikhail Bogdanov 535fcbb534 Switch android test to common Android SDK dependency management
~
2020-04-09 17:04:42 +02:00
Mikhail Bogdanov acb4d6cf63 Update android-sdk dependency management. Add Emulator 2020-04-09 17:04:41 +02:00
Nikolay Krasko 919a5e7cc7 Update to 201.6668.113 2020-04-09 17:52:48 +03:00
Alexander Udalov e533545c29 Minor, ignore codegen test for JDK 6 2020-04-09 16:50:13 +02:00
Nicolay Mitropolsky e815227196 Uast: resolve compiled annotation parameters (KT-34564) 2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky b1bd962464 Uast: kotlinInternalUastUtils.kt reordering to move internal functions to the top 2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky f5df64674f Uast: making local lambda resolve and methods multiresolve work via resolveToDeclaration and resolveToPsiMethod
also fixes KT-36275
2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky 89863bd2a3 Uast: unifying resolve to two methods resolveToDeclaration and resolveToPsiMethod 2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky c3977d7336 Uast: replacing most usages of resolveCallToDeclaration with resolveToPsiMethod 2020-04-09 16:38:11 +03:00
Nicolay Mitropolsky ab36e20b1b Uast: resolving local calls (KT-36275) 2020-04-09 16:38:11 +03:00
Nicolay Mitropolsky 6803b37d14 Uast: Making AbstractKotlinResolveEverythingTest test also UCallExpression
current test data is just frezing the current state which is probable incorrect
2020-04-09 16:38:11 +03:00
Leonid Startsev 63322b9891 Add explicitApiWarning() method
to enable warning state of explicit api mode in the same
way that strict state. (KT-36019)
2020-04-09 15:33:04 +03:00
Mikhail Glukhikh c597e3e87f Unmute additional FIR black box tests after rebasing 2020-04-09 15:22:57 +03:00
Mikhail Glukhikh cd5a4900e6 [FIR] Support dispatch & extension receiver in component calls 2020-04-09 15:22:56 +03:00
Mikhail Glukhikh a93c7a39e0 [FIR] Provide object [dispatch] && callable reference receivers properly 2020-04-09 15:22:56 +03:00
Mikhail Glukhikh 00fedbf6b3 [FIR2IR] Distinguish 'parent' & 'thisReceiver' for fake overrides 2020-04-09 15:22:56 +03:00
Mikhail Glukhikh 4543367c37 [FIR] Add type parameter mapping for substituted properties 2020-04-09 15:22:56 +03:00
Mikhail Glukhikh fcdbffde3f [FIR2IR] Support Java synthetic properties 2020-04-09 15:22:56 +03:00
Mikhail Glukhikh 8e3d22a104 [FIR2IR] Enable receiver existence assertion 2020-04-09 15:22:55 +03:00
Mikhail Glukhikh 14731527ed [FIR] Don't store class functions in local scope 2020-04-09 15:22:55 +03:00
Mikhail Glukhikh 19d0d42b9e Mute three failing FIR black box tests 2020-04-09 15:22:55 +03:00
Mikhail Glukhikh ac7d43f06e [FIR2IR] Don't generate fake overrides with error types 2020-04-09 15:22:55 +03:00
Mikhail Glukhikh 932b03beb2 [FIR2IR] Don't generate fake overrides for another package privates 2020-04-09 15:22:55 +03:00
Mikhail Glukhikh 5c758af0a6 [FIR] Use ScopeSession from resolve transformer in FIR2IR 2020-04-09 15:22:55 +03:00
Ilmir Usmanov f775ac8825 Move legacy assert tests to launcher
since they are broken on JDK 11: they change Field.modifiers, which is prohibited
since JDK 9, because this private field is not exported.
Thus, we need to split the test into two: one with assertions enabled and the other
one with them disabled. Also, we need to run them in separate processes, for them
not to interfere each other.
 #KT-27176 Fixed
2020-04-09 14:10:31 +02:00
Konstantin Tskhovrebov 7671de1b20 Disable test run line marker for object classes. 2020-04-09 14:44:35 +03:00
Alexander Udalov 7652117e3d Minor, ignore test on adapted function references for Android 2020-04-09 12:50:21 +02:00
Alexander Udalov 683489687e Fix NPE in KCallable.isAccessible for interfaces loaded by boot class loader
Class.getClassLoader returns null for classes loaded by the system class
loader (the one used to start the application). In this case we need to
use ClassLoader.getSystemClassLoader. We already have an extension
`safeClassLoader` specifically for this purpose in reflection.jvm, but
forgot to use it in d59f2bcc80.

 #KT-37707 Fixed
2020-04-09 12:35:28 +02:00
Mikhail Zarechenskiy a7b959b88b Fix delegated property resolve with intermediate ID provideDelegate
#KT-37406 Fixed
2020-04-09 13:34:29 +03:00
Vladimir Dolzhenko 0262e9de2f Look up modules under modal progress in ChooseModulePanel
Relates to #KT-30541
#KT-38081 Fixed
2020-04-09 10:12:01 +00:00
Dmitry Gridin 91700c9d2c ReplacementPerformer: fix potential PIEAE 2020-04-09 17:04:08 +07:00
Valentin Kipyatkov 76a573921e Fixed Introduce Parameter broken by earlier changes in KotlinParameterInfo 2020-04-09 12:22:22 +03:00