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
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
Natalia Ukhorskaya
8616c9588d
J2K, minor: pass nullability as additional parameter for more flexibility
2016-03-25 20:27:19 +03:00
Nikolay Krasko
2db888a646
Accurate work with adding/removing context of tests.
...
Need this because of KEEP_FIRST_COLUMN_COMMENT setting. Comments accidentally left on first
collumn cause the bad formatting.
#KT-4175 Fixed
2016-03-16 12:38:24 +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
Alexander Udalov
1a5a077bd6
Replace map + filterNotNull -> mapNotNull in project
2016-02-20 19:05:30 +03:00
Stanislav Erokhin
341b251e4d
Update copyright in generated tests.
2016-02-16 18:59:10 +03:00