Skip to content

Instantly share code, notes, and snippets.

@shihua-guo
Created December 10, 2020 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shihua-guo/86fa6c1a075568e7860ac2202bb1ea31 to your computer and use it in GitHub Desktop.
Save shihua-guo/86fa6c1a075568e7860ac2202bb1ea31 to your computer and use it in GitHub Desktop.
/**
* @author guoshihua
* @description
* @date 2020/12/10 16:27
*/
public abstract class Test {
abstract <T> void f(T t);
abstract <T, X extends Throwable> T g(X x) throws X;
void bug() {
f(g(new RuntimeException("foo")));
}
}
@shihua-guo
Copy link
Author

你可以通过javac 编译上面的文件。查看不同jdk之间的差异

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment