Alexander Udalov
b368da8456
Do not warn on non-JAR files in classpath
...
#KT-17140 Fixed
2017-04-03 18:18:40 +03:00
Alexander Udalov
64dfa6d33d
Do not add current directory to "kotlin" classpath
...
As "java" does, do not include the current directory to the classpath if
the explicit classpath is specified. This is more stable than always
adding the current directory, and users can easily add the ".:" to the
beginning of the explicit classpath themselves
#KT-17100 Fixed
2017-04-03 18:17:27 +03:00
Alexander Udalov
3b8110f51c
Minor, use "use" to automatically close JarFile
...
JarFile extends Closeable on JDK 8, so we can use "use" here now
2017-04-03 18:05:04 +03:00
Alexander Udalov
cbc893ed17
Minor, drop useless class in cli-runner
...
Use a simple List<URL> instead of Classpath
2017-04-03 18:05:04 +03:00
Alexander Udalov
93d5f6e635
Fix NPE on equals/hashCode of local function references
...
Anonymous classes for local function references implement their
getOwner() as "return null" currently (KT-14291). To avoid NPE in this
case, we now consider two local functions the same if their name and
signature are equal. This is incorrect in general, but unlikely to cause
major problems and is going to be fixed by KT-14291 eventually anyway
#KT-17055
2017-04-03 18:05:04 +03:00
Alexander Udalov
8dc4fa62ac
Minor, drop unused directive and test
...
The directive was only used in this test and it had no effect on the
behavior of the test. The test is removed because it's equivalent to
simple.kt in the same directory
2017-04-03 18:05:04 +03:00
Mikhail Zarechenskiy
bff9ebc0d5
Fix check for instance for types with compatible upper bounds
...
#KT-5246 Fixed
2017-04-03 16:25:32 +03:00
Mikhail Zarechenskiy
1e56815b3b
Do not show warning about useless elvis for error function types
...
#KT-17214 Fixed
#KT-12112 Fixed
2017-04-03 16:25:32 +03:00
Mikhail Zarechenskiy
3cdf6c898a
Warn for unnecessary (!!) assertion after method with generics
...
#KT-12276 Fixed
2017-04-03 16:25:32 +03:00
Mikhail Zarechenskiy
4aa808b250
Fix warning about useless elvis when generics are involved
...
#KT-13648 Fixed
2017-04-03 16:25:32 +03:00
Alexander Udalov
0badc686ca
Minor, inline FunctionCodegen.getSignatureMapper
2017-04-03 14:51:19 +03:00
Alexander Udalov
78e278ec4c
Remove redundant type arguments for Java 8+ in compiler modules
2017-04-03 14:51:18 +03:00
Alexander Udalov
d440f07111
Use Java 7+ diamond operator in compiler modules
2017-04-03 14:51:15 +03:00
Alexander Udalov
37f435da93
Use List.sort instead of Collections.sort
2017-04-03 14:50:33 +03:00
Alexander Udalov
a9f35ae898
Replace Map operations with computeIfAbsent
2017-04-03 14:50:32 +03:00
Alexander Udalov
5ebee6ceca
Use Java 8 lambdas instead of anonymous classes in compiler modules
2017-04-03 14:49:23 +03:00
Alexander Udalov
6aa0f7bb65
Use multi-catch when possible
2017-04-03 14:26:53 +03:00
Alexander Udalov
34f0576135
Invoke "remove unnecessary final" intention in compiler modules
2017-04-03 14:26:52 +03:00
Alexander Udalov
463bbbd386
Use try-with-resources instead of manual try/finally
2017-04-03 14:26:51 +03:00
Alexander Udalov
08b50cab08
Use java.util.function.Predicate instead of Guava
2017-04-03 14:26:50 +03:00
Alexander Udalov
f723ad76f7
Use java.util.function.Predicate instead of Guava in JS modules
2017-04-03 14:26:49 +03:00
Mikhael Bogdanov
7c3ad97df5
Test for obsolete KT-17134: java.lang.VerifyError: Bad type on operand stack
...
#KT-17134 Obsolete
2017-04-01 15:34:56 +02:00
Nikolay Krasko
4dcae54ed1
Refactoring: extract lambda expression element type to separate class
2017-04-01 11:52:47 +03:00
Nikolay Krasko
6201aa4fd9
Re-parse after lambda was converted to block (KT-17156)
...
#KT-17156 Fixed
2017-04-01 11:52:46 +03:00
Ilya Gorbunov
c740c0b177
Do not produce javadoc for kotlin-compiler and do not attach it to maven artifacts
2017-04-01 04:32:01 +03:00
Nikolay Krasko
e7ac7deabd
Fix psi traverse without read action exception in debugger
2017-04-01 01:39:08 +03:00
Anton Bannykh
3eb5ce7d9a
JS: polyfill ArrayBuffer.isView in order to support PhantomJS
2017-03-31 21:20:01 +03:00
Alexander Udalov
dac9ed4a33
Fix compilation of kotlin-script-util
...
See 20d5616
2017-03-31 20:14:13 +03:00
Alexey Sedunov
96b9aba172
Move: Process Kotlin files befoire Java files
...
This ensures that light classes are updated
before changing references in Java files.
#KT-10577 Fixed
2017-03-31 18:24:17 +03:00
Alexey Sedunov
2eb912a30c
Move: Convert AbstractMoveTest to light fixture test case
...
Extract multi-module move test to a separate class
2017-03-31 18:24:16 +03:00
Alexey Sedunov
691322e406
Move: Show file dialog if all elements to be moved are KtFile
2017-03-31 18:24:15 +03:00
Alexey Sedunov
64a2fa2d6b
Move: Allow changing file package without moving to new directory
...
#KT-8370 Fixed
2017-03-31 18:24:14 +03:00
Alexey Sedunov
b5db50f429
Move: Implement Kotlin-specific editor for class name
...
#KT-13192 Fixed
2017-03-31 18:24:13 +03:00
Alexey Sedunov
eaba215bbb
Move: Wrap individual internal usages for better preview
...
Fix unused import removal for internal usages
#KT-9158 Fixed
2017-03-31 18:24:12 +03:00
Alexey Sedunov
3c6358dd91
Move: Fix file preview presentation
...
#KT-8930 Fixed
2017-03-31 18:24:11 +03:00
Alexey Sedunov
270168f50f
Kotlin Facet: Update multi-editor tabs using project-level settings
2017-03-31 18:24:10 +03:00
Alexey Sedunov
b04cbf537f
Kotlin Facet: Fix IAE on null module kind in multi-editor
...
#KT-17145 Fixed
2017-03-31 18:24:09 +03:00
Alexey Sedunov
313f90e7eb
Configuration: Provide title for additional parameters dialog
...
#KT-17094 Fixed
2017-03-31 18:24:08 +03:00
Alexey Sedunov
3f7b28d840
Configuration: Fix behavior of "output directory" control
...
#KT-17088 Fixed
2017-03-31 18:24:07 +03:00
Alexey Sedunov
72436c1738
Light Classes: Fix origin search for KtLightSuperTypeReference
...
Use analyzeFully() when resolving super type references
2017-03-31 18:24:06 +03:00
Dmitry Jemerov
b6a26aa732
Don't delete config and system directories when updating IDEA
2017-03-31 13:18:41 +02:00
Dmitry Jemerov
f3ad2cd1ff
Don't recreate ProjectResolutionFacade on every completion
...
Rely on POM events sent when modifying synthetic file copies during
completion to update the OOCB modification count, and recreate
facade only on OOCB mod count changes.
2017-03-31 12:48:36 +02:00
Nikolay Krasko
0d5913287f
Add line numbers for suspend function to enhance stepping (KT-16025)
...
Stop at function start on step into.
Step at function end on step out.
Both cases should actually be skipped by debugger, but this is postponed
till new backend generation for suspend functions is ready.
#KT-16025 Fixed
2017-03-30 19:48:49 +03:00
Mikhail Glukhikh
8cfcd7e5a6
Inline function: add extra tests taken from intellij-community
2017-03-30 19:42:22 +03:00
Mikhail Glukhikh
b8b7d1f644
Inline function: keep the function if some usages are not processed
2017-03-30 19:42:20 +03:00
Mikhail Glukhikh
091e875551
Inline function: process usages in children-first order
2017-03-30 19:42:19 +03:00
Mikhail Glukhikh
fc0bf47067
Inline function: use "function" in GUI messages
2017-03-30 19:42:17 +03:00
Mikhail Glukhikh
93b624fdbe
Inline function: handle callable references through lambdas
2017-03-30 19:42:16 +03:00
Mikhail Glukhikh
75bb599991
Inline function: handle recursive calls
2017-03-30 19:42:14 +03:00
Mikhail Glukhikh
e79f006659
Introduce dialog for function inlining #KT-6159 Fixed
...
See KotlinInlineFunctionProcessor and KotlinInlineFunctionDialog
2017-03-30 19:42:13 +03:00