[MCOMPILER-509] Compiler warning output out of order on Windows
Vyom Yadav opened MCOMPILER-509 and commented
Maven output is appearing out of order in windows. This may be related to maven or may be related to windows.
In the cmd prompt, I get the output:
[WARNING] D:\checkstyle\src\main\java\com\puppycrawl\tools\checkstyle\checks\imports\ImportControlLoader.java:[185,78] [argument] incompatible argument for parameter parent of FileImportControl.
found : @Initialized @Nullable PkgImportControl
[WARNING]
required: @Initialized @NonNull PkgImportControl{{}}
instead of:
[WARNING] D:\checkstyle\src\main\java\com\puppycrawl\tools\checkstyle\checks\imports\ImportControlLoader.java:[185,78] [argument] incompatible argument for parameter parent of FileImportControl.
found : @Initialized @Nullable PkgImportControl
required: @Initialized @NonNull PkgImportControl
[WARNING]................
The full log is present in this gist
The maven command which prints this log is resource intensive.
The issue is stable, I have tried it multiple times, feel free to ask for any other information.
Affects: 3.10.1
Michael Osipov commented
I can confirm this by manually runing javac on Windows:
C:\Entwicklung\Projekte\checkstyle\src\main\java\com\puppycrawl\tools\checkstyle\checks\imports\ImportControlLoader.java:176: warning: [argument] incompatible argument for parameter parent of PkgImportControl.
final AbstractImportControl importControl = new PkgImportControl(parentImportControl,
^
found : @Initialized @Nullable PkgImportControl
required: @Initialized @NonNull PkgImportControl
but this is not a Maven problem, but eierh Maven Compiler Plugin or Plexus Compiler.
Michael Osipov commented
I have to correct myself, it is not a logging issue. It is truly a parsing issue with Plexus Compiler: https://github.com/codehaus-plexus/plexus-compiler/tree/MCOMPILER-509
Michael Osipov commented
Not from me, I have layed the ground work, extraced the output and now someone needs to analyze the parser. You can go ahead and analyze it.