Inline inner: rise conflict for getClass invocation (IDEA-39608)

This commit is contained in:
anna
2010-02-01 17:13:33 +03:00
parent 7a8e58a984
commit 172de67c03
3 changed files with 46 additions and 13 deletions
@@ -337,6 +337,10 @@ public class InlineToAnonymousClassTest extends LightCodeInsightTestCase {
"Field <b><code>C2.a</code></b> that is used in inlined method is not accessible from call site(s) in method <b><code>C2User.test()</code></b>");
}
public void testGetClassConflict() throws Exception {
doTestConflict("Result of getClass() invocation would be changed", "Result of getClass() invocation would be changed");
}
public void doTestConflict(final String... expected) throws Exception {
InlineToAnonymousClassProcessor processor = prepareProcessor();
UsageInfo[] usages = processor.findUsages();