javap and requires public

Alan Bateman Alan.Bateman at oracle.com
Sun May 29 19:49:40 UTC 2016


On 29/05/2016 11:03, Remi Forax wrote:
> Hi all, hi Jon,
> i'm currently writing the ASM code for processing of the module-info.class and i've found that the output of javap shallow the 'public' when a required module is declared as public.
>
> By example, with the module-info.java
>   module foo {
>     export public java.sql;
>   }
>
> calling javap on the module-info.class output
>   module foo {
>     export java.sql;
>   }
>
Do you mean `requires`?

$ javap -c java.compact1/module-info.class
Compiled from "module-info.java"
module java.compact1 {
   requires java.base;
   requires public java.logging;
   requires public java.scripting;
}



More information about the jigsaw-dev mailing list