Commit Graph

49858 Commits

Author SHA1 Message Date
Yan Zhulanow 2cb2141e07 Kapt: Do not treat initially empty configurations specially (KT-27404) 2018-10-24 20:12:39 +03:00
Yan Zhulanow 6e6a036f98 Kapt: Improve check for the current JDK version (KT-27188) 2018-10-24 20:12:38 +03:00
Yan Zhulanow 1f6dbc74da Kapt: Restore constant identifiers for field annotations (KT-27334)
The old behavior broke after the refactoring of annotations with use-site targets.
2018-10-24 20:12:37 +03:00
Yan Zhulanow 0ae5d1c08f Kapt: Log annotation processor initialization time 2018-10-24 20:12:36 +03:00
Yan Zhulanow 6d017f07ad Kapt: Support androidx.annotation.RecentlyNullable annotations (KT-26725) 2018-10-24 20:12:35 +03:00
Yan Zhulanow ac1dd59472 Kapt: Fix anonymous type transformer, do not use ClassDescriptor.defaultType as a replacement (KT-27119) 2018-10-24 20:12:34 +03:00
Yan Zhulanow 39863edd0e Kapt: Use correct type mapping mode while mapping super types (KT-27126) 2018-10-24 20:12:32 +03:00
Yan Zhulanow f6bf35c1f5 Kapt: Fix error type correction for super class constructor calls 2018-10-24 20:12:31 +03:00
Yan Zhulanow ba53ba37b0 Replace bunch copies for some of build.gradle.kts files with a DSL 2018-10-24 20:12:30 +03:00
Yan Zhulanow 81cfc3e39f Kapt: Support symlinked Java source files (KT-26817) 2018-10-24 20:12:29 +03:00
Yan Zhulanow 65a1dd9350 Minor: Add a package to JavaKaptContextTest, make it a TestCase 2018-10-24 20:12:28 +03:00
Yan Zhulanow f36447aab8 Remove usage of deprecated ConcurrentWeakFactoryMap in debugger (KT-25667) 2018-10-24 20:12:27 +03:00
Yan Zhulanow e3f6d183fa Check for dumb mode before evaluation (KT-24959) 2018-10-24 20:12:26 +03:00
Yan Zhulanow b8c756a4e8 Debugger: Remove false-positive assertion (KT-24343) 2018-10-24 20:12:25 +03:00
Yan Zhulanow 713dc589e0 Debugger: Allow to evaluate private properties from companion objects (KT-26795) 2018-10-24 20:12:24 +03:00
Yan Zhulanow fee0cfcecb Debugger: Add a stepping test for inline classes (KT-26798) 2018-10-24 20:12:23 +03:00
Alexander Udalov 1ee1d15b91 Support annotations on property accessors in JS/common metadata
#KT-14529 Fixed
2018-10-24 18:17:12 +02:00
Alexander Udalov d1e1e274d9 Render property accessor annotations in .txt test data
If property accessor rendering is disabled in a test, render annotations
on accessors as use-site-targeted, as was done with
`@setparam:`-annotations. Otherwise they were lost
2018-10-24 18:17:12 +02:00
Mikhael Bogdanov e326b8755f Fix method inlining problems in 191 branch related to asm upgrade to 7.0
'visitAnnotableParameterCount' is propagating copying node state to
    destination one that corrupts its state
2018-10-24 17:07:10 +02:00
Alexey Tsvetkov bf39e1d146 Make google maven repo take precedence over jcenter in Gradle tests
'com.android.tools.build:aapt2-proto:0.3.1' stopped resolving from jcenter
2018-10-24 15:54:04 +03:00
Alexander Udalov 9394caf9cf Use access to backing field on overridden property with private setter
#KT-27772 Fixed
2018-10-24 12:53:50 +02:00
Nikolay Krasko 8e1bff0e37 Additional diagnostic for internal state during jvm codegen 2018-10-24 13:04:49 +03:00
Nikolay Krasko 5fdb0df3fa Fix backend for working with asm-7.0 beta (KT-27540, KT-27774)
Reset labels infos before moving instructions, otherwise list of
instructions is corrupted.

For more information:

https://gitlab.ow2.org/asm/asm/issues/317858
https://gitlab.ow2.org/asm/asm/commit/dc8acb48450bbb4aa461fb103916378cd226a6f6#5e3df072b61d74b2fd71d97a1d99188ccc46c1da_235_233

 #KT-27540 Fixed
2018-10-24 13:04:48 +03:00
Nikolay Krasko 3b5dfba73a 191: Add com.intellij.util.ui.UIUtilities to proguard exception 2018-10-24 13:04:45 +03:00
Nikolay Krasko 77be4a9e85 Remove warnings in createByPattern.kt 2018-10-24 13:04:43 +03:00
Andrey Uskov 4024d0c484 Make JDK 9 mandatory back
#KT-26413 Fixed
2018-10-24 12:31:13 +03:00
Dmitry Savvinov 339c55505a Refactor logic of reporting errors in contracts
Rename 'doCheckContract' into 'parseContractAndReportErrors',
emphasizing that it works with definitely call to 'contract' from
stdlib.
In particular, it means that it should either return non-null
value or report some errors.

