Bug 148410 - dev-java/jakarta-jstl-1.1.2-r1 build fails when using sun-jdk-1.6
Bug#: 148410 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P3
Resolution: FIXED Assigned To: java@gentoo.org Reported By: fordfrog@gentoo.org
Component: Library
URL: 
Summary: dev-java/jakarta-jstl-1.1.2-r1 build fails when using sun-jdk-1.6
Keywords:  
Status Whiteboard: 
Opened: 2006-09-20 12:20 0000
Description:   Opened: 2006-09-20 12:20 0000
The build fails apparently because the library doesn't override method from
sun-jdk-1.6. The ebuild should be limited to build with jdk version lower than
1.6.

library-build:
    [javac] Compiling 236 source files to
/var/tmp/portage/jakarta-jstl-1.1.2-r1/work/jakarta-taglibs-standard-1.1.2-src/build/standard/standard/classes
    [javac]
/var/tmp/portage/jakarta-jstl-1.1.2-r1/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/common/sql/DataSourceWrapper.java:35:
org.apache.taglibs.standard.tag.common.sql.DataSourceWrapper is not abstract
and does not override abstract method
createQueryObject(java.lang.Class,javax.sql.DataSource) in javax.sql.DataSource
    [javac] public class DataSourceWrapper implements DataSource {
    [javac]        ^
    [javac] Note:
/var/tmp/portage/jakarta-jstl-1.1.2-r1/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/extra/spath/SPathFilter.java
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error

BUILD FAILED
/var/tmp/portage/jakarta-jstl-1.1.2-r1/work/jakarta-taglibs-standard-1.1.2-src/standard/build.xml:171:
Compile failed; see the compiler error output for details.

Total time: 5 seconds

!!! ERROR: dev-java/jakarta-jstl-1.1.2-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  jakarta-jstl-1.1.2-r1.ebuild, line 44:   Called eant 'build'
  java-utils-2.eclass, line 1320:   Called die

!!! eant failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.

!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.0_beta99"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"

------- Comment #1 From Miroslav Ć ulc 2006-09-20 12:45:58 0000 -------
Created an attachment (id=97573) [details]
patch for jakarta-jstl-1.1.2-r1.ebuild

patch for jakarta-jstl-1.1.2-r1.ebuild

------- Comment #2 From Josh Nichols (RETIRED) 2006-09-26 21:14:27 0000 -------
Fixed in CVS. Thanks for reporting!