fix some empty stack exceptions during dfa analysis

This commit is contained in:
peter
2011-04-06 13:02:50 +02:00
parent 6ae83662cf
commit 8d12f07a6a
6 changed files with 41 additions and 3 deletions
@@ -0,0 +1,17 @@
class Foo {
boolean foo(Object o, final PairFunction<String, ElementType, Boolean> fun){
boolean result = true;
result |= fun.fun(path);
if (o instanceof String) {
o.subst<caret>
}
}
void foo(String s) {}
}
interface PairFunction<T, V, U> {
U fun(T t, V v);
}
@@ -0,0 +1,17 @@
class Foo {
boolean foo(Object o, final PairFunction<String, ElementType, Boolean> fun){
boolean result = true;
result |= fun.fun(path);
if (o instanceof String) {
((String) o).substring(<caret>)
}
}
void foo(String s) {}
}
interface PairFunction<T, V, U> {
U fun(T t, V v);
}
@@ -809,6 +809,8 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
public void testQualifierCastingWithUnknownAssignments() throws Throwable { doTest(); }
public void testQualifierCastingBeforeLt() throws Throwable { doTest(); }
public void testOrAssignmentDfa() throws Throwable { doTest(); }
public void testWildcardsInLookup() throws Exception {
configure()
assertNotNull(getLookup());