Note that this commit doesn't change behavior of this code (modulo cases
when something in 'parseContract' throws exception), but just refactors
the code to be more clear and easy to reason about.
2018-10-24 12:03:04 +03:00
Dmitry Savvinov 3dd4e9f04f Minor: use try-finally for setting LazyContractProvider
It conveys meaning of the code more celearly (because that's what we
want to do here: set LazyContractProvider no matter how code finished),
and also defends from several corner-cases (like, make sure that we
properly set LazyContractProvider even if doCheckContract has throw an
exception)
2018-10-24 12:03:04 +03:00
Mikhail Zarechenskiy bae3ff5211 Don't try parsing contract-like function not from kotlin package
Returning `null` from `doCheckContract` functions means that we
have failed to parse contract function and should report an error, but
if the called function isn't true contract, we shouldn't evaluate that code
at all.

 #KT-27758 Fixed
2018-10-24 12:03:04 +03:00
Mikhael Bogdanov d82ca9ccd0 Rearrange repositories in android build script 2018-10-24 09:45:39 +02:00
Ilya Gorbunov c8caed5b6f Duplicate MutableList.add docs in AbstractMutableList.add
Because the documentation inheritance doesn't work as desired here.
2018-10-23 22:21:25 +03:00
Ilya Gorbunov efa7bf0c37 Unify kotlin.test docs 2018-10-23 22:21:25 +03:00
Piotr Krzeminski 3c46bb9d03 kotlin-test: Add documentation for value returned by assertFailsWith
A follow-up after https://youtrack.jetbrains.com/issue/KT-27418

Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com>
2018-10-23 22:21:25 +03:00
Mikhail Levchenko 16918fa25e Remove confusing samples from SequenceBuilder docs
Problem:
SequenceBuilder is experimental and deprecated in 1.3 in favor of
SequenceScope. Usage of experimental package is discouraged in 1.3.
The documentation for SequenceBuilder refers to SequnceScope sample code,
which might be confusing.

Solution:
Remove samples for SequenceBuilder completely to discourage its usage,
but provide a note about it having deprecated in favor of SequenceScope.
Provide links to modern version of outdated SequenceBuilder.
2018-10-23 22:21:25 +03:00
Andrey Uskov af5281e7c7 Fixed import in IDEA if required environment variables are not set.
#KT-26413 Fixed
2018-10-23 20:52:15 +03:00
Mikhael Bogdanov d77175b7e4 Minor. Reformat 2018-10-23 16:27:53 +02:00
Mikhael Bogdanov 0288a1bd2d Restructure android test module, update dependencies 2018-10-23 16:27:52 +02:00
Mikhael Bogdanov 78fe9d8eee Move 'compileKotlinAgainstKotlin' java 8 tests to common 2018-10-23 16:27:51 +02:00
Mikhael Bogdanov c6b4bae81f Move 'bytecodeText' java 8 tests to common 2018-10-23 16:27:50 +02:00
Mikhael Bogdanov 4284c19a16 Move 'writeFlags' java 8 tests to common 2018-10-23 16:27:50 +02:00
Yan Zhulanow 37c38b6e43 Add missing bunch for testResourceBundle (fixes flaky debugger tests)
See also e1f746f23c.
2018-10-23 17:12:12 +03:00
Sergey Igushkin 5ee6a6037d (minor) Move the unused source sets check to the taskGraph.whenReady
This is a workaround for Android compilations being configured in
an afterEvaluate callback.

Issue #KT-26963 Fixed
2018-10-23 16:15:05 +03:00
Denis Zharkov 834de23f39 Do not set version to buildNumber
They might be different in case of releases:
1.3.0 != 1.3.0-release-N
2018-10-23 15:39:01 +03:00
Denis Zharkov cbbc0eae8c Use https when publishing to sonatype
Otherwise, NoHttpResponseException may happen sporadically
2018-10-23 15:39:01 +03:00
Ilya Matveev ca152fed12 Update Kotlin/Native: 1.0.0 2018-10-23 18:30:50 +07:00
Mikhail Glukhikh 7a589d69da Fix 183 build 2018-10-23 14:16:19 +03:00
Alexander Podkhalyuzin 16d3bf7716 Fixed KotlinConfidenceTests 2018-10-23 13:57:42 +03:00
Nikita Katkov d66619b1c2 BlockingMethodInNonBlockingContextInspection: resolve mode switched to partial & coroutine "released" status check 2018-10-23 13:18:32 +03:00
Toshiaki Kameyama 90529dfda4 "Remove redundant receiver" quick fix: Remove unused type parameter #KT-23512 2018-10-23 13:02:44 +03:00
Toshiaki Kameyama 0cd25353bc Lift assignment: do not report in cases where argument are of different types #KT-21520 Fixed 2018-10-23 12:48:03 +03:00