8191867: Module attribute in 54.0+ class file cannot contains a requires java.base with ACC_TRANSITIVE or ACC_STATIC_PHASE

Jonathan Gibbons jonathan.gibbons at oracle.com
Wed Dec 6 17:02:45 UTC 2017


There should probably be an equivalent javac update.

-- Jon


On 12/6/17 7:42 AM, Alan Bateman wrote:
> The draft JVMS for Java SE 10 forbids an entry in the requires table 
> of a Module attribute in a 54.0 or newer class file to require 
> java.base with the ACC_TRANSITIVE or ACC_STATIC_PHASE modifiers. This 
> needs an update to the module-info.class parser:
>    http://cr.openjdk.java.net/~alanb/8191867/webrev/
>
> For now, the ModuleDescriptor.Builder API is not updated but arguably 
> it should so that it retains its alignment with what is allowed and 
> not allowed in the Java Language.
>
> -Alan
>
>



More information about the jigsaw-dev mailing list