PreviousNextTracker indexSee it online !

(261/314) 607062 - CheckStyle package.html broken

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

Nothing is reported to the Error List.

The problem is in, 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.

Submitted ericjsmith - 2002-09-09 - 23:53:13z Assigned luckyspin
Priority 5 Category None
Status Open Group None
Resolution None Visibility No


2002-09-12 - 20:16:57z
Logged In: YES

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


2002-09-09 - 23:53:13z

Possible fix for this bug.