Commit Graph

33074 Commits

Author SHA1 Message Date
Pavel V. Talanov 340fe82fa0 Minor, KotlinScriptConfigurationManager: add TODO 2016-08-16 16:49:09 +03:00
Pavel V. Talanov 10660f35d7 Add tests for script configuration machinery, namely ScriptTemplateProvider EP
Test highlighting and navigation depending on provided script definition
2016-08-16 16:45:59 +03:00
Pavel V. Talanov b4cb4f9191 KotlinLanguageInjector: only run for project or library source 2016-08-16 16:45:58 +03:00
Kirill Rakhman e6d76a9b71 Allow suppressing warnings for secondary constructor (KT-12627)
(cherry picked from commit 41cf868)

 #KT-12627 Fixed
2016-08-16 13:04:42 +03:00
Nikolay Krasko 7a4d20b4cf Make quick evaluate work on receiver in qualified expressions (KT-13269)
(cherry picked from commit 970ac5a)

 #KT-13269 Fixed
2016-08-16 13:04:41 +03:00
Michael Bogdanov 7325baa06a Fix for KT-13374: CompilationException: Inline function call with anonymous object implementing an interface by delegation
#KT-13374 Fixed
2016-08-16 10:47:01 +03:00
Natalia Ukhorskaya fca5834557 Eval4J: loadClass should return prepared class, otherwise ClassNotPreparedException fails in invokeMethod
#KT-12641 Fixed
2016-08-16 09:08:34 +03:00
Natalia Ukhorskaya f6bb70aad1 Debugger: allow to evaluate 'this' and fields in java files 2016-08-16 09:08:34 +03:00
Alexander Udalov 18887f8bec Rename CompanionObjectMapping.hasMappingToObject -> isMappedIntrinsicCompanionObject 2016-08-15 19:41:47 +03:00
Alexander Udalov 7b8ee5fba1 Add test case for obsolete issue
#KT-13172 Fixed
2016-08-15 19:41:47 +03:00
Alexander Udalov bd88b0941d Fix incorrect unsupported error on synthetic extension call on LHS of ::
#KT-13271 Fixed
2016-08-15 19:41:47 +03:00
Alexander Udalov 9dc7e90e12 Disable some reflection tests on Android 2016-08-15 19:41:47 +03:00
Alexander Udalov 4e8f88d580 Refactor comments in SpecialFiles 2016-08-15 19:41:47 +03:00
Alexander Udalov 5b1ee13db8 Make KClasses for primitives equal to KClasses for wrapper types
Both primitive int and wrapper type java.lang.Integer are represented by the
single type kotlin.Int in Kotlin, so inequality between the corresponding
KClasses was confusing here. To keep the old behavior, one may call 'k1.java ==
k2.java' instead of `k1 == k2`

 #KT-13462 Fixed
