我是源分析器的新手。这些是警告
sourceanalyzer -b opmbuild -Xmx2G -cp '/vx/vom/BUILD/nightly/sfm/tot/02_16/06_00_14/linux/opm/jars/*.jar' '/vx/vom/BUILD/nightly/sfm/tot/
02_16/06_00_14/linux/opm/src/**/*.java'
[warning]: Assuming Java source level to be 1.4 as it was not specified. Note that the default value may change in future versions.
[warning]: Unexpected exception while parsing file DMPSolutionDao.java
[warning]: Unexpected exception while parsing file DMPWaitingOperations.java
[warning]: Unexpected exception while parsing file DmpOperations.java
[warning]: Unexpected exception while parsing file EsxDmpJob.java
[warning]: Unexpected exception while parsing file MyAppsController.java
[warning]: Multiple definitions found for class VOMBackup (/vx/vom/BUILD/nightly/sfm/tot/02_16/06_00_14/linux/opm/src/pkg/unix/linux/stage/opt/VRTSsfmcs/config/adm/VOMBackup.java:20:1 and /vx/vom/BUILD/nightly/sfm/tot/02_16/06_00_14/linux/opm/src/db/config/common/VOMBackup.java
:20:1).
答案 0 :(得分:0)
您需要做的第一件事是使用-version
设置Java版本。这可能会解决您获得的警告,因为您可能正在使用在Java 1.4中无效的构造。这些警告很重要,您需要调查原因。要找到问题的根源,请使用-debug-verbose -logfile opmbuild_translate.log
。日志条目应该为您提供更多诊断问题的帮助。如果您认为Fortify没有正确解析的有效构造,您应该联系Fortify支持并提供示例。