The ebuild for dom4j-1.6.1-r1 correctly masks all JDK/JRE's that are not version 1.3/1.4. The latest CVS version (1.6.2) does not have this issue and works with sun-jdk-1.5.0.06.
Created attachment 80680 [details] dom4j-9999.ebuild A CVS ebuild.
*** This bug has been marked as a duplicate of 79206 ***