Closed jbfaden closed 1 year ago
@rweigel and I were using jsweet last week, but I've also just found https://www.stratacode.com/javaToJS/online.html. This one allows multiple Java classes to be uploaded (TimeUtil.java is needed for URI_Templates to work).
I had an unusual opportunity to work on this last week (Covid!) and I made a translator similar to the Python translator. This is done enough to easily do TimeUtil.js now, and the unit test for TimeUtil.js. The converter is here: https://cottagesystems.com/JavaJythonConverter/ConvertJavaToJavascriptServlet. I need to return to this and finish off URI_Templates.java.
This is done, or at least passing all the regression tests.
TimeUtil.java was always intended to be ported to other languages, and I'm curious how the port to JavaScript would go. I've been using the site https://www.jsweet.org/jsweet-live-sandbox/ to convert the code piece by piece, because it isn't working for the entire code, and it produces somewhat unreadable code anyway.
This is a table of function name in Java and if it is ported to JavaScript:
This was moved over from https://github.com/hapi-server/server-java/issues/4