Patching package-info.java files

Antonio Cortes Perez antoniocortes at google.com
Tue Feb 19 21:21:24 UTC 2019


Hi,

I am able to patch system module files using these instructions (I am using
jdk-11.0.1).
https://openjdk.java.net/projects/jigsaw/quick-start#xoverride

When trying the same command to patch a package-info.java, the
package-info.class file is not generated if the patched version has the
same contents as the version in the module. But this behavior does not
apply to non-package-info files. Is this by design?

javac --patch-module java.base=src -d mypatches/java.base \
        src/java.base/java/util/concurrent/package-info.java

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20190219/c49cb990/attachment.html>


More information about the compiler-dev mailing list