We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90545ed commit c4038d5Copy full SHA for c4038d5
src/test/java/org/dvare/dynamic/SourceTest.java
@@ -63,8 +63,10 @@ public void stringSourceImportCompileTest() throws Exception {
63
64
DynamicCompiler dynamicCompiler = new DynamicCompiler();
65
try {
66
- Class.forName("com.sun.tools.sjavac.Module"); //if java module present
67
- dynamicCompiler.addCompilerOption(DynamicCompilerOption.ADD_EXPORTS, "java.base/java.time=ALL-UNNAMED");
+ if (DynamicCompiler.isJava9OrAbove())//if java module present
+ {
68
+ dynamicCompiler.addCompilerOption(DynamicCompilerOption.ADD_EXPORTS, "java.base/java.time=ALL-UNNAMED");
69
+ }
70
} catch (Exception ignored) {
71
}
72
dynamicCompiler.addSource("org.dvare.dynamic.DateUtil", sourceCode);
0 commit comments