author | ssides |
Wed, 09 Jul 2014 15:14:06 +0400 | |
changeset 25760 | 7955db32d6b0 |
parent 8237 | d5ef8db7ad09 |
permissions | -rw-r--r-- |
/* * @test /nodynamiccopyright/ * @bug 5017953 * @summary spurious cascaded diagnostics when name not found * @compile/fail/ref=T5017953.out -XDrawDiagnostics T5017953.java */ class T5017953 { int f = 0; void test(int i) {} { test(NonExistentClass.f ++); test(1 + NonExistentClass.f); test(NonExistentClass.f + 1); test(NonExistentClass.f + NonExistentClass.f); test(NonExistentClass.f += 1); test(f += NonExistentClass.f); } }