Subject: bug#18109: 24.4.50; `compilation-error-regexp-alist-alist': wrong regexp for Maven

From: Filipp Gunbin <[email-masked]>
Date: Mon, 28 Jul 2014 16:30:06 +0400

Glenn,

On 26/07/2014 03:22 -0400, Glenn Morris wrote:

> Please explain why it is wrong, and show an example of what is is
> supposed to match. The current one in etc/compilation.txt is:
>
> * maven 2.0.9
>
> symbol: maven
>
> FooBar.java:[111,53] no interface expected here

Oh yes, sorry for the bad report.

While the original regexp catches these errors:

D:\cygwin\root\my-project\src\main\java\my\project\controllers\MainController.java:[27,12] error: cannot find symbol
[ERROR]   symbol:   class SomeService
  location: class MainController

it does not catch these, which Maven emits sometimes:

[ERROR] D:\cygwin\root\my-project\src\main\java\my\project\controllers\MainController.java:[21,1] error: cannot find symbol
[ERROR]   symbol: class Controller

My version catches both.

Also, the original regexp seems to be more complicated than it really
should be.

Tested on Maven 2.2.1 and 3.0.4.

-- 
    Filipp