maven-compiler-plugin icon indicating copy to clipboard operation
maven-compiler-plugin copied to clipboard

[MCOMPILER-509] Compiler warning output out of order on Windows

Open jira-importer opened this issue 3 years ago • 4 comments

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

jira-importer avatar Oct 13 '22 12:10 jira-importer

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.

jira-importer avatar Oct 13 '22 18:10 jira-importer

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

jira-importer avatar Oct 15 '22 09:10 jira-importer

Vyom Yadav commented

Michael Osipov Any updates on this?

jira-importer avatar Oct 31 '22 06:10 jira-importer

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.

jira-importer avatar Oct 31 '22 08:10 jira-importer