Commit Graph

57138 Commits

Author SHA1 Message Date
Ilya Kirillov ca0cc13097 New J2K: retrieve constructor call return type correctly
#KT-33431 fixed
2019-08-29 11:31:53 +03:00
Ilya Kirillov 982e7fdd86 New J2K: do not shorten class references for some Java primitive class wrappers classes
It may cause unresolved call errors

#KT-33500 fixed
2019-08-29 11:31:53 +03:00
Steven Schäfer fd2ad89799 JVM IR: Write ACC_DEPRECATED flags 2019-08-28 19:41:12 +02:00
Steven Schäfer a90ac2438d Set correct field visibility in psi2ir 2019-08-28 19:41:11 +02:00
Mads Ager 6c7a904663 Psi2Ir: Mark accessors with no bodies as default accessors.
They are currently marked as defined even when they get a
default implementation. That makes it hard to figure out
if the accessor should be removed when introducing a backing
field in the JVM_IR backend.
2019-08-28 19:25:13 +02:00
Ilya Chernikov fda37eaaae [minor] Rearrange test utils for easier reuse 2019-08-28 17:59:12 +02:00
Ilya Chernikov 947867286c [minor] Fix potential problems with sequence, add a todo 2019-08-28 17:59:12 +02:00
Ilya Chernikov c9b25cad01 Fix classpath handling when evaluating legacy scripts from kotlinc
#KT-33554 fixed
2019-08-28 17:59:12 +02:00
Ilya Chernikov 31c56d7794 Set java.class.path property in runner and loader
#KT-24991 fixed
2019-08-28 17:59:12 +02:00
Ilya Chernikov 08720a3dc6 Set thread context classloader in the kotlin runner
#KT-26624 fixed
2019-08-28 17:59:11 +02:00
Ilya Chernikov d3f32c0d8a Set thread context classloader in preloader
#KT-33529 fixed
2019-08-28 17:59:11 +02:00
Igor Yakovlev 7b2f39530a Fix invalid testdata for ConvertToScopeIntention applicability 2019-08-28 16:31:49 +03:00
Vyacheslav Gerasimov cf39803074 Pass cacheRedirectorEnabled flag to performance test gradle import
#KT-33582
2019-08-28 16:14:05 +03:00
Dmitry Gridin b04fbbd43b Fix testUnusedSymbol_class_inspectionData_Inspections_test test 2019-08-28 19:11:42 +07:00
Igor Yakovlev 1e72116a9c Fix test data for intention tests
The ExtractDeclarationFromCurrentFileIntention applicability range was changed by commit 3b35c2d24 so the test data of several test comes invalid
2019-08-28 13:07:33 +03:00
Dmitry Gridin 55f4610926 Tests: fix invalidBundleOrProperty test for 183
#KT-32860 Fixed
2019-08-28 17:03:13 +07:00
Toshiaki Kameyama d4e4a4c3e7 To ordinary string literal: remove 'trimIndent()' if string is single line
#KT-32616 Fixed
2019-08-27 22:21:49 +03:00
Alexander Udalov fbe66c3496 JVM IR: fix another naming inconsistency with old backend
This fixes slice rewrite stacktraces from RecordNamesForKotlinTypeMapper
which are printed out when running some JVM IR tests (even though
they're ignored), e.g. localClassSimpleName.kt
2019-08-27 19:27:46 +02:00
Alexander Udalov fec8dbf6df JVM IR: do not use AsmUtil.putJavaLangClassInstance
To get rid of the last external usage of IrTypeMapper.kotlinTypeMapper
2019-08-27 19:27:46 +02:00
Alexander Udalov 23eb6daae9 JVM IR: remove MethodSignatureMapper.mapImplementationOwner 2019-08-27 19:27:46 +02:00
Alexander Udalov aea9642ea0 JVM IR: implement MethodSignatureMapper.mapToCallableMethod directly
Instead of calling enormously complicated
KotlinTypeMapper.mapToCallableMethod, where most of special cases are
handled in the IR backend via lowerings.
2019-08-27 19:27:46 +02:00
Alexander Udalov e0823e20c7 JVM IR: do not use AsmUtil.genToString
AsmUtil.genToString requires an instance of KotlinTypeMapper and calls
KotlinTypeMapper.mapToCallableMethod inside, which (in subsequent
commits) we're getting rid of in the IR backend
2019-08-27 19:27:46 +02:00
Alexander Udalov bf40b72451 JVM IR: remove unneeded usages of MethodSignatureMapper.mapToCallableMethod 2019-08-27 19:27:46 +02:00
Alexander Udalov 0f1a15daf1 JVM IR: add lowering to remove calls to KFunction{n}.invoke 2019-08-27 19:27:46 +02:00
Alexander Udalov 2b4424b564 JVM IR: replace function accesses in multi-file parts
Any access to a function from a multi-file part needs to be replaced
with the access to the corresponding public method (if it exists) from
the facade class. Note that this has no immediate effect because we use
KotlinTypeMapper for mapping calls, and it understands that a call to a
function from the part must actually be generated into a call to the
function from the facade in the bytecode. This commit merely changes the
IR to better reflect what's generated in the final bytecode, and to be
able to use simplified IR-based method signature mapping instead of the
legacy KotlinTypeMapper in the future.
2019-08-27 19:27:45 +02:00
Zalim Bashorov 21b2487290 Minor: add an additional message for further investigation EA-141821 2019-08-27 18:19:18 +03:00
Simon Ogorodnik b78ba71224 [FIR] Set mem-limit 8g 2019-08-27 17:24:56 +03:00
Simon Ogorodnik 6a9fb46985 [FIR] Make fir modularized test depends on dist 2019-08-27 17:24:45 +03:00
Simon Ogorodnik 5ef4a01a45 [FIR] Fix module qualified names 2019-08-27 17:24:35 +03:00
Simon Ogorodnik 9338a3c086 [FIR] Filter out common modules 2019-08-27 17:23:40 +03:00
Simon Ogorodnik b99d9e0e0b [FIR] Disambiguate module names 2019-08-27 17:23:03 +03:00
Simon Ogorodnik 9530389583 [FIR] Group multiple pass logs into one 2019-08-27 17:23:01 +03:00
Simon Ogorodnik 4c246faddb [FIR] Fix redeclaration 2019-08-27 17:23:00 +03:00
Simon Ogorodnik 8c31a0be07 [FIR] Add filter param 2019-08-27 17:22:59 +03:00
Simon Ogorodnik 2ca1e5c8c7 [FIR] Pass properties to test 2019-08-27 17:22:58 +03:00
Simon Ogorodnik 96627fc1ae [FIR] Add parameters to modularized tests 2019-08-27 17:22:57 +03:00
Dmitry Gridin e9b2e74b15 escapeXML: fix bunch for 183 2019-08-27 18:06:06 +07:00
Dmitry Gridin ea02d0c632 ExpectActualUtils: repairSuperTypeList should consider type parameters 2019-08-27 17:26:11 +07:00
Dmitry Gridin 03141be11e ExpectActualUtils: update repairAnnotationEntries for more cases with annotations 2019-08-27 17:26:11 +07:00
Dmitry Gridin ba0ba3422d CreateExpectedFix: rename isCorrectAndHaveNonPrivate to isCorrectAndHaveNonPrivateModifier 2019-08-27 17:26:10 +07:00
Dmitry Gridin 3c6da0bfe6 TypeAccessibilityChecker: rename existingFqNames to existingTypeNames and add comments 2019-08-27 17:26:10 +07:00
Dmitry Gridin 531f695404 CreateExpectedFix: remove recursive call from findAndApplyExistingClasses 2019-08-27 17:26:10 +07:00
Dmitry Gridin 35d64f85f8 TypeAccessibilityCheckerImpl: explicitParameters change return type to Sequence 2019-08-27 17:26:10 +07:00
Dmitry Gridin aa135bc505 TypeAccessibilityCheckerImpl: move visibility check for KtNamedDeclaration to outside 2019-08-27 17:26:10 +07:00
Dmitry Gridin eaa28fd4ed CreateExpect: fix build for a33 2019-08-27 17:26:10 +07:00
Dmitry Gridin 27d7ee8518 TypeAccessibilityChecker: move to idea-analysis module 2019-08-27 17:26:10 +07:00
Dmitry Gridin 56a7445660 CreateExpect: should prefer type aliases
#KT-32571 Fixed
2019-08-27 17:26:10 +07:00
Dmitry Gridin 5928a36fa2 CreateExpect: should save receiver annotations
#KT-32694 Fixed
2019-08-27 17:26:09 +07:00
Dmitry Gridin 42ef9d634a ExpectActualUtils: merge generateFunction with generateProperty to generateCallable & remove old checker 2019-08-27 17:26:09 +07:00
Dmitry Gridin 90b82c96eb TypeAccessibilityChecker: fix incorrectTypes for descriptor 2019-08-27 17:26:09 +07:00