vojtechhabarta / typescript-generator

Generates TypeScript from Java - JSON declarations, REST service client
MIT License
1.14k stars 237 forks source link

Please clarify compatibility with Java 17 #1049

Open serv-inc opened 9 months ago

serv-inc commented 9 months ago

A friend mentioned that Java 17 no longer offers the API to be able to generate a typescript model. Is this correct, or does this project still work on Java 17 and above ?

alebo611 commented 9 months ago

I can confirm that I am using Java 17 successfully with this plugin

ccschneidr commented 7 months ago

I cannot confirm that. typescript-generator requires the output of the javadoc xml doclet, which ist not compatible with JDK >= 11. Even a fork of it is not compatible with JDK >= 13. So, I could not find a solution for JDK 17 😭

ccschneidr commented 7 months ago

Aha! A colleague brought up the idea to work without JavaDoc xml file. Comments are missing in that case, but it's better than nothing. So, yes, typescript generator can run with JDK 17, but javadoc xml is not available in that case.