java2typescript
java2typescript copied to clipboard
Java2Typescript replaces every <E> with <Math.E>
Hello, I tried to convert a Java class that used generics, and when I ran java2typescript it replaced every <E> with <java.lang.Math.E>
I've made a simple example:
public class Example {
public static <E> E getSame(E obj) {
return obj;
}
}
And here is the generated code:
export class Example extends JavaObject {
public static getSame <E>(obj: java.lang.Math.E| null): java.lang.Math.E | null {
return obj;
}
}
I also saw recently that I introduced a serious regression in one of the last patches. Many symbols are resolved in a wrong way. Need to investigate.