[java] disallow extracting super expression (IDEA-340915)

GitOrigin-RevId: cb698e271e04767dead0a72d7a70cb3a537af614
This commit is contained in:
Bas Leijdekkers
2024-03-06 13:03:37 +01:00
committed by intellij-monorepo-bot
parent a71e4ae799
commit 6583f8ee65
6 changed files with 30 additions and 14 deletions

View File

@@ -1,9 +0,0 @@
class TestClass {
}
public static final String s;
static {
String foo = "foo";
s = foo.trim();
}
}

View File

@@ -0,0 +1,10 @@
class A {
public void £() {
}
}
class B extends A {
public void c() {
<selection>super</selection>.£(); //select `super` and extract variable
}
}