Open tonychunxizhu opened 1 year ago
Thanks for your bug report.
I guess this is because it is located in the special package java.util.function
Can you confirm it works if you change package?
Thanks, @lgrignon yes, it works if I change the package name to java.util.function for this file. however, if I refactor it to java.util.function for all classes under JDK, the error still exists.
Hello @tonysmarthome
Is it still the same error?
I understood that renaming package works.
Hi @lgrignon , sorry for late reply. I create a repo for it if you don't mind. https://github.com/tonysmarthome/j4ts-funtions you can see the bundle.ts file. the errors still exist. if I refactor java.util.function to java.util._function (not function), there some errors disappear, but the default method in interfaces still can't be handled. I guess it might because transpiler refactors all "funtion" to "__funtion" but ignores the package name.
in a java candy, there is a file named FunctionClassTest.java
in bundle.ts of candy, it will be
the methods myMethod1 and myMethod2 lost. because no methods name, bundle.ts can't be compiled to javascript