< prev index next >
src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java
Print this page
rev 50632 : [mq]: defaultroots
*** 158,163 ****
--- 158,170 ----
/** Value of platform release used to access multi-release jar files
*/
public String multiReleaseValue() {
return Integer.toString(this.ordinal() - Target.JDK1_1.ordinal() + 1);
}
+
+ /** All modules that export an API are roots when compiling code in the unnamed
+ * module and targeting 11 or newer.
+ */
+ public boolean allApiModulesAreRoots() {
+ return compareTo(JDK1_11) >= 0;
+ }
}
< prev index next >