@@ -0,0 +1,568 @@
+package com.anteoy.jmtest.classload.clinit;%0A%0A/**%0A * Created by zhoudazhuang on 18-8-1.%0A */%0Apublic class ClinitTest %7B%0A    static %7B%0A        //%E5%85%81%E8%AE%B8%E5%90%91%E5%89%8D%E8%B5%8B%E5%80%BC %E4%BD%86%E4%B8%8D%E5%85%81%E8%AE%B8%E5%BC%95%E7%94%A8%0A        i = 0;%0A//        System.out.println(i);%0A    %7D%0A    static  int i = 1;%0A%0A    static class Parent %7B%0A        public static int A = 1;%0A        // %E7%B1%BB%E5%8A%A0%E8%BD%BD%E7%9A%84%E5%88%9D%E5%A7%8B%E5%8C%96%E9%98%B6%E6%AE%B5 %E7%88%B6%E7%B1%BB%E7%9A%84static %E4%B9%9F%E5%B0%B1%E6%98%AF%E7%88%B6%E7%B1%BB%E7%9A%84clinit%E5%85%88%E4%BA%8E%E5%AD%90%E7%B1%BB%E6%89%A7%E8%A1%8C %E6%89%80%E4%BB%A5 B = 2%0A        static %7B%0A            A = 2;%0A        %7D%0A    %7D%0A%0A    static class Sub extends Parent%7B%0A        public static int B = A;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(Sub.B);%0A    %7D%0A%7D%0A

add clinit test case