Closed mmoayyed closed 1 year ago
I am having a similar error with the following line of code:
private static final String BOM = "\uFEFF";
The error is:
[WARN] JavaNCSS got an error while parsing the java file /Users/myuser/Documents/workspace/myproject/mymodule/src/main/java/myproject/mymodule/encoding/MessageEncodingProcessor.java
TokenMgrError in STDIN
Lexical error at line 30, column 40. Encountered: "\ufeff" (65279), after : ""
Report time: 255ms
[ERROR] net.sourceforge.cobertura.javancss.parser.TokenMgrError: Lexical error at line 30, column 40. Encountered: "\ufeff" (65279), after : ""
at net.sourceforge.cobertura.javancss.parser.JavaParserTokenManager.getNextToken(JavaParserTokenManager.java:2057)
at net.sourceforge.cobertura.javancss.parser.JavaParser.jj_scan_token(JavaParser.java:10375)
at net.sourceforge.cobertura.javancss.parser.JavaParser.jj_3R_100(JavaParser.java:7053)
at net.sourceforge.cobertura.javancss.parser.JavaParser.jj_3_12(JavaParser.java:7086)
at net.sourceforge.cobertura.javancss.parser.JavaParser.jj_2_12(JavaParser.java:6013)
I get the error on this line:
return Integer::new;
Looks like cobertura doesn't like the "::" syntax.
causes: