Maven Compiler Plugin
  1. Maven Compiler Plugin
  2. MCOMPILER-149

Java compiler warning is masking a javac exception, which the compiler plugin doesn't know how to parse

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.4
    • Labels:
      None
    • Environment:
      Windows XP SP3, Java 1.6.0_17, Maven 2.0.8

      Description

      The following javac error is hidden when the project that produced it also contains a java compiler warning. If the code that produces the warning is removed, and the project is rebuilt, then the javac error is output; otherwise, only the warning is output.

      This is the error that is hidden by the warning below:

      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Compilation failure
      Failure executing javac, but could not parse the error:
      An exception has occurred in the compiler (1.6.0_17). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
      com.sun.tools.javac.code.Symbol$CompletionFailure: class file for javax.persistence.AccessType not found

      This is the warning that hides the above error when produced:

      [WARNING] somefile.java:[79,24] com.sun.jmx.trace.Trace is Sun proprietary API and may be removed in a future release

        Activity

        David Erie created issue -
        Hide
        Robert Scholte added a comment -

        This should be resolved with the fix for MCOMPILER-118. Please verify.

        Show
        Robert Scholte added a comment - This should be resolved with the fix for MCOMPILER-118 . Please verify.
        Olivier Lamy (*$^¨%`£) made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 2.4 [ 16208 ]
        Assignee Robert Scholte [ rfscholte ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 09:20:51 UTC 2015 [ 1428225651644 ]
        Mark Thomas made changes -
        Workflow jira [ 12718658 ] Default workflow, editable Closed status [ 12750008 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:48:53 UTC 2015 [ 1428274133206 ]
        Mark Thomas made changes -
        Workflow jira [ 12956067 ] Default workflow, editable Closed status [ 12993140 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        436d 23h 40m 1 Olivier Lamy (*$^¨%`£) 27/Apr/12 09:37

          People

          • Assignee:
            Robert Scholte
            Reporter:
            David Erie
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development