Ilya Gorbunov
0164f9b730
stdlib-common: correct common exception type declarations
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
10be42ddaa
stdlib-common: suppress missing Comparator SAM constructor in JVM
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
d97707d6f7
Add JvmMultifileClass to preserve public API surface
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
23d0e5f2e1
Workarounds to build parts of stdlib as kotlin-runtime and mock runtime
...
Fix source paths of kotlin-stdlib-minimal-for-tests
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
7c74083f09
runtime-jvm: add actual modifiers where required
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
22255a5cc4
stdlib-jvm: move JVM specific sources, add actual modifier where required
...
Update copyright path after moving JVM sources
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
93f7a46ba4
stdlib-jvm: build as multiplatform, move project to jvm subfolder
...
Fix path with stdlib-jvm artifacts for public api test
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
0fb3393ee1
stdlib-js: build as multiplatform
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
69ebb3bfb0
Switch to the new stdlib source generation scheme
...
Remove old generated sources for stdlib-jvm and stdlib-js
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
ae62cd6570
Do not produce original kotlin-stdlib public api dump anymore
...
It was produced from the kotlin-stdlib of 1.0 which was separate from the kotlin-runtime.
The actual dump is in kotlin-stdlib-runtime-merged.txt
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
70236d4824
Build standard library for JVM from a single source set
...
Add explicit imports for kotlin.* and kotlin.text.* to prevent typealiases
conflicting with their aliased types from default imports.
2018-04-12 17:53:00 +03:00
Anton Bannykh
f8c0c54a66
Revert "Clean up test skips after KT-17137"
...
This reverts commit 715d5e9
2018-04-10 20:45:07 +03:00
Mikhael Bogdanov
5f235a8342
Update documentation for @JvmDefault
2018-04-10 16:33:24 +02:00
Alexander Udalov
dd3cf531cf
Disable packing module-info to libraries until Android issue is fixed
...
https://issuetracker.google.com/issues/77587908
#KT-21266 Open
2018-04-05 19:18:05 +02:00
Mikhael Bogdanov
a27d1b7a3b
Update @JvmDefault documentation
2018-04-04 14:55:39 +02:00
Ilya Gorbunov
299d6fa772
Use default compileJava9Java task to build java9 source set
2018-04-03 21:24:34 +02:00
Alexander Udalov
2d41c7d462
Add module-info.java for standard Kotlin libraries
...
Using the new multi-release jar feature, store compiled
module-info.class files into META-INF/versions/9 instead of the artifact
root. Hopefully, this will break fewer tools which do not support
module-info.class files because any sane tool should not do anything
with files in META-INF because before Java 9 that directory only
contained resources.
Upgrade some Maven plugins to newer versions which do not fail on
module-info.class files
#KT-21266 In Progress
2018-04-03 21:22:14 +02:00
Mikhael Bogdanov
89f22e69b4
Relocate @JvmDefault to stdlib module
2018-04-03 19:18:16 +02:00
Mikhael Bogdanov
e885195ee1
Add @JvmDefault annotation
2018-04-03 19:18:08 +02:00
Elifarley C
1b3d539a25
toBigDecimal: Avoid creating new BigDecimal instance for some values
...
Avoid creating new `BigDecimal` instance by calling `BigDecimal.valueOf(this)`, which doesn't create a new instance if the argument falls in the range [0..10].
(there's a `private static final BigDecimal[] zeroThroughTen` cache in BigDecimal.java with 11 BigDecimal instances)
2018-04-02 15:26:49 +03:00
Ilya Gorbunov
d2a235b752
Minor code improvements, add more test cases #KT-11208
...
Compare new readLine with the reference implementation in BufferedReader.
2018-03-30 16:04:22 +03:00
meztihn
12e427b4b5
KT-11208 Remove readLine's new charset parameter
...
It can't be introduced in a patch release.
2018-03-30 16:03:19 +03:00
meztihn
cca7a59bba
KT-11208 Improve readLine's tests readability
2018-03-30 16:03:19 +03:00
meztihn
68cb66ff0e
KT-11208 Remove readLine's lineSeparator parameter
2018-03-30 16:03:19 +03:00
meztihn
f6c1886394
KT-11208 Remove stream buffering
2018-03-30 16:03:19 +03:00
Ilya Gorbunov
f45e3ac7d9
kotlin-stldib-js: do not import experimental sourceset in IDEA
...
Temporary workaround to prevent multiple IDEA modules sharing the same content root error.
2018-03-30 16:03:19 +03:00
Anton Bannykh
7b860eab36
Merge kotlin-experimental into kotlin standard library (KT-23055 fixed)
...
* kotlin-experimental.js has been already merged into kotlin.js
* change library name to kotlin in kotlin-experimental.meta.js in order to produce correct require calls
* concatenate kotlin-experimental.meta.js with kotlin.meta.js
* suppress multiple module declaration warning for such use case
2018-03-26 23:13:28 +03:00
Alexey Tsvetkov
8a82c1618c
Use Plugins DSL in Kotlin Gradle scripts
...
When plugins DSL is used, there is no need to
manually generate typesafe accessors for extensions and
conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
2018-03-26 16:09:29 +03:00
Ilmir Usmanov
bd7ad8c9d5
Raise deprecation level to ERROR of coroutineContext
...
inside kotlin.coroutines.experimental.intrinsics package
#KT-22400
2018-03-22 22:12:27 +03:00
Ilya Gorbunov
7a40b4c5f1
Refactor: extract JVM-specific tests into separate files
...
Make KotlinVersion random comparison test running in JS
2018-03-22 17:08:43 +03:00
Ilya Gorbunov
5d13b1681f
Refactor: extract JVM API into separate files
...
Increase visibility to internal for:
- copyToArrayOfAny
- UNINITIALIZED_VALUE
- InitializedLazyImpl
Change file classes to multifile:
- LazyKt
- GroupingKt
- IntrinsicsKt (coroutines)
2018-03-21 18:08:00 +03:00
yukuku
6f6b0baf3b
Fix wrong example on the docs of @PurelyImplements
2018-03-15 18:56:26 +03:00
Anton Bannykh
e377a30929
Use mocha instead of QUnit for debugging stdlib tests in browser
2018-03-15 17:54:17 +03:00
Anton Bannykh
338bde23fc
JS stdlib: run kotlin.test library tests
2018-03-15 17:54:17 +03:00
Anton Bannykh
fd244be9ca
JS: add tests to make sure KT-22019 is fixed
2018-03-14 17:15:16 +03:00
Alexander Udalov
241673c6a1
Add forgotten SinceKotlin to Metadata.pn
...
kotlin.Metadata is internal, so it shouldn't have any visible effect
2018-03-14 12:25:17 +01:00
Yan Zhulanow
6950c256ce
Pill: Replace most of the hardcoded library coordinates with info from Gradle
2018-03-02 03:15:33 +03:00
Egor Neliuba
715d5e90ba
Clean up test skips after KT-17137
...
We need to clean these up since primitive array `is` checks work now
(cherry picked from commit b413e9ef51606c51ebfb21bd7ff646b0fb75470a)
2018-03-01 14:26:13 +03:00
Anton Bannykh
ed80252ba8
JS: fix double compareTo behaviour for NaN and +-0 (KT-22723)
2018-02-28 15:01:58 +03:00
Anton Bannykh
a7d980a890
JS: use Mocha + NodeJs instead of Karma + PhantomJs to run stdlib tests (again)
2018-02-27 16:41:00 +03:00
Ilya Gorbunov
5c0cc5f799
Move deprecated kotlin-runtime and reduced runtime for tests into stdlib
...
Rename mock-runtime-for-test project to kotlin-stdlib:jvm-minimal-for-test
2018-02-26 17:11:11 +03:00
Ilya Gorbunov
c796e5338b
Move runtime.jvm sources to stdlib/jvm/runtime
...
Update path in kotlin-runtime
Update path in kotlin-mock-runtime-for-tests
2018-02-26 17:11:10 +03:00
Ilya Gorbunov
00b23a0fe9
Rearrange kotlin-stdlib-js library sources
...
Move kotlin.* api inside kotlin directory.
Update copyright paths.
2018-02-26 17:11:08 +03:00
gzoritchak
1c1fe10e12
Add samples for take* and drop* extensions (KT-20357)
...
- Add samples for take, takeLast, takeWhile, takeLastWhile
- Add samples for drop, dropLast, dropWhile, dropLastWhile
2018-02-20 19:24:27 +03:00
Denis Zharkov
03567a1c01
Add @SinceKotlin("1.2") to kotlin.suspend
2018-02-20 11:59:39 +03:00
Ilya Gorbunov
2028ec3ce8
Minor improvements in all/any/none samples
...
Extract variables to make assertion expression shorter.
2018-02-19 18:44:28 +03:00
Yuta Sakata
4926b5a4c0
Add samples for any, all and none
...
Rewrite samples to make them working on sample generator
Move location of the class that contains samples of Aggregates.kt
2018-02-19 18:44:28 +03:00
Ilya Gorbunov
6d035f1d28
Fix unresolved references to SortedSet in docs
2018-02-19 15:25:03 +03:00
gzoritchak
f790635b30
Add samples for joinTo
...
KT-20357
2018-02-18 20:12:05 +03:00
gzoritchak
40e3159463
Add samples for joinToString
...
KT-20357
2018-02-18 20:12:05 +03:00