[jOOQ/jOOQ#10144] Runtime compilation error when compiling enum types on module path

This commit is contained in:
Lukas Eder 2020-04-30 12:01:53 +02:00
parent 25257fd8f0
commit 1232edfcf9

View File

@ -71,10 +71,13 @@ class Compile {
if (!options.contains("-classpath")) {
StringBuilder classpath = new StringBuilder();
String separator = System.getProperty("path.separator");
String prop = System.getProperty("java.class.path");
String cp = System.getProperty("java.class.path");
String mp = System.getProperty("jdk.module.path");
if (prop != null && !"".equals(prop))
classpath.append(prop);
if (cp != null && !"".equals(cp))
classpath.append(cp);
if (mp != null && !"".equals(mp))
classpath.append(mp);
if (cl instanceof URLClassLoader) {
for (URL url : ((URLClassLoader) cl).getURLs()) {