the xstream ebuild sets the target Java version to 1.4, but the source code uses annotations, which were introduced in Java 5. so, the package can't be compiled. if the USE flag "java5" is set, then everything works as expected. GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.13" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
this is getting annoying, since other packages require only java6 or java5 to be set. java5 use flag can be safely dropped, since source requires at least java5. Appending a patch to the ebuild.
Created attachment 195265 [details, diff] removes java5 use flag from 1.3.1 ebuild
XStream compiles the Java 5 source with source and target 1.5, while the rest is compiled for target 1.3
Removed java5 USE flag in -r1 bump. Now requires java-1.5 at least.