Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439104 - dev-java/avalon-logkit-2.1-r6: java7 patch requires jdk >= 1.6
Summary: dev-java/avalon-logkit-2.1-r6: java7 patch requires jdk >= 1.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-20 20:48 UTC by Martin von Gagern
Modified: 2016-03-17 22:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.