Commit Graph

33855 Commits

Author SHA1 Message Date
Ilya Gorbunov b05c2c1f6a Import AbstractHashMap, HashMap, HashSet, LinkedHashMap, LinkedHashSet from GWT
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov f5e0c504d6 AbstractMap: cleanup and refactor
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov c54bc2ea18 Import AbstractMap implementation from GWT.
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov d900efb34e AbstractSet implementation.
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov 828e7f8744 Add tests to ensure #KT-7473 and #KT-13459 and #KT-13429 are Fixed. 2016-09-24 07:08:21 +03:00
Ilya Gorbunov 89388f1f83 Fixes in ArrayList after review.
Provide better implementations for some methods of AbstractList.
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov 472ef89baf AbstractList: cleanup and rename
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov 75069143c7 Rewrite ArrayList, AbstractList, AbstractCollection in kotlin.
AbstractList is imported from GWT.
#KT-12386
2016-09-24 07:08:21 +03:00
Nikolay Krasko 0abf94c2f4 Allow to avoid rebuilding application in debugger tests on local machine
(cherry picked from commit 8b899a7)
2016-09-24 01:44:40 +03:00
Nikolay Krasko 520e187e46 Clean application after test in compiler tests
It's disposed after Disposer.dispose(myTestRootDisposable) in tearDown and mixing compiler tests
with non-compiler tests may ruin classes initialization with

"com.intellij.util.IncorrectOperationException: Sorry but parent: com.intellij.mock.MockApplicationEx@52439591 has already been disposed"

(cherry picked from commit f3badb6)
2016-09-24 01:44:38 +03:00
Alexey Tsvetkov 1c0be7f0ba Update changelog for 1.0.4 2016-09-23 20:55:49 +03:00
Denis Zharkov 217f033552 Prevent generation of delegations to interfaces private methods
#KT-13381 Fixed
 #KT-13996 Fixed
