mirror of
https://github.com/enso-org/enso.git
synced 2024-11-23 16:18:23 +03:00
Log nothing when class is found (#7897)
This commit is contained in:
parent
2ad19a5366
commit
3094dc74c5
@ -5,6 +5,7 @@ import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
@ -463,7 +464,8 @@ public final class EnsoContext {
|
||||
*/
|
||||
@TruffleBoundary
|
||||
public Object lookupJavaClass(String className) {
|
||||
List<String> items = Arrays.asList(className.split("\\."));
|
||||
var items = Arrays.asList(className.split("\\."));
|
||||
var collectedExceptions = new ArrayList<Exception>();
|
||||
for (int i = items.size() - 1; i >= 0; i--) {
|
||||
String pkgName = String.join(".", items.subList(0, i));
|
||||
String curClassName = items.get(i);
|
||||
@ -478,9 +480,12 @@ public final class EnsoContext {
|
||||
return lookupHostSymbol(pkgName, fullInnerClassName);
|
||||
}
|
||||
} catch (RuntimeException | InteropException ex) {
|
||||
logger.log(Level.WARNING, null, ex);
|
||||
collectedExceptions.add(ex);
|
||||
}
|
||||
}
|
||||
for (var ex : collectedExceptions) {
|
||||
logger.log(Level.WARNING, null, ex);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -546,7 +546,7 @@ final class SerializationManager(compiler: Compiler) {
|
||||
pool.shutdownNow()
|
||||
Thread.sleep(100)
|
||||
compiler.context.logSerializationManager(
|
||||
Level.WARNING,
|
||||
debugLogLevel,
|
||||
"Serialization manager has been shut down."
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user