Alexey Tsvetkov
38b0effe15
JS/RTTI: fix cast to Any
2016-05-05 17:24:14 +03:00
Alexey Tsvetkov
2b3ebc7e9f
JS/RTTI: support safe casts
2016-05-05 17:24:13 +03:00
Alexey Tsvetkov
3fd387d4a6
JS/RTTI: support unsafe casts
...
#KT-2670 fixed
2016-05-05 17:24:13 +03:00
Alexey Tsvetkov
1d2da9729e
JS/RTTI: made cast test generated
2016-05-05 17:24:12 +03:00
Alexey Tsvetkov
427b95f821
JS/RTTI: test that reified is-check works when inline turned off
2016-05-05 17:24:12 +03:00
Alexey Tsvetkov
dce0971c52
JS/RTTI: fixed double testing for null for reified
2016-05-05 17:24:11 +03:00
Alexey Tsvetkov
5fdede74a3
JS/RTTI: avoid possible side-effect for is-check on nullable type
...
#KT-7038 fixed
2016-05-05 17:24:10 +03:00
Alexey Tsvetkov
c6cf6a0df7
JS/RTTI: use generation for rtti test
2016-05-05 17:24:10 +03:00
Alexey Tsvetkov
0b9c041d0a
JS/RTTI: fixed is-check on nullable reified parameters
...
#KT-7016 fixed
#KT-8012 fixed
2016-05-05 17:24:09 +03:00
Natalia Ukhorskaya
e1d10abfa1
Debugger: do not use forceResolveScope for codeFragments in completion and AutoImportFix.
...
#KT-12137 Fixed
2016-05-05 06:29:36 +03:00
Valentin Kipyatkov
c45bee5327
KT-12040 "Replace when with if" produce invalid code for first entry which has comment
...
#KT-12040 Fixed
2016-05-04 18:25:26 +03:00
Alexander Udalov
17dacb1efa
Revert "Minor, move SpecialNames.isSafeIdentifier check a little earlier"
...
This reverts commit a3055edda9 .
It turns out, this re-introduces an AssertionError at ClassId.<init> ("Class
name must not be root") when LazyJavaPackageScope#getContributedClassifier is
called during SAM constructor resolution below in
LazyJavaPackageScope#computeNonDeclaredFunctions, which was overlooked at the
time the commit was pushed
2016-05-04 17:41:49 +03:00
Valentin Kipyatkov
16c38a2415
KT-12138 Do not show "::error" in smart completion when any function type accepting one argument is expected
...
(actually made them lowest priority)
#KT-12138 Fixed
2016-05-04 17:28:30 +03:00
Valentin Kipyatkov
81e4114c5a
Minor
2016-05-04 17:28:29 +03:00
Valentin Kipyatkov
941b415981
KT-12150 Smart completion suggests to compare non-nullable with null
...
#KT-12150 Fixed
2016-05-04 17:28:29 +03:00
Valentin Kipyatkov
40900b0050
No explicit runWriteAction required
2016-05-04 17:28:29 +03:00
Valentin Kipyatkov
0769c5453f
KT-12103 Smart completion for nested SAM-adapter produces short unresolved name
...
#KT-12103 Fixed
2016-05-04 17:28:29 +03:00
Mikhael Bogdanov
cd6b709ef5
'bytecodeText' test for synthetic accessor generic signature converted to 'writeSignature' test
2016-05-04 17:07:48 +03:00
Mikhael Bogdanov
ee7bbbf530
Fix for KT-12127: Undeclared type variable on delegated property backing field
...
#KT-12127 Fixed
2016-05-04 17:07:48 +03:00
Valentin Kipyatkov
bac5c4d70b
Fixed test data after commit: https://github.com/JetBrains/kotlin/commit/602de317d68c3a4408829e2f1c7e93f31936399f
2016-05-04 16:26:44 +03:00
Denis Zharkov
c30c695a18
Use cache for custom ClassDescriptors
...
Otherwise new ones are being created for each request, and their member scope is recomputed
2016-05-04 14:58:05 +03:00
Denis Zharkov
594fa02a9c
Optimize memory usage by LockBasedStorageManager inner classes
...
Change all inner classes to be 'static'
Use explicit reference to StorageManager instead of
implicit reference to outer class.
The main problem of inner classes here is that outer instance
is being captured at each inheritance level, so e.g. some lazy value impls
may store up to three duplicating references.
2016-05-04 14:58:05 +03:00
Mikhael Bogdanov
09509b6d18
Update android test dependency to android 4.4.2 cause of missed test result problem on 4.1.2
2016-05-03 09:11:37 +03:00
Ilya Gorbunov
249d08a66e
Handle special cases of drop, take, takeLast when it is known in advance that the result is a single-item list. #KT-9990
2016-04-29 22:21:19 +03:00
Ilya Gorbunov
d70b46fd37
Change evaluation test data not to encounter special implementation of single element list.
2016-04-29 22:21:19 +03:00
Ilya Gorbunov
a665b2183c
Optimize operations to return special collection implementations when result is empty or has single element.
...
#KT-9990
2016-04-29 22:21:19 +03:00
Ilya Gorbunov
2d12ed68c8
Remove runtime specialization in inline last and lastOrNull to prevent double inlining of predicate body.
2016-04-29 22:21:19 +03:00
Ilya Gorbunov
09c1ff1233
Do not use indexed access for lists not supporting RandomAccess
...
Add RandomAccess specialization.
2016-04-29 22:21:19 +03:00
Ilya Gorbunov
f4f82656f7
Use list iterators instead of indexed access in operations on lists taking a lambda.
...
Related to #KT-9607
2016-04-29 22:21:19 +03:00
Nikolay Krasko
b743e71cfc
Do not request write action for MoveDeclarationToSeparateFileIntention (EA-81511)
...
There's nothing but delegation to move refactoring. This started to fail in br146 because of this commit:
https://github.com/JetBrains/intellij-community/commit/334772b7a8dfe3afb32665c09ff8e27781a01512
2016-04-29 21:24:56 +03:00
Nikolay Krasko
4a5c298897
Revert another class of ComparisonFailure
...
Idea throws this class but not org.junit.ComparisonFailure
2016-04-29 21:24:56 +03:00
Nikolay Krasko
31043f43e3
Fix path replacement in reference tests
...
The commit fixes ReferenceResolveInJavaTestGenerated$BinaryAndSource.testFileFacade.
2016-04-29 21:24:56 +03:00
Michael Bogdanov
e2ae2f313c
Support test with self imports, kotlin multifile tests
2016-04-29 16:33:04 +03:00
Michael Bogdanov
0f110b049b
Fix for "adb: Syntax error: ")" unexpected"
2016-04-29 16:21:15 +03:00
Zalim Bashorov
ed0fa2c26c
Fix NoSuchMethodError when try to access in test to internal member from production for gradle projects imported into IDEA 16 or higher
...
#KT-11993 Fixed
2016-04-29 18:23:26 +03:00
Valentin Kipyatkov
74b41cff0e
Minor changes on code review
2016-04-29 18:13:53 +03:00
Valentin Kipyatkov
92af610322
KT-12045 J2K: creating Object() instance could be converted to Any()
...
#KT-12045 Fixed
2016-04-29 18:13:53 +03:00
Valentin Kipyatkov
76e067c43a
KT-12054 J2K generates obj is Type<Any> instead of obj is Type<*>
...
#KT-12054 Fixed
2016-04-29 18:13:53 +03:00
Valentin Kipyatkov
a8eef5effc
KT-12039 Convert Java to Kotlin -- static imports are imported as Class.CONST (missing .Companion)
...
#KT-12039 Fixed
2016-04-29 18:13:52 +03:00
Valentin Kipyatkov
a80d36e8eb
Minor simplification
2016-04-29 18:13:52 +03:00
Valentin Kipyatkov
569483af5d
Moved import conversion out of "ast" package
2016-04-29 18:13:52 +03:00
Valentin Kipyatkov
83442db408
Do not duplicate list of default imports
2016-04-29 18:13:52 +03:00
Valentin Kipyatkov
08a37b3acc
Extracted methods
2016-04-29 18:13:52 +03:00
Valentin Kipyatkov
a9eadcbaf4
KT-12046 Java to Kotlin dangerous conversion (recursive property set)
...
#KT-12046 Fixed
2016-04-29 18:13:51 +03:00
Valentin Kipyatkov
9c0e1204ea
Minor
2016-04-29 18:13:51 +03:00
Valentin Kipyatkov
b0e6bf3965
Deleted inspection profile
2016-04-29 17:06:28 +03:00
Alexander Udalov
384c32b63f
Update ChangeLog for 1.0.2
2016-04-29 15:45:05 +03:00
Alexander Udalov
a3055edda9
Minor, move SpecialNames.isSafeIdentifier check a little earlier
2016-04-29 15:21:26 +03:00
Alexander Udalov
d85884426e
Minor optimization of lookup tracker records
2016-04-29 15:21:26 +03:00
Alexander Udalov
785877d1de
Combine Java package scope and Kotlin scopes in JvmPackageScope
...
Use it in LazyJavaPackageFragment#scope instead of a weird lazy chained scope.
Also move lookup tracker records to it, to prevent them from being written in
each package scope individually (this was hurting performance)
2016-04-29 15:21:26 +03:00