j2cl icon indicating copy to clipboard operation
j2cl copied to clipboard

Clarify supported Java versions

Open jreznot opened this issue 7 years ago • 5 comments

Hi,

Thank you for this project!

For now, I cannot find the information on supported Java versions: 8 / 11 ? It is still source to source transpiler ? Do you expect any delays with support of the upcoming Java versions ?

jreznot avatar Nov 14 '18 07:11 jreznot

It is stil a source to source transpiler and you can actually see the unoptimized output samples in in the transpiler's '''readable''' directory: https://github.com/google/j2cl/tree/master/transpiler/javatests/com/google/j2cl/transpiler/readable

We tested up to Java 10 but Java 11 doesn't bring much new language features so it should be straight forward.

In general, since J2CL doesn't depend on internals of Java compiler, it is usually matter of upgrading our dependencies and testing unless there is completely new language construct like Java 8 lambdas. For Java 9, Java 10 it took couple of hours which should be true for Java 11 as well.

gkdn avatar Nov 14 '18 08:11 gkdn

Let's update the README with that information

jDramaix avatar Nov 14 '18 16:11 jDramaix

I can work on this

unnati914 avatar Aug 24 '21 05:08 unnati914

Does it support Java 18-19 features? Like records and pattern deconstruction

ice1000 avatar Sep 19 '22 06:09 ice1000

We don't support Java 18+ features yet.

gkdn avatar Sep 19 '22 19:09 gkdn