2 ms·
> one global namespace for types I am not entirely sure what you mean by that, but in Java, a runtime type is determined as a combination of its name and its c
by pron 13y ago
> one global namespace for types
I am not entirely sure what you mean by that, but in Java, a runtime type is determined as a combination of its name and its class-loader. You can (and do) have two versions of the same class running alongside one another in different modules of your code.
Granted, supporting this stuff is not easy, but hopefully the long awaited module system planned (currently...) for Java 9 is supposed to make this all both powerful and easy.
- cgh 13y agoWell, the OSGi module system supports this now and is quite powerful. Oh wait, you also said easy.