2016-08-15 19:41:47 +03:00
Alexander Udalov 3efa738bc0 Fix NPE on .companionObjectInstance for built-in classes
#KT-13370 Fixed
2016-08-15 19:41:47 +03:00
Alexander Udalov 611899e9d3 Minor, make CompanionObjectMapping a singleton 2016-08-15 19:41:47 +03:00
Stanislav Erokhin 85a951db52 Fixed exception AssertionError: Illegal resolved call to variable with invoke
#KT-13330 Fixed
#KT-13349 Fixed
2016-08-15 19:24:17 +03:00
Kirill Rakhman 926deebff5 Format spaces around !is and !in (KT-13314)
#KT-13314 Fixed
2016-08-15 16:21:01 +03:00
Mikhail Glukhikh b53cb91e88 Do not suggest "Replace infix with safe call" inside conditions or binary / unary expressions #KT-13328 Fixed 2016-08-15 15:42:27 +03:00
shiraji 42969271ab Fix problem with appending literal to variable omitting braces #KT-13336 Fixed 2016-08-15 15:13:40 +03:00
Kirill 223fd9fad0 Implement intentions to add/remove braces to/from when entries #KT-12043 Fixed 2016-08-15 14:13:13 +03:00
Kirill Rakhman d68a681db5 Highlight use of toString() inside string interpolation as redundant #KT-10731 Fixed 2016-08-15 13:28:47 +03:00
Mikhail Glukhikh 52dacd1d49 KT-13430 related: add non-null assertion works also for UNSAFE_INFIX_CALL 2016-08-12 17:43:31 +03:00
Mikhail Glukhikh cf2d575eec Add non-null assertion: correct handling of unary expression unsafe calls #KT-13430 Fixed 2016-08-12 17:43:26 +03:00
Mikhail Glukhikh 13975778c5 Unused symbol: handling of import as alias not only for objects / enums #KT-11933 Fixed 2016-08-12 17:42:33 +03:00
Mikhail Glukhikh e01e08402c Minor: convert to expression body is forbidden also for nested non-exhaustive whens 2016-08-12 17:41:33 +03:00
Mikhail Glukhikh 6a6c67dd5f Convert to expression body is forbidden for if without else #KT-12951 Fixed 2016-08-12 17:41:28 +03:00
Mikhail Glukhikh 1c5c6506ce Report of UNINITIALIZED_ENUM_COMPANION also for implicit receivers #KT-11769 Fixed 2016-08-12 15:06:43 +03:00
Mikhail Glukhikh 04f71bccf2 KT-11769 case with companion function call: error is now detected if companion receiver is stated explicitly 2016-08-12 15:06:38 +03:00
Sergey Mashkov 3c002625c6 KT-13211 KotlinCompileMojoBase could provide better compilation failure info 2016-08-12 13:59:58 +03:00
shiraji 3e58283d7e Add quickfix for adding 'inline' to a function with reified generic #KT-6975 Fixed 2016-08-12 12:15:40 +03:00
Mikhail Glukhikh 6cf90cfc4e Fix for SOE in VarianceChecker #KT-13401 Fixed 2016-08-11 13:04:58 +03:00
Ilya Chernikov 82a53912a9 Add two more options copying from gradle-visible option to compiler-visible ones 2016-08-11 09:11:11 +02:00
Ilya Chernikov 46a7c706e1 Fixes and refactorings after review 2016-08-11 09:11:11 +02:00
Ilya Chernikov 295f2fd40a Fix GeneratedClassloader creation in scripts compilation, fixes test 2016-08-11 09:11:11 +02:00
Ilya Chernikov 9f18ad606a Fix exception on incompatible resolver class - #EA-86599 2016-08-11 09:11:11 +02:00
Ilya Chernikov e99697e3a2 Fix testdata for cli help tests 2016-08-11 09:11:11 +02:00
Ilya Chernikov 4d5b96ab8a Change error loading script template to warning - not to show an exception...
because it is not an exception e.g. in case of using old gradle
2016-08-11 09:11:11 +02:00
Ilya Chernikov 324b4544c6 Generate kotlin metadata for scripts - see TODO 2016-08-11 09:11:11 +02:00
Ilya Chernikov e79d8014fa Add support for script templates settings in gradle plugin, add kts files to source sets 2016-08-11 09:11:11 +02:00
Ilya Chernikov ce6966b486 Add settings to compiler to specify templates to load, add templates provider using the settings 2016-08-11 09:08:40 +02:00
Ilya Chernikov c9441bd7b3 Update template(s) provider interface to support multiple templates, rename it appropriately 2016-08-11 09:08:40 +02:00
Ilya Chernikov 6c0b78fb01 Add script-templates option to compiler options, fix templates and definitions loading in compiler 2016-08-11 09:08:40 +02:00
Alexey Tsvetkov 4702842afd Revert replacing convention with extension
It seems that was wrong
2016-08-10 22:28:21 +03:00
Alexey Tsvetkov 791c7fe6e6 Invalidate jar cache at the end of a Gradle build
#KT-12912 fixed
2016-08-10 22:28:20 +03:00
Alexey Tsvetkov fa0344a1b2 Add simple file modification util for gradle incremental tests 2016-08-10 22:22:54 +03:00
Alexey Tsvetkov aff5dd1691 Refactoring: cleanup gradle plugin 2016-08-10 22:22:50 +03:00
Alexey Tsvetkov 81bc2701fa Refactoring: move util functions to gradleUtils.kt 2016-08-10 22:22:47 +03:00
Alexey Tsvetkov f649ebfdba Refactoring: remove unused ScriptHandler 2016-08-10 22:22:43 +03:00
Alexey Tsvetkov 5f4e56c251 Refactoring: simplify KotlinSourceSet creation 2016-08-10 22:22:40 +03:00