Mikhail Zarechenskiy
fd6ed5aa72
Fix bogus warning about numeric overflow when value is zero
...
#KT-17149 Fixed
2017-03-30 13:27:53 +03:00
Mikhail Zarechenskiy
3820c7653b
Update configuration for bytecode listing tests by directives in files
2017-03-30 13:27:51 +03:00
Mikhail Zarechenskiy
aec0c029e5
Display description of language version in options
2017-03-30 13:27:50 +03:00
Mikhail Zarechenskiy
5750a96b13
Write to configuration files only version without description
2017-03-30 13:27:49 +03:00
Mikhail Zarechenskiy
c512453e16
Show LV=1.2 in IDE only in internal mode
2017-03-30 13:27:48 +03:00
Mikhail Zarechenskiy
5027a76ed4
Add strong warning when trying to compile with experimental LV
2017-03-30 13:27:47 +03:00
Mikhail Zarechenskiy
54f034a636
Place array literals in annotations feature under the version 1.2
2017-03-30 13:27:46 +03:00
Mikhail Zarechenskiy
20d5616d75
Introduce Kotlin language version 1.2
...
Wherein DEFAULT version is still 1.1, which means that version 1.2 should be configured manually
2017-03-30 13:27:45 +03:00
Mikhail Zarechenskiy
283ed85df2
Drop useless parameter and avoid creating sets
2017-03-30 13:27:44 +03:00
Alexander Udalov
3655fc02bd
Support running Kotlin compiler daemon on JDK 9
...
This should have fixed the compiler that is run in Gradle on Java 9, but
there's another issue filed as KT-17112
#KT-17112 Open
#KT-14988 Fixed
2017-03-30 13:05:24 +03:00
Alexander Udalov
a5d70cfa68
Support running Kotlin compiler CLI on Java 9 on Unix
...
Workaround IDEA-170005, IDEA-170494 and similar issues by opening the
required packages from java.base to the unnamed module
#KT-14988 In Progress
2017-03-30 13:04:41 +03:00
Dmitry Jemerov
03a26c4ce0
Set language level 6 for modules using JDK 6
2017-03-29 18:41:00 +02:00
Mikhail Glukhikh
a35b770c8d
Evaluate allImplementingModules lazily #KT-17136 Fixed
2017-03-29 18:17:55 +03:00
Dmitry Jemerov
e66d5d6e1a
Advance Java language level
2017-03-29 17:10:22 +02:00
Simon Ogorodnik
ddcff3c96d
Fix ImportFixBase to compute suggestions not on EDT
2017-03-29 17:35:13 +03:00
Vyacheslav Gerasimov
94b261d701
Add changelog for 1.1.2
2017-03-29 16:00:38 +03:00
Dmitry Petrov
caae6ff2ec
KT-16264 Forbid usage of _ without backticks
...
Forbid underscore-only (_, __, ___, ...) names as callees and as types.
If CHECK_TYPE directive is on, filter out UNDERSCORE_USAGE_WITHOUT_BACKTICKS messages.
2017-03-29 15:47:22 +03:00
Ilya Chernikov
0a3c031528
Optimize and simplify script deps cache and appropriate index rebuilding
2017-03-29 13:29:47 +02:00
Dmitry Petrov
2a97fb17ba
Fix source information mapping in PsiSourceManager
...
Add tests for source information mapping
KT-17108 source information corrupted on PSI -> IR transformation
2017-03-29 13:03:38 +03:00
Anton Bannykh
4086a84622
JS: add suffix '_test' to test module output files to avoid name conflicts (KT-16979)
...
Also stop setting AMD module ids explicitly.
2017-03-28 21:44:56 +03:00
Anton Bannykh
867bd13ce4
JS: make tests dependent on primitive array is checks pass even when -Xtypedarray is disabled (related: KT-17137)
2017-03-28 21:41:20 +03:00
Anton Bannykh
7d4c26c0c1
JS: fix maven SeleniumTest
2017-03-28 21:23:21 +03:00
Pavel V. Talanov
df71116dc5
KtLightElements: fix KtLightMember not extending KtLightDeclaration
...
Fix problem introduced in 4b85fd9fbe
2017-03-28 19:47:13 +03:00
Dmitry Jemerov
6febe1e8a2
Convert RenameTest to light fixture test case
...
Extract multi-module rename test to a separate class.
2017-03-28 15:48:38 +02:00
Yan Zhulanow
228b3c56a3
Minor: fix failing CliTestGenerated#testPluginSimple test
...
Add missing Android Dialog stub cause Android Extensions plugin now generates the synthetic property for Dialog.
2017-03-28 16:08:46 +03:00
Dmitry Jemerov
8ec70f44dc
Log fallbacks to plain text search when searching expressions of type
...
This will help diagnose performance problems in IDEA inspections.
2017-03-28 13:00:56 +02:00
Dmitry Jemerov
f13c1b8d87
Convert MultiFileIntentionTest to light fixture test case
2017-03-28 11:36:29 +02:00
Alexey Andreev
de58786fcc
Regenerate LightAnalysisModeTestGenerated
2017-03-28 11:32:47 +03:00
Alexey Andreev
8fe96664b7
Fix initialization order of enum with companion object in JS BE
...
Make enum entries initialize before companion object. This helps
in situation when companion object initializer refers to enum fields.
JVM be generates <clinit> method which first initializes all enum fields
and then runs companion object initializer. This commit introduces the
similar behaviour in JS BE. The old behaviour was: initialize companion
object in constructor. In enum, constructor is called to initialize
enum fields, so previously companion object was initialized first,
which is incorrect.
See KT-16745
2017-03-28 11:32:46 +03:00
Alexey Andreev
0606ebe0dc
Fix suspend function with default argument
...
In JS BE, fix translation of suspend function with default argument
inherited from interface.
See KT-16658
2017-03-28 11:32:45 +03:00
Alexey Andreev
6ba3812582
Fix inlining of tail call suspend function
...
When inlining tail-call suspend function to regular
suspend function in JS BE, don't forget to insert suspension point.
See KT-16951
2017-03-28 11:32:45 +03:00
Alexey Andreev
466540399c
Fix translation of copy() fun in data class
...
Fix translation of copy() function in data class which has secondary
constructor in JS BE. See KT-16717.
2017-03-28 11:32:44 +03:00
Mikhail Zarechenskiy
b46205f60b
Add tests to check collection literals with varargs
2017-03-28 09:01:57 +03:00
Sergey Igushkin
ae2b4f5ff2
Support omitting version of org.jetbrains.kotlin dependencies
...
Related to #KT-12792
2017-03-28 03:57:38 +03:00
Sergey Igushkin
9ba84df954
Fixed classes copying fail in cases when destinationDir has changed
...
Added @Input to the property returning classes dirs: it will make
Gradle fall back to non-incremental input when the property value
changes.
Issues: #KT-16820 Fixed
2017-03-28 03:53:11 +03:00
Jonathan Leitschuh
cc0ac36fed
Java IC compatibility fix for Gradle 2.14+
...
Added version check to switch between old and new approaches because
Gradle versions before 2.14 have a bug in Java IC.
Added Kotlin classes to Java task input.
Added annotationsFile into task input to include it into up-to-date check.
Related issues: #KT-16585 Fixed
2017-03-28 03:47:21 +03:00
Anton Bannykh
9b34e21619
JS: fixed <Type>Array.iterator methods; added -Xtypedarray compiler key
...
The <Type>Array.iterator used to lack next<Type>() method (KT-16626).
The -Xtypedarray compiler key enables translation of primitive arrays
to TypedArrays, and primitive array`is`-checks (KT-15358, KT-14007,
KT-14614, KT-16056).
2017-03-27 23:09:34 +03:00
Vyacheslav Gerasimov
ba5e78a917
Replace deprecated Iterators.emptyIterator() in JavaContext.java
...
with ContainerUtil.emptyIterator()
2017-03-27 21:35:11 +03:00
Pavel V. Talanov
ca6516c2a2
findDecompiledDeclaration: find builtIns more accurately
...
Use resolveScope of a reference to help searching for builtIn binaries
Do not search non-builtIn descriptors in random scopes
2017-03-27 21:24:45 +03:00
Dmitry Jemerov
265e765ec9
Allow to exclude specific qualified names from import in tests
...
In tests, ImportFix imports the first available candidate. This can
lead to non-deterministic tests when multiple candidates are available.
With this fix, unwanted candidates can be excluded.
2017-03-27 19:48:59 +02:00
Dmitry Jemerov
88372132be
Delete Android facet in teardown
2017-03-27 19:48:58 +02:00
Dmitry Jemerov
79c814636e
Convert AddOpenToClassDeclarationTest to regular multifile quickfix test
2017-03-27 19:48:52 +02:00
Dmitry Jemerov
4f229c3fdc
Convert AbstractQuickFixMultiFileTest to light fixture test case
2017-03-27 19:48:51 +02:00
Dmitry Jemerov
387dbdf3bb
AbstractQuickFixMultiFileTest: J2K
2017-03-27 19:48:50 +02:00
Dmitry Jemerov
d11ea64f00
AbstractQuickFixMultiFileTest: rename to .kt
2017-03-27 19:48:49 +02:00
Dmitry Jemerov
e2f75463d7
Rewrite AbstractQuickFixTest based on light fixture test case
...
Don't reconfigure runtime before every test. For consistency,
mark tests that require the runtime with directives instead of relying
on test file names.
2017-03-27 19:48:43 +02:00
Dmitry Jemerov
34ad19a912
AbstractQuickFixTest: J2K
2017-03-27 19:45:50 +02:00
Dmitry Jemerov
ad59a122ac
AbstractQuickFixTest: rename to .kt
2017-03-27 19:45:50 +02:00
Dmitry Jemerov
9d74657f11
Mark KotlinCodeInsightTestCase as deprecated
2017-03-27 19:45:50 +02:00
Dmitry Jemerov
9a5028c4f2
Convert KotlinShortNamesCacheTest to light test case; cleanup code
2017-03-27 19:45:50 +02:00