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
Alexey Sedunov
75481c34b4
Move to Companion Object: Warn if companion object already contains function with the same signature
...
#KT-13877 Fixed
2016-09-20 20:35:59 +03:00
Alexey Sedunov
72ff5dd2cc
Move to Companion Object: Forbid for functions/properties referencing type parameters of the containing class
...
#KT-13876 Fixed
2016-09-20 20:35:58 +03:00
Alexey Sedunov
4cd4b8781d
Move: Do not ignore target directory selected in the dialog (DnD mode)
...
#KT-13901 Fixed
2016-09-20 20:35:57 +03:00
Alexey Sedunov
65a1ecc464
Move Nested Class to Upper Level: Do not show directory selection dialog twice
...
#KT-13906 Fixed
2016-09-20 20:35:56 +03:00
Alexey Sedunov
6366383b31
Minor: Add test for KT-13916
2016-09-20 20:35:56 +03:00
Alexey Sedunov
951dc6a438
Move: Remove companion object which becomes empty after the move
...
#KT-13903 Fixed
2016-09-20 20:35:55 +03:00
Alexey Sedunov
11a7a242c8
Move to Companion Object: Fix exception when applied to class
...
#KT-13883 Fixed
2016-09-20 20:35:54 +03:00
Alexey Sedunov
64e5baade3
Move to Companion: Fix AssertionError on running refactoring from Conflicts View
...
#KT-13874 Fixed
2016-09-20 20:35:53 +03:00
Alexey Sedunov
6e8bcb987a
Minor: Add tests for KT-13759
2016-09-20 20:35:52 +03:00
Alexey Sedunov
4313f249a4
Presentation: Add file name to the presentation of private top-level declaration
...
#KT-13838 Fixed
2016-09-20 20:35:51 +03:00
Nikolay Krasko
4adfb18990
Solve thread leaking problem in intellij idea ultimate with obfuscated fileds
2016-09-20 19:31:10 +03:00
Pavel V. Talanov
92b62f879b
JavaClassImpl: add assertion on querying members of light classes
...
Hopefully this assertion happens before deadlock KT-12966
2016-09-20 19:09:05 +03:00
Pavel V. Talanov
631603c015
J2K JavaClassImpl: rename file
2016-09-20 19:09:04 +03:00
Pavel V. Talanov
724b0322c0
J2K JavaClassImpl: convert code
2016-09-20 19:09:03 +03:00
Mikhail Zarechenskiy
46ef1920d6
Update API listing after changes in runtime.jvm
2016-09-20 18:44:39 +03:00
Ilya Gorbunov
71af020beb
Use explicit public visibility in kotlin-runtime.
2016-09-20 17:38:51 +03:00
Mikhail Zarechenskiy
2fc8f5d5e2
Move util function closer to its usage and remove empty file
2016-09-20 16:23:43 +03:00
Mikhail Zarechenskiy
8a0107ea5f
Move property with template to script definition interface
2016-09-20 16:23:42 +03:00
Mikhail Zarechenskiy
7739677a06
Adapt ScriptCodegenTests to last changes
...
Get rid of possibility to configure script definition without template
class, therefore all tests now are using default script argument
2016-09-20 16:23:41 +03:00
Mikhail Zarechenskiy
f8774be8c3
Adapt ScriptGenTest to last changes
...
- Use script definitions created by script templates
- Configure classpath before files were loaded
2016-09-20 16:23:40 +03:00
Mikhail Zarechenskiy
aa1368f4f3
J2K ScriptGenTest: convert and prettify
2016-09-20 16:23:39 +03:00
Mikhail Zarechenskiy
49e1603470
J2K ScriptGenTest: rename
2016-09-20 16:23:38 +03:00
Mikhail Zarechenskiy
b18cbc37c6
Do not generate properties from script constructor
...
From now all script parameter properties are generated by template class
2016-09-20 16:22:42 +03:00
Mikhail Zarechenskiy
0ba2d374bc
Create standard script definition from standard template
...
Now each script without specified template has a StandardSriptTemplate
class as a base one. This allows to generalize script codegen and
resolve.
2016-09-20 15:44:44 +03:00
Nikolay Krasko
d69e7c7aec
Problem: fix thread leaking check fail on teamcity for ultimate rename tests
2016-09-20 15:27:10 +03:00
Nikolay Krasko
ea1aac07ec
Problem: workaround thread leaking problem
2016-09-20 15:27:08 +03:00
Nikolay Krasko
835474e5a1
Register TypeAnnotationModifier EP in environment for web demo converter
2016-09-20 15:27:07 +03:00
Nikolay Krasko
bf12908dfc
Ignore irrelevant java classes in search results
...
It looks like JavaClassInheritorsSearcher started to give classes based on useScope
2016-09-20 15:27:05 +03:00
Nikolay Krasko
6cdb578f76
Fix goto implementation tests - deffered task should be executed
2016-09-20 15:27:04 +03:00
Nikolay Krasko
00db1c1490
Add standard inheritors to hierarchy test
2016-09-20 15:27:02 +03:00
Nikolay Krasko
89a1389512
Make caret left move not-applicable on first function parameter
2016-09-20 15:27:01 +03:00
Nikolay Krasko
5337fd05fb
Update to 2016.2.3
2016-09-20 15:26:59 +03:00
Nikolay Krasko
7b19454d58
Don't run applicationEx.invokeAndWait in testing mode
2016-09-20 15:26:57 +03:00
Nikolay Krasko
058dbd3375
Test only: method signature changed
2016-09-20 15:26:56 +03:00
Nikolay Krasko
80bf0b9c3e
Update compilation in 2016.2
2016-09-20 15:26:54 +03:00
Nikolay Krasko
4b9b3b07e7
Update to 162.1447.7
2016-09-20 15:26:53 +03:00
Denis Zharkov
329c1a1e72
Use editor instead of file in TypingIndentationTest
...
Nobody guarantees that changes in editor are saved immediately
2016-09-20 15:26:51 +03:00