/demo-jigsaw-reflection

Demonstrates how strongly Jigsaw encapsulates module internals against reflection

Primary LanguageShellCreative Commons Zero v1.0 UniversalCC0-1.0

Jigsaw vs Reflection

To demonstrate how Jigsaw interacts with reflection, this repository creates two modules:

  • owner, which contains Owner with one method for each visibility
  • intruder, which contains Intruder, breaking into Owner via reflection

The script execute.sh creates the modular JARs for both modules, using different module descriptors for owner and switching between class and module path.