Alexander Udalov
5488972b53
Minor, don't create empty tmpdir in codegen tests w/o Java
2016-03-03 16:08:18 +03:00
Alexander Udalov
d011fa8dc6
Add FULL_JDK to tests in codegen/boxWithStdlib/fullJdk/
...
Drop the old scheme which relied on the directory name
2016-03-03 16:08:18 +03:00
Alexander Udalov
dc085c45b7
Improve exception on creating KClass for classes which are not classes in Kotlin
2016-03-03 16:08:18 +03:00
Alexander Udalov
4553afbd0c
Make PropertyAccessorDescriptor#hasBody a front-end utility
2016-03-03 16:08:18 +03:00
Alexander Udalov
ae14d185eb
Support setters for Java-method-based properties in reflection
...
Also heuristically support the corner case of multiple properties with the same
name and signature in a Java class, see the comment in
KDeclarationContainerImpl
#KT-11258 Fixed
2016-03-03 16:08:18 +03:00
Alexander Udalov
14b1a3a048
Don't fail on requesting members of Java collection classes
...
RuntimeTypeMapper assumed that JavaPropertyDescriptor was necessarily backed by
JavaField, which has changed when we started to load Java method (or a pair of
methods) overriding a Kotlin property as a property, not as a method. Another
example of this situation is special built-in properties which are mapped to
Java methods, e.g. java.util.Collection#size() <-> kotlin.Collection#size. This
change adds support for the case of a property backed by a JavaMethod.
Note that callable references or usage of any reflection API related to
built-in members is not supported anyway and will currently fail with errors
#KT-11258 Fixed
2016-03-03 16:08:18 +03:00
Alexander Udalov
6429dd4b04
Preserve JavaPropertyDescriptor type in substitution/copy
...
JavaPropertyDescriptor.substitute should return JavaPropertyDescriptor,
similarly to what's happening in JavaMethodDescriptor
2016-03-03 16:08:18 +03:00
Alexander Udalov
371051b1d6
Filter out package members from other facades in KPackageImpl
...
#KT-10690 Fixed
2016-03-03 16:08:18 +03:00
Alexander Udalov
1c0bbcd72b
Fix KProperty.javaField for fake overrides
...
#KT-8131 Fixed
2016-03-03 16:08:18 +03:00
Michael Bogdanov
534a3a11d6
Write additional type parameters for DefaultImpls methods, fix for KT-11121: BadClassFile exception for interface implemented generic properties
...
#KT-11121 Fixed
2016-03-03 16:11:31 +03:00
Valentin Kipyatkov
5aca50b4ca
Enhanced constructor descriptor should not loose its source!
...
#KT-11256 Fixed
2016-03-02 21:43:43 +03:00
Valentin Kipyatkov
508e1937d6
More diagnostic for EA-75975
2016-03-02 21:43:42 +03:00
Valentin Kipyatkov
135ec78d7d
Fixed EA-70945
2016-03-02 21:43:42 +03:00
Alexander Udalov
65662d7c99
Remove incorrect test, to be reconsidered in the future
...
Before 3ca4097 , 'set' signature was not checked at all in this case
#KT-11272 Open
2016-03-02 20:44:23 +03:00
Dmitry Jemerov
386f22480f
don't crash on startup in case of corrupted plugin installation
...
#KT-11230 Fixed
2016-03-02 18:17:36 +01:00
Alexander Udalov
e849792712
Minor, add KCallableImpl#container
2016-03-02 19:01:10 +03:00
Alexander Udalov
4779e3e9cf
Drop traces of old annotations from kotlin.jvm.internal
2016-03-02 19:01:04 +03:00
Alexander Udalov
c93517bc2f
Minor, fix test data
2016-03-02 19:00:50 +03:00
Dmitry Jemerov
661c87e464
minor: rename "jet" to "kotlin" in a couple of variable names
2016-03-02 16:47:43 +01:00
Stanislav Erokhin
5141d95a88
Refactoring. Remove dependence intellij-core from resolution module
2016-03-02 18:07:41 +03:00
Stanislav Erokhin
9338aa5633
Refactoring. Copy SmartList from IDEA to util.runtime module.
2016-03-02 18:07:40 +03:00
Alexander Udalov
8e77e16bbd
Remove leftovers of platformName and platformStatic in test data
...
Drop unnecessary imports, rename some tests
2016-03-02 16:47:04 +03:00
Alexander Udalov
beb11e7ac1
Minor, don't create unnecessary class loader in OuterClassGenTest
...
Read the bytes from the file instead
2016-03-02 15:47:40 +03:00
Alexander Udalov
f1bb31d0a9
Minor, inline one overload of CodegenTestUtil.compileJava
2016-03-02 15:47:40 +03:00
Alexander Udalov
933be1e035
Drop single-file mode of black box codegen tests
...
Add regression test for #KT-5190
2016-03-02 15:47:39 +03:00
Alexander Udalov
2de7f38427
Migrate boxWithJava tests to multi-file framework
2016-03-02 15:47:38 +03:00
Alexander Udalov
0801ae5364
Minor, delete weird intermediate git files
2016-03-02 15:47:38 +03:00
Alexander Udalov
e7371d2c1a
Minor, move boxAgainstJava logic to a separate test class
2016-03-02 15:47:37 +03:00
Alexander Udalov
280ad195ee
Migrate boxAgainstJava tests to multi-file framework
2016-03-02 15:47:36 +03:00
Alexander Udalov
26de87d792
Minor, make CodegenTestUtil.compileJava take absolute paths of files
2016-03-02 15:47:36 +03:00
Alexander Udalov
12cf70ac38
Delete legacy codegen tests with Java on annotations
...
After cleanup, these tests are now duplicated with those in
boxAgainstJava/annotations/
2016-03-02 15:47:35 +03:00
Alexander Udalov
9f67fe2fe3
Adapt CompileKotlinAgainstKotlin test to black box format
...
Rename/remove some obsolete test cases
2016-03-02 15:47:35 +03:00
Alexander Udalov
0b26e749f6
Improve multi-file test framework in CodegenTestCase
...
Instead of inheriting from KotlinMultiFileTestWithJava, invoke
KotlinTestUtils.createTestFiles directly. This helps to avoid constructing
unnecessary environment (createEnvironment() was called in setUp, but codegen
tests ignored the created environment because it's not possible to do
generically in codegen tests; the environment kind depends on the source file
usually)
2016-03-02 15:44:28 +03:00
Alexander Udalov
4b96a8131b
Inline KotlinLiteFixture
2016-03-02 15:44:28 +03:00
Alexander Udalov
12b6a4ede4
Obsolete KotlinLiteFixture, move utilities to CheckerTestUtilTest
2016-03-02 15:44:28 +03:00
Alexander Udalov
647e188a08
Migrate bytecode text tests to multi-file framework
...
Get rid of BytecodeTextMultifileTestGenerated
2016-03-02 15:44:28 +03:00
Dmitry Jemerov
fbc2fe74ad
Merge pull request #826 from cypressious/catch_fixer
...
Implement smart enter processors for try, catch (parameters and body) and finally
2016-03-02 13:21:32 +01:00
Dmitry Petrov
9244ef9b81
Do not use 'dup' for postfix increment/decrement: can't do it with collection element in general.
...
KT-11190, KT-11191, KT-11192, KT-11200, KT-11206
2016-03-02 14:28:06 +03:00
Dmitry Petrov
3ca4097bcc
KT-11203: report errors on read-write operations for elements of collections with inconsistent get&set signatures
2016-03-02 14:28:06 +03:00
Mikhail Glukhikh
cd91e44451
Minor fix: intention description directory renamed
2016-03-02 14:13:02 +03:00
Denis Zharkov
eb2c584578
Rename JetTypeMapper
2016-03-02 13:38:46 +03:00
Denis Zharkov
56a2561ab9
Extract JvmMethodGenericSignature from JvmMethodSignature
2016-03-02 13:38:46 +03:00
Denis Zharkov
7bd8fa0b48
Optimize signature propagation
...
Do not collect super function with trivial signature
2016-03-02 13:38:46 +03:00
Denis Zharkov
d66b9a08dd
Do not map generic signature if it's unnecessary
2016-03-02 13:38:46 +03:00
Denis Zharkov
5690d58fd0
Memoize package views in module
2016-03-02 13:38:46 +03:00
Denis Zharkov
4583283515
Search classes by JavaClass through package scope
2016-03-02 13:38:46 +03:00
Denis Zharkov
26ebf46e3e
Do not read module mappings more than once
2016-03-02 13:38:46 +03:00
Denis Zharkov
3652cd9c18
Optimize top level class searching in LazyJavaPackageScope
...
Do not try to search something, that is known not to exist
2016-03-02 13:38:46 +03:00
Denis Zharkov
beb24af5ef
Devirtualize calls to PackageFragmentDescriptorImpl.fqName
...
1. Replace INVOKEINTERFACE with INVOKEVIRTUAL
2. Make callee function final
It helps to decrease one module compilation time by 1-2 seconds
2016-03-02 13:38:46 +03:00
Dmitry Jemerov
3cc3b3fce2
cleanup: remove dead code from ProjectStructureUtil, move code used only during project configuration to ConfigureKotlinInProjectUtils; move function from KotlinRuntimeLibraryCoreUtil into KotlinRuntimeLibraryUtil
2016-03-02 11:15:06 +01:00