I'm using Sonar 5.1.1 and when I analyze my code it give me the following exception:
SonarQube is unable to analyze file : '/var/lib/...guilisteners/MouseEventListener.java' at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
[...]
Caused by: java.lang.IllegalArgumentException
at org.sonar.java.model.SyntacticEquivalence.areLeafsEquivalent(SyntacticEquivalence.java:98)
If I search in the web about this exception I can see that it's a Sonar bug that it's already fixed but they didn't release the new version with this bug fixed still: http://jira.sonarsource.com/browse/SONARJAVA-1024 (Seems like some problem with the Java plugin)
I wonder if someone knows some workaround to solve this issue while I'm waiting for the new release of Sonar.