Alexey Andreev
f668e27daa
jso: properly support JSWrapper generation when java.lang.Object method is called with receiver type of JSObject interface; add optimization for JSObject.toString call.
...
Fix #898
2024-04-01 17:52:28 +02:00
Alexey Andreev
403da28830
classlib: add PrintStream.format
2024-03-21 19:14:45 +01:00
Alexey Andreev
582fcf904c
jso: implement vararg support for method calls
2024-03-12 18:56:19 +01:00
Alexey Andreev
e4452152b7
jso: improve JS class import to Java
2024-02-27 20:16:10 +01:00
Alexey Andreev
c1b3deedff
Support @Inherited
annotation on annotations
...
Fix #883
2024-02-19 20:14:00 +01:00
Alexey Andreev
8db406c603
jso: implement exporting Java methods to JS
...
Fix #785
2024-02-15 21:00:10 +01:00
Bernd Busse
83e3306071
classlib: extend BigInteger implementation with xValueExact() and sqrt()
2024-01-24 21:56:12 +03:00
Bernd Busse
6a398c9b8d
classlib: properly duplicate inner map when cloning TreeMap
2024-01-24 20:46:26 +03:00
Alexey Andreev
4049bc529e
js: introduce setting to choose module type
2023-12-23 16:32:55 +01:00
J. Fronny
953c475b46
classlib: implement float support for String.format ( #873 )
2023-12-07 19:16:38 +01:00
Alexey Andreev
bb837bd020
classlib: replace usage of Math.log10 with custom implementation of int log10 algorithm
...
This fixes BigDecimal support on WASI, which does not support log10 at the moment
2023-12-07 19:14:55 +01:00
Alexey Andreev
a9af6e4f33
JSO: fix wrapping undefined value
2023-12-07 10:02:30 +01:00
J. Fronny
9093ad2f8a
classlib: implement String.chars() ( #872 )
2023-12-05 13:26:39 +01:00
Alexey Andreev
9757213379
JS: fix unwrapping JS objects implemented in Java
2023-11-26 21:57:19 +01:00
Alexey Andreev
a1355bb2f7
classlib: refactor LinkedHashMap
...
I found regression somewhere in LinkedHashMap, when certain operations cause cycle in entry list. Since updated logic was totally unclear to me, I rewrote it from scratch. Also, reverted mechanism to remove entries NOT by keys and used it where necessary to improve performance.
2023-11-23 21:19:28 +01:00
Alexey Andreev
be53236d23
JS: fix wrapping keys for native indexers
2023-11-20 20:33:47 +01:00
Alexey Andreev
7108dfbac7
classlib: fix Math exact operations in C and WebAssembly backends
2023-11-19 20:12:58 +01:00
Alexey Andreev
318d4bff93
Fix boxing/unboxing arguments and return values in method references
2023-11-19 20:12:58 +01:00
Jonathan Coates
4fc43a5597
classlib: fix toLowerCase
/toUpperCase
on Locale.ROOT
( #862 )
2023-11-19 21:45:32 +03:00
Alexey Andreev
fa5fa3df47
Suppress test failing in C
2023-11-19 18:40:48 +01:00
Alexey Andreev
0f84012008
Suppress tests failing in WebAssembly
2023-11-19 18:34:22 +01:00
Alexey Andreev
6e46ae8eec
classlib: get rid of Math polyfill in java.time implementation
2023-11-19 18:32:36 +01:00
Ivan Hetman
cd14ece14c
classlib: add Math methods for no-overflow addition/multiplication ( #859 )
...
Co-authored-by: Jörg Hohwiller <hohwille@users.sourceforge.net>
2023-11-19 20:14:23 +03:00
kenji yoshida
f5f8135a42
Add GitHub Actions CI ( #854 )
2023-11-14 22:03:43 +03:00
Ivan Hetman
5336fc9b3c
classlib: implement String.to__Case with locale parameter in JS BE ( #766 )
2023-11-14 16:57:09 +01:00
Alexey Andreev
f6741b49d6
WASI: update default test runner parameter for newer wasmtime versions
2023-11-09 10:58:34 +01:00
Alexey Andreev
547642503e
Suppress few tests for WebAssembly and C
2023-11-09 10:57:57 +01:00
Alexey Andreev
083ecbdad2
wasm/c: add support for class flags
2023-11-08 21:02:31 +01:00
Alexey Andreev
726702dd7f
wasm: fix programmatic initialization of a class that is statically initialized by optimizer
2023-11-08 19:59:24 +01:00
Jonathan Coates
9469e4c0b4
Widen byte/short to ints in ObjectMethods ( #853 )
2023-11-08 10:28:13 +01:00
Alexey Andreev
5b3c462ab8
c: suppress failing test
2023-11-08 10:04:15 +01:00
Alexey Andreev
6baccbf2bd
Use Gradle toolchains to run tests
2023-11-08 09:28:07 +01:00
Ivan Hetman
bd80c2dfce
classlib: fix parse and other issues in Long and Integer
2023-11-07 20:02:58 +01:00
Alexey Andreev
23ad999bbd
JS: get rid of IOException in SourceWriter and related classes
2023-10-31 20:09:55 +01:00
Ivan Hetman
b006cbb206
classlib: various fixes in Character class ( #831 )
...
* fix bug in `codePointBefore`
* validate arguments in some methods
* support negative `codePointOffset` in `offsetByCodePoints`
* add tests
2023-10-27 17:25:32 +02:00
Ivan Hetman
fc49094d96
classlib: fix support of positive/negative zeros in Float/Double.toHexString ( #830 )
2023-10-27 16:52:33 +02:00
Alexey Andreev
1061ad76b6
classlib: suppress test that fails in WebAssembly
2023-10-27 08:08:53 +02:00
Alexey Andreev
c5768e07bc
classlib: fix issue in InputStreamReader
2023-10-26 11:50:27 +02:00
Ivan Hetman
3ac0078e2a
classlib: add cache to Byte and Short valueOf; fix Byte.parseByte ( #832 )
2023-10-26 09:09:08 +03:00
Ivan Hetman
4b6c4bd3d3
classlib: fix issues in EnumSet and EnumMap ( #834 )
2023-10-26 09:04:26 +03:00
Alexey Andreev
02b3c92912
JS: use native string to represent internals of java.lang.String
2023-10-21 19:30:16 +02:00
Ivan Hetman
9242aeb750
classlib: Arrays corner cases fixes ( #825 )
2023-10-16 20:40:50 +03:00
Ivan Hetman
658ef711ab
classlib: additional stream collectors ( #822 )
2023-10-16 14:09:56 +02:00
Ivan Hetman
1900852cd8
classlib: fix for positioned addAll in sequential lists ( #824 )
2023-10-16 13:41:15 +02:00
Alexey Andreev
5bc398415d
classlib: implement Atomic*FieldUpdater classes
...
Fix #750
2023-10-15 19:51:44 +02:00
Ivan Hetman
82cd9d9cdf
classlib: fix various issues in TreeMap ( #813 )
2023-10-13 22:01:40 +03:00
Ivan Hetman
6faecc91d2
classlib: more overrides for TreeMap keySet ( #818 )
2023-10-13 20:57:32 +03:00
Ludovic Dubost
4a81615749
class: fix LinkedList.offer method adding item incorrectly at the beginning
...
Fix #772
2023-10-13 19:52:47 +02:00
Alexey Andreev
772dd9eded
JS: fix returning JSO objects from Async methods
...
Fix #805
2023-10-12 21:13:09 +02:00
Ivan Hetman
bcc2c0ff35
classlib: implement last part of JEP-431 ( #810 )
...
TreeMap, TreeSet
2023-10-09 22:26:42 +03:00