One of Java 9's largest features will be a module system defined by Project Jigsaw. When reading slides from the Project Jigsaw: Under the Hood at JavaOne 2015, I noticed the following source code:
// src/java.sql/module-info.java
module java.sql {
exports java.sql;
exports javax.sql;
exports javax.transaction.xa;
}
What is interesting here to me is that the file ends in .java
and seems to use two new keywords: module
, and exports
. What other keywords will be introduced in Java 9? How will backwards compatibility be dealt with (i.e. functions or variables named module
)?