When the class files on the --class-path supplied to jmod are all symlinks, the package validation step fails. This is similar to
JDK-8166286 except it applies to files, not directories. Applying the attached patch fixes the problem.
- relates to
JDK-8268216 Running with exploded module should support symlinked classes
JDK-8166286 jmod fails on symlink to directory