JDK-8165634 and the corresponding CCC are about changing --add-modules from "last one wins" to "allow and merge". We need to do the same for javac (and indirectly, for javadoc.)