Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4, 2.5, 2.5.1
    • 3.0
    • None
    • Windows7, 64-bit
      VMs, 1.6.0_32 and 1.7.0_04 both 64-bit

    Description

      If one error occurs, all warnings are shown as error as well. Up to 2.3.2 this was not the case. Sample output 2.4 and higher:

      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] bad path element "": no such file or directory
      C:\dev-tmp\sample\src\main\java\de\maybebuggy\sample\Main.java:[19,18]
      [unchecked] unchecked call to add(E) as a member of the raw type
      java.util.List
      [ERROR]
      C:\dev-tmp\sample\src\main\java\de\maybebuggy\sample\Main.java:[20,18]
      [unchecked] unchecked call to add(E) as a member of the raw type
      java.util.List
      [ERROR]
      C:\dev-tmp\sample\src\main\java\de\maybebuggy\sample\Main.java:[24,15]
      [unchecked] unchecked conversion
      found   : java.util.List
      required: java.util.List<java.lang.String>
      [ERROR]
      C:\dev-tmp\sample\src\main\java\de\maybebuggy\sample\Main.java:[29,29]
      getList() in de.maybebuggy.sample.Main cannot be applied to (int)
      [INFO] 4 errors
      

      Sample output 2.3.2:

      [INFO] -------------------------------------------------------------
      [WARNING] COMPILATION WARNING :
      [INFO] -------------------------------------------------------------
      [WARNING]
      \dev-tmp\sample\src\main\java\de\maybebuggy\sample\Main.java:[19,18]
      [unchecked] unchecked call to add(E) as a member of the raw type
      java.util.List
      [WARNING]
      \dev-tmp\sample\src\main\java\de\maybebuggy\sample\Main.java:[20,18]
      [unchecked] unchecked call to add(E) as a member of the raw type
      java.util.List
      [WARNING]
      \dev-tmp\sample\src\main\java\de\maybebuggy\sample\Main.java:[24,15]
      [unchecked] unchecked conversion
      found   : java.util.List
      required: java.util.List<java.lang.String>
      [INFO] 3 warnings
      [INFO] -------------------------------------------------------------
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR]
      \dev-tmp\sample\src\main\java\de\maybebuggy\sample\Main.java:[29,29]
      getList() in de.maybebuggy.sample.Main cannot be applied to (int)
      [INFO] 1 error
      [INFO] -------------------------------------------------------------
      

      With the current behavior it is extremely hard to spot the error if there are multiple warnings in a project.

      Attachments

        Issue Links

          Activity

            People

              afloom Anders Hammar
              svogt Sascha Vogt
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: