Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.5
-
Fix Version/s: 2.6
-
Labels:None
-
Environment:maven 2.0.9 windows xp
-
Number of attachments :
Description
When executing javadoc:jar with <excludePackageNames>*</excludePackageNames> (or other values) we get :
java.lang.ArrayIndexOutOfBoundsException: 0
at org.apache.maven.plugin.javadoc.JavadocUtil.getIncludedFiles(JavadocUtil.java:369)
This is probably related to this code :
String[] excludeName = excludePackages[k].split( "[*]" );
...
if ( excludeName.length > 1 )
{
...
}
else
{
if ( fileList[j].startsWith( sourceDirectory.toString() + File.separatorChar + excludeName[0] ) )
...
If the split() function returns an empty array (excludeName), we reach the "else" branch but "excludeName[0]" will throw java.lang.ArrayIndexOutOfBoundsException: 0
Fixed in r748860, snapshot deployed