[ http://jira.codehaus.org/browse/MCHECKSTYLE-1?page=all ]

Jason van Zyl moved MNG-1846 to MCHECKSTYLE-1:
----------------------------------------------

      Version:     (was: 2.0)
                   (was: 2.0.2)
    Component:     (was: maven-checkstyle-plugin)
     Workflow: jira  (was: Maven)
          Key: MCHECKSTYLE-1  (was: MNG-1846)
      Project: Maven 2.x Checkstyle Plugin  (was: Maven 2)

> Use of 'severity' attribute in module configuration file causes 
> UnsupportedOperationException
> ---------------------------------------------------------------------------------------------
>
>          Key: MCHECKSTYLE-1
>          URL: http://jira.codehaus.org/browse/MCHECKSTYLE-1
>      Project: Maven 2.x Checkstyle Plugin
>         Type: Bug

>  Environment: Windows XP, J2SDK 1.4.2_10, maven-checkstyle-plugin 
> 2.0-beta-2-SNAPSHOT, Maven 2.0.2-SNAPSHOT
>     Reporter: Nick Giles
>  Attachments: trace.txt
>
>
> When I provide the Checkstyle plugin with a customised config file, it causes 
> it to crash unpleasantly when generating the report. It appears that this is 
> due to calling the 'remove' method on Arrays$ArrayList, which doesn't 
> implement the method. The call is actually removing the 'severity' property 
> from the list of columns before going on to process the rest. Wrapping the 
> list in an actual ArrayList (java.util.ArrayList) solves the problem.
> To replicate, add <configLocation>your-rules.xml</configLocation> to the 
> plugin configuration, and ensure that at least two modules in your-rules.xml 
> have the severity property set, something like:
> <?xml version="1.0"?>
> <!DOCTYPE module PUBLIC
>     "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
>     "http://www.puppycrawl.com/dtds/configuration_1_2.dtd";>
> <module name="Checker">
>     <module name="PackageHtml">
>       <property name="severity" value="warning" />
>     </module>
>     <module name="NewlineAtEndOfFile">
>       <property name="severity" value="info" />
>     </module>
> </module>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to