这样的引用可能在多线程环境(即一个线程试图加载超类,另一个线程同时试图加载子类) 中引起 JVM 级死锁。
示例:
class Parent { static final Child field = new Child(); } class Child extends Parent { }