QPID-5723: fix compilation under JDK 8 (somehow..?)

merge from trunk r1590255


git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1591687 13f79535-47bb-0310-9956-ffa450edef68