mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-170494 InaccessibleObjectException: Unable to make field accessible in DebugReflectionUtil on JDK 9 (java.base does not open java.util.concurrent.atomic/jdk.internal.misc)
This commit is contained in:
@@ -15,10 +15,11 @@
|
||||
*/
|
||||
package com.intellij.util;
|
||||
|
||||
import com.intellij.openapi.util.UserDataHolder;
|
||||
import com.intellij.openapi.util.Key;
|
||||
import com.intellij.openapi.util.UserDataHolderEx;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Key;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.util.UserDataHolder;
|
||||
import com.intellij.openapi.util.UserDataHolderEx;
|
||||
import com.intellij.psi.util.*;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -54,7 +55,9 @@ public class CachedValuesManagerImpl extends CachedValuesManager {
|
||||
@NotNull Key<CachedValue<T>> key,
|
||||
@NotNull CachedValueProvider<T> provider,
|
||||
boolean trackValue) {
|
||||
CachedValueLeakChecker.checkProvider(provider, key, dataHolder);
|
||||
if (!SystemInfo.isJavaVersionAtLeast("9")) {
|
||||
CachedValueLeakChecker.checkProvider(provider, key, dataHolder);
|
||||
}
|
||||
CachedValue<T> value;
|
||||
if (dataHolder instanceof UserDataHolderEx) {
|
||||
UserDataHolderEx dh = (UserDataHolderEx)dataHolder;
|
||||
|
||||
Reference in New Issue
Block a user