Menu

#40 CheckStyle package.html broken

open
None
5
2003-06-17
2002-09-09
No

Recreation Steps:
1. Configure the CheckStyle plug-in such that the Javadoc
package HTML is required:
checkstyle.require.packagehtml=yes
2. Check a buffer that doesn't have a package.html.

Nothing is reported to the Error List.

The problem is in CheckStyleThread.java, line 155. Here
the code is looking to strip off the postfix that was added
previously, but in this case, the file from the AuditEvent is
actually "package.html" instead of the source file. Since the
postfix isn't present in the file name, an
ArrayIndexOutOfBoundsException is thrown when calling
substring with -1.

An appropriate fix may be simply to do nothing if the postfix
wasn't found. The attached file has that fix.

Discussion

  • Eric James Smith

    Possible fix for this bug.

     
  • Todd Papaioannou

    • assigned_to: nobody --> luckyspin
     
  • Todd Papaioannou

    Logged In: YES
    user_id=16728

    Thanks, I will take a look at this when I get a chance.

     
  • Slava Pestov

    Slava Pestov - 2003-05-29
    • labels: 102671 -->
    • milestone: 101608 -->
    • assigned_to: luckyspin --> nobody
     
  • Brad Mace

    Brad Mace - 2003-06-17
    • assigned_to: nobody --> luckyspin
     

Log in to post a comment.