We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a07820 commit 90e076bCopy full SHA for 90e076b
src/jdk.compiler/share/classes/com/sun/tools/javac/code/Type.java
@@ -1155,11 +1155,7 @@ public void setEnclosingType(Type outer) {
1155
1156
public List<Type> allparams() {
1157
if (allparams_field == null) {
1158
- Type enclosingType = getEnclosingType();
1159
- while (enclosingType.hasTag(TYPEVAR)) {
1160
- enclosingType = enclosingType.getUpperBound();
1161
- }
1162
- allparams_field = getTypeArguments().prependList(enclosingType.allparams());
+ allparams_field = getTypeArguments().prependList(getEnclosingType().allparams());
1163
}
1164
return allparams_field;
1165
test/langtools/tools/javac/T8343580.java
0 commit comments