Alexey Andreev
abb1ea0070
samples: add html file for module demo
2024-04-12 21:16:02 +02:00
Alexey Andreev
271545a3ef
gradle: support JS module type in dev server task
2024-04-12 21:15:12 +02:00
Alexey Andreev
908047fb1f
idea: fix dev server
...
See discussion at #903
2024-04-12 20:27:39 +02:00
Alexey Andreev
2331c9d7b6
fix checkstyle errors
2024-04-12 14:14:25 +02:00
Alexey Andreev
97aa42d87b
jso apis: new convention for event registration
2024-04-12 13:45:12 +02:00
Alexey Andreev
272f55b383
jso apis: turn DOM interfaces into abstract classes
...
This would make it possible to test HTMLElement for particular type with instanceof
2024-04-12 13:00:05 +02:00
Alexey Andreev
6a09f181c7
js: add JSTopLevel annotation that allows to import top-level declarations
2024-04-11 20:29:57 +02:00
Alexey Andreev
9b41e3e814
classlib: add CopyOnWriteArrayList implementation
2024-04-09 21:01:41 +02:00
Alexey Andreev
72b021fc0b
jso: support exporting class constructors
2024-04-08 21:32:10 +02:00
Alexey Andreev
a6fb67817c
jso: improve support of instanceof and cast against JS wrapper types
...
Fix #808
2024-04-04 21:18:54 +02:00
Alexey Andreev
e069bc3a44
classlib: implement WeakHashMap
...
Fix #799
2024-04-03 19:11:48 +02:00
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
005765aa6e
classlib: add String.formatted
2024-03-21 19:23:28 +01:00
Alexey Andreev
da0eb4e1e3
classlib: add PrintStream.printf
2024-03-21 19:18:42 +01:00
Alexey Andreev
403da28830
classlib: add PrintStream.format
2024-03-21 19:14:45 +01:00
Alexey Andreev
b792f48b55
classlib: add java.util.concurrent.CancellationException
2024-03-21 18:36:37 +01:00
Alexey Andreev
b2bfa494e6
classlib: add java.io.InvalidClassException
2024-03-21 18:34:12 +01:00
Alexey Andreev
008e764e73
Bump gradle version
2024-03-21 18:26:56 +01:00
Alexey Andreev
9b27f95eb9
Ignore checkstyle-idea.xml
2024-03-21 18:06:35 +01:00
Alexey Andreev
bbd02b0067
gradle: implement dev server task
2024-03-20 20:41:10 +01:00
Alexey Andreev
7341fb38a6
Reduce memory consumption
2024-03-18 18:05:06 +01:00
Alexey Andreev
622006de0e
Reduce memory consumption
2024-03-18 17:02:42 +01:00
Alexey Andreev
6e416c11d7
Reduce memory consumption in dependency analyzer
2024-03-18 16:21:12 +01:00
Ivan Hetman
287333b54e
tools: disabled idle in Jetty server ( #894 )
2024-03-14 19:21:02 +01:00
Alexey Andreev
32ae1ab8f0
js: fix deobfuscator, use new ES2015 module builder
2024-03-13 15:44:18 +01:00
Alexey Andreev
055d5df367
js: fix emitting line number to debug info
2024-03-13 12:36:33 +01:00
Ivan Hetman
994e01ec9d
jso: add vararg versions of 'add' methods to DomTokenList
2024-03-12 19:02:16 +01:00
Alexey Andreev
582fcf904c
jso: implement vararg support for method calls
2024-03-12 18:56:19 +01:00
Alexey Andreev
ccfe19994b
js: refactor and simplify AstWriter, properly fix case with variable in catch block
2024-03-06 20:24:35 +01:00
Alexey Andreev
e4452152b7
jso: improve JS class import to Java
2024-02-27 20:16:10 +01:00
Alexey Andreev
393cd7f807
c: don't generate while(condition) loops due to UB in C spec
...
See https://www.iso-9899.info/n1570.html#6.8.5p6
Fix #885
2024-02-19 20:35:21 +01:00
Alexey Andreev
c95af17eae
classlib: fix javadoc warning
2024-02-19 20:18:03 +01:00
Alexey Andreev
eb91577509
jso apis: removed unused field
2024-02-19 20:17:30 +01:00
Alexey Andreev
26b9ae4292
jso apis: add Window.scrollX
...
Fix #886
2024-02-19 20:16:50 +01:00
Alexey Andreev
c1b3deedff
Support @Inherited
annotation on annotations
...
Fix #883
2024-02-19 20:14:00 +01:00
Bernd Busse
6788642ea9
JSO: add interface for Promise ( #884 )
2024-02-17 19:11:04 +01:00
Bernd Busse
be09e698ea
classlib: remove hardcoded dependecy to TRoundingMode in NumberFormat
2024-02-17 21:05:55 +03:00
Bernd Busse
d067b986df
JS: fix catch variable not getting minified
2024-02-17 21:05:06 +03:00
Alexey Andreev
ab253fd34a
Fix class initializer compilation for WASI target
2024-02-17 19:04:37 +01:00
Alexey Andreev
8db406c603
jso: implement exporting Java methods to JS
...
Fix #785
2024-02-15 21:00:10 +01:00
Bernd Busse
cf850157f0
classlib: fix javadoc warnings
2024-02-15 11:59:43 +03:00
Bernd Busse
7f333cc73e
JSO: make global objects available in WebWorker contexts (no hardcoded window)
2024-02-15 11:55:05 +03:00
Alexey Andreev
6ac598b927
js: add limit for top-level declarations
...
Rationale: turns out that V8 utilizes stack even to represent module-level functions.
This can cause SOE when there's too many classes and methods in source JVM
2024-02-01 09:41:50 +01:00
Alexey Andreev
ca273390ef
Remove outdated file
2024-01-30 15:46:20 +01:00
Bernd Busse
83e3306071
classlib: extend BigInteger implementation with xValueExact() and sqrt()
2024-01-24 21:56:12 +03:00
Bernd Busse
4e076a65ee
classlib: add BigInteger constant TWO added in Java 9
2024-01-24 21:56:12 +03:00
Bernd Busse
9280992661
classlib: add minimal SecureRandom implementation
...
- Utilizes JavaScript's window.crypto.getRandomValues() when available,
otherwise uses the general Math.random() as fallback.
- No support for providers
- No support for proper randomness sources on non-JS backends
2024-01-24 20:48:28 +03:00
Bernd Busse
1964235fef
classlib: directly use Math.random() in Random
...
Math.random() already handles the implementation for the backends,
delegating to JavaScript's Math.random() or the C runtime
implementation.
Fixes duplicate symbols when using the WASM backend.
2024-01-24 20:48:28 +03:00
Bernd Busse
6de4560282
classlib: implement Cloneable for TreeSet
2024-01-24 20:46:26 +03:00
Bernd Busse
6a398c9b8d
classlib: properly duplicate inner map when cloning TreeMap
2024-01-24 20:46:26 +03:00