Thanks Thomas. By "shadow" I was actually quoting you when you said:
you cannot "augment" it, but you can "shadow" it by providing your own super-source version of java.lang.String In my previous reply, I was saying that I'm happy with this solution for my GWT app (whatever you call this method "shadow" or something else). But my concern is now with J2CL (as I plan to move my GWT app to J2CL in the future). I would like to know if this solution will also work with J2CL. i.e. will I be able to provide my own implementation of String.format() if not emulated by J2CL? On Tuesday, 25 July 2023 at 15:20:19 UTC+1 Thomas Broyer wrote: On Tuesday, July 25, 2023 at 2:26:14 PM UTC+2 Bruno Salmon wrote: The shadow super-source should work in my case, thank you. If later I want to move from GWT to J2CL, will I have a similar feature (ex: providing my own implementation of String.format() if not emulated) ? IIRC, no: each source file must only appear once, so you cannot use shadowing. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/cd1e2396-afe8-47b6-8b37-5a5ca4459eb6n%40googlegroups.com.
