Note that there are some explanatory texts on larger screens.

plurals
  1. POSonar and Flex plugin - Dollars ($) are not accepted in java class names
    text
    copied!<p>In reference to this bug from Sonar: <a href="http://jira.codehaus.org/browse/SONAR-1865" rel="nofollow">http://jira.codehaus.org/browse/SONAR-1865</a></p> <p>and this one (which cross references the one above): <a href="http://jira.codehaus.org/browse/SONAR-1637" rel="nofollow">http://jira.codehaus.org/browse/SONAR-1637</a></p> <p>I am still seeing this issue.</p> <p>I am using Sonar server version 2.12.<br/> I am using Hudson, version 2.2.0.<br/> I have installed the Sonar plugin in Hudson, version 1.7.2.<br/></p> <p>and, most importantly, I have the Flex plugin installed in the Sonar server. Flex plugin version is 0.4.</p> <p>When I run <code>mvn sonar:sonar -Pflex</code> on a flex project, i get this error in the stack trace:</p> <pre><code>Caused by: java.lang.IllegalArgumentException: Java inner classes are not supported : EntityEnums$ReportParameterName at org.sonar.plugins.flex.FlexFile.&lt;init&gt;(FlexFile.java:79) at org.sonar.plugins.flex.FlexFile.fromIOFile(FlexFile.java:165) at org.sonar.plugins.flex.FlexSourceImporter.createResource(FlexSourceImporter.java:37) at org.sonar.api.batch.AbstractSourceImporter.parseDirs(AbstractSourceImporter.java:75) at org.sonar.api.batch.AbstractSourceImporter.analyse(AbstractSourceImporter.java:69) at org.sonar.api.batch.AbstractSourceImporter.analyse(AbstractSourceImporter.java:60) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) </code></pre> <p>Here is what my class looks like, that it is complaining about:</p> <p>This is an Actionscript class, file name: <code>EntityEnums$ReportParameterName.as</code>. It was auto-generated from java to Actionscript using GraniteDS.</p> <pre><code>package com.digabit.core.db.entity.util { [Bindable] public class EntityEnums$ReportParameterName { public static const tnid:String = "tnid"; public static const uname:String = "uname"; public static const lc:String = "lc"; public static const tnkey:String = "tnkey"; public static const oid:String = "oid"; public function EntityEnums$ReportParameterName() { super(); } } } </code></pre> <p>So, according the bug reports, this has been fixed in an earlier version of Sonar that I have; but I'm still seeing it in version 2.12. And why would the error show "java inner classes..." when this is a flex/actionscript class? Is anyone still seeing this bug behavior?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload