The shared-objects-1.4-r1 ebuild uses generation 2 java build system, but does not inherit java-ant-2. As a result, the sources are built to target the system VM, not necessarily the minimum VM. Inheriting java-ant-2 will cause compile time edits to the build file to add target attributes to the javac tasks, fixing the problem. This problem causes aterm-java to have build problems. Reproducible: Always Steps to Reproduce:
Ebuild fixed. Thanks for reporting.
As a side not if you add JAVA_PKG_STRICT=1 to your make.conf it will make Portage die if it's installing a jar file that has bytecode compiled to too high version. We did not turn this on by default yet because we don't want to make stuff suddenly start dying for users.