violations-lib icon indicating copy to clipboard operation
violations-lib copied to clipboard

NumberFormatException thrown by ErrorProne parser

Open djh82 opened this issue 4 years ago • 2 comments

Following error was thrown:

java.lang.NumberFormatException: For input string: "none -target 1.8 -source 1.8 -g"

It seems odd that the regex used by GoogleErrorProneParser doesn't enforce that capture group 5 is a number, since it immediately tries to call Integer.parseInt on it.

djh82 avatar Aug 18 '20 09:08 djh82

There are also other issues reported on errorprone. Best might be tonremove it.

Sadly they dont seem to understand the importance of https://github.com/google/error-prone/issues/444

Also #95 may be an alternative to replace errorprone parser.

tomasbjerre avatar Aug 18 '20 16:08 tomasbjerre

OK, we use error prone a lot. I'd implement the ability to output in a known format....if I knew they were going to accept it/at least engage.

djh82 avatar Aug 18 '20 17:08 djh82