Valentin Kipyatkov
38edb58e60
Preserve formatting of parenthesis in calls too
2016-08-23 22:46:44 +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
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
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
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
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
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
a9eadcbaf4
KT-12046 Java to Kotlin dangerous conversion (recursive property set)
...
#KT-12046 Fixed
2016-04-29 18:13:51 +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
Denis Zharkov
1bc45fb9cf
Adjust J2K to latest protected visibility fixes
2016-03-31 14:51:57 +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
Natalia Ukhorskaya
c7ae9981cb
J2K: Quote '$' symbols in converted strings
...
#KT-6800 Fixed
2016-03-25 20:27:19 +03:00
Natalia Ukhorskaya
4bc4f0bce7
J2K: not initialized field of non-primitive type should have null initializer
...
#KT-11544 Fixed
2016-03-25 20:27:19 +03:00
Nikolay Krasko
085deec717
Make J2K pay more attention to original formatting of comments. Better support for KEEP_FIRST_COLUMN_COMMENT
...
#KT-4175 In Progress
2016-03-16 12:38:20 +03:00
Natalia Ukhorskaya
b50f2dc6e5
J2K: Use parameters nullability for method call
2016-03-11 12:08:10 +03:00
Natalia Ukhorskaya
c928237699
J2K: drop line breaks in some polyadic expressions
2016-03-11 12:08:10 +03:00
Natalia Ukhorskaya
f1b6bf7817
J2K: convert comments inside qualified expression correctly
2016-03-11 12:08:10 +03:00
Natalia Ukhorskaya
405b0b1df6
J2K: convert annotations in annotations parameters correctly
...
#KT-11126 Fixed
2016-03-11 12:08:10 +03:00
Natalia Ukhorskaya
7d594970ff
J2K: convert protected member used outside of inheritors as public
2016-03-11 12:08:10 +03:00
Pavel V. Talanov
a4c005fefd
Update existing test data depending on diagnostic parameter rendering
2016-02-26 14:45:11 +03:00
Ilya Gorbunov
78b7fb15f3
J2K, expected errors: for each argument of removed overloads
2016-02-09 02:58:09 +03:00
Ilya Gorbunov
805410bb19
J2K: Remove special conversion for String.format.
2016-02-03 17:14:02 +03:00
Natalia Ukhorskaya
9d66852ae2
J2K: convert method references according to special methods
2016-01-25 15:02:48 +03:00
Ilya Gorbunov
31ec7bcbea
Deprecate String.concat with error severity.
...
Fix concat j2k conversion.
Add expected deprecation errors for Java String constructors that must be converted to special Kotlin String methods.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
f4822cd757
Fix testData in compiler: add collections and ranges package to fq-names.
2016-01-22 05:54:38 +03:00
Yan Zhulanow
4cd2ff040d
J2K: convert hex Java literal to hex Kotlin literal
2016-01-19 23:29:58 +09:00
Valentin Kipyatkov
552359ce03
KT-7443 Inspection + intention to replace assert (x != null) with "!!" or elvis
...
#KT-7443 Fixed
2016-01-18 15:34:20 +03:00
Ilya Gorbunov
ddcafdd9b3
J2K: Avoid to convert to deprecated String methods, namely toByteArray.
2016-01-14 18:30:44 +03:00
Natalia Ukhorskaya
128440b16f
Use intention to simplify for in j2k
...
#KT-7157 Fixed
2016-01-14 13:41:54 +03:00
Natalia Ukhorskaya
513c4a4562
J2K: transform loops with double, float and char range with while
...
#KT-899 Fixed
2015-12-18 16:14:17 +03:00
Natalia Ukhorskaya
ecdef71580
J2K: cast right operand of equals for primitive types to left operand type
...
#KT-9997 Fixed
2015-12-18 16:14:16 +03:00
Natalia Ukhorskaya
1d787ed222
J2K: Insert initializer type for properties with primitive type if necessary
2015-12-18 16:14:15 +03:00
Mikhail Glukhikh
3fb04aceb9
Check backing field availability for AnnotationTarget.FIELD #KT-10387 Fixed
...
Some duplicated checks deleted (UseSiteTargetChecker / JvmFieldApplicabilityChecker)
2015-12-17 15:06:58 +03:00
Natalia Ukhorskaya
3f7b8554dd
J2K: parenthesize receiver if needed
...
#KT-10121 Fixed
2015-12-17 11:11:20 +03:00
Natalia Ukhorskaya
f3a6c541ec
J2K: Convert usages of kotlin functions from library correctly
...
#KT-6115 Fixed
2015-12-17 11:11:18 +03:00