java.lang.StackOverflowError 同时使用 ANT 1.7.1 编译代码



我正在使用ant 1.7.1来编译我的代码。在运行 ant.bat 命令时,即使在增加堆大小后,我也会出现以下异常。

An annotation processor threw an uncaught exception.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.StackOverflowError
    [javac]              at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:54)
    [javac]              at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:36)
    [javac]              at java.lang.reflect.Field.get(Field.java:379)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:348)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)
    [javac]              at lombok.core.AST.buildWithField(AST.java:249)
    [javac]              at lombok.javac.JavacAST.drill(JavacAST.java:272)
    [javac]              at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
    [javac]              at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
    [javac]              at lombok.core.AST.buildWithField0(AST.java:351)

检查龙目岛的版本。他们对 0.7.1 有一些问题。使用 0.7.2 或更高版本。
引发此错误是为了指示应用程序的堆栈由于深度递归而耗尽,有时是永无止境的递归。
参考链接。

相关内容

  • 没有找到相关文章

最新更新