How to use JSR-305 on Java 9
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
deps
src
.gitignore
LICENSE
README.md
mixed_cp_0_simple-compile_fail.sh
mixed_cp_1_add-platform-module_fail.sh
mixed_cp_2_patch-platform-module_success.sh
mixed_cp_3_both-deps-external_success.sh
mixed_mp_0_require-modules_fail.sh
mixed_mp_1_patch-app-module_success.sh
pure_success.sh

README.md

JSR 305 on Java 9

Demo project for my post Making JSR 305 Work On Java 9.

Your options for a non-modular project:

  • mixed_cp_0...: fails due to missing module for javax.annotation.Generated
  • mixed_cp_1...: adds the module; fails due to split package
  • mixed_cp_2...: patches the modules; succeeds
  • mixed_cp_3...: adds a second dependency; succeeds

If you're creating modules:

  • mixed_mp_0...: depends on two modules; fails due to split package
  • mixed_mp_1...: patches one of the modules; succeeds