We are using slf4j in java code. This used lombok annotations.
When we run fortify SCA on this java code, we are getting following error.
Fortify Static Code Analyzer 21.2.3.0005 (using JRE 11.0.10)
Modules:
C/C++ Translator (CTran) 21.2.0.0112
Go Translator 21.2.0.0006
PHP Translator 21.2.2.0008
Legacy Translators 21.2.2.0004
SCA Platform 21.2.3.0002
[error]: Unexpected exception while parsing file ${0}
java.lang.IndexOutOfBoundsException: start 60071, end 59677, length 112900
at java.lang.AbstractStringBuilder.checkRange(AbstractStringBuilder.java:1716) ~[?:?]
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:631) ~[?:?]
at java.lang.StringBuilder.append(StringBuilder.java:213) ~[?:?]
at com.fortify.frontend.translator.javaJSP.lombok.LombokTranslator.write(LombokTranslator.java:78) ~[sca-frontend-21.2.3.0005.jar:?]
at com.fortify.frontend.translator.javaJSP.lombok.LombokTranslator.fillGap(LombokTranslator.java:115) ~[sca-frontend-21.2.3.0005.jar:?]
at com.fortify.frontend.translator.javaJSP.lombok.LombokTranslator.visit(LombokTranslator.java:1292) ~[sca-frontend-21.2.3.0005.jar:?]
at org.eclipse.jdt.core.dom.TryStatement.accept0(TryStatement.java:268) ~[org.eclipse.jdt.core-3.24.0.jar:?]
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3012) ~[org.eclipse.jdt.core-3.24.0.jar:?]
at com.fortify.frontend.translator.javaJSP.lombok.LombokTranslator.visit(LombokTranslator.java:680) ~[sca-frontend-21.2.3.0005.jar:?]
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:126) ~[org.eclipse.jdt.core-3.24.0.jar:?]
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3012) ~[org.eclipse.jdt.core-3.24.0.jar:?]
at com.fortify.frontend.translator.javaJSP.lombok.LombokTranslator.visitChildrenAndWrap(LombokTranslator.java:588) ~[sca-frontend-21.2.3.0005.jar:?]
--------------
did any one seen such error? is there any specific options we need to pass to SCA to use lobok annotations?