mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[debugger] fix evaluation of lambdas with wildcards, IDEA-367381
^IDEA-367381 fixed GitOrigin-RevId: 81676dd53b4bd90bf5889d39f7251baf4d943dd3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5640847303
commit
68257913fb
+5
@@ -155,6 +155,11 @@ final class PsiReflectionAccessUtil {
|
||||
|
||||
if (TypeConversionUtil.isPrimitiveAndNotNull(type)) return true;
|
||||
|
||||
if (type instanceof PsiWildcardType wildcardType) {
|
||||
var bound = wildcardType.getBound();
|
||||
return bound == null || isAccessibleType(bound);
|
||||
}
|
||||
|
||||
PsiClass psiClass = PsiTypesUtil.getPsiClass(type);
|
||||
return isAccessible(psiClass) && !hasInaccessibleGenerics(type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user