Java 9 modules

path
petit poucet

tree bw

image/svg+xml
path
image/svg+xml

number beast

path
path
path text
  • November 6, 2015
  • What Do WebLogic, WebSphere, JBoss, Jenkins, OpenNMS, and Your Application Have in Common? This Vulnerability.
  • By @breenmachine

rt.jar : 65 MB

  • Java 9 Module System
  • Reliability
  • Security
  • Size

Modular JDK

Modular JDK

image/svg+xml rt.jar tools.jar

Modular JDK

modular jdk

Modular JDK

Deprecated JDK modules

modular jdk deprecated

Non-standard JDK modules

modular jdk internal

Deprecated JDK modules

image/svg+xml 6 9

Non-standard JDK modules

Module descriptor

Build module

Run module

dependencies jdk

Modular application

Modular application

modular app

Module descriptor

Export package

Multi-modules layout

Multi-modules layout

Create module

The Jigsaw Sandwich

modular app version

The Jigsaw Sandwich

Jigsaw Sandwich

image/svg+xml fr.sw.img.web fr.sw.img.db fr.sw.img.inmemory fr.sw.img.service fr.sw.img.data fr.sw.common.*

Encapsulation

Visibility

Visibility

Visibility

Split package

Package Split

Regular export

Restricted export

sun.misc.Unsafe

New internal unsafe API
(hidden)
Keep sun.misc in 9,
remove features when
public replacement APIs exist

Deep reflection

Deep reflection

Module dependency

Transitive dependency

modular app transitive

Transitive dependency

Static dependency

Plain old jar

Plain old jar

Plain old jar

Plain old jar

Automatic Module

Automatic Module

Mixed mode

Mixed mode

Running on Java 9

dead unicorn

Big kill switch

  • --permit-illegal-access
This option will only be supported in JDK 9.
It will be removed in JDK 10.

Command line java / javac

Command line java / javac

jdeps

Going Native

bob tp bw

Ahead Of Time compilation

experimental feature !

Ahead Of Time compilation

experimental feature !

Benchmarks

benchmark run

Benchmarks

benchmark size

Conclusion

Jigsaw Goals

//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Jigsaw Goals

Jigsaw Goals

Jigsaw Goals

Jigsaw Goals

  • Reliable configuration
  • Scale down the platform
  • Strong encapsulation

Planning

Planning

?

Références

Références