Ilya Gorbunov
609355a311
Provide kotlin.AssertionError in kotlin-stdlib-common
...
Remove related workarounds from kotlin-test-common
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
5c0110850d
Preprocess and build JS library tests
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
0e1fc0cff2
Rewrite preprocessor task in gradle without ant
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
49ce11f363
Build and package kotlin-stdlib-js with gradle
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
122e63d072
Build kotlin-stdlib-js with gradle
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
846b74885c
Remove some configuration duplication by using 'tasks.withType()'
...
Setup common options of java and kotlin compiler tasks.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
d25b07fe23
Exclude additional test source sets when importing project in IDEA, enable coroutines in stdlib
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
08fa304b6f
Build common standard library headers and kotlin-test (common and jvm) as multiplatform projects.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
780e12f04a
Build stdlib without dependency to kotlin-runtime and kotlin-test.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
d3afc1ba2e
Extract manifest attribute specification to helper function.
...
Specify default jdkHome for all projects.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
5755210498
Tune build options for kotlin-test, kotlin-runtime, kotlin-stdlib, kotlin-stdlib-jre7/8
2017-04-06 20:32:37 +03:00
Ilya Chernikov
35a135cbf6
Add builds for main stdlib, stdlib jre7/8, kotlin.test
2017-04-06 20:32:37 +03:00
Ilya Chernikov
c2c051cfe8
Prepare gradle config for building libs - bootstrap and runtime
...
Use external gradle plugin (1.1-M04) with compiler.jar from dist
Add empty build scripts for other projects that needs to be built with gradle
2017-04-06 20:32:37 +03:00
Alexander Udalov
b5ea6d3e25
Upgrade maven-shade-plugin to 3.0.0
...
A critical bug related to Java 8 bytecode (default/static methods in
interfaces) was fixed in maven-shade-plugin in 3.0.0, which reproduces
for kotlin-compiler-embeddable on Java 9 because the verifier in Java 9
started to check consistency of constant pool references to methods in
interfaces
#KT-17112 Fixed
2017-04-03 18:37:22 +03:00
Anton Bannykh
7d4c26c0c1
JS: fix maven SeleniumTest
2017-03-28 21:23:21 +03:00
Anton Bannykh
9b34e21619
JS: fixed <Type>Array.iterator methods; added -Xtypedarray compiler key
...
The <Type>Array.iterator used to lack next<Type>() method (KT-16626).
The -Xtypedarray compiler key enables translation of primitive arrays
to TypedArrays, and primitive array`is`-checks (KT-15358, KT-14007,
KT-14614, KT-16056).
2017-03-27 23:09:34 +03:00
Alexander Udalov
d615aba4cf
Update KotlinVersion.CURRENT to 1.1.3
2017-03-27 10:48:18 +03:00
Ilya Gorbunov
c98c2d9931
Remove 'nearly_stateless' category, do not mention statefulness for terminal operations.
...
#KT-16994
2017-03-24 19:06:06 +03:00
Ilya Gorbunov
4018db680e
Sequence operation classification regarding their statefulness and laziness.
...
#KT-16994 Fixed
2017-03-24 19:06:06 +03:00
Ilya Gorbunov
3088586ac3
Add runnable samples for trimIndent and trimMargin.
...
#KT-9786 Fixed
2017-03-22 21:54:46 +03:00
Alexander Udalov
7dfa3bea18
Update tools & libraries projects to use JDK 8 when needed
2017-03-21 17:45:53 +03:00
Ilya Gorbunov
87c055cc61
Fix progression iterators to respect the Iterator contract.
...
#KT-16923 Fixed
2017-03-20 20:13:54 +03:00
Ilya Gorbunov
e5a28311bc
Fix infinite sequence being terminated prematurely when being iterated without calling hasNext
...
#KT-16922 Fixed
2017-03-20 20:13:54 +03:00
Mikhail Glukhikh
045a23ae10
Cleanup: apply "Convert lambda to reference"
2017-03-15 17:36:02 +03:00
Ilya Gorbunov
b83b534374
Add missing SinceKotlin to IntStream.toList.
2017-03-07 18:22:11 +03:00
Ilya Gorbunov
61e8848aa2
Add samples for sequence building API.
2017-03-07 13:32:39 +03:00
Ilya Gorbunov
a04e6de047
Add groupingBy and eachCount sample.
2017-03-07 13:31:44 +03:00
Ilya Gorbunov
75ae42121b
Improve sample comments.
...
Improve sample for lastIndex property.
2017-03-07 13:31:44 +03:00
Dmitry Jemerov
322379e6ae
Assorted stdlib KDocs
2017-03-01 16:09:01 +01:00
Alexander Udalov
abbbdb5771
Update KotlinVersion.CURRENT to 1.1.2
2017-02-28 20:24:33 +03:00
Roman Elizarov
266d7c15fe
Documentation for createCoroutine/createCoroutineUnchecked
2017-02-27 16:48:24 +03:00
Ilya Gorbunov
c0c01d6e49
Drop HIDDEN deprecations from kotlin-stdlib.
2017-02-22 17:28:02 +03:00
Ilya Gorbunov
fee676a281
Introduce 'takeUnless' function which is like 'takeIf' but with the predicate inverted.
...
#KT-7858
2017-02-13 16:07:34 +03:00
Ilya Gorbunov
e9f40c41c2
Minor: refactor and rename parameters.
2017-02-08 20:16:10 +03:00
Ilya Gorbunov
31da36bedf
Minor: Add test cases for adding and removing null value to/from set.
...
Fix unused value in removeAll test.
2017-02-08 20:13:22 +03:00
Ilya Gorbunov
fc7b1c8611
KDoc for mutable abstract collections.
...
Document abstract overrides.
2017-02-08 20:13:22 +03:00
Ilya Gorbunov
ef5e53b37b
KDoc for read-only abstract collections
2017-02-08 20:13:22 +03:00
Roman Elizarov
5895c211a1
Fixed corotine context performance by using reference equality for contexts and keys
...
Added documentation explaining that keys are compared by reference
2017-02-07 19:33:46 +03:00
Denis Zharkov
9697196473
Put startCoroutineUninterceptedOrReturn header to common stdlib
2017-02-07 11:08:27 +03:00
Denis Zharkov
4f6a77cf38
Introduce createCoroutineUnchecked intrinsic
...
Also use it for buildSequence implenentation
#KT-16155 Fixed
2017-02-07 11:08:27 +03:00
Roman Elizarov
9a71a20ad6
Docs for startCoroutineUninterceptedOrReturn
2017-02-07 11:07:04 +03:00
Denis Zharkov
230564fb4a
Minor. Get rid of code duplications for resume call wrapping in stdlib
...
Use processBareContinuationResume instead
2017-02-07 11:07:04 +03:00
Denis Zharkov
6dde567be4
Optimize startCoroutine impls, move them to common stdlib
...
Do not wrap initial continuation for startCoroutine in SafeContinuation
This changes leaves only internal declarations and intrinsics as platform
dependent parts of the coroutine library, the rest parts (public API)
is implemented through them in common module
2017-02-07 11:07:04 +03:00
Denis Zharkov
a65d86293b
Improve coroutines library layout
...
- Split CoroutinesLibrary into common and JVM parts
- Get rid of startCoroutine duplications
- Make suspendCoroutine implementation to be platform independent
2017-02-07 11:07:04 +03:00
Denis Zharkov
258ee0db75
Introduce startCoroutineUninterceptedOrReturn coroutine intrinsic
...
#KT-15716 Fixed
2017-02-07 11:07:04 +03:00
Denis Zharkov
29b0b30031
Make createCoroutine return a safe continuation
...
#KT-15718 Fixed
2017-02-07 11:06:50 +03:00
Ilya Gorbunov
af443ac046
Search java version in java.specification.version, prepare to that starting from java 9 it will contain only a single component.
2017-02-03 17:52:13 +03:00
Ilya Gorbunov
33f3106157
Do not use Math in common code.
2017-01-30 19:44:51 +03:00
Ilya Gorbunov
4ac7be9fa5
Retract bitwise operators from builtins for Byte and Short and add them as extensions in kotlin.experimental package in stdlib.
...
#KT-16030
2017-01-30 18:54:59 +03:00
Dmitry Jemerov
8968d5663d
Minor fixes for stdlb kdoc
2017-01-30 16:13:49 +01:00