Yahor Berdnikau
73a757c105
[repo] Migrate Groovy build scripts to use 'publish()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
d7fc4a1d27
[repo] Migrate Groovy build scripts to use 'sourcesJar()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
6d5f1c84a7
[repo] Migrate Groovy build scripts to use 'javadocJar()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
5de2b5aeb4
[repo] Migrate Groovy build scripts to use 'kotlinStdlib()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Artem Kobzar
9ad5910de9
[K/JS] Remove isObject check from runtime ^KT-57926 Fixed
2023-07-03 13:19:43 +00:00
Abduqodiri Qurbonzoda
209c916a7e
OptIn ExperimentalNativeApi
2023-06-30 15:27:09 +00:00
Abduqodiri Qurbonzoda
f665388704
Advance ExperimentalNativeApi opt-in requirement level to ERROR #KT-57838
...
As a part of efforts to stabilize Native stdlib.
2023-06-30 15:27:08 +00:00
Abduqodiri Qurbonzoda
00abbc5cfe
Advance ObsoleteNativeApi opt-in requirement level to ERROR #KT-57088
...
As a part of efforts to stabilize Native stdlib.
2023-06-30 15:27:08 +00:00
Ilya Goncharov
b0b266b73d
[JS] Fix test of Ir Stdlib api
2023-06-29 14:25:45 +00:00
Vsevolod Tolstopyatov
37c2c862d8
KT-53154 enumEntries experimental intrinsic stub
...
Provide an inefficient default implementation and make it "@PublishedApi internal" so it can be safely merged as is.
Intrinsics will be added later in follow-up PRs, and then the implementation will be adjusted accordingly
Merge-request: KT-MR-10843
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2023-06-28 20:25:11 +00:00
Abduqodiri Qurbonzoda
bf1c9774aa
Fix the ConcurrentModification test that fails in jdk9+
...
Modification registration seems to changed in Java 9. Now if the asked
capacity in `ensureCapacity` function is less than current capacity,
no modification is registered.
2023-06-28 19:00:46 +00:00
cristiangarcia
650b00e1b2
Improve DexMethodCount task
...
Use lazy api to set the file and avoid configuring Jar tasks
2023-06-28 07:48:20 +00:00
Bogdan Mukvich
a9d0ff83cf
Add SBOM publishing for kotlin wasm libraries
...
^KTI-1273
2023-06-27 09:02:18 +00:00
Ilya Gorbunov
39e9996940
Rename js/annotations.kt to avoid duplicates in sources
...
The conflicting one is Annotations.kt from builtins that are merged together with js stdlib sources, thus leading to two files with the same name differing only by case.
2023-06-26 18:24:34 +00:00
Artem Kobzar
89507c1b82
[K/JS] Remove dead branches for jsIsType
2023-06-26 14:00:09 +00:00
Alexander.Likhachev
cb087b7def
[Build] Bump gradle-node-plugin version to 5.0.0
...
This change is required to fix a configuration cache problem revealed after migration to Gradle 8.1
2023-06-26 10:36:25 +00:00
Alexander Udalov
4db2bc28f2
Minor, suppress unchecked cast warning
2023-06-22 18:55:56 +00:00
Alexander Udalov
ab195b68a5
Build: remove explicit enabling of RangeUntilOperator
...
This feature is enabled by default since 1.8. Using the `-XXLanguage`
compiler argument leads to big warnings which are distracting during the
build.
2023-06-22 18:55:56 +00:00
Artem Kobzar
64158a8a2f
[K/JS] Add file-to-file compilation ^KT-6168 Fixed
2023-06-22 18:23:45 +00:00
Alexander.Likhachev
a93c49baf1
[Build] Fix a bunch of buildscript compilation warnings
...
#KTI-1221 Fixed
2023-06-22 15:16:08 +00:00
Vsevolod Tolstopyatov
175cf5e833
KT-53327 replace Enum.values() with Enum.entries in CharCategory
...
Also, replace it in stdlib tests where appropriate and disable already unsupported legacy JS tests
^KT-53327 fixed
Co-authored-by: Artem Kobzar <Artem.Kobzar@jetbrains.com >
Merge-request: KT-MR-10632
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2023-06-21 14:40:16 +00:00
Abduqodiri Qurbonzoda
af1630e270
[K/N] Catch concurrent modifications of HashMap
...
As a part of efforts to stabilize Native stdlib.
2023-06-20 18:35:39 +00:00
Abduqodiri Qurbonzoda
9d8d9d000f
[K/N] Catch concurrent modifications of ArrayList
...
As a part of efforts to stabilize Native stdlib.
2023-06-20 18:35:39 +00:00
Artem Kobzar
c53b49d7fa
[K/Wasm] Remove custom equals because this kind of equality is lowered in duration of the compilation ^KT-58126 Fixed
2023-06-20 17:36:01 +00:00
Abduqodiri Qurbonzoda
1be0e3f70e
Document that arrayOfNulls throws RuntimeException on negative size
2023-06-20 16:31:59 +00:00
Abduqodiri Qurbonzoda
ffcc7dfca0
[WASM] Document Array types
2023-06-20 16:31:59 +00:00
Abduqodiri Qurbonzoda
9f16daac02
[WASM] Throw IllegalArgumentException on negative array size
2023-06-20 16:31:59 +00:00
Artem Kobzar
039b5fca7a
[K/JS] Use declared upper-bound types for parameters inside inlined functions body, instead of the provided types
2023-06-20 12:01:28 +00:00
Abduqodiri Qurbonzoda
e802ee05a7
[K/N] Do not override equals/hashCode for AbstractMutableMap.values collection
2023-06-19 11:41:10 +00:00
Abduqodiri Qurbonzoda
6015e12db8
[K/N] Remove redundant AbstractMutableMap.SimpleEntry
2023-06-19 11:41:10 +00:00
Abduqodiri Qurbonzoda
3be613ced8
[K/N] Use iterator in AbstractMutableList.indexOf/lastIndexOf
...
Instead of access by index. To avoid performance issues
when the subclass `get(index)` has non-constant time complexity.
It also aligns behavior with JVM.
2023-06-19 11:41:10 +00:00
Abduqodiri Qurbonzoda
60cafc6623
Document the exceptions Iterator throws
2023-06-19 11:41:10 +00:00
Abduqodiri Qurbonzoda
4ae19b2b44
[K/N] Deprecate SharedImmutable annotation #KT-57837
...
As a part of efforts to stabilize Native stdlib.
2023-06-19 11:35:32 +00:00
Abduqodiri Qurbonzoda
91f0c3c342
Clarify copyToRecursively doc about symlinks #SDP-1816
...
This MR is the result of the security audit that was conducted for Path recursive functions:
https://youtrack.jetbrains.com/issue/SDP-1816/Security-issues-of-Path-recursive-functions-in-StdLib#focus=Comments-27-7269144.0-0
Eliminates confusions regarding symbolic links.
Merge-request: KT-MR-10245
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-06-16 22:40:56 +00:00
Abduqodiri Qurbonzoda
295fdc36ce
Enum.valueOf throws inconsistent exception across multiple platforms #KT-35116
2023-06-16 22:18:20 +00:00
Abduqodiri Qurbonzoda
193aa0f935
Align the Boolean.hashCode() value across platforms
...
Boolean.hashCode() should return 1231/1237 for true/false correspondingly.
As a part of efforts to stabilize Native stdlib.
2023-06-14 08:19:46 +00:00
Pavel Mikhailovskii
fc7af2c9e0
KT-58720 Generate full InnerClass attributes for the standard library; deprecate -Xuse-old-innerclasses-logic
2023-06-09 11:31:17 +00:00
Abduqodiri Qurbonzoda
830c78773c
Align behavoir of collection constructors across platforms #KT-59192
...
The initialCapacity should be non-negative and loadFactor should be positive.
As a part of efforts to stabilize Native stdlib.
2023-06-08 12:41:40 +00:00
Abduqodiri Qurbonzoda
0bef1533e2
Improve documentation of collection constructors #KT-59192
2023-06-08 12:41:40 +00:00
Abduqodiri Qurbonzoda
3917ec94ab
[K/N] Use AbstractList.checkIndex() functions instead of custom check functions
2023-06-06 18:11:57 +00:00
Abduqodiri Qurbonzoda
89d1cfe05b
[K/N] ArrayList.ensureCapacity() should ignore negative arguments
2023-06-06 18:11:57 +00:00
Abduqodiri Qurbonzoda
ae394caf42
[K/N] Throw OutOfMemoryError when StringBuilder overflows
2023-06-06 18:11:57 +00:00
Abduqodiri Qurbonzoda
af7965d996
[K/N] Use AbstractList.newCapacity in HashMap.ensureCapacity
2023-06-06 18:11:57 +00:00
Abduqodiri Qurbonzoda
2ef50f8c34
Move ArrayDeque.newCapacity to AbstractList
2023-06-06 18:11:57 +00:00
Abduqodiri Qurbonzoda
d8cfc79d92
[K/N] Fix StringBuilder.setRange capacity expansion
2023-06-06 18:11:57 +00:00
Abduqodiri Qurbonzoda
21636efe38
[K/N] Small refactoring of StringBuilder
2023-06-06 18:11:56 +00:00
cristiangarcia
46d113605b
Adopt configuration-avoidance where possible
...
Before this change `./gradlew help` (with native enabled)
Created immediately: 1322
Created during configuration: 1541
after this change:
Created immediately: 596
Created during configuration: 1509
To know more about configuration avoidance: https://docs.gradle.org/current/userguide/task_configuration_avoidance.html
2023-06-06 14:27:42 +00:00
Bogdan Mukvich
303b01b89b
Add SBOM configuration for all published artifacts by default
2023-06-06 13:27:26 +00:00
Vyacheslav Gerasimov
e0a477f16d
Build: Refactor sbom configuration & wire it with main publication
2023-06-06 13:27:25 +00:00
Bogdan Mukvich
18f52832f5
Configure SBOM maven publishing for stdlib
2023-06-06 13:27:25 +00:00