Hacker News new | ask | show | jobs
by pron 4574 days 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.

1 comments

Well, the OSGi module system supports this now and is quite powerful. Oh wait, you also said easy.