Commit Graph

55536 Commits

Author SHA1 Message Date
Andrey Uskov 1f17ff5d38 Fix compilation of KotlinAndroidGradle MPPModuleDataService
in bunch 182
2019-06-13 20:31:12 +03:00
Alexander Udalov 18a4247226 Add kdoc for new API of kotlinx-metadata-jvm
#KT-26602
2019-06-13 18:00:42 +02:00
Alexander Udalov 980b7ace40 Minor, fix kdoc of KmModuleVisitor.visitPackageParts
Implementation implies that this method is called exactly once for each
package, and that makes more sense to require in the function contract
2019-06-13 18:00:42 +02:00
Alexander Udalov 41eedb69ca Update kotlinx-metadata-jvm usage example in MetadataSmokeTest and ReadMe 2019-06-13 18:00:42 +02:00
Alexander Udalov a680067ac3 Use new kotlinx-metadata API in binary-compatibility-validator 2019-06-13 18:00:42 +02:00
Alexander Udalov 5ee34503c0 Introduce new API for kotlinx-metadata-jvm
Kdocs are provided in a subsequent commit

 #KT-26602 Fixed
2019-06-13 18:00:33 +02:00
Alexander Udalov aa54a7e11a Minor, move jvmExtensions.kt -> jvmExtensionVisitors.kt 2019-06-13 17:55:46 +02:00
Andrey Uskov d02bf74215 Fixed creation of module dependencies on MPP module from non-mpp modules. Case when one artifact is produced by several mpp actualized sources sets is supported.
#KT-30667 Fixed
2019-06-13 18:30:54 +03:00
Andrey Uskov c0bf5a6566 Import of middle HMPP target platforms is supported 2019-06-13 18:30:01 +03:00
Vyacheslav Gerasimov c0594c2ee3 Build: Remove dependency on internal indenting stream writer 2019-06-13 18:27:12 +03:00
Andrey Uskov 98a443c12f Fix compatibility with IDEA after unlinking external api from java
#KT-31952 Fixed
2019-06-13 17:42:12 +03:00
Yan Zhulanow 1ec6ca7dd6 Fix rebase issue, move KotlinDebuggerEvaluator to the debugger-util module 2019-06-13 22:34:33 +09:00
Yan Zhulanow 2754deca98 Move FUS components to the 'idea-core' module 2019-06-13 21:58:23 +09:00
Yan Zhulanow 7e564e94ed Debugger: Implement error reporting for evaluator 2019-06-13 21:58:23 +09:00
Anton Yalyshev 8a5fd44a55 created FUS Group for Debugger Evaluator 2019-06-13 21:58:23 +09:00
Yan Zhulanow 6fdcb69b43 Fix Spring tests for ultimate build 2019-06-13 21:58:22 +09:00
Steven Schäfer 41ce88cb9b Move eraseTypeParameters to IrUtils and use it in PromisedValue.coerce 2019-06-13 12:25:06 +02:00
Steven Schäfer 3ce0c336bc Move IrReturnTarget.returnType to IrUtils 2019-06-13 12:25:06 +02:00
Steven Schäfer ea3bae5fc9 Split voidValue into immaterialUnitValue and defaultValue 2019-06-13 12:25:06 +02:00
Steven Schäfer 27a850be92 Fix genValueAndPut in IrInlineCodegen 2019-06-13 12:25:06 +02:00
Steven Schäfer 917ef250cf Add and (un)mute inline class tests 2019-06-13 12:25:06 +02:00
Steven Schäfer f1f0c7e0a0 Take inline classes into account in JvmBuiltinOptimizationLowering 2019-06-13 11:24:16 +02:00
Steven Schäfer 69cf8d4df4 Produce source function names in CallableReferenceLowering 2019-06-13 11:24:15 +02:00
Steven Schäfer 9c957edcea Implement inline classes in the JVM_IR backend 2019-06-13 11:24:15 +02:00
Steven Schäfer ad3e03bdbd Disable type mapper name mangling for inline classes in the JVM_IR backend 2019-06-13 11:24:15 +02:00
Steven Schäfer f5b9eee83a Add builder for variable declarations without initializers 2019-06-13 11:24:15 +02:00
Yan Zhulanow f450a8ed89 Disable Kapt tests for new multiplatform in Android Studio 2019-06-13 17:35:27 +09:00
Yan Zhulanow bd342e765d SamWithReceiver: Fix IDE plugin JAR name 2019-06-13 17:33:24 +09:00
Yan Zhulanow 12861595f5 MPP: Attach all classes/resources directories to the runtime classpath (KT-30710) 2019-06-13 17:33:24 +09:00
Yan Zhulanow bc0f10449a Kapt: Fix source root importing in MPP projects 2019-06-13 17:33:24 +09:00
Yan Zhulanow 9eab9f386d Activate Kapt importer only for JVM compilations (KT-30578) 2019-06-13 17:33:24 +09:00
Mikhail Zarechenskiy d9dca067f6 [NI] Propagate non-null info on supertypes for capturing from bounds
#KT-31941 Fixed
2019-06-13 00:57:51 +03:00
Sergey Rostov b2607b47e2 Gradle, tests runner, output stream handler: don't treat flush as new line
#KT-31931 Fixed
2019-06-12 17:03:22 +03:00
Leonid Startsev 2488b40d52 Fix accidentally added comment which broke 183 bunch 2019-06-12 15:30:31 +03:00
Ting-Yuan Huang f07be024b7 JVM_IR: handle JvmDefault for bridges. 2019-06-12 07:43:45 +02:00
Leonid Startsev b78d84c120 Add some tests for kotlinx.serialization plugin:
- declaration checker
- bytecode listings
- JVM IR