2016-09-23 14:51:14 +03:00
gitreelike 06c804787f Implement quick fix to convert a too long char literal to a string #KT-13635 Fixed 2016-09-23 13:04:41 +03:00
shiraji 391a0fdde5 Add "Copy concatenation text to clipboard" intention #KT-13744 Fixed 2016-09-23 12:46:22 +03:00
Valentin Kipyatkov 023c02deb3 Corrections on code review 2016-09-23 10:07:15 +03:00
Valentin Kipyatkov e4f80e277f Better texts of change variable type quickfixes 2016-09-23 10:07:15 +03:00
Valentin Kipyatkov 80d82d2dee Made AddToStringFix low priority 2016-09-23 10:07:15 +03:00
Valentin Kipyatkov 7625672914 Better test data 2016-09-23 10:07:15 +03:00
Valentin Kipyatkov dab6f7d13d Better texts for quickfixes to change return type 2016-09-23 10:07:14 +03:00
Ilya Gorbunov 8d67a65ed9 Build stdlib docs 3 times: one for each JDK 2016-09-22 22:32:02 +03:00
Ilya Gorbunov 47be8e664a Minor: replace var with val. 2016-09-22 22:28:14 +03:00
Ilya Gorbunov 2c0edf6652 Fix working directory where CompilerSmokeTest runs to be 'project.build.directory', otherwise it may vary depending on maven goals invoked. 2016-09-22 21:59:10 +03:00
Ilya Gorbunov f60447328d Remove snapshot repository from idl2k module. 2016-09-22 21:52:33 +03:00
Ilya Gorbunov 0cd0f3caa0 Reorder maven project modules to run more tests earlier in build. 2016-09-22 21:52:33 +03:00
Alexey Tsvetkov fc6773a416 Print gradle output only if test is failed 2016-09-22 20:43:01 +03:00
Alexey Sedunov b412edf2a3 Extract Class: Implement 'Extract Interface' refactoring
#KT-11017 Fixed
2016-09-22 20:11:31 +03:00
Alexey Sedunov af2de09840 Extract Class: Implement 'Extract Superclass' refactoring
#KT-11017 In Progress
2016-09-22 20:11:30 +03:00
Pavel V. Talanov 8f5725345f ModuleDescriptor: invert "friends" relation
Fixes memory leak caused by modules storing their friends (which can be potentially recreated many times)
2016-09-22 18:20:43 +03:00
Denis Zharkov 23c0bdbd05 Add filtering of suggested expressions for postfix templates
Do not suggest qualified expression's selector or a part of user type
because they aren't really independent expressions
2016-09-22 18:11:22 +03:00
Simon Ogorodnik ab2b6743df KT-11990 J2K native to external conversion (#957) 2016-09-22 18:09:26 +03:00
Nikolay Krasko 293d3b4320 Remove toString() test for StorageManager
Storing place of creating was removed in cb32bc97dd
2016-09-22 16:28:46 +03:00
Denis Zharkov 5381c06936 Improve 1.0-compatibility mode for JDK dependent members
Just reporting error by call checker may be too restrictive
in case there are some extensions that can be used successfully

Solution is to annotate additional members with
@Deprecated(level=Error) + @kotlin.internal.LowPriorityInOverloadResolution
2016-09-22 15:40:37 +03:00
Denis Zharkov a7dedfab70 Move JvmBuiltIns initialization after container setup
It will be used in the further commits to initilize built-ins instance
with components as arguments
2016-09-22 15:40:37 +03:00
Nikolay Krasko 63943c60d3 Patch ThreadTracker during Kotlin plugin init 2016-09-22 15:19:18 +03:00
Mikhail Glukhikh 68f0953b02 Random-order variable sets are no more in use in CFG #KT-13990 Fixed
(cherry picked from commit fc89385)
2016-09-22 13:32:01 +03:00
Alexander Udalov b3803d6fe7 Exclude some codegen tests on Android
These tests rely on the fact that sources are located in the default package,
whereas Android tests alter the package name of each test
2016-09-22 13:03:26 +03:00
Dmitry Petrov 07198cf86d SAM constructors for type aliases. 2016-09-22 10:38:34 +03:00
Denis Zharkov 6663054f4d Fix false positive "Cannot capture" error reporting
There is no need to report an error in case of non-top-level
capture conversion, just don't add relevant capture type in the system instead

If system can be solved successfully without captured type, then it's just fine
(see KT-13950)
In case of contradiction TYPE_INFERENCE_PARAMETER_CONSTRAINT_ERROR is reported

 #KT-13950 Fixed
2016-09-21 18:05:26 +03:00
Denis Zharkov 4431c6ad02 Fix inference when captured type is used as a lambda parameter type
Use lower approximation bound to obtain acceptable types for lambda parameters
those types depend on captured type

 #KT-12238 Fixed
 #KT-10627 Fixed
2016-09-21 18:05:26 +03:00
Nikolay Krasko cb32bc97dd Remove logging in LockBasedStorageManager creation as it all the same useless
HEAD - 3 leads to "org.jetbrains.kotlin.storage.LockBasedStorageManager.createWithExceptionHandling(LockBasedStorageManager.java:65)" debug string
2016-09-21 15:54:42 +03:00
Nikolay Krasko b7b6d319f1 Remove another place with mentioning bare plugin 2016-09-21 15:54:40 +03:00
Nikolay Krasko 37fb8d6306 Fix tests for looking implementations from Java - no search for Kotlin declaration from usages
Probably because of this commit: https://github.com/JetBrains/intellij-community/commit/7d95ff4d86e584d66d558559a1a4678920281ca1
2016-09-21 15:52:16 +03:00
Alexander Udalov 621c6691d0 Support equals, hashCode, toString for annotations instantiated with reflection
#KT-13106 Fixed
2016-09-20 21:36:30 +03:00
Alexander Udalov 525937252d Support Java annotation constructors in reflection
#KT-13106 In Progress
2016-09-20 21:36:30 +03:00
Alexander Udalov aeba124bdb Support Kotlin annotation constructors in reflection
#KT-13106 In Progress
2016-09-20 21:36:29 +03:00
Alexander Udalov fb18e4bf4c Sort parameters of Java annotation constructors by name for stability 2016-09-20 21:36:29 +03:00
Alexey Sedunov d6daaf0a85 Redundant 'toString()' in String Template: Disable for qualified expressions with 'super' receiver
#KT-13942 Fixed
2016-09-20 20:36:03 +03:00
Alexey Sedunov 85c45cf2fa Move Files/Directories: Fix behavior of "Open moved files in editor" checkbox
#KT-13909 Fixed
2016-09-20 20:36:02 +03:00
Alexey Sedunov ad8b534e9c Move Nested Class to Upper Level: Preserve state of "Search in comments"/"Search for text occurrences" checkboxes
#KT-13904 Fixed
2016-09-20 20:36:01 +03:00
Alexey Sedunov 79f50975b1 Convert Parameter to Receiver: Do not qualify companion members with labeled 'this'
#KT-13933 Fixed
2016-09-20 20:36:00 +03:00