Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -58,11 +58,12 @@ public class KotlinBuiltIns {
|
|||||||
private static synchronized void initialize() {
|
private static synchronized void initialize() {
|
||||||
if (instance == null) {
|
if (instance == null) {
|
||||||
if (initializationFailed != null) {
|
if (initializationFailed != null) {
|
||||||
throw new RuntimeException(
|
throw new IllegalStateException(
|
||||||
"builtin library initialization failed previously: " + initializationFailed, initializationFailed);
|
"Built-in library initialization failed previously: " + initializationFailed, initializationFailed
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (initializing) {
|
if (initializing) {
|
||||||
throw new IllegalStateException("builtin library initialization loop");
|
throw new IllegalStateException("Built-in library initialization loop");
|
||||||
}
|
}
|
||||||
initializing = true;
|
initializing = true;
|
||||||
try {
|
try {
|
||||||
@@ -71,7 +72,8 @@ public class KotlinBuiltIns {
|
|||||||
}
|
}
|
||||||
catch (Throwable e) {
|
catch (Throwable e) {
|
||||||
initializationFailed = e;
|
initializationFailed = e;
|
||||||
throw new RuntimeException("builtin library initialization failed: " + e, e);
|
throw new IllegalStateException("Built-in library initialization failed. " +
|
||||||
|
"Please ensure you have kotlin-runtime.jar in the classpath: " + e, e);
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
initializing = false;
|
initializing = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user