As suggested by Herve Quiroz in an e-mail conversation quite some time ago now, instead of using ${CP} -r to install javadocs, use ${FIND} with ${MKDIR} and ${INSTALL_DATA} to ensure that ownerships and permissions come out right when port is built as a mortal user then installed as root.
Responsible Changed From-To: freebsd-ports-bugs->hq I'll handle this.
State Changed From-To: open->closed Patch commited. Thanks for your contribution!