Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

The other advantages of Java 9 Modularity

 
Ranch Hand
Posts: 106
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Author,

In theory, we know that the advantages of using Java module system are

It provides a reliable configuration and strong encapsulation that would prevent

1. Brittle, error-prone classpath (AKA JAR Hell)
Ref:webpage

2. JDK into modules so that we only use what we need contrary to the prior JDK versions
Ref: webpage

what are the other selling points that Java 9 modularity presents?

Thanks
Sathya
 
Greenhorn
Posts: 17
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those two are pretty significant, but there are indeed a few more:

  • strong encapsulation will improve security of the platform and maintainability of the platform and all projects that start using it
  • building a module graph may improve launch performance (I assume, not much, though)
  • with jlink you can create runtime images that only contain the Java module you want or images that include your entire application


  • That said, I think if someone doesn't buy the module system for strong encapsulation alone, they're unlikely to buy it as a whole.
    reply
      Bookmark Topic Watch Topic
    • New Topic