[#7385] Upgrade jOOR dependency to 0.9.8
This commit is contained in:
parent
ac2764c8e0
commit
7bb228c003
@ -17,6 +17,7 @@ package org.jooq.tools.reflect;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.StringWriter;
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.lang.invoke.MethodHandles.Lookup;
|
||||
import java.net.URI;
|
||||
@ -55,8 +56,13 @@ class Compile {
|
||||
|
||||
List<CharSequenceJavaFileObject> files = new ArrayList<CharSequenceJavaFileObject>();
|
||||
files.add(new CharSequenceJavaFileObject(className, content));
|
||||
StringWriter out = new StringWriter();
|
||||
|
||||
compiler.getTask(null, fileManager, null, null, null, files).call();
|
||||
|
||||
if (fileManager.o == null)
|
||||
throw new ReflectException("Compilation error: " + out);
|
||||
|
||||
Class<?> result = null;
|
||||
|
||||
// This works if we have private-access to the interfaces in the class hierarchy
|
||||
@ -106,6 +112,9 @@ class Compile {
|
||||
|
||||
return result;
|
||||
}
|
||||
catch (ReflectException e) {
|
||||
throw e;
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new ReflectException("Error while compiling " + className, e);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user