Sergey Igushkin
80daae90e3
Partial fix for the processor path not being set up properly.
...
Issues: #KT-17255
2017-04-10 20:44:12 +03:00
Alexey Tsvetkov
e7e29f2651
Avoid changing java.rmi.server.hostname property
2017-04-10 20:39:34 +03:00
Alexey Tsvetkov
54ee779ba1
Import 'implement' dependency of platform project transitively
...
#KT-16926 fixed
2017-04-10 20:25:48 +03:00
Ilya Gorbunov
e9c47d6498
Minor: validate required environment variables are set.
2017-04-10 19:46:06 +03:00
Ilya Gorbunov
3425f6d3af
Remove dist-quick as it fails on terminal steps anyway.
...
Add compiler-for-maven packing step to dist-quick-compiler-only.
2017-04-10 19:46:06 +03:00
Ilya Gorbunov
37e046f6cd
Provide shortcuts for producing quick compiler for maven and rebuilding stdlib-js from ant.
2017-04-10 19:46:06 +03:00
Ilya Gorbunov
afba967fcf
Use kotlin-stdlib.jar instead of kotlin-runtime.jar as runtime during build
2017-04-10 19:46:06 +03:00
Dmitry Jemerov
655fe87d43
Remove obsolete code for deleting script/kotlin.js
2017-04-10 17:34:13 +02:00
Dmitry Jemerov
62eb9e9909
Check jar name before calling getVirtualFileForJar()
...
#KT-17331 Fixed
2017-04-10 17:32:30 +02:00
Dmitry Jemerov
406714a1f4
Remove warning for running the compiler under Java 6/7
...
Now the compiler won't even start, so no need to check this manually.
2017-04-10 17:30:03 +02:00
Dmitry Jemerov
5a7278b856
Fix test: update Android build tools to release version
2017-04-10 16:13:31 +02:00
Mikhail Zarechenskiy
438f318d3e
Minor, update test data
2017-04-10 16:35:00 +03:00
Mikhael Bogdanov
b51cb9a911
Delete clean reference instructions on dereferencing captured variables
...
Codegen generates clean instructions for ref values (captured vars)
on block exit so we should delete them on dereferencing captured values.
#KT-17200 FIXED
2017-04-10 16:35:03 +05:00
Mikhael Bogdanov
f3e2abfd5f
Don't eliminate redundant casts to multi-dimension arrays
...
Dex doesn't recognize ANEWARRAY [Ljava/lang/Object; types as Object [][], but Object [].
It's not clear is it bug in dex or not
#KT-17200 InProgress
2017-04-10 16:35:01 +05:00
Mikhail Zarechenskiy
86c4ad1165
Drop erroneously used @Deprecated annotation from parameter
...
Annotation @native is deprecated itself and @deprecated on parameter doesn't have message, which cause compilation error after 3c4afcd
2017-04-10 12:48:10 +03:00
Mikhail Zarechenskiy
682fe9e9ca
Don't forget to resolve annotations from constructor parameter
...
#KT-12245 Fixed
2017-04-10 12:48:10 +03:00
Mikhail Zarechenskiy
c9b468581a
Fix type checking of local return inside return expression
...
#KT-16426 Fixed
2017-04-10 12:48:09 +03:00
Mikhail Zarechenskiy
7f287a4230
Support warning about useless cast on safe cast
...
#KT-13348 Fixed
2017-04-10 12:48:09 +03:00
Vyacheslav Gerasimov
107879a78a
Implement getTypeElement for UastKotlinPsiVariable
...
#KT-16849 Fixed
2017-04-10 12:40:33 +03:00
Vyacheslav Gerasimov
1d134ffc72
Register Android api quickfixes for inlined api inspection
...
#KT-14857 Fixed
2017-04-10 12:39:40 +03:00
Vyacheslav Gerasimov
70d24d0108
Fix NoSwingUnderWriteActionException in KotlinAndroidAddStringResource
2017-04-10 12:38:34 +03:00
Pavel V. Talanov
2f159bb64b
Light classes: do not rely on dummy context when data class autogenerated members conflict with declared members
...
Fix related issues with nested classes
2017-04-09 15:10:29 +03:00
Pavel V. Talanov
69c250a1b7
Light class test: avoid checking method visibility when NoLaziness is not specified
...
Allows to avoid putting NoLaziness flag on every test that mentions 'override' modifier
2017-04-09 15:09:15 +03:00
Pavel V. Talanov
32d3a1b4c9
Light classes: generate ACC_STATIC for DefaultImpls classes
...
To provide consistency between light classes and their delegates
IdeLightClass#testExtendingInterfaceWithDefaultImpls still failing since
we do not generate implementations delegating to DefaultImpls of superinterfaces
2017-04-09 15:09:13 +03:00
Pavel V. Talanov
5e351061e8
Light classes: test consistency for inner classes
2017-04-09 15:09:10 +03:00
Pavel V. Talanov
4f701285b1
Light class builder: do not generate methods delegating to DefaultImpls in kotlin classes
...
Class APIs from java point of view stays the same so we can avoid generating those methods
Otherwise we have to calculate all supertypes when getMethods() is called,
which imposes severe performance penalties
We have to pretend these methods are not 'abstract' (also we consider them 'default' for safety)
so java highlighting does not report "class should be abstract" for all inheritors
We have to manually report "class should be abstract" on some of the java inheritors,
specifically those that are implementing interfaces directly
as opposed to extending kotlin classes implementing those interfaces
2017-04-09 15:09:01 +03:00
Pavel V. Talanov
db294da24d
Minor, refactor: Move hasBody() to KtProperty
2017-04-09 15:07:50 +03:00
Pavel V. Talanov
922fde9986
LazyLightClassDataHolder: minor, improve diagnostics
2017-04-09 15:07:48 +03:00
Pavel V. Talanov
8fbd75ce27
AbstractIdeLightClassTest: minor, refactor
2017-04-09 15:07:45 +03:00
Alexey Tsvetkov
0a42a1c104
Minor: fix maven IC tests with custom local repository
2017-04-08 21:14:49 +03:00
Ilya Gorbunov
e7dc7ec005
Rebuild sources for kotlin-daemon-client and compiler-client-embeddable in maven build
...
Do not build these sources in ant.
Do not require them as artifact dependencies.
2017-04-08 19:07:54 +03:00
Ilya Gorbunov
5aabcb6ea3
Update build instructions in ReadMe to include gradle build step.
...
Also update links and overall readme structure.
2017-04-08 08:37:12 +03:00
Ilya Gorbunov
f5647fb27f
Delete temporary proguard configuration for gradle, change the primary one.
2017-04-08 08:32:05 +03:00
Ilya Gorbunov
5aff64078c
Drop helper functions and use ones from stdlib instead.
2017-04-08 08:32:03 +03:00
Ilya Gorbunov
e8e8bec342
Drop unneeded steps from updateDependencies
...
Do not download closure compiler for ant,
do not rebuild markdown anymore,
do not build protobuf-lite.
2017-04-08 08:31:07 +03:00
Ilya Gorbunov
6e961be1a1
No need to fork ant under jdk8 to build annotation-processing
2017-04-08 08:31:03 +03:00
Ilya Gorbunov
eef835f6c1
Remove ant targets that are superseded by gradle build.
2017-04-08 08:31:01 +03:00
Ilya Gorbunov
337fd4e180
Drop poms that are no longer required. Drop separate unit test modules for stdlib js.
2017-04-08 08:28:50 +03:00
Anton Bannykh
93f11a6da3
Update HtmlUnit driver to version 2.24; run tests using JDK 1.8
...
The old version had very limited TypedArray support, which lead to
browser-example crashes.
The new version of HtmlUnit needs JDK 1.8 to run.
2017-04-07 18:52:56 +03:00
Mikhail Glukhikh
767db68daf
Cleanup: when possible, do analyzeFully -> analyze
2017-04-07 15:36:02 +03:00
Mikhail Glukhikh
ba04dac4b7
Cleanup: when possible, do analyzeFullyAndGetResult -> analyzeFully
...
Also, when possible, do analyzeAndGetResult -> analyze
2017-04-07 15:36:00 +03:00
Mikhail Glukhikh
ceff19ee74
Cleanup: leaking this inspection
2017-04-07 15:35:59 +03:00
Mikhail Glukhikh
aed98a745e
Do not use KtClassInitializer as analyzable parent
...
Fixes analyzeFully() semantics making it closer to compiler
Fixes two flaky tests for "leaking this" quick-fixes
2017-04-07 15:35:58 +03:00
Mikhail Glukhikh
55d304a9a5
Minor refactoring: anonymous initializers
2017-04-07 15:35:57 +03:00
Vyacheslav Gerasimov
6b9242075a
Fix MovePropertyToConstructorIntention applicability and type rendering
...
#KT-17238 Fixed
(cherry picked from commit 7f9d88a)
2017-04-07 14:32:06 +03:00
Nikolay Krasko
d65b7a5b4b
Better indent in else-if editing (KT-14601)
...
#KT-14601 Fixed
(cherry picked from commit 25d6d61)
2017-04-07 14:21:45 +03:00
Dmitry Jemerov
da9af682d9
Don't show Kotlin in "Add framework support" for Maven/Gradle modules
...
#KT-16392 Fixed
2017-04-07 13:09:58 +02:00
Dmitry Jemerov
f1e96709a8
JSFrameworkSupportProvider: J2K
2017-04-07 13:09:58 +02:00
Dmitry Jemerov
ee5ebb8ab7
JSFrameworkSupportProvider: rename to .kt
2017-04-07 13:09:58 +02:00
Dmitry Jemerov
372ab57b65
JavaFrameworkSupportProvider: J2K
2017-04-07 13:09:58 +02:00