missingsuperrecovery.java
来自「是一款用JAVA 编写的编译器 具有很强的编译功能」· Java 代码 · 共 18 行
JAVA
18 行
/* * @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="";}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?