Patching package-info.java files
Jonathan Gibbons
jonathan.gibbons at oracle.com
Tue Feb 19 21:53:40 UTC 2019
Have you tried using the -XpkgInfo option? If so, did that fix the issue?
-Xpkginfo:{always,legacy,nonempty}
Specify handling of package-info files
Can you provide a simple test case?
-- Jon
On 02/19/2019 01:21 PM, Antonio Cortes Perez wrote:
> 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!
More information about the compiler-dev
mailing list