Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 439104

Summary: dev-java/avalon-logkit-2.1-r6: java7 patch requires jdk >= 1.6
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin von Gagern 2012-10-20 20:48:29 UTC
dev-java/avalon-logkit-2.1-r6 fails to compile using sun-jdk-1.5:

    [javac] /var/tmp/portage/dev-java/avalon-logkit-2.1-r6/work/
            avalon-logkit-2.1/src/java/
            org/apache/log/output/db/DefaultDataSource.java:23:
            cannot find symbol
    [javac] symbol  : class SQLFeatureNotSupportedException
    [javac] location: package java.sql
    [javac] import java.sql.SQLFeatureNotSupportedException;
    [javac]                 ^

GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.22"
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.

Possible fixes:
* apply the patch conditionally
* change the DEPEND and RDEPEND to jdk/jre >= 1.6
* change the patch to throw a different exception class
Comment 1 James Le Cuirot gentoo-dev 2016-03-17 22:07:34 UTC
This was fixed in later revisions and this revision has now been removed. Closing.