Improve @Transient redundant reporting
2019-06-11 19:32:40 +03:00
Ilya Kirillov 2dd604cd70 New J2K, minor: remove unused declarations, fix typos 2019-06-11 18:16:06 +03:00
Ilya Kirillov b80f2c78a0 New J2K, minor: reformat code, optimize imports 2019-06-11 18:16:06 +03:00
Ilya Kirillov 59f66d5882 New J2K: split diagnostic based processing from inspection ones
Analysing file file with diagnostics on each step of post-processings is rather expensive operation so the inspection-like post-processings which don't require diagnostic information was separated from ones that need it

Related to #KT-31848
2019-06-11 18:16:06 +03:00
Dmitry Savvinov 2f8e83d6b9 Minor: regenerate tests 2019-06-11 18:11:44 +03:00
Alexander Udalov c67517cb2b JVM IR: use fast class reading mode in boxAgainstJava tests
annotationsViaActualTypeAliasFromBinary.kt is ignored because
ExpectActualRemover can't find actual for the expected constructor of
Anno now, because `ExpectedActualResolver.findActualForExpected`
incorrectly filters out actual declarations without any source file, and
Java classes loaded in the fast mode don't have any source files.

This will need to be fixed separately, probably by making
ExpectedActualResolver look for the actual class of an expected class
member first (with source file-based filtering), and then
unconditionally locating the corresponding member there
2019-06-11 15:26:07 +02:00
Alexander Udalov c6d61346dd Avoid compiling Java files twice in boxAgainstJava tests
After b602c08773, this test started to put all .java files to the
dependencies when compiling .kt files, _in addition_ to the already
compiled class files from those Java sources. This is incorrect because
the test should actually check how Kotlin compiles _against_ Java
binaries. The other behavior (compiling against Java sources) is already
supported and used in normal box tests with .java sources.

However, we can't simply filter out all .java files before calling
`super.doMultiFileTest` because many of those contain directives
(WITH_RUNTIME, FULL_JDK, etc.) and we should load them in
`CodegenTestCase.compile`. As a workaround, remove '.java' file
extension to prevent their compilation but still be able to resolve
directives.
2019-06-11 15:26:07 +02:00
Vasily Levchenko e3d2419beb [tests][codegen][coroutines] disable test simpleSuspendCallableReference for NATIVE too. 2019-06-11 12:07:58 +03:00
Dmitry Savvinov 32a102a99d Fix bug in ExpectedActualResolver
'getContributedDescriptors' isn't obliged to apply filters, inlcuding
kindFilter, and may return declarations of different kind, so we have to
call 'filterIsInstance' explicitly
2019-06-11 11:07:01 +03:00
Ilya Kirillov 3854a323fa New J2K: do not ignore errors in new j2k tests comparison 2019-06-11 10:37:26 +03:00
Ilya Kirillov ce569ca6e0 New J2K: remove static modifier for the case when member is converted without containing class 2019-06-11 10:37:25 +03:00
Ilya Kirillov 9929dba74d New J2K: fix ConcurrentModificationException while analysing implicit initializers 2019-06-11 10:35:32 +03:00
Ilya Kirillov 184825d59d New J2K: remove open modifier for top level functions on post-processing
#KT-31678 fixed
2019-06-11 10:35:32 +03:00
Ilya Kirillov 6d3967d922 New J2K: add tests for some obsolete J2K issues 2019-06-11 10:35:31 +03:00
Ilya Kirillov 04fe51b0aa New J2K: use default test file directives for choosing SDK in tests instead of by filename approach 2019-06-11 10:35:31 +03:00