therapi-runtime-javadoc icon indicating copy to clipboard operation
therapi-runtime-javadoc copied to clipboard

Errors out with incremental compilation

Open marquiswang opened this issue 1 year ago • 0 comments

Reproduceable by setting up a Maven project using therapi-runtime-javadoc, and then running mvn clean compile compile.

[ERROR] Caused by: javax.annotation.processing.FilerException: Attempt to reopen a file for path /Users/mwang/code/example/target/classes/com/foo/bar/ExampleClass__Javadoc.json
[ERROR]         at jdk.compiler/com.sun.tools.javac.processing.JavacFiler.checkFileReopening(JavacFiler.java:766)
[ERROR]         at jdk.compiler/com.sun.tools.javac.processing.JavacFiler.createResource(JavacFiler.java:543)
[ERROR]         at com.github.therapi.runtimejavadoc.scribe.JavadocAnnotationProcessor.createJavadocResourceFile(JavadocAnnotationProcessor.java:155)
[ERROR]         at com.github.therapi.runtimejavadoc.scribe.JavadocAnnotationProcessor.outputJsonDoc(JavadocAnnotationProcessor.java:144)
[ERROR]         at com.github.therapi.runtimejavadoc.scribe.JavadocAnnotationProcessor.generateJavadocForClass(JavadocAnnotationProcessor.java:138)
[ERROR]         at com.github.therapi.runtimejavadoc.scribe.JavadocAnnotationProcessor.generateJavadoc(JavadocAnnotationProcessor.java:118)

marquiswang avatar Jan 04 '24 22:01 marquiswang