Alexey Sedunov
10941ae732
Call Hierarchy: Refactoring
...
Do not rely on light methods to search usages as some elements
don't have them (e.g. local functions)
#KT-9288 Fixed
#KT-14428 Fixed
2017-08-02 13:08:06 +03:00
Alexey Sedunov
0c2ea5d799
Light Classes: Fix equivalence check
...
Do not consider PsiClass equiavent to KtLightClass
if it's not a light class as well
#KT-16180 Fixed
2017-08-02 13:08:06 +03:00
Alexey Sedunov
e6f1a3ccf3
Minor: Use Kotlin reflection in usage printing and update test data
2017-08-02 13:08:06 +03:00
Alexey Sedunov
3c0a4a0abf
Minor: Fix bug introduced by the refactoring
2017-08-02 13:08:05 +03:00
Dmitry Petrov
c5613888eb
Look into proper context when generating backing field access
...
Problem manifests when a class property name matches a companion object
property name, and class property is referenced in closure context.
#KT-19367 Fixed Target versions 1.1.5
2017-08-02 11:24:35 +03:00
Dmitry Petrov
05eee9c173
Minor: adjust formatting
2017-08-02 11:24:35 +03:00
Yan Zhulanow
3d7d1b20ab
Ensure there won't be the same classpath entries in the resulting classpath
2017-08-02 03:36:57 +03:00
Bill Collins
9a40e9b96d
Don't overwrite plugin classpaths detected earlier for annotation processing. Fixes #KT-18022
2017-08-02 03:36:56 +03:00
Yan Zhulanow
3770786075
Minor: Fix test data for CLI test (defaultCacheImplementation option was added in Android Extensions)
2017-08-02 03:36:55 +03:00
Yan Zhulanow
13868f89e8
Minor: Change test format to JUnit 3
2017-08-02 03:35:16 +03:00
Yan Zhulanow
45681ed9eb
Fix "'Redundant modality' is not reported with all-open" (KT-18195)
2017-08-02 03:35:15 +03:00
Yan Zhulanow
6002281874
Android Extensions: Downgrade to old Android variant processing logic when 'experimental' flag is disabled (KT-19270)
2017-08-02 03:35:14 +03:00
Yan Zhulanow
3bb7febeb8
AllOpen: Make private members open again because of KT-19047
2017-08-02 03:35:13 +03:00
Yan Zhulanow
5ff014f89d
Parcelable, minor: Change error message
2017-08-02 03:35:12 +03:00
Yan Zhulanow
448fa8495a
Parcelable, Lint: Do not report "CREATOR field missing" warnings on our '@Parselize' Parcelables
2017-08-02 03:35:11 +03:00
Yan Zhulanow
c1600c9841
Report errors from compiler plugins as compiler PLUGIN_ERRORs (KT-19311)
2017-08-02 03:35:10 +03:00
Yan Zhulanow
9a5a003d0a
NoArg: Fix IllegalAccessError on instantiating sealed class child via Java reflection (KT-18245)
2017-08-02 03:21:16 +03:00
Yan Zhulanow
53e193d130
AllOpen: Support @SpringBootTest annotation (KT-18262)
2017-08-02 03:21:15 +03:00
Yan Zhulanow
4dddb00aca
Kapt: Fix "Anonymous class types are not rendered properly in stubs" (KT-18682)
2017-08-02 03:21:14 +03:00
Yan Zhulanow
bf2bc1fdc7
Android Extensions: Support smart-casted receivers (KT-18545)
2017-08-02 03:21:13 +03:00
Mikhail Glukhikh
9e9c4f79f5
Make MODIFIERS_ORDER consistent with code style document
2017-08-01 20:42:40 +03:00
Nikolay Krasko
65ea9290ea
Skip method check for non-relevant positions (KT-19403)
...
#KT-19403 Fixed
2017-08-01 20:09:54 +03:00
Nikolay Krasko
2ba89b9e68
Fix bad cast on absent descriptor in field breakpoint (EA-101988)
2017-08-01 20:09:54 +03:00
Alexey Tsvetkov
45ec0e364a
Remove Gradle plugin dependency on Apache Commons
...
We have used `commons-lang` to detect
if current OS is a Windows.
`org.apache.commons.lang.SystemUtils` also
tries to parse JDK version in `clinit` and,
as of AC version 2.4, fails on JDK 9.
I preferred to remove the dependency completely
and copy an implementation of `isWindows` from Intellij
platform, because the code is quite simple
and minimizing unnecessary dependencies will help to avoid
compatibility problems in future.
Gradle plugin also declares a dependency on `commons-io`,
but it seems unused, so the dependency is also removed.
#KT-18832 fixed
2017-08-01 19:43:25 +03:00
Alexey Sedunov
40163868af
Support mutable/immutable compiler arguments
2017-08-01 19:40:37 +03:00
Alexey Sedunov
2984a5a19f
Fix reflection-based operations on compiler arguments after conversion
2017-08-01 19:40:22 +03:00
Alexey Sedunov
50599c933f
J2K: CommonToolArguments and inheritors
2017-08-01 19:36:49 +03:00
Alexey Sedunov
2e49971989
J2K: CommonToolArguments and inheritors (rename)
2017-08-01 19:36:49 +03:00
Yan Zhulanow
2d8f7419eb
Parcelable: Temporarily disable box tests because of OOM
2017-08-01 18:37:27 +03:00
Mikhail Glukhikh
87cdc7635a
Do not suggest "can be private" for elements with given annotations
...
So #KT-19272 Fixed
2017-08-01 18:01:29 +03:00
Mikhail Glukhikh
c5a81691fb
Partial code cleanup: can be private and some others applied
2017-08-01 17:08:56 +03:00
Mikhael Bogdanov
42f8a3e65b
Generify Symbols class to be able support jvm specific implementation
2017-08-01 15:52:29 +02:00
Mikhael Bogdanov
4dbb82a789
Copy ununsed lowers
2017-08-01 15:52:28 +02:00
Mikhael Bogdanov
df56ef5e3f
Copy common lowers
2017-08-01 15:52:28 +02:00
Mikhael Bogdanov
27365dc4be
Copy common utils from Native
2017-08-01 15:52:27 +02:00
Nikolay Krasko
5fcefa28a7
Test stub trees compatibility on loadJava/compiledKotlin test data
2017-08-01 16:22:40 +03:00
Mikhail Glukhikh
c2617e89c9
Remove unnecessary check from prepareCodeToInline
2017-08-01 12:32:49 +03:00
Mikhail Glukhikh
1ed1751b63
Report "Make <visibility>" for visibility fixes #KT-19274 Fixed
...
(instead of "Add <visibility> modifier")
2017-08-01 12:06:28 +03:00
Toshiaki Kameyama
29dba9edb3
Do not report "property can be private" in annotations #KT-19273 Fixed
2017-08-01 11:53:42 +03:00
Ilya Gorbunov
050744627d
Clean stdlib and reflect before rewriting binary API dump
...
The change in the run configuration "Binary compatibility tests, overwrite results"
is to prevent incremental compilation of these artifacts.
During the incremental compilation only the declarations in the files being
recompiled are dumped to declarations.json.
This results in incomplete dump and affects the public declarations dump.
This clean step enforces stdlib and reflect libraries to be fully recompiled.
This step can be removed as soon as we do not need declarations.json to dump public API.
2017-07-31 23:13:56 +03:00
Alexey Tsvetkov
69b4d213b7
Ensure IC.isEnabled is not modified by tests
2017-07-31 19:34:59 +03:00
Alexey Tsvetkov
514635e965
IC should be enabled explicitly by build systems
...
The change only affects JPS on TeamCity (in Intellij IC system property
is always set explicitly; the same holds for Gradle, Maven).
Previous changes have effectively enabled the new IC (which is now default)
for TC JPS builds, which is undesirable as more RAM is used.
2017-07-31 19:34:59 +03:00
Alexey Tsvetkov
5ce3a436c7
Avoid marking dirty dependencies from already compiled chunks
...
#KT-17397 fixed
2017-07-31 19:34:59 +03:00
Alexey Tsvetkov
7cccba3b9a
Refactoring: do not check if IC is enabled in cache
...
There was a bunch of if-else blocks checking if new IC was enabled or not.
These blocks became useless after `IncrementalCompilation.isExperimental`
was replaced with `IncrementalCompilation.isEnabled`, because when IC is not enabled
we don't use caches anyway.
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov
3f471d1ac6
Minor: add dummy.kt to some IC tests
...
This makes it impossible to pass the tests
by rebuilding everything.
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov
e602903567
Remove old IC: remove experimental tests
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov
534db2d45b
Remove old IC: remove experimental cache version
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov
a4a0335b20
Remove old IC: update KotlinJpsBuildTest
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov
62fdd91947
Remove old IC: remove unnecessary caches
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov
aea5293288
Remove old IC: fix constant search test
...
The tests were not run with the new IC before
2017-07-31 19:34:58 +03:00