When trying to configure the joint compiler to treat java compile warnings as errors I tried to set the following javac args:
I found that -Xlint:all worked, but -Werror gave me an error saying that it was an unrecognised option. After some digging it seems that the joint compiler prefixes all options bound for javac with -F, which means the lint option was transformed to "-FXlint:all" but the -Werror option didn't get this same transformation. If I manually added the "-F" making it "-FWerror" everything worked as it should.
I went looking for whereabouts this prefixing gets applied to try and determine why it wasn't happening to "-Werror" but couldn't find it.