Mercurial > hg > openjdk7.svn
view j2se/test/tools/javac/missingSuperRecovery/MissingSuperRecovery.java @ 7:807dfe9c366c trunk
[svn] Load openjdk/jdk7/b19 into jdk/trunk.
author | xiomara |
---|---|
date | Fri, 31 Aug 2007 00:44:13 +0000 |
parents | a4ed3fb96592 |
children |
line wrap: on
line source
/* * @test /nodynamiccopyright/ * @bug 4332631 4785453 * @summary Check for proper error recovery when superclass of extended * class is no longer available during a subsequent compilation. * @author maddox * * @compile/fail/ref=MissingSuperRecovery.out -XDstdout -XDdiags=%b:%l:%_%m MissingSuperRecovery.java */ // Requires "golden" class file 'impl.class', which contains // a reference to a superclass at a location no longer on the classpath. // Note that this test should elicit an error, but should not cause a compiler crash. public class MissingSuperRecovery extends impl { private String workdir=""; }