jsweet icon indicating copy to clipboard operation
jsweet copied to clipboard

A Java to JavaScript transpiler.

Results 130 jsweet issues
Sort by recently updated
recently updated
newest added

I am trying to use the async await auto propagation feature and sometimes face the following error: `Caused by: java.lang.NoSuchFieldException: sym` in [the Util class](https://github.com/cincheo/jsweet/blob/develop/transpiler/src/main/java/org/jsweet/transpiler/util/Util.java#L2605) I narrowed it down to...

Using the latest JSweet... I have a class defined in `java/com/foo/lib/Thing.java`: ``` package com.foo.lib; public class com.foo.lib.Thing { ... some methods ... } ``` It transpiles just fine. I have...

**Reproducer here**: https://github.com/EricWittmann/jsweet-methodName-reproducer Here's the scenario: Java interface `MappedNode` like so: ```java public interface MappedNode { public void addItem(String name, T item); } ``` With an interface that extends it...

Class method 'isAssignableFrom' is not recognised by transpiler. It seems the issue may be resolved in 3.1.0 (as in issue #650) but I can't get it working. Even I can't...

Does jsweet support reflection? Upto what extent? Following do not work 1. creating instance from constructor definion? 2. Class.isInstanceOf method doesn't exist 3. Passing String.class (or Double.class) as parameter 'Class'...

### What happened? There are 1 security vulnerabilities found in org.jsoup:jsoup 1.7.2 - [CVE-2021-37714](https://www.oscs1024.com/hd/CVE-2021-37714) ### What did I do? Upgrade org.jsoup:jsoup from 1.7.2 to 1.15.3 for vulnerability fix ### What...

there are only 2 files in this candy Token.java ``` package com.test.candies; abstract class Token { static final Token TEST = new SimpleToken(200, 200); Token(int t) { System.out.println("Token"); System.out.println(t); }...

See the transpiled code for AbstractMap.keyset().size() in j4ts: https://github.com/j4ts/j4ts/blob/a3231753a5d3e38458821ff2bf333e6956792e85/src/main/java/java/util/AbstractMap.java#L245 The code generated for `return AbstractMap.this.size();` is as if it said `return this.size();`, which is obviously recursive.

The int and long in java are getting converted to number in javascript. The number is using 64 bit floating point format resulting in loss of precision. And the only...