mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
lang-jvm: added explicit declaration of 'getType' method to avoid compatibility problems
This commit is contained in:
@@ -44,4 +44,10 @@ public interface PsiField extends PsiMember, PsiVariable, PsiDocCommentOwner, Jv
|
||||
|
||||
@Override
|
||||
@NotNull PsiIdentifier getNameIdentifier();
|
||||
|
||||
/* This explicit declaration is required to force javac generate bridge method 'JvmType getType()'; without it calling
|
||||
JvmField#getType() method on instances which weren't recompiled against the new API will cause AbstractMethodError. */
|
||||
@NotNull
|
||||
@Override
|
||||
PsiType getType();
|
||||
}
|
||||
|
||||
@@ -54,6 +54,12 @@ public interface PsiParameter extends PsiVariable, JvmParameter {
|
||||
@Nullable
|
||||
PsiTypeElement getTypeElement();
|
||||
|
||||
/* This explicit declaration is required to force javac generate bridge method 'JvmType getType()'; without it calling
|
||||
JvmParameter#getType() method on instances which weren't recompiled against the new API will cause AbstractMethodError. */
|
||||
@NotNull
|
||||
@Override
|
||||
PsiType getType();
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
default PsiAnnotation[] getAnnotations() {
|
||||
|
||||
Reference in New Issue
Block a user