源代码不贴了,这儿给出精简版:
package corejava; class ConstructorTest
{
    private ConstructorTest()
    {
        System.out.println("C...Test()");
    }
    public ConstructorTest(int a)
    {
        super();
        System.out.println("C...Test(int a)");
    }
    ConstructorTest ct=new ConstructorTest();
}class tt extends
{
    public static void main(String[]a)
    {
       // ConstructorTest ct=new ConstructorTest();
       ConstructorTest ct=new ConstructorTest(3);
    }
}
就这么一小段代码,我需要用到一个私有构造函数(其中有一些不可被ConstructorTest以外的类能操作的代码),理论上应该会输出:
C...Test(int a)
可事实上却蹦出
java.lang.StackOverflowErrorException in thread "main" 
蹦这个异常很奇怪,小弟查了不少资料,都无功而返,请高手大哥们为小弟指点迷津。谢谢~