#454 [indentation]AOOB exception on Runnable with inner switch

release_4.2
open
nobody
5
2012-10-10
2006-11-02
No

Attached class leads to:

checkstyle-must-have-rules:
[checkstyle] Running Checkstyle 4.1 on 1 files
[checkstyle]
src/main/net/eads/space/lapap/plugin/clsw/CheckstyleBug.java:0:
Got an exception -
java.lang.ArrayIndexOutOfBoundsException: 2147483647

When moving the switch part to separat method the
AOOB exception disappears.

Discussion

<< < 1 2 (Page 2 of 2)
  • Tomaszewski P.
    Tomaszewski P.
    2011-10-03

    Happens with
    Eclipse Checkstyle Plugin 5.4.1.201109192037
    also.

     
  • joba01
    joba01
    2012-04-19

    Hey,

    seems to be an old bug but is still not fixed, are there any attempts to fix it?
    I'm using: Eclipse Checkstyle Plug-in 5.5.0.201111092104

    In case the first line of a file is emtpy an ArrayOutOfBound exception occurs.

    I use the following rule:

    <module name="RegexpMultiline"><property name="id" value="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck_1334841628"/><property name="severity" value="warning"/><property name="format" value="@SimpleValue(\(.*?\))?(&lt;span&gt;[klzzwxh:0003klzzwxh:0004klzzwxh:0005]&lt;/span&gt;)*(&lt;span&gt;[(private)(public)(protected)(static)([klzzwxh:0006klzzwxh:0007klzzwxh:0008]&lt;/span&gt;)*])*(&lt;span&gt;[klzzwxh:0009klzzwxh:0010klzzwxh:0011]&lt;/span&gt;)*final"/><property name="message" value="KiSImpleValue Injections may not be 'final'"/></module

    cheers Joe

     
<< < 1 2 (Page 2 of 2)