discovered this using maven, when building a patch module for one of the JDK modules using --patch-module, when also specifying --release in addition (which maven is apt to do) the 'release' option 'overrides' the 'patch' option resulting in compilation errors in the patched classes that reference non-public artifacts in the module being patched.
easily solved by removing --release (from maven)
easily solved by removing --release (from maven)