Ilya Kirillov
7bfad12e6a
New J2K: correctly convert compound Java assignment expression
...
#KT-35476 fixed
2020-01-13 14:32:45 +03:00
Ilya Kirillov
6a8a68a263
New J2K: fix UninitializedPropertyAccessException when calculating type of anonymous class
...
#KT-35395 fixed
2020-01-13 14:32:44 +03:00
Ilya Kirillov
14a8d3726d
New J2K: remove initializer from property without backing field
...
#KT-33637 fixed
2020-01-13 14:32:43 +03:00
Alex Chmyr
16c82030a3
KT-20120 fixing bug for Java 9 Deprecated
...
Unconditionally changing it to @Deprecated("") in kotlin
2020-01-10 11:45:17 +03:00
Alexander Udalov
8a4510c21b
Regenerate tests
2020-01-02 10:31:00 +01:00
Ilya Kirillov
92f8432b1e
New J2K: Fix not converted jetbrains nullability annotations for types
...
it became broken after annotation started to be assigned to type elements
instead of declarations after 4da7d11
#KT-34987 fixed
2019-12-20 13:02:51 +03:00
Dmitriy Novozhilov
e7f8c8e155
[TEST] Regenerate tests after previous commit
2019-12-12 16:11:45 +03:00
Dmitry Gridin
70185ba2a6
Formatter, NJ2K: fix indent for comments inside function literals
...
#KT-4194 Fixed
#KT-31881 Fixed
#KT-34673 Fixed
#KT-35152 Fixed
2019-11-29 16:28:59 +07:00
Toshiaki Kameyama
3a576ce14f
KT-21811 Convert string concatenation into multiline string ( #2772 )
...
New J2K: Convert string concatenation into multiline string
#KT-21811 Fixed
2019-11-28 13:14:48 +03:00
Toshiaki Kameyama
be04912f6f
KT-19574 Code with inferred default parameters and parameter vs property name clashes ( #2671 )
...
New J2K: add 'this' receiver to default parameter value if needed
#KT-19574 Fixed
2019-11-27 18:55:50 +03:00
Toshiaki Kameyama
c72622c6d7
KT-32551 New J2K: Non-canonical modifiers order inspection is not applied during convertion of inner super class ( #2806 )
...
New J2K: add SortModifiers inspection to post-processing
#KT-32551 Fixed
2019-11-27 16:08:54 +03:00
Dmitry Gridin
b40a888f1d
Formatter: fix line break between declarations with annotations
...
#KT-35093 Fixed
#KT-35106 Fixed
2019-11-26 19:40:51 +07:00
Dmitry Gridin
bfd539d5d1
Formatter: fix line break between declarations with comment
...
#KT-12490 Fixed
#KT-35088 Fixed
2019-11-26 19:40:51 +07:00
Ilya Kirillov
f368d9761a
Fix for loop conversion when multiple initializers are present
...
#KT-35074 fixed
2019-11-25 17:01:46 +03:00
Mikhail Zarechenskiy
e0fb586aaf
[NI] Don't loose diagnostic after type variable fixation
...
#KT-24488 Fixed
2019-10-31 11:32:02 +03:00
Nikolay Krasko
4ed64b0283
Regenerate tests with TargetBackend.ANY remove and using runTest with this
2019-10-23 12:49:48 +03:00
Dmitry Gridin
92bfb2788e
idea: cleanup "Remove redundant qualifier name"
2019-10-17 14:30:25 +07:00
Vladimir Dolzhenko
eb9875b6f5
Added missed kotlin-reflect to nj2k testRuntime
2019-10-15 09:33:57 +02:00
Ilya Kirillov
1ec620b753
New J2K: fix SOE in inference processing for star-projection as type argument
...
#KT-33942 fixed
#KT-33941 fixed
2019-10-12 15:28:03 +03:00
Ilya Kirillov
b350515237
New J2K: make post-processing aware of other files which are being converted
...
Before post-processing was able to handle only one converting file at once
So, some conversions (like (field, getter, setter) to Kotlin property)
was not able to work when converting class hierarchy was split into
multiple files.
Also, inferring nullability for a set of files was broken
#KT-19569 fixed
#KT-34266 fixed
#KT-32518 fixed
2019-10-12 12:50:34 +03:00
Ilya Kirillov
999918d499
New J2K: add multi-file conversion tests from old j2k
2019-10-12 12:50:34 +03:00
Ilya Kirillov
f951ed9dba
New J2K: introduce external code processing for new J2K
...
It will update usages from files not in conversion scope to a valid ones:
1. When converting (field, getter, setter) triple from Java to a Kotlin property,
it will:
1. Update every usage of getter/setter in Java/Kotlin code to a usage of actual property
2. If property is used in Java directly then will add @JvmField to it
2. When converting static method or static field without getter and setter, which has Java usages then add @JvmStatic to it
#KT-34164 fixed
2019-10-12 12:50:33 +03:00
Ilya Kirillov
7535c2f249
New J2K: fix expose internal/private type errors
2019-10-12 12:50:33 +03:00
Ilya Kirillov
d0f0b9e355
New J2K: do not allow field and method declarations to be internal
...
For internal members new names are generated,
So, references to them from Java will be broken
2019-10-12 12:50:32 +03:00
Toshiaki Kameyama
4da7d11364
KT-30643 J2K: wrong position of TYPE_USE annotation ( #2543 )
...
New J2K: fix wrong position of TYPE_USE annotation
#KT-30643 Fixed
2019-10-08 16:21:27 +03:00
Toshiaki Kameyama
eda4206428
New J2K: convert Integer.MAX_VALUE to Int.MAX_VALUE
...
#KT-7940 Fixed
2019-10-06 01:09:33 +03:00
Ilya Kirillov
f950a0246c
New J2K: handle correctly short names which are imported by default in kotlin (like List or Result)
...
Kotlin default import inserter was unable to correctly insert such imports
#KT-34165 fixed
2019-10-04 15:17:35 +03:00
Ilya Kirillov
81341e3fd3
New J2K: add hack for incorrect comment parsing in J2K (KT-16845)
...
#KT-33825 fixed
2019-10-04 15:17:35 +03:00
Vyacheslav Gerasimov
f38123e78c
193: Update to 193.3793.14-EAP-SNAPSHOT
2019-10-01 17:23:47 +03:00
Vladimir Dolzhenko
3b563eaca1
Use test path relative to testDataPath in fixture.configureByFile to be complaint with 193, part 2
2019-10-01 11:39:17 +02:00
Ilya Kirillov
04515eda3d
Fix nj2k module compilation for 191 & 183 branches
2019-09-29 18:45:48 +03:00
Ilya Kirillov
9deb7dc8d6
New J2K: do not require module to be present on converting
...
It may not be present when performing conversion inside repl
2019-09-29 12:13:41 +03:00
Ilya Kirillov
f77825b85a
New J2K: remove RedundantCompanionReferenceInspectionBasedProcessing as it already applied on shortening references
2019-09-29 11:39:39 +03:00
Ilya Kirillov
95f69a9b58
New J2K: do not print debug info in inference tests
2019-09-29 11:39:39 +03:00
Ilya Kirillov
aaf05d5eb2
New J2K: reduce count of post-processing groups
2019-09-29 11:39:38 +03:00
Ilya Kirillov
208c4d6fc7
New J2K: move visitor generator out of src folder
2019-09-29 11:39:38 +03:00
Ilya Kirillov
41935bdd34
New J2K: separate logic in code builder to different classes
2019-09-29 11:39:37 +03:00
Ilya Kirillov
043a669812
New J2K: do not print qualified names if corresponding qualifier can unambiguously resolved
...
This speeds up shortening qualified references phase
2019-09-29 11:39:37 +03:00
Ilya Kirillov
678cc35008
New J2K: reuse already calculated type arguments in inference post-processing
2019-09-29 11:39:36 +03:00
Ilya Kirillov
c000f33955
New J2K: make initial generating code formatting better
2019-09-29 11:39:36 +03:00
Ilya Kirillov
f3b53a9532
New J2K: rework Java code formatting collecting
...
#KT-33687 fixed
2019-09-29 11:39:35 +03:00
Ilya Kirillov
37ee81dfa1
New J2K: use Java classes for instance checking instead of Kotlin ones
2019-09-29 11:39:35 +03:00
Ilya Kirillov
392a75e6b8
New J2K: use KotlinExceptionWithAttachments to report tree building errors
...
Also, try not to throw exceptions when possible
2019-09-29 11:39:34 +03:00
Alex Chmyr
b8cce67d2e
KT-19355 fix for "Variable expected" error after J2K for increment/decrement of an object field
2019-09-25 10:08:42 +03:00
Ilya Kirillov
4e27d2e658
New J2K: do not use global write action for some post-processings which may use resolving while applying
...
Also, modify that post-processings & inspections to explicitly use write action
when modifying PSI elements
#KT-33875 fixed
2019-09-24 17:21:49 +03:00
Ilya Kirillov
74ba5b210a
New J2K: do not analyze code for post-processings in edt thread
2019-09-24 17:21:48 +03:00
Ilya Kirillov
e6f2e0041c
New J2K: get rid of generalInspectionPostProcessing
2019-09-24 17:21:47 +03:00
Ilya Kirillov
3724e2bb02
New J2K: convert all custom post-processing to applicability based ones
2019-09-24 17:21:46 +03:00
Ilya Kirillov
509fcb17c7
New J2K: consider empty/singleton children list when comparing trees in default arguments conversion
2019-09-24 17:13:13 +03:00
Ilya Kirillov
704b3bd2e6
New J2K: always print real fqNames for static calls
...
As fqNames of some symbols may change during conversion
E.g, when moving Java static method to Kotlin companion object
#KT-19607 fixed
#KT-32903 fixed
#KT-33743 fixed
#KT-33556 fixed
2019-09-24 17:13:12 +03:00