LS,
I try adding errorprone to the maven build of apache cloudstack and see this:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.errorprone.util.ErrorProneTokens$CommentSavingTokenizer (file:/home/dahn/.m2/repository/com/google/errorprone/error_prone_check_api/2.18.0/error_prone_check_api-2.18.0.jar) to field com.sun.tools.javac.parser.JavaTokenizer.reader
WARNING: Please consider reporting this to the maintainers of com.google.errorprone.util.ErrorProneTokens$CommentSavingTokenizer
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
/home/dahn/apache/cloudstack/utils/src/main/java/com/cloud/utils/SerialVersionUID.java:[26,47] error: [BadShiftAmount] Shift by an amount that is out of range
(see
https://errorprone.info/bugpattern/BadShiftAmount)
Did you mean 'public static final long Base = 0x564D4F70L << 32;'?
[ERROR] /home/dahn/apache/cloudstack/utils/src/main/java/com/cloud/utils/events/SubscriptionMgr.java:[153,23] error: [EqualsHashCode] Classes that override equals should also override hashCode.
(see
https://errorprone.info/bugpattern/EqualsHashCode)
[INFO] 2 errors
this is the main branch of the project, it uses jdk 11 if than is relevant. Any clues?
thanks