When using JAVA_PKG_BSFIX_NAME with multiple filenames, you need brackets around the or'd -name conditions, otherwise it could match directories as well as files. Unlikely but hey. Patch attached.
Created attachment 160545 [details, diff] java-ant-2.eclass.patch
This patch is legit. I think we should include it in java-ant-2.eclass. @Java: Can I go ahead?
There you go: + 23 Jan 2015; Patrice Clement <monsieurp@gentoo.org> java-ant-2.eclass: + Sanitise find arguments when using JAVA_PKG_BSFIX_NAME option. Fix #231956. + Thanks James.