Friday, July 21, 2023

Re: GWT compilation issue with jdk 17

Yes , we are using  jakartaee-api : 9.0.0 . So can you please suggest which version of gwtp-dispatch-rest-*.jar will be compatible with Jakarta 9.0 ?

On Friday, July 21, 2023 at 3:58:59 PM UTC+5:30 Thomas Broyer wrote:
Two things:

  • using JDK 17 doesn't mean you have to use Jakarta EE 9+, Java EE 8 / Jakarta EE 8 should still work just fine. You may have also changed your server to a Jakarta EE 9+ version, but that's (almost) independent from using JDK 17
  • GWTP is long dead; at least one year before the Javax/Jakarta mess was even announced (except for one never-released commit in Sept. 2018)
Legacy projects should stay on "legacy" Java EE (or Jakarta EE 8), or migrate away from legacy/abandoned libs and frameworks that lock them to Java EE.

On Friday, July 21, 2023 at 11:52:55 AM UTC+2 NIKITAH wrote:

Just FYI , I've already tried with  gwtp-dispatch-rest-1.6.jar and facing the same issue  " The import javax.ws.rs.core.HttpHeaders cannot be resolved" .
As , we are aware in jdk17 we are using Jakarta API means  HttPheaders is now moved to jakarta.ws.rs.core.HttpHeaders . 
So , wanted to know if there is any gwtp-dispatch-rest jar with JDK 17.

On Thursday, July 20, 2023 at 3:11:38 PM UTC+5:30 NIKITAH wrote:
Hi , 

I am trying to compile GWT with JDK17.
As per https://www.gwtproject.org/release-notes.html#Release_Notes_2_10_0 , I came to know that GWT2.10.0 is compatible with JDK17 and hence I updated the same in my project .

Now, facing issue with gwtp-dispatch-rest-1.4.jar like : 
[ERROR] Line 24: The import javax.ws.rs.core.HttpHeaders cannot be resolved
[ERROR] Line 95: HttpHeaders cannot be resolved to a variable

Can someone please help and let me know which version of gwtp-dispatch-rest-*.jar is compatible with JDK 17 .

Thanks in advance .

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/52e3013d-813a-4156-ac8a-82bde21af7b9n%40googlegroups.com.

No comments:

Post a Comment