mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
detect jdk version by place (IDEA-133801)
This commit is contained in:
@@ -514,7 +514,8 @@ public final class PsiUtil extends PsiUtilCore {
|
||||
PsiType lastParmType = getParameterType(lastParameter, languageLevel, substitutorForMethod);
|
||||
if (!(lastParmType instanceof PsiArrayType)) return ApplicabilityLevel.NOT_APPLICABLE;
|
||||
lastParmType = ((PsiArrayType)lastParmType).getComponentType();
|
||||
if (lastParmType instanceof PsiCapturedWildcardType && !JavaVersionService.getInstance().isAtLeast(lastParameter, JavaSdkVersion.JDK_1_8)) {
|
||||
if (lastParmType instanceof PsiCapturedWildcardType &&
|
||||
!JavaVersionService.getInstance().isAtLeast(((PsiCapturedWildcardType)lastParmType).getContext(), JavaSdkVersion.JDK_1_8)) {
|
||||
lastParmType = ((PsiCapturedWildcardType)lastParmType).getWildcard();
|
||||
}
|
||||
for (int i = parms.length - 1; i < args.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user