dev-java/avalon-logkit-2.1-r6 fails to compile using sun-jdk-1.5:
cannot find symbol
[javac] symbol : class SQLFeatureNotSupportedException
[javac] location: package java.sql
[javac] import java.sql.SQLFeatureNotSupportedException;
GENTOO_VM=sun-jdk-1.5 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-188.8.131.52"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
This is because SQLFeatureNotSupportedException was added in 1.6. That class is introduced by the avalon-logkit-2.1-java7.patch in the ebuild.
* apply the patch conditionally
* change the DEPEND and RDEPEND to jdk/jre >= 1.6
* change the patch to throw a different exception class
This was fixed in later revisions and this revision has now been removed. Closing.