Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Java Modules is the one that can't actually provide that functionality yet, right?

You are correct. As of now, Java Modules have no way to disambiguate versions of the same dependency. This is intentional and by design.

As far as Java is concerned, each class is uniquely identified by ModuleName.PackageName.ClassName. So, if there are 2 versions of the same class that have the same identifier, Java will give you an error at compile/link/run-time.

And if you try to be clever and slap a number at the end of the module name (in hopes of side-stepping this), Java will throw a warning at you, saying that you are likely trying to misuse modules by trying to use them to do dependency management.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: