Abduqodiri Qurbonzoda
876dff6d22
Implement fill extension function for UArrays (KT-28339)
2019-03-08 23:34:33 +03:00
Abduqodiri Qurbonzoda
550c74bb6b
Implement binarySearch method for UArrays (KT-27262)
2019-03-08 23:34:33 +03:00
Roman Elizarov
4f532a7c05
Invoke probeCoroutineResumed on each unroll of the frame from heap
...
Fixes KT-29997
2019-03-07 17:04:11 +03:00
Alexander Udalov
d1e33534db
Implement typeOf intrinsic on JVM
...
#KT-29915 Fixed
2019-03-05 18:16:31 +01:00
Wil
d3ac50f694
Minor: typo fix in Writer.buffered docs
2019-03-01 17:09:27 +03:00
Kevin Peek
565727e302
KT-20357 - Add sample for Regex.findAll()
2019-02-18 21:05:46 +03:00
Vyacheslav Gerasimov
14d9ec9fb2
Build: Use javadocJar helper to specify artifact explicitly
...
Creating javadocJar task for every project produces lots of unnecessary
tasks, some project don't even have code. Jar task without outDir
property set fails idea import with gradle 5.0+
2019-02-18 19:59:36 +03:00
Ilya Gorbunov
5cc2215338
Extend compileOnly configuration from builtins
...
to avoid adding builtins configuration to classpath manually
2019-02-18 19:30:24 +03:00
Ilya Gorbunov
441e7cc15d
Always use singleFile when passing a configuration as a zipTree parameter
2019-02-18 19:30:24 +03:00
Ilya Gorbunov
6bcd112062
Drop obsolete artifact kotlin-runtime
...
Remove suppresses used to compile some parts of stdlib
as a non-multiplatform project.
2019-02-18 19:20:30 +03:00
Ilya Gorbunov
f50820045a
Allow setting seed only once, as it is set from superclass constructor
...
Add tests for Java<->Kotlin Random wrappers.
#KT-29520 Fixed
2019-02-13 00:21:22 +03:00
Ilya Gorbunov
bd2e00ae99
Exclude kotlin.native internal package from modular kotlin-stdlib
...
Otherwise jlink fails to consume this library due to Java keyword in
package name.
#KT-29612
2019-01-31 19:18:55 +03:00
Vyacheslav Gerasimov
0d8c779190
Build: Change builtins serialization task output directory to local
2019-01-21 17:01:43 +03:00
Ilya Gorbunov
0ac85ad715
Document that sorting is stable in each platform
...
#KT-12473 Fixed
2019-01-17 18:38:37 +03:00
Ilya Gorbunov
23950042f6
Clarify how elements of arrays are compared by contentEquals function
...
Add clarification only for the particular group of overloads including
arrays of object and floating point numbers.
#KT-22942 Fixed
2019-01-11 21:04:03 +03:00
Ilya Gorbunov
fcef876c7e
Update copyright in generated stdlib sources
2019-01-11 19:23:12 +03:00
Ilya Gorbunov
30c769c19a
Avoid hitting max argument limit in String(chars)
...
Rewrite CharArray to String conversions to appending chars one by one.
Refine parameter checking in String(chars, offset, length) to adhere to
the common exception contract and document it.
#KT-29003
2019-01-10 23:35:52 +03:00
Mikhael Bogdanov
dfee1787e5
Regenerate builtins
2019-01-02 14:47:48 +01:00
Ilya Gorbunov
7b08f6f8f1
readLine: extend buffer to decode surrogate pairs from utf-8 correctly
...
CharBuffer had capacity to hold 2 chars, which was not enough to append
a surrogate pair when the buffer was not empty.
The buffer was extended and the decoding algorithm rewritten to deal with
a buffer of any length.
#KT-28572 Fixed
2018-12-07 17:42:09 +03:00
Ilmir Usmanov
1336e8f3e3
Take java 9 modules into account in coroutines debug metadata
...
reading
#KT-28237
2018-12-06 16:59:15 +03:00
Ilya Gorbunov
a534bfc32f
Move index overflow tests to another test source set
...
To avoid reporting them as ignored and to make it more easy to run them
when needed.
2018-11-30 07:27:07 +03:00
Ilya Gorbunov
5c94ef229b
Move release coroutines sources into the corresponding stdlib sourcesets
2018-11-28 06:05:03 +03:00
Ilya Gorbunov
ec3692026d
Rename coroutines sourceset to coroutinesExperimental
...
Restore experimental coroutine tests as they were before e22ca022
and compile and run them twice:
- first time with LV=1.2
- second time with LV=1.3
2018-11-28 06:05:02 +03:00
Ilya Gorbunov
673844a059
Move coroutine tests to other stdlib-jvm tests
2018-11-28 06:05:02 +03:00
Ilya Gorbunov
cff32e46bb
Provide expect declarations for String.startsWith/endWith overloads
...
Mark the existing declarations as actual.
2018-11-22 19:17:24 +03:00
Ilya Gorbunov
3d2a3cddff
Stop producing empty kotlin-stdlib-coroutines jar
2018-11-21 03:42:27 +03:00
Ilya Gorbunov
8d0d6d1bf3
Do not mutate Matcher in MatchResult.next()
...
Instead of mutating the matcher create a new one when `next()` is called.
This allows getting named groups from that matcher later.
Add lookbehind in matchSequence test to ensure this change doesn't alter
the existing behavior.
Also fixes #KT-20865
2018-11-16 20:29:38 +03:00
Ilya Gorbunov
c0a7c5cff4
Refactor: use ArrayDeque instead of Stack in FileTreeWalkIterator
...
Cleanup modifiers, replace if with when.
#KT-27251 Fixed
2018-11-16 19:40:40 +03:00
Mikhail Zarechenskiy
45541296ad
Stop building separate jar with unsigned types
...
Now this is not needed as unsigned types were merged into stdlib
2018-11-13 15:47:06 +03:00
Ilya Gorbunov
5f4e8bf4fb
Correct abstract mutable collections declarations in kotlin-stdlib-common
...
Add SinceKotlin(1.3) to the new and substantially changed common declarations
#KT-28091
2018-11-09 13:39:44 +03:00
Ilya Gorbunov
b026b9eb22
Remove +ReleaseCoroutines explicit feature enabling
...
It's enabled by default in Kotlin 1.3
2018-11-09 04:00:26 +03:00
Ilya Gorbunov
a64a76d5fc
Remove experimental coroutines opt-in from build scripts
...
It has no effect in Kotlin 1.3
Only enable coroutines if '-ReleaseCoroutines' is used
2018-11-09 04:00:26 +03:00
Ilya Gorbunov
e49789f819
Build java9 modular artifacts under 'modular' classifier
...
Provide additional modular artifacts as a workaround for KT-21266
Update module-info declarations:
- add new packages
- add exports and opens for internal PlatformImplementations
- remove exports of kotlin.coroutines.experimental.*
#KT-27919 Fixed
2018-11-01 02:27:49 +03:00
Ilya Gorbunov
c3237f416f
Minor: fix doc formatting that caused summary differ in JVM and Native
2018-10-31 17:16:50 +03:00
Ilya Gorbunov
4a10d954fc
Unify and improve Regex docs
2018-10-22 17:14:46 +03:00
Ilya Gorbunov
1ed136a621
kotlin.system docs improvements
...
- Rewrite exitProcess docs in a more common way
- Add [block] parameter reference
2018-10-22 17:14:45 +03:00
Ilya Gorbunov
7fc6f06b70
Correct parameter reference in copyInto docs
2018-10-22 17:14:44 +03:00
Ilya Gorbunov
ebe9d59df7
Unify print/println/readLine docs
2018-10-22 17:14:44 +03:00
Ilya Gorbunov
406bd7c980
Minor: split math sources into regions
2018-10-22 17:14:44 +03:00
Alexander Udalov
f868964e25
Fix most unchecked/deprecation javac warnings in compiler modules
2018-10-17 18:39:49 +02:00
Nikolay Krasko
e3d930a6a1
Build maven-like stdlib sources artifacts during dist
...
This is needed to emulate gradle and maven like projects in plugin tests.
2018-10-12 18:50:04 +03:00
Alexander Udalov
55c8b35eee
Remove unneeded default imports in stdlib and tests
2018-10-01 13:39:02 +02:00
Ilya Gorbunov
3a40e3f041
Move groupingByEachCount together with the new Grouping samples
2018-09-28 19:51:07 +03:00
takattata
f06ea6fddd
KT-20357 Add sample code for Char extensions
2018-09-26 21:58:50 +03:00
Ilya Gorbunov
974837654e
Remove workaround for complex default value in Array.copyInto
...
#KT-22818
2018-09-22 18:24:00 +03:00
Mikhail Zarechenskiy
d7f2eeb6e8
Add BuildInference annotation onto stdlib coroutine builders
2018-09-18 18:55:26 +03:00
Ilya Gorbunov
bf4be12239
Stdlib: review and suppress warnings
2018-09-14 15:32:25 +03:00
Ilya Gorbunov
6786b9ece2
Stdlib tests: cleanup warnings
2018-09-14 15:32:08 +03:00
Ilya Gorbunov
928fe19801
Rename Random.next* parameters: remaining renames
...
- Correct docs after parameter renaming
- Rename parameters in Random inheritors
- Rename local variables
#KT-26596
2018-09-14 15:15:52 +03:00
Ilya Gorbunov
2d356b89b5
Specialize contentDeepEquals/HashCode/ToString for arrays of unsigned types
...
#KT-26388
2018-09-13 06:10:10 +03:00