Simon Ogorodnik
115d63a2f3
#KT-13750 fix ( #951 )
2016-09-13 18:12:22 +03:00
Valentin Kipyatkov
38edb58e60
Preserve formatting of parenthesis in calls too
2016-08-23 22:46:44 +03:00
Valentin Kipyatkov
87294207f9
Introduced Identifier.withNoPrototype()
2016-08-23 22:46:43 +03:00
Valentin Kipyatkov
0554e1702c
KT-11804 J2K: incorrect closing parenthesis position for method split to several lines
...
#KT-11804 Fixed
2016-08-23 22:46:43 +03:00
Valentin Kipyatkov
20c17fc435
Use of Block.of()
2016-08-23 22:46:43 +03:00
Pavel V. Talanov
5a1a1fc03a
Drop KtLightClass#getFqName() and some usages of classFqName in KtLightClassForDecompiledDeclaration
2016-07-28 18:00:53 +03:00
Pavel V. Talanov
cdbd7fbab0
Refactor: split classes in 'asJava' package into several subpackages to reflect their structure
2016-07-28 18:00:47 +03:00
Mikhail Glukhikh
692623cb55
Cleanup: smart casts of safe call receiver applied (do NOT cherry-pick to 1.0.X)
2016-07-27 16:24:18 +03:00
Alexander Udalov
83000c50ff
Remove quotes around visibility in invisible member diagnostic
2016-07-22 18:13:41 +03:00
Alexander Udalov
b6b2303aa7
Improve error message for inaccessible invisible_fake members
...
#KT-8989 Fixed
2016-07-22 18:13:40 +03:00
Dmitry Jemerov
4bc64b8014
PsiElement.getNode() is nullable (EA-84534 - NPE: DocCommentConverterKt.content)
...
(cherry picked from commit c3e38dd)
2016-06-21 12:07:24 +02:00
Denis Zharkov
20d1d12f3b
Revert "'yield' reserved as a keyword"
...
This reverts commit 434082cadb .
2016-06-08 18:53:16 +03:00
Kirill Rakhman
5c68681f96
Formatter: handle spaces before value arguments list (KT-12634)
...
#KT-12634 Fixed
2016-06-07 19:11:28 +03:00
Mikhail Glukhikh
733f3e8025
Code cleanup: type parameters can have in / out variance
2016-05-13 17:57:02 +03:00
Valentin Kipyatkov
962223159a
Do not use setting specifyFieldTypeByDefault for locals
2016-05-10 18:26:04 +03:00
Valentin Kipyatkov
bf9e4a3d84
Better code
2016-05-10 18:26:04 +03:00
Valentin Kipyatkov
07c961d99d
Moved local method out
2016-05-10 18:26:04 +03:00
Valentin Kipyatkov
bdd425c1a0
KT-11952 J2K: Assertion failed in PropertyDetectionCache.get on conversion of access to Java constant of anonymous type
...
#KT-11952 Fixed
2016-05-10 18:26:04 +03:00
Valentin Kipyatkov
de02b56354
Fixed test data
2016-05-10 18:26:03 +03:00
Valentin Kipyatkov
7b1bf4c7dd
Fixed dialog with suggestion to process external code shown even when there is nothing to process
2016-05-10 15:00:57 +03:00
Nikolay Krasko
527907635d
Enable JDK 8 level in some tests for correct convert for method references
2016-05-05 17:27:47 +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
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
b551886889
Code cleanup: removed redundant semicolons
2016-04-29 11:26:25 +03:00
Denis Zharkov
adff42add3
Minor. Add absent dependency: J2K -> tests-common
2016-04-25 17:41:08 +03:00
Denis Zharkov
7fe5a9db8d
Remove JavaToKotlinClassMap dependency on built-ins instance
2016-04-25 17:41:08 +03:00
Natalia Ukhorskaya
495be06fc5
J2K: do not generate super call to abstract property
2016-04-14 17:04:50 +03:00
Natalia Ukhorskaya
72019a1b4e
J2K: Insert !! for expression only if NotNull expected (not for Default nullability)
2016-04-14 17:04:32 +03:00
Natalia Ukhorskaya
98c3b39f7e
J2K: Get nullability from variable initializer when converting call
...
#KT-11534 In Progress
2016-04-14 17:04:20 +03:00
Natalia Ukhorskaya
f3a3c0886f
J2K: Remove unnecessary casts of non-nullable expression to nullable type after conversion
...
#KT-11543 Fixed
2016-04-14 17:04:14 +03:00
Natalia Ukhorskaya
c864b67550
Add regression test: parameter from lambda is removed
2016-04-14 17:03:44 +03:00
Natalia Ukhorskaya
29f385a713
J2K, minor: fix testData
2016-04-14 17:03:42 +03:00
Nikolay Krasko
47c7181f2a
Extract tests-common module without any actual tests
...
The main reasoning for the module is to avoid running any compiler tests while executing run configuration that searches tests across module dependencies.
2016-04-08 17:40:38 +03:00
Nikolay Krasko
ef13e8f5bb
Prepare building plugins modules against 1.8 JDK
2016-04-05 00:39:46 +03:00
Denis Zharkov
1bc45fb9cf
Adjust J2K to latest protected visibility fixes
2016-03-31 14:51:57 +03:00
Pavel V. Talanov
f40a04c5a2
Refactor light elements
...
KtLightElement#delegate -> clsDelegate, KtLightElement#origin -> kotlinOrigin and make them properties
KtLightClassForDecompiledDeclaration stores KtClsFile
KtLightField stores LightMemberOrigin
2016-03-30 21:35:22 +03:00
Natalia Ukhorskaya
68907d05c3
J2K produces unresolved 'toArray' calls for java Collection#toArray(T[])
...
#KT-11600 Fixed
2016-03-29 11:26:18 +03:00
Alexander Udalov
e915e1548c
Fix multiple 'unresolved java classifier' errors
...
Use the same component (NotFoundClasses) as in loading of compiled Kotlin
symbols.
Some tests were changed to avoid a diagnostic that is now reported when a
non-found class is encountered in a signature (e.g. staticMethod.1.java where
JDK seems to be not configured)
#KT-10493 Fixed
#KT-10820 Fixed
#KT-11368 Fixed
2016-03-28 14:13:59 +03:00
Natalia Ukhorskaya
470027bfd8
J2K: specify type for variables with anonymous type if they have write accesses
2016-03-25 20:27:19 +03:00
Natalia Ukhorskaya
23908fb8f3
J2K produces unresolved 'toArray' calls for java Collection#toArray()
...
#KT-11600 Fixed
2016-03-25 20:27:19 +03:00
Natalia Ukhorskaya
79bac598bf
J2K breaks code if applied to a java class with static field which is accessed from another java class
...
#KT-11587 Fixed
2016-03-25 20:27:19 +03:00