Commit 6ae79d7
Report "Error occurred during initialization of VM" as error
Until now, this error message was just swallowed silently.
Along the way, also report "Error occurred during initialization of boot
layer" as ERROR, because probably OTHER was never the right category to
begin with. With OTHER, Maven Compiler logs both error messages on INFO,
which I believe to be wrong. Now, Maven Compiler
logs them on ERROR with "COMPILATION ERROR" header, which fits the
behaviour that the build fails. Besides, javadoc for
CompilerMessage.Kind.ERROR says "Problem which prevents the tool's
normal completion", which also is a good description of what is actually
happening for both the boot layer and VM init errors.1 parent 9ba766d commit 6ae79d7
File tree
2 files changed
+19
-4
lines changed- plexus-compilers/plexus-compiler-javac/src
- main/java/org/codehaus/plexus/compiler/javac
- test/java/org/codehaus/plexus/compiler/javac
2 files changed
+19
-4
lines changedLines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
641 | 645 | | |
642 | 646 | | |
643 | 647 | | |
| |||
664 | 668 | | |
665 | 669 | | |
666 | 670 | | |
667 | | - | |
| 671 | + | |
668 | 672 | | |
669 | | - | |
670 | | - | |
671 | 673 | | |
672 | 674 | | |
673 | 675 | | |
| |||
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1010 | 1010 | | |
1011 | 1011 | | |
1012 | 1012 | | |
1013 | | - | |
| 1013 | + | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
1021 | 1029 | | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1022 | 1034 | | |
| 1035 | + | |
1023 | 1036 | | |
1024 | 1037 | | |
1025 | 1038 | | |
| |||
0 commit comments