Purpose
This page provides information on the tool EmptyJava, which in a given folder spots any Java file that is fully commented, and replaces it with an empty file with file extension *.test
It is useful as such a fully commented file generates Fatal Error "Unable to process JSP analysis" in 7.3.x (x < 10)
Details
The file can be found here : Empty JAVA.7z
Steps :
- Choose the folder you suspect contains fully-commented files (see example below) :
Figure 1 - Extract the tool, and open a CMD
Run the tool using command-line :
Run the Tool in command-lineJava -cp DeleteEmptyJavaFiles.jar com.tg.castsoftware.DeleteEmptyJavaFiles.DeleteEmptyFiles "source_path"
The tool will tell you if it processed some files :
Figure 2
The file was renamed Hello.java.test, so it will not be parsed by the analyzer : no more Fatal Error
Figure 3
Notes/comments
The issue with fully commented java files is solved in 7.3.10, 8.1 and 8.2
Related Pages