2 ms·
So what happens when you need to deal with java.time and Joda Time in the same class (e.g. because Joda was part of your public API but you're migrating to Java
by Macha 6y ago
So what happens when you need to deal with java.time and Joda Time in the same class (e.g. because Joda was part of your public API but you're migrating to Java time). Fully qualified names everywhere, when it would be nicer to have a construct like:
import org.joda.time.Instant as JodaInstant;
The rest of the weirdness is to make it look like JS destructuring
- cel1ne 6y agoVersion the API and switch to Java-time everywhere. Or forward everything to another class.
- Macha 6y agoUnless you're going to duplicate the logic too, you're still going to have the facade class providing the legacy Joda API that also needs to use the new types to forward onto the new API. That class doing that transformation will need to refer to both the Joda and java.time class.
- Serow225 6y agoC# has exactly that FWIW: using foo.lib = libfoo