Jenkins警告下一代插件:Java编译器警告被忽略 - 为什么?

问题描述 投票:0回答:1

我正在尝试使用警告下一代插件来获取警告。虽然它适用于PMD,Checkstyle,Maven等。但我不能让它适用于Java编译器。

具体来说,我有来自Java编译器本身的警告,比如

08:52:34.395 [WARNING] /my/path/to/workspace/src/main/java/my/package/TemporalJsonSeqFiling.java:[86,76] redundant cast to long

还有Checker Framework发布的警告,比如

10:16:33.787 [WARNING] /my/path/to/workspace/src/main/java/my/package/CollatorOrdering.java:[107,46] [override.param.invalid] Incompatible parameter type for s.
  Method
    @Initialized @NonNull CollationKey apply(@Initialized @NonNull <anonymous my.package.CollatorOrdering$2> this, @Initialized @NonNull String p0) in <anonymous my.package.CollatorOrdering$2>
  cannot override
    @Initialized @Nullable CollationKey apply(@Initialized @NonNull Function<@Initialized @NonNull String, @Initialized @NonNull CollationKey> this, @Initialized @Nullable String p0) in com.google.common.base.Function
  found   : @Initialized @NonNull String
  required: @Initialized @Nullable String

两者都被忽略了。我还在使用JDK 8 - 这是问题吗?

(我查看了https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/JavacParser.java中的源代码 - 正则表达式看起来相当复杂:-)

jenkins jenkins-plugins
1个回答
0
投票

我发现了问题:我们在Maven日志中使用时间戳,而Java编译器解析器的正则表达式无法应对。

我提出了一个问题:https://issues.jenkins-ci.org/browse/JENKINS-56737

© www.soinside.com 2019 - 2024. All rights reserved.