Bug 54615

Summary: Tomcat 6 doesn't build against ecj 4.x
Product: Tomcat 6 Reporter: Lee Trager <ltrager>
Component: JasperAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal CC: ltrager
Priority: P2    
Version: unspecified   
Target Milestone: default   
Hardware: PC   
OS: Linux   
Attachments: Add's missing abstract method

Description Lee Trager 2013-02-27 21:32:56 UTC
Tomcat 6 fails to build against ecj 4.x due to unimplemented abstract method

ant -Dbase.path=. -Dbuild.compiler=modern -Dcommons-collections.jar=/usr/share/java/commons-collections.jar -Dcommons-daemon.jar=/usr/share/java/commons-daemon.jar -Dcommons-daemon.jsvc.tar.gz=HACK -Djasper-jdt.jar=/usr/share/java/ecj.jar -Djdt.jar=/usr/share/java/ecj.jar -Dtomcat-dbcp.jar=commons-dbcp.jar -Dtomcat-native.tar.gz=HACK -Dcommons-daemon.native.src.tgz=HACK -Dversion=6.0.36 -Dversion.build=36
Buildfile: /builddir/build/BUILD/apache-tomcat-6.0.36-src/build.xml
build-prepare:
    [mkdir] Created dir: /builddir/build/BUILD/apache-tomcat-6.0.36-src/output/classes
    [mkdir] Created dir: /builddir/build/BUILD/apache-tomcat-6.0.36-src/output/build
    [mkdir] Created dir: /builddir/build/BUILD/apache-tomcat-6.0.36-src/output/build/bin
    [mkdir] Created dir: /builddir/build/BUILD/apache-tomcat-6.0.36-src/output/build/conf
    [mkdir] Created dir: /builddir/build/BUILD/apache-tomcat-6.0.36-src/output/build/lib
    [mkdir] Created dir: /builddir/build/BUILD/apache-tomcat-6.0.36-src/output/build/logs
    [mkdir] Created dir: /builddir/build/BUILD/apache-tomcat-6.0.36-src/output/build/temp
    [mkdir] Created dir: /builddir/build/BUILD/apache-tomcat-6.0.36-src/output/build/webapps
compile:
    [javac] /builddir/build/BUILD/apache-tomcat-6.0.36-src/build.xml:147: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1077 source files to /builddir/build/BUILD/apache-tomcat-6.0.36-src/output/classes
    [javac] /builddir/build/BUILD/apache-tomcat-6.0.36-src/java/org/apache/jasper/compiler/JDTCompiler.java:86: CompilationUnit is not abstract and does not override abstract method ignoreOptionalProblems() in org.eclipse.jdt.internal.compiler.env.ICompilationUnit
    [javac]         class CompilationUnit implements ICompilationUnit {
    [javac]         ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error
BUILD FAILED
/builddir/build/BUILD/apache-tomcat-6.0.36-src/build.xml:147: Compile failed; see the compiler error output for details.
Total time: 8 seconds
Comment 1 Lee Trager 2013-02-27 21:33:44 UTC
Created attachment 29998 [details]
Add's missing abstract method

I copied the missing method from Tomcat 7 which allows Tomcat 6 to build.
Comment 2 Mark Thomas 2013-04-29 13:44:28 UTC
Fixed in 6.0.x and will be included in 6.0.37 onwards.