`emerge dev-java/commons-lang-2.0-r2` wants to install dev-java/sun-jdk-1.4.2.13-r1, dev-java/java-sdk-docs-1.4.2 and virtual/java-1.4.2 when USE flag "doc" is enabled even if I have uninstalled these packages in favour of dev-java/sun-jdk-1.6.0-r1, dev-java/java-sdk-docs-1.6.0-r1 and virtual/jdk-1.6.0 which are already installed. With USE flag "-doc" it doesn't want to install the old Java version. On the first look it's caused by this line in the ebuild: "doc? ( || ( =virtual/jdk-1.4* =virtual/jdk-1.5* ) )" Also with USE flag "doc" the old Java version shouldn't be installed.
Except that it doesn't work, see Bug 158720. NOTABUG.