Denis Zharkov
c12bfe312a
Make experimental/release COROUTINE_SUSPENDED reference the same instance
...
It's necessary when mixing experimental/release coroutines together
#KT-25683 In Progress
2018-08-30 14:57:44 +03:00
Ilya Gorbunov
357c5be4fb
Make sure index and count do not overflow for long sequences
...
Throw an exception immediately before an overflow becomes observable.
Place check to prevent negative index from indexOf, indexOfFirst.
Do not insert overflow checks for arrays, lists, maps and char sequences.
#KT-16097
2018-08-30 14:57:05 +03:00
Alexander Udalov
ceb909d261
Inherit KType from KAnnotatedElement, implement KType.annotations
...
#KT-16795 Fixed
2018-08-30 14:56:57 +03:00
Alexey Tsvetkov
e4bbe2d5e2
Fix coroutines default value checks in KotlinProjectIT
2018-08-30 14:56:55 +03:00
Ilya Gorbunov
a0b0994651
Make unsigned array constructor-like functions inline-only
2018-08-30 14:56:53 +03:00
Ilya Gorbunov
f9479d12f9
Add missing unsigned array constructors (from size)
...
#KT-25961 Fixed
2018-08-30 14:56:51 +03:00
Ilya Gorbunov
282cf73aff
Update public API: inline classes codegen changes
2018-08-30 14:56:48 +03:00
Alexander Udalov
b55fc818d1
Support JvmName on annotation constructor parameters
...
#KT-25372 Fixed
2018-08-30 14:56:42 +03:00
Alexey Tsvetkov
9df949c039
Remove non default coroutines options from Gradle tests
...
They don't have any effect anyway
2018-08-30 14:56:38 +03:00
Alexey Tsvetkov
a3d78f769b
Add Coroutines.DEFAULT to Gradle plugin
...
See CommonCompilerArguments changes
2018-08-30 14:56:36 +03:00
Ilya Gorbunov
85af1f5d38
Improve argument validation in copyOfRange
...
Make copyOfRange implementation non-inline in order not to expose
copyOfRangeToIndexCheck implementation detail.
It will be possible to make the function non-inline itself later without
that JvmName trick, when apiVersion 1.2 support is discontinued.
#KT-19489
2018-08-30 14:56:29 +03:00
Ilya Gorbunov
58a3b64baf
Add argument validation in copyOf(newSize) in JS
...
#KT-19489
2018-08-30 14:56:27 +03:00
Ilya Gorbunov
93540e476e
stdlib-gen: tweak to build with 1.3 compiler, turn off ReleaseCoroutines
2018-08-30 14:56:25 +03:00
Ilya Gorbunov
17e04b2665
Deprecate readBytes with estimatedSize parameter, add overload without parameters
...
Add a test for readBytes.
#KT-19305 Fixed
2018-08-30 14:56:23 +03:00
Alexander Udalov
cbc92bc9a1
Add KClass.sealedSubclasses to get direct subclasses of sealed class
...
#KT-14657 Fixed
2018-08-30 14:56:21 +03:00
Ilya Gorbunov
1792a77a47
Generate hashCode and equals for unsigned types
2018-08-30 14:52:51 +03:00
Alexander Udalov
082da82f3e
Introduce kotlin.jvm.functions.FunctionN
...
#KT-13764
2018-08-30 14:52:36 +03:00
Alexander Udalov
e35ebff4e1
Move superinterface to the only subclass of FunctionBase
2018-08-30 14:51:17 +03:00
Ilya Gorbunov
07a0cb91d4
Introduce Char.MIN_VALUE and MAX_VALUE constants (KT-21763)
...
Add Char.MIN_VALUE and Char.MAX_VALUE implementations in primitive companion objects.
Update builtins test data and public API.
Co-authored-by: Oskar Drozda <themppsplx@gmail.com >
2018-08-30 14:51:14 +03:00
Ilya Gorbunov
0c50014e7a
Introduce SIZE_BYTES and SIZE_BITS constants for all integral types
...
#KT-8247 Fixed
2018-08-30 14:51:10 +03:00
Kerooker
af5f78076c
KT-7922 Added Boolean Companion Object
2018-08-30 14:51:04 +03:00
Ilya Gorbunov
fa33b1b5a9
Random docs and API refinement
...
KT-17261
2018-08-30 14:50:40 +03:00
Ilya Gorbunov
7e4528e217
Common shuffle/shuffled with the specified random source
...
KT-17261, KT-9010
2018-08-30 14:50:38 +03:00
Ilya Gorbunov
cc031e3a40
Provide common Random API
...
#KT-17261
2018-08-30 14:50:36 +03:00
Ilya Gorbunov
bbee18b84d
Introduce StringBuilder.clear() extension
...
#KT-18910 Fixed
2018-08-30 14:50:29 +03:00
Alexander Udalov
f423403167
Make kotlin.Metadata public
...
Prohibit explicit usage of `@Metadata` to prevent possible
AnnotationFormatError at runtime
#KT-23602 Fixed
2018-08-30 14:50:25 +03:00
Ilya Gorbunov
8102e512d3
For bootstrapping on 1.3-M1: compile parts that can be used in .gradle.kts scripts with 1.2 language version
2018-08-30 14:50:23 +03:00
Ilya Gorbunov
b160561795
Include new coroutines and unsigned classes into stdlib
...
Fix clashing module name in common coroutines sourceset
2018-08-30 14:50:21 +03:00
Ilya Gorbunov
4c6c0aa279
Update public API test due to ProperVisibilityForCompanionObjectInstanceField
2018-08-30 14:50:19 +03:00
Ilya Gorbunov
76e581fe4f
Temporarily turn off ReleaseCoroutines feature
2018-08-30 14:50:16 +03:00
Ilya Gorbunov
d4a195c757
Advance maven project versions to 1.3-SNAPSHOT
2018-08-30 14:49:30 +03:00
Ilya Gorbunov
0f5f90cf52
Advance project version to 1.3-SNAPSHOT
...
Set LATEST_STABLE language version and current version of stdlib to 1.3, set IS_PRE_RELEASE
Remove "EXPERIMENTAL" from 1.3 version description in tests and gradle options
2018-08-30 14:49:27 +03:00
Ilya Gorbunov
36936d252c
Support multiple expectedBy dependencies when building -Xcommon-sources list
...
`addCommonSourceSetToPlatformSourceSet` may be called multiple times during
a platform project configuration.
2018-08-28 19:13:36 +03:00
Ivan Gavrilovic
48784fd95e
Use new API for getting the raw Android resources
...
A new method has been added in the Android Gradle
plugin 3.3.0. This commit switches from ussing the
MergeResources task, and uses getAllRawAndroidResources
API instead.
Test: manually verified
2018-08-24 17:28:40 +03:00
Yan Zhulanow
c83581e6b8
Kapt: Strict mode. Issue an error if the converter fails to process a class (#KT-25518, #KT-24272)
2018-08-24 04:28:11 +05:00
Yan Zhulanow
ef210d7122
Kapt: Do not write references to anonymous classes to stubs & metadata (#KT-25374)
2018-08-24 04:28:09 +05:00
Alexey Tsvetkov
32d910320f
Annotate KotlinNativeCompile#outputFile
2018-08-21 23:49:42 +03:00
Sergey Igushkin
ef85fe7ab2
Always apply the java-base plugin from the new MPP plugin
...
This fixes misconfigured test tasks and the `Usage` attribute
compatibility rule missing that is added by `java-base`.
Issue #KT-26301 Fixed
2018-08-21 22:54:50 +03:00
Sergey Igushkin
2040cdde4b
Add missing Gradle task input path sensitivity
...
Fix after the commit 0f003802f
2018-08-21 22:54:49 +03:00
Sergey Igushkin
674e464230
Fix Kotlin source directories not added into the Java source set srcDirs
...
Before the new MPP, Kotlin source directories were added to the Java
source set's `allJava` and `allSource` by all of the Kotlin plugins,
including common and JS ones. As it turned out, this was required by the
IntelliJ Gradle import.
* Make all `KotlinSourceSetProcessor`s (not just JVM) check whether a
compilation has a Java source set and add the Kotlin source
directories to `allSource` and `allJava`
* Also disable the unclear resource `exclude` for the Java source set
that filters Kotlin source directories out of the resources
Issue #KT-26020 Fixed
Issue #KT-26267 Fixed
2018-08-21 18:05:52 +03:00
Alexander Udalov
0f003802fe
Introduce -Xcommon-sources and pass it correctly from build tool plugins
...
#KT-25196 In Progress
2018-08-21 12:49:10 +02:00
Alexey Tsvetkov
272f9b8a10
Recompile all subclasses of changed classes
...
Previously inter-project IC recompiled only direct subclasses
of changed classes
#KT-25455 fixed
2018-08-21 04:32:32 +03:00
Alexey Tsvetkov
73f7c2ef3c
Use file trees in InspectClassesForMultiModuleIC
...
#KT-26208
2018-08-21 04:32:32 +03:00
Alexey Tsvetkov
41a47ea50f
Minor: remove redundant default argument 'weakTesting = false'
2018-08-21 04:32:31 +03:00
Alexey Tsvetkov
c9a62e078a
Minor: remove GradleICReporter
2018-08-21 04:32:31 +03:00
Alexey Tsvetkov
30f3622b27
Implement inter-project JS IC with Gradle
...
#KT-25025 fixed
2018-08-21 04:32:31 +03:00
Alexey Tsvetkov
02af631e14
Minor: move tests for incremental compilation of Kotlin when Java changes
2018-08-21 03:53:57 +03:00
Alexey Tsvetkov
638c1eadff
Avoid rebuild when '--verbose' is used in Gradle
...
#KT-23472 fixed
2018-08-20 23:41:11 +03:00
Alexey Tsvetkov
d09629972a
Use same system property to avoid deleting module file in JPS and Gradle
2018-08-20 23:41:11 +03:00
ilmat192
2251440f04
Basic native support in kotlin-multiplatform ( #1811 )
...
* Add dependency on KN shared in gradle-plugin
* Basic support for Kotlin/Native:
* Target presets
* Compilation into a klib
* Compilation into native binraies: framework and executable
* Basic dependencies between projects
* No jars in native publications
* Replace '-' with '_' in framework names
* Escape quotes in native command lines on Windows
* Move targets from Kotlin/Native repo
* Download KN compiler using Gradle's mechanisms
* Support source set dependencies in native
2018-08-19 20:45:31 +07:00