Ilya Chernikov
f00fcddc76
Fix ide dependencies in gradle-plugin module
2017-10-05 16:14:26 +02:00
Ilya Chernikov
f48d0f4b15
Revert accidental test ignoring
2017-10-05 16:14:26 +02:00
Sergey Igushkin
28567570ea
Changes related to the 'expectedBy' Gradle configuration:
...
* Remove the `extendsFrom` relation;
* Refactor, reword warnings;
* Add the new expectedBy name to `KotlinGradleModelBuilder.kt`.
(cherry picked from commit de198f0)
2017-10-05 15:37:44 +03:00
Sergey Igushkin
ff687131b1
Rename implement to expectedBy in Gradle, deprecate the old name
...
Issue #KT-20618 Fixed
(cherry picked from commit 6e0d378)
2017-10-05 15:37:43 +03:00
Mikhail Glukhikh
aff689afba
Allow "create actual" for function even if partially-compatible exists
...
So #KT-20163 Fixed
2017-10-05 15:28:37 +03:00
Mikhail Glukhikh
e8321be380
Handle interface / abstract members correctly in "Create actual" fix
...
So #KT-20243 Fixed
2017-10-05 15:28:33 +03:00
Mikhail Glukhikh
fe786ad7f3
Set primary constructor and its properties actual in "create actual"
...
So #KT-20044 Fixed
2017-10-05 15:28:30 +03:00
Mikhail Glukhikh
d85c2dbe1f
Specify relevant declaration type in "create actual" fix #KT-20325 Fixed
2017-10-05 15:28:28 +03:00
Mikhail Glukhikh
93109c0d0e
Generate actual keyword for secondary constructors #KT-20008 Fixed
2017-10-05 15:28:25 +03:00
Mikhail Glukhikh
1e79d9791d
Generate actual nested classes for actual owner class #KT-19937 Fixed
2017-10-05 15:28:22 +03:00
Mikhail Glukhikh
e47feaf0b8
Add test for KT-20007
2017-10-05 15:28:21 +03:00
Stanislav Erokhin
4c456983eb
Fix javac tests (add separate descriptor rendering)
2017-10-05 15:11:45 +03:00
Stanislav Erokhin
208051b314
Do not run annotation processor in javac integrated tests
...
Annotation processor can be found in javaslang-2.0.6.jar library.
This jar should be in classpath because it used in compiler
(not as annotation processor of course).
Before migration to GSK this library was also in classpath and it isn't
clear, why it not recognised as an annotation processor.
Anyway, for this tests we should'nt run annotation processors
2017-10-05 15:11:44 +03:00
Toshiaki Kameyama
e92af08c98
Introduce "Assign to property" quick-fix #KT-17204 Fixed
2017-10-05 14:25:28 +03:00
Dmitry Petrov
67a50e92d0
Load annotations for default getter and setter
...
#KT-14697 Fixed
2017-10-05 10:24:29 +03:00
Mikhail Zarechenskiy
c6a00af2f0
Fix test data after f3344ec
2017-10-05 10:21:26 +03:00
Ilya Gorbunov
3fd1a0f14b
Update maven-archetype plugin to 3.0.1
...
To get the fix for https://issues.apache.org/jira/browse/ARCHETYPE-488
2017-10-05 02:45:01 +03:00
Mikhail Zarechenskiy
a06203512f
Minor, rename variable: expected -> actual
2017-10-05 00:10:46 +03:00
Mikhail Zarechenskiy
68a2ba4918
Fix function, expected declaration can be without expect modifier
...
For example, for nested classes of expected class
2017-10-05 00:10:45 +03:00
Mikhail Zarechenskiy
4b2fc9a325
Don't offer to remove empty primary constructor of expect class
2017-10-05 00:10:44 +03:00
Mikhail Zarechenskiy
f3344ec2b2
Treat expect classes as not having implicit default constructors
...
#KT-15522 Fixed
2017-10-05 00:10:42 +03:00
Ilya Gorbunov
887e71a7c1
Provide kotlin bootstrap source options
2017-10-04 20:02:26 +03:00
Ilya Gorbunov
5483de276e
Specify bootstrap version with gradle props instead of system props
...
Make bootstrap dependency version explicit
2017-10-04 20:02:12 +03:00
Ilya Gorbunov
b7d21ab4da
Use embeddedKotlinVersion to compile buildSrc, but make it possible to override it
2017-10-04 19:27:28 +03:00
Ilya Gorbunov
2627fe8387
Upgrade to gradle 4.2
2017-10-04 19:27:28 +03:00
Ilya Gorbunov
cfdcc9eb03
Minor: fix description typo #KT-20600 Fixed
2017-10-04 19:15:33 +03:00
Ilya Gorbunov
0898897057
Remove crossinline restriction from synchronized in js and common
...
#KT-20596 Fixed
2017-10-04 19:15:33 +03:00
Ilya Gorbunov
409f361a7c
Pass project version as kotlinVersion to archetype integration tests
...
Verify that the projects created from archetypes can actually be built.
2017-10-04 19:05:31 +03:00
Sergey Igushkin
31c9e0072e
Merge pull request #1289 from gildor/KT-18765
...
Move incremental compilation message from Gradle's warning to info logging level
Issue #KT-18765 Fixed
2017-10-04 16:52:35 +03:00
Simon Ogorodnik
237284d247
Fix ISE already disposed DefaultPicoContainer in Compiler Tests
...
Some test's won't create their own application, and assumes
that ApplicationManager.getApplication() is null
But CompilerEnvironmentTest had created application
somewhere inside compiler, disposed it, but forgot to reset
variable, causing few tests to fail because of not overridden
application
2017-10-04 15:36:46 +03:00
Yoshinori Isogai
0381b74fed
Delete "Running specific generated tests" ( #1329 )
...
This section is valid before kotlin is built by gradle. Since there is
no working directory setting in run configuration, we need to delete
this document
2017-10-04 14:15:16 +02:00
Dmitry Petrov
a88de2b0da
Ignore testSuspendInTheMiddleOfObjectConstructionEvaluationOrder in JS
2017-10-04 13:57:01 +03:00
Dmitry Petrov
7e808bd3ea
Add more tests for constructor call evaluation order
...
- break in arguments
- continue in arguments
- early return in arguments
- non-local return in arguments
- nested constructor call in arguments
2017-10-04 13:39:48 +03:00
Dmitry Petrov
c3d74bdabb
Support jump out of the constructor call in suspend functions
...
Jump out from expression (e.g., break or continue expression in call
arguments) requires stack normalization, which inserts POP instructions.
POPping an uninitialized value is similar to ASTORE, except that it
doesn't store a value to a local variable. Such POP instructions should
be removed during postprocessing of the uninitialized stores.
2017-10-04 13:39:48 +03:00
Dmitry Petrov
da6841163b
Maintain evaluation order for suspend calls in constructor arguments
...
Insert 'Class.forName(...)' in place of NEW instruction, so that the
corresponding class will be initialized if required.
2017-10-04 13:39:48 +03:00
Dmitry Petrov
533c1d2541
Reject bytecode manipulating with uninitialized values on stack
...
NB this will break parcel-related tests in android-extensions compiler
plugin
2017-10-04 13:39:48 +03:00
Dmitry Petrov
3405ae30a1
Inner classes of generic classes can't extend Throwable
...
Do it in the same way as Java: prohibit inner classes (including
anonymous inner classes) capturing type parameters from outer classes
(but not outer methods) extending Throwable.
See KT-17981:
- Deprecated in 1.2
- Error in 1.3
2017-10-04 12:43:50 +03:00
Andrey Mischenko
e4fe9be5e7
Merge branch 'master' into KT-18765
2017-10-04 17:43:11 +08:00
Alexey Andreev
27e319a279
JS: fix parsing of object literals in js() function.
...
Also, fix generation of source maps of content of js() function.
See KT-19794
2017-10-04 12:01:51 +03:00
Alexey Andreev
c15847a957
JS: support non-local return from secondary constructor
...
See KT-14549
2017-10-04 12:00:53 +03:00
Alexey Andreev
e323da3c5e
Fix compilation of Maven JS plugin
2017-10-03 17:23:02 +03:00
e5l
cbaf38f793
Add CLI test on new jsr305 flag values
2017-10-03 16:44:02 +03:00
e5l
1e157d6480
Use report policy from TypeQualifierDefault annotation if possible
2017-10-03 16:44:02 +03:00
e5l
c512db8e1c
Validate -Xjsr305 value in CLI
2017-10-03 16:44:02 +03:00
Leonid Stashevsky
95d32d8d1e
Add @UnderMigration annotation and options for report level
2017-10-03 16:44:02 +03:00
Nikolay Krasko
a524bde9b7
Rename: JetRunConfiguration* -> KotlinRunConfiguration*
2017-10-03 16:18:54 +03:00
Nikolay Krasko
0bffd04ef1
Add kotlin.stdlib requirement to module-info on configure (KT-19207)
...
KotlinAddRequiredModuleFix is almost copy ofAddRequiredModuleFix from
the platform but it moves actual fix method to static with less
parameters and checks directive presence before add.
#KT-19207 Fixed
2017-10-03 16:18:53 +03:00
Nikolay Krasko
2634ed15fa
Configure sdk properly in configure Kotlin tests
2017-10-03 16:10:33 +03:00
Nikolay Krasko
0f61a0f7bd
Fix file root access failure in configure tests
2017-10-03 16:10:33 +03:00
Nikolay Krasko
dc86f8c432
Refactoring: extract "kotlin.stdlib" to constant
...
It will be used in IDE as well.
2017-10-03 16:10:33 +03:00