1 year ago
#245928
Aria
(Annotation Processing) Why Filer does not (mostly) allow overwriting?
Based on the Javadoc of Processor
The Filer interface discusses restrictions on how processors can operate on files.
Therefore, I presume other forms of file manipulation, such as with Files are not a good practice.
My question is why in Filer
it was decided not to allow overwriting files that are generated with annotation processors? What are the pros and cons? I understand that overwriting the source code or other critical objects may pose security risks, but what about those generated by processors?
java
file
annotation-processing
0 Answers
Your Answer