Test4328406.java 文件源码

java
阅读 20 收藏 0 点赞 0 评论 0

项目:OLD-OpenJDK8 作者:
public static void main(String[] args) {
    for (int i = 0; i < 10; i++) {
        BeanContextServices container = new BeanContextServicesSupport();
        BeanContextChild ms1 = new MyService1();
        BeanContextServices ms2 = new MyService2();
        BeanContextChild mb = new MyBean();

        container.add(ms1);
        container.add(ms2);
        ms2.add(mb);

        // exception thrown here
        container.remove(ms2);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号