Closed lalalic closed 2 years ago
jdk14,jsweet3.1.0 got the same error, and there is java.util.Collections in candies/typings/.../j4ts/2.0.0/bundle.d.ts
Can you please start from https://github.com/lgrignon/j4ts-example And tell me if it's better for you?
Yes, https://github.com/lgrignon/j4ts-example works because of all ts bundled.
doing more testing, and found it's because of module configuration.
If set module as any of "amd,system,commonjs,es2015", the namespace, java.util, java.lang, will not be prepended to class name. But if set bundle as true, it's always correct with full qualified name. It should be a bug, right? otherwise how can Collections be resolved to java.util.Collections in compile-time, or runtime.
thank you, @lgrignon
I'm working on 1.8JDK, 3.0.0 jsweet on Mac, I have a very simple java class as following: import java.util.Collections;
public final class Test {
}
and pom.xml looks like:
JDK is 1.8, jsweet is 3.0.0, then I got error Cannot find name 'Collections': the following ts created:
the log is as following:
Am I missing something?
thanks