Bug 842620

Summary: tomcat - compile with -target 1.5 or greater
Product: [Fedora] Fedora Reporter: Mikolaj Izdebski <mizdebsk>
Component: tomcatAssignee: Ivan Afonichev <ivan.afonichev>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: akurtako, ivan.afonichev, java-sig-commits, kdaniel
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-20 15:44:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 842394    

Description Mikolaj Izdebski 2012-07-24 09:26:55 UTC
Package tomcat appears to be using Java generics,
but generates class files in format older than 49.0,
which corresponds to J2SE 5.0, in which generics were introduced.

Please update this package to generate classes in format 49.0 or
above. This corresponds to -target 1.5 option of javac (or ecj).

For more information, see bug #842394

Comment 1 Ivan Afonichev 2012-08-24 21:08:30 UTC
It seems tomcat package already build in 50 format.
also build.xml:


  <!-- Servlet 3.0 spec requires 1.6+ -->
  <property name="compile.source" value="1.6"/>
  <property name="compile.target" value="1.6"/>

Comment 2 Mikolaj Izdebski 2012-08-27 08:48:36 UTC
These 2 jars have classes in format 48.0:
  /var/lib/tomcat/webapps/examples/WEB-INF/lib/jstl.jar
  /var/lib/tomcat/webapps/examples/WEB-INF/lib/standard.jar
These are part of tomcat-webapps binary RPM build from tomcat SRPM

To see the full list of affected classes, you can try:
  curl http://mizdebsk.fedorapeople.org/jsr14-rawhide-2012-07-23.gz | zgrep ^tomcat-webapps-

You can also use javap to check class versions.

Comment 3 Fedora Update System 2012-10-17 21:22:12 UTC
tomcat-7.0.32-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/tomcat-7.0.32-1.fc18

Comment 4 Fedora Update System 2012-10-18 03:35:38 UTC
Package tomcat-7.0.32-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tomcat-7.0.32-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16389/tomcat-7.0.32-1.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-12-20 15:44:05 UTC
tomcat-7.0.32-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.