O'Reilly logo

Java Language Features: With Modules, Streams, Threads, I/O, and Lambda Expressions by Kishori Sharan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Kishori Sharan 2018
Kishori SharanJava Language Featureshttps://doi.org/10.1007/978-1-4842-3348-1_16

16. Breaking Module Encapsulation

Kishori Sharan
(1)
Montgomery, Alabama, USA
 
In this chapter, you will learn:
  • What breaking a module’s encapsulation means
  • How to export non-exported packages of a module using the --add-exports command-line option and using the MANIFEST.MF file of an executable JAR
  • How to open non-open packages of a module using the --add-opens command-line option and using the MANIFEST.MF file of an executable JAR
  • How to increase readability of a module using the --add-reads command-line option
  • How to use the --illegal-access command-line option to access the JDK internal API using deep reflection

What Is Breaking Module Encapsulation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required