mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-183739 java.util.NoSuchElementException on Liberty application server
This commit is contained in:
+5
-2
@@ -218,12 +218,15 @@ public class CaptureStorage {
|
||||
|
||||
private static final JavaLangAccess ourJavaLangAccess;
|
||||
static {
|
||||
JavaLangAccess access = null;
|
||||
JavaLangAccess access;
|
||||
try {
|
||||
access = SharedSecrets.getJavaLangAccess();
|
||||
if (access != null) {
|
||||
access.getStackTraceDepth(new Throwable()); // may throw UnsupportedOperationException in some implementations
|
||||
}
|
||||
}
|
||||
catch (Throwable e) {
|
||||
// java 9
|
||||
access = null;
|
||||
}
|
||||
ourJavaLangAccess = access;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user