You cannot have a package name with a "-" in it anyway so these files are something different. In my case I had example files in the .../doc-files directory and javadoc died because I've used the same classname (Example) in several places. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267992 13f79535-47bb-0310-9956-ffa450edef68remotes/1776816827838153613/tmp_25f451bd36ab3145e487fcb2cd5c62c571e5b602