-
Bug
-
Resolution: Fixed
-
Major
-
None
There was a report indicating that a compilation error happens while building Jenkins:
[INFO] Copying 2 resources [INFO] [stapler:apt-compile {execution: default-apt-compile}] [INFO] Compiling 721 source files to /«PKGBUILDDIR»/core/target/classes [INFO] - ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] - ------------------------------------------------------------------------ [INFO] Compilation failure error: javax.annotation.processing.FilerException: Attempt to reopen a file for path TemporarySpaceMonitor.stapler error: javax.annotation.processing.FilerException: Attempt to reopen a file for path CommandConnector.stapler error: javax.annotation.processing.FilerException: Attempt to reopen a file for path BuildButtonColumn.stapler error: javax.annotation.processing.FilerException: Attempt to reopen a file for path LastSuccessColumn.stapler error: javax.annotation.processing.FilerException: Attempt to reopen a file for path ListView.stapler error: javax.annotation.processing.FilerException: Attempt to reopen a file for path MavenInstallation.stapler error: javax.annotation.processing.FilerException: Attempt to reopen a file for path MavenInstaller.stapler error: javax.annotation.processing.FilerException: Attempt to reopen a file for path Maven.stapler error: javax.annotation.processing.FilerException: Attempt to reopen a file for path AbstractDiskSpaceMonitor.stapler
To the best of my understanding, this can only happen if our annotation processors are invoked twice with the same set of root elements, and if I'm reading it right, with JSR-269 this cannot happen.
Since blaming JSR-269 implementation will likely take years to resolve, I'm going ahead to work around this on our side. But to make sure that I'm not mis-interpreting JSR-269 or that there's something more deeper, I'm creating this ticket to solicit feedbacks from people.