Project Jigsaw: VM changes for Modules

2009/2/3

Classloading

5.3.5 Deriving a Class from a class File Representation

Only members of a class in a module may use module accessibility

By the definition of ACC_MODULE in chapter 4, a ClassFormatError must be thrown if a ClassFile uses the ACC_MODULE flag in ClassFile.access_flags, field_info.access_flags, method_info.access_flags or InnerClasses.inner_class_access_flags, and the ClassFile does not have a Module attribute.

Resolution

5.4.3.4 Interface method resolution

When resolving an interface method reference:

5.4.4 Access Control

Terminology: TODO: Add discussive text about VM's use of classloaders

A class or interface C is accessible to a class or interface D if and only if any of the following conditions are true:

A field or method R is accessible to a class or interface D if and only if any of the following conditions is true:

Other JVMS changes